/* ============================================================
   UAS ZONE - Auth, Admin, Minimap Styles
   ============================================================ */

/* ---- AUTH MODAL WRAPPER ---- */
.auth-modal-wrap {
    position: fixed;
    inset: 0;
    background: rgba(8,10,18,0.85);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.auth-container {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    width: 420px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 60px rgba(0,212,170,0.04);
    animation: authFadeIn 0.35s ease;
}

.auth-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.auth-modal-close:hover { background: rgba(229,62,62,0.15); color: #fc8181; border-color: rgba(229,62,62,0.3); }

@keyframes authFadeIn {
    from { opacity:0; transform: translateY(16px) scale(0.97); }
    to   { opacity:1; transform: none; }
}

/* ---- AUTH LOGO ---- */
.auth-logo { text-align:center; margin-bottom:28px; }
.auth-logo-icon { font-size:44px; margin-bottom:6px; animation: floatIcon 3s ease-in-out infinite; display:flex; justify-content:center; }
.auth-logo-icon img { filter:drop-shadow(0 4px 16px rgba(99,102,241,0.4)); }
@keyframes floatIcon { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
.auth-logo-text { font-family:'Outfit',sans-serif; font-size:26px; font-weight:700; color:var(--text-primary); letter-spacing:2px; }
.auth-logo-text span { color: var(--accent-primary); }
.auth-logo-sub { color:var(--text-muted); font-size:10px; margin-top:3px; letter-spacing:1px; text-transform:uppercase; }

/* ---- TABS ---- */
.auth-tabs { display:flex; gap:4px; background:var(--bg-dark); border-radius:10px; padding:4px; margin-bottom:20px; }
.auth-tab { flex:1; padding:8px; border:none; background:transparent; color:var(--text-muted); border-radius:7px; cursor:pointer; font-family:'Outfit',sans-serif; font-size:13px; font-weight:500; transition:all 0.2s; }
.auth-tab.active { background:var(--accent-primary); color:#000; font-weight:600; }

/* ---- FORM ---- */
.auth-form { display:none; }
.auth-form.active { display:block; }

.auth-field { margin-bottom:12px; }
.auth-field label { display:block; color:var(--text-secondary); font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:1px; margin-bottom:5px; }
.auth-field input, .auth-field select, .auth-field textarea {
    width:100%; background:var(--bg-dark); border:1px solid var(--border); color:var(--text-primary);
    padding:10px 13px; border-radius:9px; font-family:'Outfit',sans-serif; font-size:14px;
    box-sizing:border-box; transition:border-color 0.2s;
}
.auth-field input:focus, .auth-field select:focus, .auth-field textarea:focus {
    outline:none; border-color:var(--accent-primary); box-shadow:0 0 0 3px rgba(0,212,170,0.1);
}

.auth-error {
    background:rgba(229,62,62,0.15); border:1px solid rgba(229,62,62,0.3);
    color:#fc8181; padding:9px 13px; border-radius:8px; font-size:12px; margin-bottom:12px;
}

.auth-btn {
    width:100%; background:var(--accent-primary); color:#000; border:none;
    padding:13px; border-radius:10px; font-family:'Outfit',sans-serif; font-size:15px;
    font-weight:700; cursor:pointer; transition:all 0.2s; letter-spacing:0.3px; margin-top:4px;
}
.auth-btn:hover { background:#00e8b5; transform:translateY(-1px); box-shadow:0 6px 20px rgba(0,212,170,0.3); }
.auth-btn:disabled { opacity:0.6; cursor:not-allowed; transform:none; }

.auth-btn-secondary {
    width:100%; background:transparent; color:var(--text-muted); border:1px solid var(--border);
    padding:11px; border-radius:10px; font-family:'Outfit',sans-serif; font-size:13px;
    font-weight:500; cursor:pointer; transition:all 0.2s; margin-top:8px;
}
.auth-btn-secondary:hover { border-color:var(--accent-primary); color:var(--accent-primary); }

.auth-info-box {
    background:rgba(0,212,170,0.07); border:1px solid rgba(0,212,170,0.25);
    color:var(--text-secondary); padding:10px 14px; border-radius:9px; font-size:13px;
    margin-bottom:14px; text-align:center; line-height:1.5;
}
.auth-info-box strong { color:var(--accent-primary); }

.auth-hint { text-align:center; color:var(--text-muted); font-size:11px; margin-top:14px; line-height:1.7; }
.auth-hint b { color:var(--accent-primary); }

/* ---- PROFILE ---- */
.profile-avatar-area { text-align:center; margin-bottom:20px; padding:18px; background:var(--bg-dark); border-radius:12px; }
.profile-avatar { font-size:44px; margin-bottom:6px; }
.profile-role-badge { display:inline-block; padding:3px 12px; border-radius:20px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px; margin-top:5px; }
.profile-role-badge.admin { background:rgba(0,212,170,0.15); color:var(--accent-primary); border:1px solid rgba(0,212,170,0.3); }
.profile-role-badge.user  { background:rgba(0,134,255,0.15); color:#60b0ff; border:1px solid rgba(0,134,255,0.3); }

/* ---- HEADER USER AREA ---- */
.header-user-area { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.user-menu-container { position:relative; }
.user-menu-btn { display:flex; align-items:center; gap:7px; background:var(--bg-card); border:1px solid var(--border); color:var(--text-primary); padding:8px 13px; border-radius:10px; cursor:pointer; font-family:'Outfit',sans-serif; font-size:13px; font-weight:500; transition:all 0.2s; white-space:nowrap; }
.user-menu-btn:hover { border-color:var(--accent-primary); background:rgba(0,212,170,0.05); }
.user-avatar { font-size:16px; }

.user-dropdown { position:absolute; right:0; top:calc(100% + 8px); background:var(--bg-card); border:1px solid var(--border); border-radius:12px; min-width:230px; box-shadow:0 10px 40px rgba(0,0,0,0.6); overflow:hidden; z-index:2000; animation:dropdownShow 0.15s ease; }
@keyframes dropdownShow { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:none} }
.user-dropdown-header { padding:12px 16px; border-bottom:1px solid var(--border); background:var(--bg-dark); font-size:12px; color:var(--text-secondary); }
.user-dropdown-item { display:flex; align-items:center; gap:9px; width:100%; padding:11px 16px; background:transparent; border:none; color:var(--text-primary); font-family:'Outfit',sans-serif; font-size:14px; cursor:pointer; text-align:left; transition:background 0.15s; }
.user-dropdown-item:hover { background:rgba(0,212,170,0.08); color:var(--accent-primary); }
.user-dropdown-item.logout:hover { background:rgba(229,62,62,0.1); color:#fc8181; }

/* ---- ADMIN PANEL ---- */
.admin-overlay { position:fixed; inset:0; background:rgba(8,10,18,0.88); z-index:8000; display:flex; align-items:flex-start; justify-content:center; padding:20px; overflow-y:auto; backdrop-filter:blur(6px); }
.admin-container { background:var(--bg-card); border:1px solid var(--border); border-radius:18px; width:920px; max-width:100%; box-shadow:0 30px 80px rgba(0,0,0,0.8); animation:authFadeIn 0.3s ease; overflow:hidden; }
.admin-header { display:flex; align-items:center; justify-content:space-between; padding:18px 26px; background:var(--bg-dark); border-bottom:1px solid var(--border); }
.admin-title { font-size:17px; font-weight:700; color:var(--accent-primary); }
.admin-close { background:transparent; border:1px solid var(--border); color:var(--text-secondary); padding:7px 14px; border-radius:8px; cursor:pointer; font-family:'Outfit',sans-serif; font-size:13px; transition:all 0.2s; }
.admin-close:hover { background:rgba(229,62,62,0.1); color:#fc8181; border-color:rgba(229,62,62,0.3); }

.admin-tabs { display:flex; padding:14px 26px 0; border-bottom:1px solid var(--border); gap:2px; overflow-x:auto; }
.admin-tab { padding:9px 16px; background:transparent; border:none; border-bottom:2px solid transparent; color:var(--text-muted); font-family:'Outfit',sans-serif; font-size:13px; font-weight:500; cursor:pointer; white-space:nowrap; transition:all 0.2s; margin-bottom:-1px; }
.admin-tab.active { color:var(--accent-primary); border-bottom-color:var(--accent-primary); font-weight:600; }
.admin-tab:hover:not(.active) { color:var(--text-secondary); }

.pending-badge { background:var(--accent-danger); color:#fff; border-radius:12px; padding:1px 7px; font-size:10px; font-weight:700; margin-left:4px; }

.admin-tab-content { display:none; padding:22px 26px 26px; }
.admin-tab-content.active { display:block; }
.admin-section-title { font-size:13px; font-weight:600; color:var(--text-primary); margin-bottom:10px; padding-bottom:7px; border-bottom:1px solid var(--border); }
.admin-hint { color:var(--text-muted); font-size:12px; margin-bottom:14px; line-height:1.6; }
.admin-json-editor { background:var(--bg-dark); border:1px solid var(--border); border-radius:12px; padding:18px; }
.admin-field-row { display:flex; gap:10px; flex-wrap:wrap; }
.admin-field-row .auth-field { min-width:100px; }
.admin-select { background:var(--bg-card) !important; border:1px solid var(--border) !important; color:var(--text-primary) !important; padding:10px 13px !important; border-radius:9px !important; width:100%; }
.admin-textarea { background:var(--bg-dark); border:1px solid var(--border); color:var(--text-primary); padding:10px 13px; border-radius:9px; width:100%; resize:vertical; font-family:'Outfit',sans-serif; font-size:13px; box-sizing:border-box; }
.admin-textarea:focus { outline:none; border-color:var(--accent-primary); }
.admin-textarea.mono { font-family:'JetBrains Mono',monospace; font-size:11px; color:#00ff88; }

/* ---- ZONE TYPE TABS ---- */
.zone-type-tabs { display:flex; gap:4px; background:var(--bg-dark); border-radius:10px; padding:4px; margin:14px 0 0; }
.zone-type-tab { flex:1; padding:9px; border:none; background:transparent; color:var(--text-muted); border-radius:7px; cursor:pointer; font-family:'Outfit',sans-serif; font-size:13px; font-weight:500; transition:all 0.2s; }
.zone-type-tab.active { background:rgba(0,212,170,0.15); color:var(--accent-primary); border:1px solid rgba(0,212,170,0.3); font-weight:600; }

/* ---- MINI MAP ---- */
.minimap-container { margin-top:14px; border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.minimap-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:10px 14px; background:var(--bg-dark); border-bottom:1px solid var(--border); }
.minimap-hint { color:var(--accent-warning); font-size:12px; font-weight:500; }
.minimap-btn { background:var(--bg-card); border:1px solid var(--border); color:var(--text-secondary); padding:5px 11px; border-radius:7px; cursor:pointer; font-size:12px; font-family:'Outfit',sans-serif; transition:all 0.2s; white-space:nowrap; }
.minimap-btn:hover { border-color:var(--accent-primary); color:var(--accent-primary); }
.minimap-btn.danger:hover { border-color:var(--accent-danger); color:#fc8181; background:rgba(229,62,62,0.1); }
#adminMiniMap, #recoMiniMap { height:320px; width:100%; }
.draw-status { padding:8px 14px; background:var(--bg-dark); color:var(--text-muted); font-size:11px; border-top:1px solid var(--border); font-family:'JetBrains Mono',monospace; }

/* ---- ADMIN ITEM CARDS ---- */
.admin-user-row { display:flex; align-items:center; gap:10px; padding:12px 14px; background:var(--bg-dark); border-radius:10px; margin-bottom:7px; border:1px solid var(--border); }
.admin-user-info { flex:1; }
.admin-user-name { font-weight:600; font-size:14px; }
.admin-user-email { color:var(--text-muted); font-size:11px; margin-top:2px; }
.admin-user-badge { padding:2px 10px; border-radius:20px; font-size:10px; font-weight:700; text-transform:uppercase; }
.admin-user-badge.admin { background:rgba(0,212,170,0.15); color:var(--accent-primary); }
.admin-user-badge.user  { background:rgba(100,100,200,0.15); color:#aab0ff; }

.admin-item-card { background:var(--bg-dark); border:1px solid var(--border); border-radius:10px; padding:12px 14px; margin-bottom:7px; display:flex; align-items:flex-start; gap:10px; }
.admin-item-info { flex:1; }
.admin-item-name { font-weight:600; font-size:13px; }
.admin-item-detail { color:var(--text-muted); font-size:11px; margin-top:3px; line-height:1.5; }
.admin-item-btn { background:transparent; border:1px solid var(--border); color:var(--text-secondary); padding:5px 10px; border-radius:6px; cursor:pointer; font-size:11px; white-space:nowrap; transition:all 0.2s; font-family:'Outfit',sans-serif; }
.admin-item-btn:hover { border-color:var(--accent-primary); color:var(--accent-primary); }
.admin-item-btn.approve:hover { border-color:var(--accent-primary); color:var(--accent-primary); background:rgba(0,212,170,0.08); }
.admin-item-btn.reject:hover { border-color:var(--accent-danger); color:#fc8181; background:rgba(229,62,62,0.08); }
.admin-item-btn.delete { color:#fc8181; border-color:rgba(229,62,62,0.3); }
.admin-item-btn.delete:hover { background:rgba(229,62,62,0.12); }

/* ---- RECO STATUS BADGE ---- */
.reco-badge { display:inline-block; padding:2px 9px; border-radius:12px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; }
.reco-badge.pending  { background:rgba(255,170,0,0.15); color:#ffaa00; border:1px solid rgba(255,170,0,0.3); }
.reco-badge.approved { background:rgba(0,212,170,0.15); color:var(--accent-primary); border:1px solid rgba(0,212,170,0.3); }
.reco-badge.rejected { background:rgba(229,62,62,0.12); color:#fc8181; border:1px solid rgba(229,62,62,0.25); }

/* ---- Draw point tooltip label ---- */
.draw-pt-label {
    background: rgba(20,20,30,0.9) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #fff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 10px !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5) !important;
    white-space: nowrap !important;
}
.draw-pt-label::before { display: none !important; }

/* ---- Altitude card ---- */
.altitude-loading {
    animation: altPulse 1.5s ease-in-out infinite;
}
@keyframes altPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ---- NOTAMs accordéon ---- */
.notam-item {
    transition: all 0.2s ease;
}
.notam-item:hover {
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
}
.notam-raw {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.5;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.notam-raw::-webkit-scrollbar { width: 4px; }
.notam-raw::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* ---- Cert rows ---- */
.cert-row { display:flex; align-items:center; gap:12px; padding:9px 0; border-bottom:1px solid rgba(42,42,58,0.6); flex-wrap:wrap; }
.cert-row:last-child { border-bottom:none; }
.cert-checkbox-label { display:flex; align-items:center; gap:9px; cursor:pointer; font-size:13px; color:var(--text-primary); flex:1; min-width:200px; }
.cert-checkbox-label input[type="checkbox"] { width:16px; height:16px; accent-color:var(--accent-primary); cursor:pointer; flex-shrink:0; }
.cert-date-input { background:var(--bg-card); border:1px solid var(--border); color:var(--text-primary); padding:6px 10px; border-radius:7px; font-size:12px; cursor:pointer; }
.cert-date-input:focus { outline:none; border-color:var(--accent-primary); }

/* ---- Cert category blocks ---- */
.cert-category-block { border-radius:12px; margin-bottom:12px; overflow:hidden; }
.cert-open   { border:1px solid rgba(0,212,170,0.25); }
.cert-specific { border:1px solid rgba(0,168,255,0.25); }
.cert-category-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; padding:10px 16px; border-bottom:1px solid var(--border); }
.cert-open .cert-category-title { color:#00d4aa; background:rgba(0,212,170,0.06); }
.cert-specific .cert-category-title { color:#00a8ff; background:rgba(0,168,255,0.06); }
.cert-item-block { padding:12px 16px; border-bottom:1px solid var(--border); background:var(--bg-dark); }
.cert-item-block:last-child { border-bottom:none; }
.cert-item-header { display:flex; flex-direction:column; gap:10px; }
.cert-checkbox-label { display:flex; align-items:flex-start; gap:10px; cursor:pointer; }
.cert-checkbox-label input[type="checkbox"] { width:17px; height:17px; accent-color:var(--accent-primary); cursor:pointer; flex-shrink:0; margin-top:2px; }
.cert-item-name { font-size:13px; font-weight:600; color:var(--text-primary); }
.cert-item-sub { font-size:11px; color:var(--text-muted); margin-top:2px; }
.cert-item-controls { flex-direction:column; gap:8px; padding-left:27px; }
.cert-status-badge { font-size:11px; font-weight:600; padding:3px 9px; border-radius:10px; white-space:nowrap; }
.cert-status-badge.valid    { background:rgba(0,212,170,0.12); color:#00d4aa; border:1px solid rgba(0,212,170,0.3); }
.cert-status-badge.expiring { background:rgba(251,191,36,0.12); color:#fbbf24; border:1px solid rgba(251,191,36,0.3); }
.cert-status-badge.expired  { background:rgba(239,68,68,0.12); color:#f87171; border:1px solid rgba(239,68,68,0.3); }
.cert-file-actions { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:4px; }
.cert-attach-btn { display:inline-flex; align-items:center; gap:5px; font-size:11px; color:var(--text-muted); border:1px dashed var(--border); padding:4px 10px; border-radius:7px; cursor:pointer; transition:all 0.2s; }
.cert-attach-btn:hover { border-color:var(--accent-primary); color:var(--accent-primary); }
.cert-attached-name { font-size:11px; color:var(--text-secondary); max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---- CHECKLIST MODAL ---- */
.cl-section { padding:14px 0; border-bottom:1px solid var(--border); }
.cl-section:last-child { border-bottom:none; }
.cl-section-title { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.8px; color:var(--text-secondary); margin-bottom:10px; }
.cl-item { display:flex; align-items:flex-start; gap:10px; padding:6px 0; cursor:pointer; border-radius:6px; transition:background 0.15s; }
.cl-item:hover { background:var(--bg-hover); padding-left:6px; margin-left:-6px; }
.cl-item input[type="checkbox"] { width:16px; height:16px; accent-color:var(--accent-primary); cursor:pointer; flex-shrink:0; margin-top:2px; }
.cl-item span { font-size:13px; color:var(--text-primary); line-height:1.4; }
.cl-item:has(input:checked) span { color:var(--text-muted); text-decoration:line-through; }
.cl-reminder { font-size:12px; color:#fbbf24; background:rgba(251,191,36,0.08); border:1px solid rgba(251,191,36,0.2); border-radius:7px; padding:7px 10px; margin-top:8px; }
.cl-remind-section { background:rgba(239,68,68,0.04); border-radius:8px; padding:12px 14px; margin:0 -14px; border:1px solid rgba(239,68,68,0.15) !important; }
.cl-remind-section .cl-section-title { color:#f87171; }
.cl-bullet { font-size:13px; color:var(--text-secondary); padding:4px 0; }

/* ============================================================
   FICHES PAYS — Country Info Database
   ============================================================ */

/* ---- Risk level badges ---- */
.risk-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.risk-badge.low         { background: rgba(0,212,130,0.15); color: #00d482; border: 1px solid rgba(0,212,130,0.35); }
.risk-badge.medium      { background: rgba(251,146,60,0.15); color: #fb923c; border: 1px solid rgba(251,146,60,0.35); }
.risk-badge.high        { background: rgba(251,146,60,0.15); color: #fb923c; border: 1px solid rgba(251,146,60,0.35); }
.risk-badge.very-high   { background: rgba(251,146,60,0.15); color: #fb923c; border: 1px solid rgba(251,146,60,0.35); }
.risk-badge.restricted  { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.35); }
.risk-badge.unknown     { background: rgba(100,100,120,0.15); color: #9ca3af; border: 1px solid rgba(100,100,120,0.3); }

/* ---- Country list card grid ---- */
.country-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.country-list-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: border-color 0.2s;
}
.country-list-item:hover { border-color: rgba(0,212,170,0.35); }
.country-list-item-header {
    display: flex;
    align-items: center;
    gap: 9px;
}
.country-list-emoji { font-size: 24px; flex-shrink: 0; }
.country-list-info { flex: 1; min-width: 0; }
.country-list-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-list-code { font-size: 10px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; margin-top: 1px; }
.country-list-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.country-list-links { font-size: 10px; color: var(--text-muted); }
.country-list-actions { display: flex; gap: 5px; margin-top: 4px; }

/* ---- Link category badges ---- */
.link-category-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.link-category-badge.declaration    { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.link-category-badge.registration   { background: rgba(0,168,255,0.12); color: #60b0ff; border: 1px solid rgba(0,168,255,0.25); }
.link-category-badge.authority      { background: rgba(0,212,170,0.12); color: var(--accent-primary); border: 1px solid rgba(0,212,170,0.25); }
.link-category-badge.certification  { background: rgba(168,85,247,0.12); color: #c084fc; border: 1px solid rgba(168,85,247,0.25); }
.link-category-badge.other          { background: rgba(100,100,120,0.12); color: #9ca3af; border: 1px solid rgba(100,100,120,0.25); }

/* ---- Country editor inner tabs ---- */
.country-editor-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 18px;
    overflow-x: auto;
    flex-shrink: 0;
}
.country-editor-tab-btn {
    flex: 1;
    padding: 8px 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: 7px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    min-width: 80px;
}
.country-editor-tab-btn.active {
    background: rgba(0,212,170,0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(0,212,170,0.3);
    font-weight: 600;
}
.country-editor-tab-btn:hover:not(.active) { color: var(--text-secondary); }

/* ---- Country editor layout ---- */
#countryEditorView {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.country-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}
.country-editor-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.country-editor-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.country-editor-panel { display: none; }
.country-editor-panel.active { display: block; }

.country-editor-basic {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.country-editor-basic .auth-field { margin-bottom: 0; }

/* ---- Link rows ---- */
.country-link-row {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.country-link-row-info { flex: 1; min-width: 0; }
.country-link-label { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-link-url { font-size: 10px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* ---- Link inline form ---- */
.country-link-form {
    background: rgba(0,212,170,0.05);
    border: 1px solid rgba(0,212,170,0.2);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

/* ============================================================
   PAYWALL MODAL
   ============================================================ */

.paywall-container {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px 28px 28px;
    width: 520px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.85), 0 0 60px rgba(0,212,170,0.06);
    animation: authFadeIn 0.3s ease;
}

.paywall-close {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    z-index: 1;
}
.paywall-close:hover { background: rgba(229,62,62,0.15); color: #fc8181; border-color: rgba(229,62,62,0.3); }

.paywall-header {
    text-align: center;
    margin-bottom: 24px;
}

.paywall-logo-icon {
    font-size: 42px;
    margin-bottom: 8px;
    animation: floatIcon 3s ease-in-out infinite;
}

.paywall-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.paywall-title-pro {
    color: var(--accent-primary);
}

.paywall-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 5px;
}

/* ---- Plans ---- */
.paywall-plans {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
}

@media (max-width: 500px) {
    .paywall-plans { flex-direction: column; }
}

.paywall-plan-card {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.paywall-plan-card:hover {
    border-color: rgba(0,168,255,0.4);
    transform: translateY(-2px);
}

.paywall-plan-card.featured {
    border-color: rgba(0,212,170,0.4);
    background: linear-gradient(160deg, rgba(0,212,170,0.06) 0%, rgba(0,168,255,0.04) 100%);
    box-shadow: 0 0 24px rgba(0,212,170,0.08);
}

.paywall-plan-card.featured:hover {
    border-color: rgba(0,212,170,0.7);
}

.paywall-featured-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #00d4aa, #00a8ff);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.paywall-plan-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 4px;
}

.paywall-plan-card.featured .paywall-plan-name {
    color: var(--accent-primary);
}

.paywall-plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.paywall-price-amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.paywall-price-period {
    font-size: 12px;
    color: var(--text-muted);
}

.paywall-plan-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    min-height: 28px;
}

/* ---- Features list ---- */
.paywall-features-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.paywall-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.paywall-feature-icon {
    flex-shrink: 0;
    font-size: 13px;
}

/* ---- Buttons ---- */
.paywall-subscribe-btn {
    width: 100%;
    background: rgba(0,168,255,0.15);
    color: #00a8ff;
    border: 1px solid rgba(0,168,255,0.35);
    padding: 11px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.paywall-subscribe-btn:hover {
    background: rgba(0,168,255,0.25);
    border-color: #00a8ff;
    transform: translateY(-1px);
}

.paywall-subscribe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.paywall-subscribe-btn.featured {
    background: var(--accent-primary);
    color: #0a0a0f;
    border-color: var(--accent-primary);
}

.paywall-subscribe-btn.featured:hover {
    background: #00e8b5;
    box-shadow: 0 6px 20px rgba(0,212,170,0.35);
}

.paywall-manage-btn {
    width: 100%;
    background: rgba(0,212,170,0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0,212,170,0.35);
    padding: 13px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.paywall-manage-btn:hover {
    background: rgba(0,212,170,0.2);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.paywall-manage-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.paywall-login-btn {
    width: 100%;
    background: var(--accent-primary);
    color: #0a0a0f;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.paywall-login-btn:hover {
    background: #00e8b5;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,212,170,0.3);
}

/* ---- Pro status banner ---- */
.paywall-pro-banner {
    background: rgba(0,212,170,0.07);
    border: 1px solid rgba(0,212,170,0.25);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.paywall-login-cta {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 8px;
}

/* ---- Pro badge (in dropdown) ---- */
.pro-badge {
    display: inline-block;
    background: linear-gradient(90deg, #00d4aa, #00a8ff);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    vertical-align: middle;
    line-height: 1.4;
}

