/* ═══════════════════════════════════════════════════════════════════════════
   🏞️  LAND TILES - CSS
   قطعه‌بندی 6ضلعی + مدال خرید + مدال ایجاد ایستگاه + مدیریت آهنگ
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────── دکمه ایجاد ایستگاه در header ───────── */
.btn-create-station {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, .35);
    transition: transform .15s, box-shadow .2s;
    margin-left: 8px;
    white-space: nowrap;
}
.btn-create-station:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16, 185, 129, .5); }
.btn-create-station:active { transform: translateY(0); }
.btn-create-station .cs-icon { font-size: 15px; }
@media (max-width: 640px) {
    .btn-create-station .cs-text { display: none; }
    .btn-create-station { padding: 8px 10px; }
}

/* 🆕 [SIDEBAR-CREATE-STATION] واریانت سایدبار — متمایز و بزرگ‌تر، در بالای محتوا
   روی موبایل برخلاف نسخه‌ی هدر، متن کامل نمایش داده می‌شود (فضا کافیست). */
.btn-create-station-sidebar {
    width: 100%;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin: 0 0 12px 0 !important;   /* override margin-left کلاس پایه */
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
    /* gradient کمی روشن‌تر برای متمایز شدن از فضای تیره‌ی sidebar */
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #059669 100%);
}
.btn-create-station-sidebar .cs-icon { font-size: 18px; }
.btn-create-station-sidebar .cs-text { font-weight: 800; letter-spacing: -.2px; }
@media (max-width: 640px) {
    /* override رفتار پیش‌فرض که متن را روی موبایل پنهان می‌کند */
    .btn-create-station-sidebar .cs-text { display: inline !important; }
    .btn-create-station-sidebar { padding: 12px 14px; font-size: 13.5px; }
}

/* 🆕 [PROFILE-CREATE-STATION] واریانت پروفایل — بین باکس امتیاز و منوها
   استایل کاملاً متمایز با ربان طلایی-سبز برای جلب توجه به اقدام اصلی. */
.btn-create-station-profile {
    width: 100%;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    font-size: 13.5px;
    margin-left: 0 !important;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    box-shadow: 0 6px 18px rgba(6, 182, 212, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
    position: relative;
    overflow: hidden;
}
.btn-create-station-profile::before {
    /* shimmer ملایم — حس "اقدام برجسته" */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: csShimmer 2.6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes csShimmer {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(100%);  }
    100% { transform: translateX(100%);  }
}
.btn-create-station-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(6, 182, 212, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-create-station-profile .cs-icon { font-size: 16px; }
.btn-create-station-profile .cs-text { font-weight: 800; }
/* override کلاس پایه که روی موبایل متن را پنهان می‌کرد */
@media (max-width: 640px) {
    .btn-create-station-profile .cs-text { display: inline !important; }
    .btn-create-station-profile { padding: 10px 12px; font-size: 13px; }
}

/* ───────── حالت انتخاب زمین روی نقشه (info bar) ───────── */
.land-mode-banner {
    position: fixed;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: linear-gradient(135deg, rgba(16, 185, 129, .97), rgba(5, 150, 105, .97));
    color: #fff;
    padding: 10px 12px 10px 20px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .15);
    animation: slideDown .3s ease;
    max-width: calc(100vw - 32px);
}
.land-mode-banner .banner-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
}
.land-mode-banner .banner-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.land-mode-banner .exit-land-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, .95);
    border: 1.5px solid rgba(255, 255, 255, .4);
    padding: 7px 14px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    transition: background .15s, transform .12s, box-shadow .15s;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.land-mode-banner .exit-land-btn:hover {
    background: #ef4444;
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(239, 68, 68, .4);
}
.land-mode-banner .exit-land-btn:active { transform: scale(.97); }
.land-mode-banner .exit-icon { font-size: 14px; font-weight: bold; line-height: 1; }
.land-mode-banner .exit-text { line-height: 1; }

/* روی موبایل، فقط آیکون ✕ نمایش داده شود */
@media (max-width: 480px) {
    .land-mode-banner { padding: 8px 10px 8px 14px; gap: 8px; }
    .land-mode-banner .banner-text { font-size: 12px; }
    .land-mode-banner .exit-land-btn { padding: 6px 10px; }
    .land-mode-banner .exit-text { display: none; }
}

@keyframes slideDown { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ───────── Legend وضعیت‌های زمین ───────── */
.land-legend {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    background: rgba(10, 10, 25, .85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, .3);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
    animation: slideUp .3s ease;
}
.land-legend h5 { margin: 0 0 8px 0; font-size: 13px; opacity: .8; }
.land-legend .lg-item { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.land-legend .lg-box {
    width: 16px; height: 16px; border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.2);
}
.land-legend .lg-box.free    { background: rgba(34, 197, 94, .4); }
.land-legend .lg-box.sold    { background: rgba(239, 68, 68, .5); }
.land-legend .lg-box.mine    { background: rgba(168, 85, 247, .6); }
.land-legend .lg-box.locked  { background: rgba(107, 114, 128, .6); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ───────── مدال عمومی قابل استفاده مجدد ───────── */
.land-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .2s ease;
}
.land-modal-content {
    background: #1a1a2e;
    border-radius: 20px;
    padding: 28px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    border: 1px solid rgba(168, 85, 247, .3);
    animation: scaleIn .25s ease;
    position: relative;
    color: #fff;
}
.land-modal-content.wide { max-width: 680px; }
.land-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, .1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.land-modal-close:hover { background: rgba(255, 255, 255, .2); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.land-modal-header { text-align: center; margin-bottom: 20px; padding-top: 10px; }
.land-modal-header h3 { margin: 8px 0; font-size: 20px; font-weight: 700; }
.land-modal-header p { color: rgba(255, 255, 255, .6); font-size: 13px; margin: 0; }
.land-modal-icon { font-size: 48px; margin-bottom: 8px; }

/* ───────── مدال تایید خرید ───────── */
.buy-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 14px;
}
.buy-info-row:last-child { border-bottom: none; }
.buy-info-row .label { color: rgba(255, 255, 255, .6); }
.buy-info-row .value { font-weight: 700; color: #fff; }
.buy-info-row .value.price { color: #fbbf24; font-size: 16px; }
.buy-info-row .value.h3 { font-family: monospace; font-size: 12px; direction: ltr; }

.balance-warning {
    padding: 10px 14px;
    background: rgba(239, 68, 68, .15);
    border: 1px solid rgba(239, 68, 68, .3);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 13px;
    margin: 14px 0;
    text-align: center;
}

/* ───────── دکمه‌های مدال ───────── */
.land-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.land-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: transform .15s, opacity .15s;
}
.land-btn:active { transform: scale(.97); }
.land-btn:disabled { opacity: .4; cursor: not-allowed; }
.land-btn.primary { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.land-btn.secondary { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); }
.land-btn.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }

/* 🆕 دکمه حذف کوچک و غیر مزاحم */
.ef-delete-wrap {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px dashed rgba(239, 68, 68, .15);
    text-align: center;
}
.ef-delete-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, .2);
    border-radius: 8px;
    color: rgba(239, 68, 68, .75);
    font-size: 11px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    opacity: .7;
}
.ef-delete-link:hover {
    opacity: 1;
    background: rgba(239, 68, 68, .08);
    border-color: rgba(239, 68, 68, .45);
    color: #ef4444;
}
.ef-delete-icon { font-size: 12px; }
.ef-delete-note {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    color: rgba(255, 255, 255, .35);
}

/* ───────── فرم مدال (input/textarea/select) ───────── */
.form-field { margin-bottom: 14px; }
.form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
    font-weight: 600;
}
.form-field input[type="text"],
.form-field input[type="number"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .15s;
}
/* 🔧 رنگ option ها در dropdown - بعضی مرورگرها پس‌زمینه سیستم استفاده می‌کنند */
.form-field select option {
    background: #1a1a2e;
    color: #fff;
    padding: 8px;
}
.form-field select option:checked,
.form-field select option:hover {
    background: #a855f7 !important;
    color: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: none;
    border-color: #a855f7;
}
.form-field textarea { resize: vertical; min-height: 70px; }
.form-field .hint { font-size: 11px; color: rgba(255, 255, 255, .4); margin-top: 4px; }

/* ───────── Emoji Picker ───────── */
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 6px;
    margin-top: 6px;
    width: 100%;
    box-sizing: border-box;
}
.emoji-option {
    font-size: 20px;
    padding: 8px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    line-height: 1;
    min-width: 0;
    box-sizing: border-box;
}
.emoji-option:hover { background: rgba(255, 255, 255, .1); }
.emoji-option.selected {
    background: rgba(168, 85, 247, .25);
    border-color: #a855f7;
    transform: scale(1.08);
}

/* 📱 موبایل - 6 یا 5 ستون بر اساس عرض */
@media (max-width: 480px) {
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
        gap: 4px;
    }
    .emoji-option {
        font-size: 18px;
        padding: 6px;
    }
}

/* ───────── Theme Swatches ───────── */
.theme-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 6px;
    width: 100%;
    box-sizing: border-box;
}
.theme-swatch {
    aspect-ratio: 1.2;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .15s;
    position: relative;
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
}
.theme-swatch:hover { transform: scale(1.05); }
.theme-swatch.selected {
    border-color: #fff;
    box-shadow: 0 0 0 3px #a855f7;
}
.theme-swatch .theme-name {
    position: absolute;
    inset: auto 0 0 0;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 10px;
    padding: 3px 4px;
    text-align: center;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   🎵 PLAYLIST MANAGER (مدیریت آهنگ‌های ایستگاه)
   ═══════════════════════════════════════════════════════════ */
.playlist-manager {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pm-stats-bar {
    padding: 10px 14px;
    background: rgba(168, 85, 247, .1);
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pm-stats-bar .status-active { color: #10b981; font-weight: 700; }
.pm-stats-bar .status-inactive { color: #fbbf24; font-weight: 700; }

.pm-section-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .6);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

/* Search box */
.pm-search-wrap { position: relative; }
.pm-search-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
}
.pm-search-input:focus { outline: none; border-color: #a855f7; }
.pm-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .4);
    pointer-events: none;
    font-size: 16px;
}
.pm-search-loader {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(168, 85, 247, .3);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: land-spin-translated .7s linear infinite;
    display: none;
    transform: translateY(-50%);
}
.pm-search-wrap.loading .pm-search-icon { display: none; }
.pm-search-wrap.loading .pm-search-loader { display: block; }
/* keyframe منحصر به فرد - با @keyframes spin پروژه تداخل نداشته باشد */
@keyframes land-spin-translated { 
    from { transform: translateY(-50%) rotate(0deg); } 
    to { transform: translateY(-50%) rotate(360deg); } 
}
@keyframes land-spin-simple {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Song list / search results */
.pm-song-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}
.pm-song-list:empty::before {
    content: 'چیزی یافت نشد';
    display: block;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, .4);
    font-size: 13px;
}
.pm-song-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, .04);
    border-radius: 10px;
    transition: background .15s;
}
.pm-song-item:hover { background: rgba(255, 255, 255, .08); }

.pm-song-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, .05);
    flex-shrink: 0;
}
.pm-song-info {
    flex: 1;
    min-width: 0;
}
.pm-song-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-song-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-song-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s, opacity .15s;
    flex-shrink: 0;
}
.pm-song-btn:active { transform: scale(.9); }
.pm-song-btn:disabled { opacity: .5; cursor: not-allowed; }
.pm-song-btn.add { background: #10b981; color: #fff; }
.pm-song-btn.remove { background: #ef4444; color: #fff; }

/* 🎵 دکمه preview ۳۰ ثانیه */
.pm-song-preview {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid rgba(168, 85, 247, .35);
    background: linear-gradient(135deg, rgba(168, 85, 247, .12), rgba(6, 182, 212, .12));
    color: #c084fc;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s cubic-bezier(.16, 1, .3, 1);
    flex-shrink: 0;
    margin-left: 6px;
    font-family: inherit;
}
.pm-song-preview:hover {
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    color: #fff;
    border-color: transparent;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(168, 85, 247, .35);
}
.pm-song-preview:active { transform: scale(.92); }
.pm-song-preview.playing {
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    color: #fff;
    border-color: transparent;
    animation: pmPreviewPulse 1.4s ease-in-out infinite;
}
@keyframes pmPreviewPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, .5); }
    50% { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
}

/* My tiles list (در پروفایل) */
.my-tiles-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}
.my-tile-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(168, 85, 247, .2);
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
}
.my-tile-item:hover {
    background: rgba(168, 85, 247, .1);
    border-color: rgba(168, 85, 247, .5);
}
.my-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, .2);
    font-size: 20px;
    flex-shrink: 0;
}
.my-tile-info {
    flex: 1;
    min-width: 0;
}
.my-tile-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.my-tile-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
}

/* Small badge for has_station */
.station-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}
.station-badge.has { background: rgba(16, 185, 129, .2); color: #10b981; }
.station-badge.none { background: rgba(251, 191, 36, .2); color: #fbbf24; }

/* ───────── Toast ───────── */
.land-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20000;
    padding: 12px 20px;
    background: rgba(10, 10, 25, .95);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, .3);
    animation: toastIn .3s ease, toastOut .3s ease 2.2s forwards;
}
.land-toast.success { border-color: rgba(16, 185, 129, .6); }
.land-toast.error   { border-color: rgba(239, 68, 68, .6); }
@keyframes toastIn { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes toastOut { to { transform: translate(-50%, -20px); opacity: 0; } }

/* ───────── Loading Spinner ───────── */
.land-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(168, 85, 247, .2);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: land-spin-simple .8s linear infinite;
    margin: 20px auto;
}

/* ───────── Leaflet hex polygon ───────── */
/* این فقط pointer-events است — استایل stroke/fill داخل js تنظیم می‌شود */
.hex-polygon { transition: fill-opacity .15s; cursor: pointer; }
.hex-polygon:hover { fill-opacity: .7 !important; }

/* حالت‌های رنگی hex - در JS از className استفاده می‌کنیم */
.hex-tooltip {
    font-family: inherit !important;
    direction: rtl;
    background: rgba(10, 10, 25, .92) !important;
    color: #fff !important;
    border: 1px solid rgba(168, 85, 247, .4) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5) !important;
}
.hex-tooltip::before { border-top-color: rgba(10, 10, 25, .92) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   🆕 FAB (Floating Action Button) - دکمه زوم وقتی زوم کم است
   ═══════════════════════════════════════════════════════════════════════════ */
.land-zoom-fab {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 14px 22px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(16, 185, 129, .5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    animation: fabPulse 2s ease-in-out infinite;
    transition: transform .15s;
}
.land-zoom-fab:hover { transform: translateX(-50%) scale(1.05); }
.land-zoom-fab:active { transform: translateX(-50%) scale(.95); }
.land-zoom-fab .fab-icon { font-size: 20px; }
.land-zoom-fab .fab-label { font-size: 14px; font-weight: 700; }
.land-zoom-fab .fab-hint { font-size: 11px; opacity: .85; font-weight: 500; }

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(16, 185, 129, .5); }
    50% { box-shadow: 0 8px 32px rgba(16, 185, 129, .8); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   🆕 Tabs - برای مدال مدیریت ایستگاه
   ═══════════════════════════════════════════════════════════════════════════ */
.land-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, .04);
    padding: 4px;
    border-radius: 12px;
}
.land-tab {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, .6);
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}
.land-tab:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.land-tab.active {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    box-shadow: 0 2px 8px rgba(168, 85, 247, .3);
}

.land-tab-content {
    display: none;
    animation: fadeIn .2s ease;
}
.land-tab-content.active { display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   🆕 دکمه فعال/غیرفعال ایستگاه
   ═══════════════════════════════════════════════════════════════════════════ */
.pm-toggle-btn {
    width: 100%;
    margin: 6px 0 10px;
    padding: 10px 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   🆕 Legend با رنگ ایستگاه رسمی
   ═══════════════════════════════════════════════════════════════════════════ */
.land-legend .lg-box.admin-station { background: rgba(245, 158, 11, .5); }

/* ═══════════════════════════════════════════════════════════════════════════
   🆕 Confirm Modal Override - z-index بالاتر تا روی landModal دیگه بیاد
   ═══════════════════════════════════════════════════════════════════════════ */
.land-confirm-modal { z-index: 20001 !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   🆕 فرم ویرایش ایستگاه - Status Box + آپلود تصویر
   ═══════════════════════════════════════════════════════════════════════════ */
.ef-status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: rgba(168, 85, 247, .08);
    border: 1px solid rgba(168, 85, 247, .25);
    border-radius: 12px;
    margin-bottom: 16px;
}
.ef-status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.ef-status-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.ef-status-title {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
}
.ef-status-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
}
.ef-status-box .land-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 12px;
}

.ef-image-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ef-image-preview {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, .2);
    background: rgba(255, 255, 255, .03);
}
.ef-image-placeholder {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, .15);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .4);
    font-size: 13px;
}
.ef-image-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ef-image-actions .land-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 13px;
}
.ef-image-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🆕 دکمه ویرایش ایستگاه در popup روی نقشه
   ═══════════════════════════════════════════════════════════════════════════ */
.popup-btn-edit {
    margin-top: 6px !important;
    background: linear-gradient(135deg, #a855f7, #06b6d4) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform .15s, box-shadow .2s;
}
.popup-btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(168, 85, 247, .4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🆕 دکمه ویرایش ایستگاه در modal اصلی
   ═══════════════════════════════════════════════════════════════════════════ */
.modal-edit-station-wrap {
    padding: 12px 20px 0;
    text-align: center;
}
.modal-edit-station-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(168, 85, 247, .9), rgba(6, 182, 212, .9));
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 10px 24px;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(168, 85, 247, .35);
}
.modal-edit-station-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(168, 85, 247, .5);
}
.modal-edit-station-btn:active { transform: translateY(0); }

