/* JoyProxy / AGRoute responsive layer — mobile overrides only; desktop unchanged */

/* ===== Public header: hamburger + drawer ===== */
.joy-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin: 0 4px 0 auto;
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.joy-nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text, #1f1f1f);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
body.joy-mobile-nav-open .joy-nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
body.joy-mobile-nav-open .joy-nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
body.joy-mobile-nav-open .joy-nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.joy-mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9990;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}
body.joy-mobile-nav-open .joy-mobile-nav-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Injected by initMobileNav(); only visible inside the mobile drawer */
.joy-mobile-nav-head {
    display: none;
}

@media (max-width: 992px) {
    html {
        overflow-x: clip;
    }
    body {
        overflow-x: clip;
        width: 100%;
    }
    .header {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }
    .header-bar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 12px !important;
        height: 56px;
        gap: 8px;
        flex-wrap: nowrap;
        min-width: 0;
    }
    .hero,
    .hero-content,
    .container {
        max-width: 100%;
        box-sizing: border-box;
    }
    .header {
        z-index: 10000 !important;
    }
    body.joy-mobile-nav-open .header {
        z-index: 10050 !important;
    }
    .joy-nav-toggle {
        display: flex;
        order: 3;
        margin-left: 0;
    }
    .header-right {
        order: 2;
        margin-left: auto;
        gap: 6px;
        flex-shrink: 0;
    }
    .logo {
        order: 1;
        flex-shrink: 1;
        min-width: 0;
    }
    .logo span {
        font-size: 1.15rem;
    }
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: min(86vw, 300px) !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 0 0 24px;
        background: #fff;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
        z-index: 10051;
        pointer-events: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
    }
    body.joy-mobile-nav-open {
        overflow: hidden;
    }
    body.joy-mobile-nav-open .nav-links {
        transform: translateX(0);
    }
    .joy-mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid #e8e8e8;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 2;
    }
    .joy-mobile-nav-brand {
        font-weight: 700;
        font-size: 1.05rem;
        color: #333;
    }
    .joy-mobile-nav-close {
        width: 36px;
        height: 36px;
        border: none;
        background: #f5f7fa;
        border-radius: 8px;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        color: #666;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-links > a {
        display: block;
        width: 100%;
        padding: 14px 16px;
        font-size: 0.95rem;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        box-sizing: border-box;
    }
    .nav-dropdown {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-dropdown .nav-dropbtn {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 14px 16px;
        text-align: left;
        border-radius: 0;
        box-sizing: border-box;
    }
    .nav-dropdown:hover .dropdown-content {
        display: none !important;
    }
    .nav-dropdown .dropdown-content {
        position: static !important;
        display: none !important;
        min-width: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 0 8px !important;
        margin: 0 !important;
        animation: none !important;
        overflow: visible !important;
        grid-template-columns: 1fr !important;
    }
    .nav-dropdown.mobile-open .dropdown-content {
        display: block !important;
    }
    .dropdown-products,
    .dropdown-pricing,
    .dropdown-locations,
    .dropdown-medium,
    .dropdown-doc,
    .dropdown-wide {
        grid-template-columns: 1fr !important;
        min-width: 0 !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    .locations-nav-columns {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .locations-nav-item {
        padding: 10px 16px 10px 20px;
        border-radius: 0;
        transform: none !important;
    }
    .locations-nav-item:hover {
        transform: none !important;
    }
    .dropdown-locations-title,
    .locations-nav-col-title {
        padding-left: 16px;
        padding-right: 16px;
    }
    .locations-nav-overview {
        padding: 8px 16px 12px;
    }
    .dropdown-column {
        gap: 0;
    }
    .dropdown-column-title {
        padding: 8px 16px 6px;
        margin: 0;
        font-size: 0.78rem;
        color: #999;
        border-bottom: none;
    }
    .dropdown-item {
        padding: 10px 16px 10px 20px;
        border-radius: 0;
        transform: none !important;
        gap: 10px;
    }
    .dropdown-item:hover {
        transform: none !important;
    }
    .dropdown-item-content strong {
        white-space: normal;
        font-size: 0.9rem;
    }
    .dropdown-item-content span {
        font-size: 0.8rem;
        line-height: 1.45;
        overflow: visible;
        word-wrap: break-word;
    }
    .proxy-family-card .pfc-desc {
        overflow: visible;
        word-wrap: break-word;
    }
    .dropdown-icon {
        width: 28px;
        height: 28px;
    }
    .auth-btns {
        display: flex;
        gap: 4px;
        flex-shrink: 0;
    }
    .auth-btns .btn-text {
        display: inline-flex;
        align-items: center;
        padding: 6px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .auth-btns .btn-primary {
        padding: 6px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .dashboard-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
        max-width: 9.5rem;
    }
    .dashboard-btn span:not(.user-avatar) {
        display: inline;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .lang-btn {
        padding: 6px 8px;
    }
    .lang-btn .lang-current {
        display: none;
    }
    .modal-content {
        padding: 28px 20px;
        width: calc(100% - 24px);
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 48px 0;
    }
    .section-title {
        font-size: 1.85rem;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .tabs {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .tab {
        padding: 10px 18px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    .pricing-card,
    .card {
        padding: 24px;
    }
    .price {
        font-size: 2.25rem;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px;
    }
    .joy-cookie-banner {
        padding: 14px 16px;
        font-size: 0.82rem;
    }
    .joy-cookie-banner__actions {
        width: 100%;
        justify-content: stretch;
    }
    .joy-cookie-banner .joy-cookie-btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem !important;
    }
    .hero p {
        font-size: 1rem;
    }
    .btn-primary,
    .btn-text {
        font-size: 0.9rem;
    }
    .header-bar {
        padding: 0 10px !important;
        gap: 6px;
    }
    .auth-btns .btn-text {
        padding: 6px 8px;
        font-size: 0.78rem;
    }
    .header-right .auth-btns .btn-primary {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
    .logo span {
        font-size: 1.05rem;
    }
    .hero-content,
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===== Admin: top bar + sidebar drawer ===== */
.joy-admin-mobile-topbar {
    display: none;
}
.joy-admin-sidebar-overlay {
    display: none;
}

@media (max-width: 992px) {
    .joy-admin-mobile-topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 16px;
        height: 56px;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        position: sticky;
        top: 0;
        z-index: 1100;
        grid-column: 1 / -1;
    }
    .joy-admin-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        background: #fff;
        font-size: 1.35rem;
        line-height: 1;
        cursor: pointer;
        color: #333;
        flex-shrink: 0;
    }
    .joy-admin-mobile-title {
        font-weight: 700;
        font-size: 1.05rem;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .joy-admin-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s;
    }
    body.joy-admin-sidebar-open .joy-admin-sidebar-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    body.admin-shell .admin-layout {
        display: block !important;
        grid-template-columns: none !important;
        min-height: 100vh !important;
    }
    body.admin-shell .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: min(88vw, 280px) !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 1999 !important;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
    }
    body.joy-admin-sidebar-open.admin-shell .admin-sidebar {
        transform: translateX(0);
    }
    body.admin-shell .admin-content {
        padding: 0 !important;
        min-width: 0;
    }
    body.admin-shell .tab-content {
        padding: 16px;
        min-height: auto;
    }
    body.admin-shell h2 {
        font-size: 1.35rem;
    }
    body.admin-shell .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    body.admin-shell .grid-2,
    body.admin-shell .grid-3,
    body.admin-shell .grid-4,
    body.admin-shell .grid-5 {
        grid-template-columns: 1fr !important;
    }
    body.admin-shell .stat-value {
        font-size: 1.5rem;
    }
    .joy-table-scroll {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 8px;
    }
    body.admin-shell .data-table {
        min-width: 640px;
    }
    body.admin-shell .filter-bar,
    body.admin-shell .toolbar,
    body.admin-shell .page-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }
    body.admin-shell .filter-bar input,
    body.admin-shell .filter-bar select,
    body.admin-shell .toolbar input,
    body.admin-shell .toolbar select {
        min-width: 0;
        flex: 1 1 140px;
    }
    body.admin-shell .btn,
    body.admin-shell .btn-sm {
        white-space: nowrap;
    }
    /* Modals on admin pages */
    body.admin-shell .modal-content,
    body.admin-shell [id$="Modal"] > div {
        max-width: calc(100vw - 24px) !important;
        margin: 12px;
    }
}

@media (max-width: 768px) {
    body.admin-shell .admin-menu .menu-item {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    body.admin-shell .submenu {
        padding-left: 36px !important;
    }
}

:root { --primary: #667eea; --primary-dark: #764ba2; --text: #1f1f1f; --text-secondary: #595959; --bg: #f5f7fa; --white: #ffffff; --border: #e8e8e8; --success: #52c41a; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'PingFang SC', sans-serif; line-height: 1.6; color: var(--text); background: var(--bg); }

/* Cookie consent (GDPR-style; essential-only still allows login & dashboard) */
.joy-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: #0a1628;
    color: rgba(255, 255, 255, 0.92);
    padding: 18px 22px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 22px;
    font-size: 0.88rem;
    line-height: 1.55;
}
.joy-cookie-banner__text {
    flex: 1 1 260px;
    max-width: 760px;
}
.joy-cookie-banner__text a {
    color: #a8b9ff;
    text-decoration: underline;
}
.joy-cookie-banner__text a:hover {
    color: #c5d0ff;
}
.joy-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.joy-cookie-banner .joy-cookie-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.86rem;
}
.joy-cookie-banner .joy-cookie-btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.joy-cookie-banner .joy-cookie-btn--secondary {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}
.joy-cookie-banner .joy-cookie-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Header */
.header { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); }
.header-bar { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; }
.nav-links { display: flex; gap: 8px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; padding: 8px 16px; border-radius: 8px; font-weight: 500; transition: all 0.3s; }
.nav-links a:hover { color: var(--primary); background: rgba(102,126,234,0.08); }
.header-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; background: var(--bg); border-radius: 8px; padding: 4px; }
.lang-btn { background: transparent; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); transition: all 0.3s; }
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--white); color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.auth-btns { display: flex; gap: 8px; }
.auth-btns a,
.auth-btns a:link,
.auth-btns a:visited,
.auth-btns a:hover,
.auth-btns a:active { text-decoration: none; }
.btn-text { background: transparent; border: none; color: var(--text-secondary); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 500; transition: all 0.3s; }
.btn-text:hover { color: var(--primary); background: rgba(102,126,234,0.08); }
.btn-primary { background: var(--primary); color: white; padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; transition: all 0.3s; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.3); }
.dashboard-btn { background: rgba(102,126,234,0.1); color: var(--primary); padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; transition: all 0.3s; display: flex; align-items: center; gap: 6px; }
.dashboard-btn:hover { background: rgba(102,126,234,0.15); }
.user-avatar { width: 28px; height: 28px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.85rem; font-weight: 600; }

/* Header/admin dropdown SVGs only (emoji cards use <span class="icon">; a global .icon size caused overlap) */
svg.icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Hero — compact on public pages (homepage overrides inline) */
.hero { padding: 48px 0 36px; background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.06) 100%); }
.hero-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; text-align: center; }
.hero h1 { font-size: 2.35rem; font-weight: 800; margin-bottom: 12px; }
.hero h1 span { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.05rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto 20px; }

/* Sections — marketing site; admin/overview cards keep their own padding */
section { padding: 80px 0; }
body.admin-shell section:not(.ov-usage-card):not(.ovpa-spend-panel):not(.ovpa-usage-card),
.ov-wrap section:not(.ov-usage-card):not(.ovpa-spend-panel):not(.ovpa-usage-card) {
  padding: 0;
}
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; background: rgba(102,126,234,0.1); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.section-desc { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* Cards */
.card { background: var(--white); border-radius: 20px; padding: 40px; border: 1px solid var(--border); transition: all 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); border-color: rgba(102,126,234,0.3); }
.card-icon { font-size: 3rem; margin-bottom: 20px; }
.card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--text-secondary); line-height: 1.7; }

/* Pricing */
.pricing-card { background: var(--white); border-radius: 20px; padding: 40px; border: 2px solid var(--border); position: relative; transition: all 0.3s; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(102,126,234,0.1); }

/* Dedicated / exclusive (独享) product badge */
.product-exclusive-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(82, 196, 26, 0.35);
  pointer-events: none;
}
.section-header--exclusive { position: relative; padding-top: 4px; }
.section-header--exclusive .product-exclusive-badge { top: 0; right: 0; }
@media (max-width: 640px) {
  .section-header--exclusive .product-exclusive-badge { position: static; display: inline-block; margin: 0 0 12px; }
}
.badge { position: absolute; top: 20px; right: 20px; background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); color: white; padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }
.price { font-size: 3rem; font-weight: 800; color: var(--primary); margin: 24px 0; display: flex; align-items: baseline; gap: 8px; }
.price span { font-size: 1rem; color: var(--text-secondary); }
.discount { background: rgba(82,196,26,0.1); color: var(--success); padding: 4px 12px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; }
.features { list-style: none; margin: 24px 0; }
.features li { padding: 12px 0; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.features li:before { content: '✓'; color: var(--primary); font-weight: 700; }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 16px; margin-bottom: 48px; }
.tab { padding: 12px 32px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 1rem; transition: all 0.3s; border: 2px solid transparent; background: var(--white); color: var(--text-secondary); }
.tab:hover { background: rgba(102,126,234,0.08); color: var(--text); }
.tab.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 12px rgba(102,126,234,0.3); }

/* Footer */
.footer { background: #0a1628; color: white; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,0.6); line-height: 1.8; margin-top: 16px; }
.footer h4 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; color: white; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }
.footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .header-bar { padding: 0 20px; }
    .hero { padding: 36px 0 28px; }
    .hero h1 { font-size: 1.85rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .container, .hero-container { padding: 0 20px; }
}

/* Log Out Button - matches Dashboard style */
.btn-logout {
    background: transparent;
    color: #ff4d4f;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #ff4d4f;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-logout:hover {
    background: rgba(255,77,79,0.1);
}

/* Language Switch Buttons */
.lang-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Log Out Button */
.btn-logout {
    background: rgba(255,77,79,0.1);
    color: #ff4d4f;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-logout:hover {
    background: rgba(255,77,79,0.2);
}

/* Navigation Active State */
.nav-links a.active {
    color: var(--primary);
    background: rgba(102,126,234,0.1);
}

/* ===== Admin sidebar (shared baseline — pages may omit local menu CSS) ===== */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: #fff;
    border-right: none !important;
    padding: 20px 0 28px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}
.admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admin-menu > li {
    margin-bottom: 2px;
}
.admin-sidebar .menu-item {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 13px 18px;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4b5563;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.4;
    box-shadow: none !important;
    outline: none;
    transition: background 0.15s, color 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.admin-sidebar .menu-item:hover {
    background: #f0f3f8 !important;
    color: #1677ff;
    border-radius: 0 !important;
}
.admin-sidebar .menu-item.active {
    background: #f0f3f8 !important;
    color: #1677ff;
    font-weight: 600;
    border-left: 3px solid #1677ff !important;
    padding-left: 15px;
    border-radius: 0 !important;
}
.admin-sidebar .menu-item.logout-btn,
.admin-sidebar .menu-item.logout-btn:hover {
    color: #ff4d4f !important;
    background: rgba(255, 77, 79, 0.05) !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 18px;
}
.admin-sidebar .menu-item .icon,
.admin-sidebar .menu-item svg.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: currentColor;
    opacity: 0.92;
}
.admin-sidebar svg.icon.icon-outline {
    fill: none;
    stroke: none;
}
.admin-sidebar svg.icon.icon-outline * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.admin-sidebar .submenu-arrow {
    margin-left: auto;
    transition: transform 0.25s;
    font-size: 0.7rem;
    opacity: 0.55;
    color: inherit;
}
.admin-sidebar .has-submenu.open > .menu-item .submenu-arrow {
    transform: rotate(180deg);
}
.admin-sidebar .submenu {
    display: none;
    list-style: none;
    position: relative;
    margin: 2px 0 10px;
    padding: 2px 0 2px 0;
}
.admin-sidebar .has-submenu.open > .submenu {
    display: block;
}
.admin-sidebar .submenu li {
    margin: 0;
}
.admin-sidebar .submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px 11px 28px;
    border-radius: 0;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.4;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.admin-sidebar .submenu li a:not(.proxy-nav-quick-buy):hover {
    background: #f0f3f8;
    color: #1677ff !important;
    border-radius: 0;
}
.admin-sidebar .submenu li a.active:not(.proxy-nav-quick-buy) {
    background: #f0f3f8 !important;
    color: #1677ff !important;
    font-weight: 600;
    border-radius: 0 !important;
}
.admin-sidebar .submenu li a.active:not(.proxy-nav-quick-buy) span,
.admin-sidebar .submenu li a.active:not(.proxy-nav-quick-buy) .admin-nav-label,
.admin-sidebar .submenu li a .admin-nav-label {
    color: inherit !important;
    opacity: 1 !important;
}
.admin-sidebar .submenu li a .icon,
.admin-sidebar .submenu li a svg.icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: currentColor;
    opacity: 0.9;
}
.admin-sidebar .submenu li a svg.icon.icon-outline {
    fill: none;
    stroke: none;
}
.admin-sidebar .submenu li a svg.icon.icon-outline * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Proxies submenu: same item spacing as Help Center; extra right pad for quick-buy. */
.admin-sidebar .proxy-nav-item {
    position: relative;
}
.admin-sidebar .proxy-nav-item.is-external .proxy-nav-main,
body.admin-shell .admin-sidebar .proxy-nav-item.is-external .proxy-nav-main {
    padding-right: 28px !important;
}
.admin-sidebar .proxy-nav-item .proxy-nav-main,
body.admin-shell .admin-sidebar .proxy-nav-item .proxy-nav-main {
    box-sizing: border-box;
    width: 100%;
    align-items: center !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 0;
    padding: 11px 36px 11px 28px !important;
    gap: 10px !important;
}
.admin-sidebar .proxy-nav-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    flex: 1;
}
.admin-sidebar .proxy-nav-label {
    overflow: visible !important;
    text-overflow: unset;
    white-space: normal !important;
    line-height: 1.4 !important;
}
.admin-sidebar .proxy-nav-mode,
body.admin-shell .admin-sidebar .proxy-nav-mode {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-transform: none;
    color: #cbd5e1;
}
.admin-sidebar .proxy-nav-mode-ico {
    display: none !important;
}
.admin-sidebar .proxy-nav-mode::before,
body.admin-shell .admin-sidebar .proxy-nav-mode::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: 0 0 6px;
}
.admin-sidebar .proxy-nav-item.is-rotating .proxy-nav-mode::before,
body.admin-shell .admin-sidebar .proxy-nav-item.is-rotating .proxy-nav-mode::before {
    background: #13c2c2;
}
.admin-sidebar .proxy-nav-item.is-static .proxy-nav-mode::before,
body.admin-shell .admin-sidebar .proxy-nav-item.is-static .proxy-nav-mode::before {
    background: #7a61a5;
}
.admin-sidebar .proxy-nav-item .proxy-nav-main.active .proxy-nav-mode {
    color: #cbd5e1;
}
.admin-sidebar .proxy-nav-quick-buy {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 7px;
    color: #1677ff !important;
    text-decoration: none !important;
    background: transparent !important;
    box-shadow: none;
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease, color 0.14s ease;
}
.admin-sidebar .proxy-nav-quick-buy .icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}
.admin-sidebar .proxy-nav-item:hover .proxy-nav-quick-buy,
.admin-sidebar .proxy-nav-item:focus-within .proxy-nav-quick-buy,
.admin-sidebar .proxy-nav-quick-buy:focus-visible,
.admin-sidebar .proxy-nav-quick-buy.is-active {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}
.admin-sidebar .proxy-nav-quick-buy:hover,
.admin-sidebar .proxy-nav-quick-buy:focus-visible,
.admin-sidebar .proxy-nav-quick-buy.is-active {
    background: transparent !important;
    color: #0958d9 !important;
}
@media (hover: none) {
    .admin-sidebar .proxy-nav-quick-buy {
        opacity: 0.55;
        transform: translateY(-50%) scale(1);
        pointer-events: auto;
    }
}

/* Admin sidebar: keep submenu labels on one line + consistent look (no default blue links) */

/* Staff-only sidebar blocks: default hidden; shown via html.jp-nav-* (set in head by admin-nav-role.js + common.js) */
.admin-sidebar li#nav-customer-service,
.admin-sidebar li#nav-technical,
.admin-sidebar li#nav-financial {
    display: none !important;
}
html.jp-admin-page:not(.jp-admin-nav-ready) .admin-sidebar {
    visibility: hidden;
}
html.jp-admin-page .admin-layout {
    grid-template-columns: 220px 1fr !important;
}
html.jp-nav-csc .admin-sidebar li#nav-customer-service {
    display: list-item !important;
}
html.jp-nav-tech .admin-sidebar li#nav-technical {
    display: list-item !important;
}
html.jp-nav-fin .admin-sidebar li#nav-financial {
    display: list-item !important;
}

.admin-sidebar a .admin-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: #ff4d4f;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}
.admin-sidebar a .admin-nav-badge[hidden] {
    display: none !important;
}

.user-nav-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d4f;
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}
.user-nav-unread-dot[hidden] {
    display: none !important;
}
.ip-country {
    color: #666;
    font-size: 0.75rem;
    margin-left: 4px;
    font-weight: 400;
}
body.admin-shell .admin-user-stack__id .ip-country {
    vertical-align: middle;
}
.apc-tab-label .user-nav-unread-dot {
    margin-left: 4px;
}

body.admin-shell {
    padding-top: 0 !important;
}
body.admin-shell .admin-layout {
    min-height: 100vh !important;
    grid-template-columns: 220px 1fr !important;
}
body.admin-shell .admin-sidebar {
    top: 0 !important;
    height: 100vh !important;
    padding: 20px 0 28px !important;
}
body.admin-shell .menu-item {
    padding: 13px 18px !important;
    font-size: 0.9375rem !important;
    gap: 12px !important;
    line-height: 1.4 !important;
}
body.admin-shell .menu-item.active {
    padding-left: 15px !important;
}
body.admin-shell .submenu {
    padding: 2px 0 !important;
    margin: 2px 0 10px !important;
}
body.admin-shell .admin-sidebar .submenu {
    display: none;
    list-style: none;
    margin: 2px 0 10px;
    padding: 2px 0;
}
body.admin-shell .admin-sidebar .has-submenu.open > .submenu {
    display: block;
}
body.admin-shell .admin-sidebar .submenu-arrow {
    margin-left: auto;
    transition: transform 0.3s;
}
body.admin-shell .admin-sidebar .has-submenu.open > .menu-item .submenu-arrow {
    transform: rotate(180deg);
}
body.admin-shell .submenu li a {
    padding: 11px 16px 11px 28px !important;
    font-size: 0.9rem !important;
    color: #64748b !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}
body.admin-shell .submenu li a.active,
body.admin-shell .submenu li a.active span {
    color: #1677ff !important;
}
body.admin-shell .admin-content {
    padding: 0 !important;
}

/* Admin tables: date/time in viewer's local timezone (two-line cell) */
.joy-dt-cell { display: inline-flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.joy-dt-date { font-size: .85rem; }
.joy-dt-time { font-size: .78rem; color: #888; }
.data-table td.joy-dt-col { padding-top: 10px; padding-bottom: 10px; }

a.admin-user-link { color: #1890ff; text-decoration: none; }
a.admin-user-link:hover { text-decoration: underline; }

.ip-copy-wrap { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.ip-copy-wrap .ip-copy-text { white-space: nowrap; }
.btn-icon-copy {
    flex-shrink: 0;
    padding: 1px 6px;
    font-size: .7rem;
    line-height: 1.35;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    color: #1890ff;
    cursor: pointer;
    font-family: inherit;
}
.btn-icon-copy:hover { background: #f5fbff; border-color: #91caff; }

/* Admin list filter toolbars (Search / Reset aligned with inputs) */
body.admin-shell .filter-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 16px 0;
    --filter-ctl-h: 42px;
}
body.admin-shell .filter-row input,
body.admin-shell .filter-row select {
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: .92rem;
    box-sizing: border-box;
    height: var(--filter-ctl-h);
    line-height: normal;
    flex: 0 1 auto;
    width: auto;
    min-width: unset;
    max-width: none;
}
body.admin-shell .filter-row input:focus,
body.admin-shell .filter-row select:focus {
    outline: 0;
    border-color: #1890ff;
    box-shadow: 0 0 0 4px rgba(24, 144, 255, .1);
}
body.admin-shell .filter-row .filter-in--id {
    width: 100px;
    min-width: 88px;
    max-width: 110px;
}
body.admin-shell .filter-row .filter-in--email {
    width: 168px;
    min-width: 150px;
    max-width: 190px;
}
body.admin-shell .filter-row .filter-in--text {
    width: 190px;
    min-width: 160px;
    max-width: 220px;
}
body.admin-shell .filter-row .filter-in--user-lookup {
    width: 300px;
    min-width: 260px;
    max-width: 420px;
    flex: 1 1 300px;
}
body.admin-shell .filter-row .filter-in--medium {
    width: 150px;
    min-width: 120px;
    max-width: 180px;
}
body.admin-shell .filter-row .filter-select {
    width: 140px;
    min-width: 120px;
    max-width: 160px;
}
body.admin-shell .filter-row .filter-select--wide {
    width: 168px;
    min-width: 144px;
    max-width: 192px;
}
body.admin-shell .filter-row > .btn {
    height: var(--filter-ctl-h);
    min-height: var(--filter-ctl-h);
    padding: 0 16px;
    font-size: .92rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

body.admin-shell .admin-user-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    gap: 2px;
}
body.admin-shell .admin-user-stack__id {
    font-size: .86rem;
    font-weight: 600;
}
body.admin-shell .admin-user-stack__email {
    font-size: .82rem;
    color: #666;
}
body.admin-shell .admin-user-stack__meta,
body.admin-shell .user-stack-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
body.admin-shell .admin-user-stack__meta .status-letter,
body.admin-shell .user-stack-meta .status-letter {
    width: 22px;
    height: 22px;
    min-width: 22px;
}
body.admin-shell .role-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    font-family: inherit;
    letter-spacing: 0;
    vertical-align: middle;
    flex-shrink: 0;
    box-sizing: border-box;
}
body.admin-shell .role-admin { background: rgba(114, 46, 209, .12); color: #531dab; }
body.admin-shell .role-support { background: rgba(24, 144, 255, .12); color: #0958d9; }
body.admin-shell .role-ops { background: rgba(250, 173, 20, .15); color: #ad6800; }
body.admin-shell .role-developer { background: rgba(19, 194, 194, .14); color: #006d75; }
body.admin-shell .role-user { background: rgba(82, 196, 26, .12); color: #237804; }
body.admin-shell .role-deactivated { background: rgba(255, 77, 79, .12); color: #a8071a; }
body.admin-shell .user-deep-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    max-width: 22px;
    min-height: 22px;
    max-height: 22px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    box-sizing: border-box;
    overflow: hidden;
    vertical-align: middle;
    transition: background .15s, color .15s;
}
body.admin-shell .user-deep-link-btn:hover {
    background: rgba(24, 144, 255, .12);
    color: #1890ff;
}
body.admin-shell .user-deep-link-btn.is-active {
    color: #1890ff;
}
body.admin-shell .user-deep-link-btn.is-active[data-hint="auth"] {
    color: #722ed1;
}
body.admin-shell .user-deep-link-btn.is-active[data-hint="auth"]:hover {
    background: rgba(114, 46, 209, .1);
    color: #722ed1;
}
body.admin-shell .user-deep-link-btn.is-active[data-hint="ticket"] {
    color: #13c2c2;
}
body.admin-shell .user-deep-link-btn.is-active[data-hint="ticket"]:hover {
    background: rgba(19, 194, 194, .12);
    color: #08979c;
}
body.admin-shell .user-deep-link-btn.is-active[data-hint="ai"] {
    color: #fa8c16;
}
body.admin-shell .user-deep-link-btn.is-active[data-hint="ai"]:hover {
    background: rgba(250, 140, 22, .12);
    color: #d46b08;
}
body.admin-shell .user-deep-link-btn.is-active[data-hint="usage"] {
    color: #52c41a;
}
body.admin-shell .user-deep-link-btn.is-active[data-hint="usage"]:hover {
    background: rgba(82, 196, 26, .12);
    color: #389e0d;
}
body.admin-shell .user-deep-link-icon {
    display: block;
    width: 14px;
    height: 14px;
    min-width: 14px;
    max-width: 14px;
    min-height: 14px;
    max-height: 14px;
    flex-shrink: 0;
    fill: currentColor;
    pointer-events: none;
}
body.admin-shell td.stack-col {
    white-space: normal;
    vertical-align: top;
}

body.admin-shell .admin-pay-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    gap: 2px;
    white-space: normal;
}
body.admin-shell .admin-pay-stack__price {
    font-size: .86rem;
    font-weight: 600;
}
body.admin-shell .admin-pay-stack__method {
    font-size: .78rem;
    color: #666;
}
body.admin-shell .status-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    cursor: default;
}
body.admin-shell .status-letter--ok {
    background: rgba(82, 196, 26, .14);
    color: #389e0d;
}
body.admin-shell .status-letter--warn {
    background: rgba(255, 193, 7, .18);
    color: #d48806;
}
body.admin-shell .status-letter--bad {
    background: rgba(255, 77, 79, .14);
    color: #cf1322;
}
body.admin-shell .status-letter--other {
    background: rgba(140, 140, 140, .15);
    color: #595959;
}
body.admin-shell td.col-status {
    text-align: center;
    width: 36px;
    padding-left: 6px;
    padding-right: 6px;
}
body.admin-shell .action-btns--stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    white-space: normal;
}
body.admin-shell .action-btns--stack .btn {
    width: 100%;
    min-width: 64px;
    text-align: center;
    box-sizing: border-box;
}
body.admin-shell .row-actions--long {
    display: flex;
    flex-direction: column;
    gap: 6px;
    white-space: normal;
}
body.admin-shell .row-actions--long .row-actions__top {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
body.admin-shell .row-actions--long .row-actions__top .btn,
body.admin-shell .row-actions--long .row-actions__bottom .btn {
    flex: 1 1 auto;
    min-width: 58px;
    padding: 5px 8px;
    font-size: .78rem;
    text-align: center;
    box-sizing: border-box;
}
body.admin-shell .row-actions--long .row-actions__bottom {
    display: flex;
}
body.admin-shell .cell-datetime {
    white-space: nowrap;
}

body.admin-shell .spent-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    gap: 2px;
    white-space: normal;
}
body.admin-shell .spent-stack__total {
    font-size: .86rem;
    font-weight: 600;
}
body.admin-shell .spent-stack__sub {
    font-size: .78rem;
    color: #666;
}
body.admin-shell td.stack-col--vcenter {
    vertical-align: middle;
}
body.admin-shell .spent-sep {
    color: #bbb;
    margin: 0 2px;
}
body.admin-shell .user-money-zero {
    color: #8c8c8c;
}
body.admin-shell .user-money-positive {
    color: #d4380d;
    font-weight: 600;
}
body.admin-shell .user-money-spent-positive {
    color: #237804;
    font-weight: 600;
}
body.admin-shell .user-money-neutral-positive {
    color: #333;
    font-weight: 600;
}
body.admin-shell .user-cell-clickable {
    cursor: pointer;
}
body.admin-shell .user-cell-clickable:hover .admin-user-stack__email {
    color: #1890ff;
}
body.admin-shell .user-stack-top {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
body.admin-shell .user-stack-top .role-initial {
    margin-right: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    font-family: inherit;
    letter-spacing: 0;
}
body.admin-shell .user-id-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    min-width: 22px;
    padding: 0 5px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    font-family: inherit;
    letter-spacing: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    background: rgba(24, 144, 255, .12);
    color: #096dd9;
}
body.admin-shell .user-id-badge .admin-user-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    font-size: inherit;
}
body.admin-shell .user-id-badge .admin-user-link:hover {
    text-decoration: underline;
}
body.admin-shell .admin-user-stack__id .user-id-badge {
    vertical-align: middle;
}

/* Arabic: content RTL; site chrome (header, nav, footer, admin sidebar) stays LTR */
html[data-joy-lang="ar"] body {
    direction: rtl;
    text-align: right;
}
html[data-joy-lang="ar"] header,
html[data-joy-lang="ar"] .header,
html[data-joy-lang="ar"] .header-bar,
html[data-joy-lang="ar"] nav,
html[data-joy-lang="ar"] .lang-selector,
html[data-joy-lang="ar"] .lang-dropdown,
html[data-joy-lang="ar"] #footer-placeholder,
html[data-joy-lang="ar"] footer,
html[data-joy-lang="ar"] .admin-sidebar,
html[data-joy-lang="ar"] .joy-mobile-nav,
html[data-joy-lang="ar"] .joy-mobile-nav-overlay,
html[data-joy-lang="ar"] .modal-content {
    direction: ltr;
    text-align: left;
}
html[data-joy-lang="ar"] .hero-actions,
html[data-joy-lang="ar"] .hero-stats {
    direction: rtl;
}
/* Technical tokens keep LTR: bidi otherwise drags ? & = / : to the wrong end of the line */
html[data-joy-lang="ar"] pre,
html[data-joy-lang="ar"] code,
html[data-joy-lang="ar"] kbd,
html[data-joy-lang="ar"] samp {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}
html[data-joy-lang="ar"] .stat-value {
    direction: ltr;
    unicode-bidi: isolate;
}
html[data-joy-lang="ar"] body {
    font-family: 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Noto Sans Arabic', 'Geeza Pro', sans-serif;
}

.admin-page-desc{margin:-6px 0 18px;color:#666;font-size:.95rem;line-height:1.55}

.joy-turnstile-wrap{margin:12px 0 4px;min-height:65px}
.joy-turnstile-wrap:empty{min-height:0;margin:0}

.jp-mark{width:36px;height:36px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:#6d8ef2;background:rgba(109,142,242,.10);vertical-align:middle}
.jp-mark svg{width:18px;height:18px;display:block}
.jp-mark.lg{width:44px;height:44px;border-radius:12px}
.jp-mark.lg svg{width:22px;height:22px}
.jp-mark.sm{width:28px;height:28px;border-radius:8px}
.jp-mark.sm svg{width:16px;height:16px}
.jp-mark.inline{width:1em;height:1em;margin:0 .35em 0 0;background:none;border-radius:0;color:inherit;vertical-align:-.15em}
.jp-mark.inline svg{width:1em;height:1em}
.well.c-res{background:#e6f4ff;color:#1677ff}
.well.c-mob{background:#e6fffb;color:#13c2c2}
.well.c-biz{background:#f9f0ff;color:#722ed1}
.well.c-isp{background:#f0f5ff;color:#2f54eb}
.well.c-dc{background:#f4f4f5;color:#595959}
.well.c-free-proxy{background:#ecfdf5;color:#1f9d55}
.well.c-scrape{background:#f6ffed;color:#389e0d}
/* Static zh-CN header + footer (was inline per page) */
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/outfit-extrabold.woff2") format("woff2");
}
:root {
  --jp-brand-from: #6d8ef2;
  --jp-brand-mid: #6d6cc4;
  --jp-brand-to: #6e66b4;
  --primary: #6d8ef2;
  --primary-dark: #6e66b4;
}
.logo-word {
  display: inline-block;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 32px;
  overflow: visible;
  background: linear-gradient(90deg, #6d8ef2, #6e66b4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* Homepage hero wash: 3-stop fill + hex mesh + bloom — reuse on product heroes and CTAs */
.hero,
.cta-section,
.cta,
.pricing-hero,
.cities-hero,
.home-ext-h5 {
  background: linear-gradient(135deg, #6d8ef2 0%, #6d6cc4 50%, #6e66b4 100%);
  position: relative;
  overflow: hidden;
}
.hero::before,
.cta-section::before,
.cta::before,
.pricing-hero::before,
.cities-hero::before,
.home-ext-h5::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48' viewBox='0 0 84 48'%3E%3Cpath d='M42 0 L63 12 L63 36 L42 48 L21 36 L21 12 Z' fill='none' stroke='rgba(255,255,255,0.14)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 84px 48px;
  opacity: 0.85;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 25%, transparent 78%);
}
.hero::after,
.cta-section::after,
.cta::after,
.pricing-hero::after,
.cities-hero::after,
.home-ext-h5::after {
  content: '';
  position: absolute;
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  right: 8%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 196, 255, 0.34), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero > *,
.cta-section > *,
.cta > *,
.pricing-hero > *,
.cities-hero > *,
.home-ext-h5 > * {
  position: relative;
  z-index: 1;
}
/* Purple wash loads after common.css, whose .hero p is --text-secondary (#595959).
   Keep hero copy white on that wash. */
.hero,
.cta-section,
.cta,
.pricing-hero,
.cities-hero,
.home-ext-h5 {
  color: #fff;
}
.hero p,
.hero-slide p,
.pricing-hero p,
.cities-hero p,
.cta p,
.cta-section p,
.hero .signup-bonus-promo,
.pricing-hero .signup-bonus-promo,
.cities-hero .signup-bonus-promo,
.hero .hero-lead,
.hero .hero-sub,
.hero .hero-note,
.hero .stat-label,
.hero .hero-stat-label,
.hero .pp-hero-metric-label,
.hero .pp-hero-protocol-pill,
.hero .pp-hero-protocols-label,
.pricing-hero .stat-label,
.cities-hero .stat-label {
  color: #fff;
}
.hero .stat-label,
.hero .hero-stat-label,
.hero .pp-hero-metric-label,
.hero .pp-hero-protocols-label,
.pricing-hero .stat-label,
.cities-hero .stat-label {
  opacity: 1;
}
.joy-cookie-banner .joy-cookie-btn--primary {
  background: linear-gradient(135deg, #6d8ef2 0%, #6d6cc4 50%, #6e66b4 100%);
}
/* Header Styles */
.header { background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); position: fixed; top: 0; left: 0; right: 0; z-index: 9999; border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.header-bar { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; height: 72px; overflow: visible; }
body { padding-top: 72px; }
.logo { cursor: pointer; display: flex; align-items: center; gap: 8px; overflow: visible; }
.logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; }
.nav-links { display: flex !important; gap: 8px; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; padding: 8px 16px; border-radius: 8px; font-weight: 500; font-size: 0.95rem; transition: all 0.3s; }
.nav-links a:hover { color: var(--primary); background: rgba(24,144,255,0.08); }

/* Enhanced Dropdown Menu */
.nav-dropdown { position: relative; }
.nav-dropbtn {
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s;
}
.nav-dropbtn:hover { color: var(--primary); background: rgba(24,144,255,0.08); }
.dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 800px; box-shadow: 0 12px 48px rgba(0,0,0,0.15); border-radius: 16px; padding: 32px; z-index: 1001; border: 1px solid var(--border); animation: slideDown 0.25s; overflow: hidden; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
.nav-dropdown:hover .dropdown-content { display: grid; }
.nav-dropdown--resources:hover .dropdown-content { display: block; }
.dropdown-resources { min-width: 300px; max-width: 340px; padding: 12px 10px 16px; }
.dropdown-resources .dropdown-column { gap: 0; }
.dropdown-resources .res-group { display: flex; flex-direction: column; gap: 6px; }
.dropdown-resources .res-group + .res-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.dropdown-resources .dropdown-item {
  align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  min-height: 64px; box-sizing: border-box; border: 0; transform: none;
}
.dropdown-resources .dropdown-item:hover { background: rgba(24,144,255,0.05); border-color: transparent; transform: none; }
.dropdown-resources .dropdown-item-content { gap: 1px; }
.dropdown-resources .dropdown-item-content strong { font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.dropdown-resources .dropdown-item-content span {
  display: block; font-size: 0.72rem; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dropdown-wide { grid-template-columns: repeat(3, 1fr); gap: 24px; min-width: 900px; }
.dropdown-medium { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.dropdown-products { grid-template-columns: repeat(3, 1fr); gap: 24px; min-width: 960px; }
.dropdown-pricing { display: none; min-width: 420px; max-width: 460px; padding: 24px; }
.nav-dropdown--pricing:hover .dropdown-content { display: block; }
.pricing-nav-grid { display: flex; flex-direction: column; gap: 8px; }
.pricing-nav-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; color: inherit; background: #fafbfc; transition: all 0.25s; }
.pricing-nav-card:hover { border-color: rgba(24,144,255,0.45); background: rgba(24,144,255,0.05); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(24,144,255,0.12); }
.pricing-nav-card-header { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pricing-nav-card-header .pfc-icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.pricing-nav-card-header strong { font-size: 0.92rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.pricing-nav-card-header .pfc-title-row { flex: 1; min-width: 0; }
.pricing-nav-rows { display: flex; flex-direction: column; gap: 4px; padding-left: 2.15rem; }
.pricing-nav-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.82rem; }
.pricing-nav-row .pnr-label { color: var(--text-secondary); font-weight: 500; flex-shrink: 0; }
.pricing-nav-row .pnr-price { font-weight: 700; color: var(--text); white-space: nowrap; text-align: right; margin-left: auto; }
.pnr-price-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; margin-left: auto; }
.pnr-subprice { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; line-height: 1.35; }
.pricing-nav-overview { display: inline-block; margin-top: 12px; }
.pg-group { margin-top: 4px; }
.pg-group + .pg-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.pg-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #94a3b8; margin-bottom: 8px; padding: 0 14px;
}
.pg-rows { display: flex; flex-direction: column; gap: 6px; }
.pricing-nav-card.flat {
  flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
  border: 0; background: transparent; padding: 10px 14px; border-radius: 10px;
  min-height: 64px; box-shadow: none; transform: none;
}
.pricing-nav-card.flat:hover { background: rgba(24,144,255,0.05); border-color: transparent; transform: none; box-shadow: none; }
.price-meta {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  gap: 1px; flex-shrink: 0; text-align: right;
}
.price-kicker { display: block; font-size: 0.68rem; font-weight: 500; color: #94a3b8; line-height: 1.2; white-space: nowrap; }
.price-meta .pnr-price { display: block; font-size: 0.92rem; font-weight: 700; line-height: 1.25; white-space: nowrap; margin-left: 0; }
.price-meta .pnr-price small { font-size: 0.72rem; font-weight: 600; color: #94a3b8; margin-left: 3px; }
.dropdown-locations { display: none; min-width: 620px; max-width: 680px; padding: 24px; }
.nav-dropdown--locations:hover .dropdown-content { display: block; }
.dropdown-locations-title { font-size: 0.95rem; font-weight: 700; margin: 0 0 16px; color: var(--text); }
.locations-nav-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.locations-nav-col-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.locations-nav-list { display: flex; flex-direction: column; gap: 2px; }
.locations-nav-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: inherit; transition: background 0.2s, transform 0.2s; }
.locations-nav-item:hover { background: rgba(24,144,255,0.06); transform: translateX(2px); }
.locations-nav-flag { flex-shrink: 0; width: 36px; height: 26px; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; background: var(--bg, #f5f5f5); }
.locations-nav-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.locations-nav-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.locations-nav-text strong { font-size: 0.88rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.locations-nav-text span { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; line-height: 1.35; }
.locations-nav-overview { margin-top: 14px; }
.dropdown-product-block, .dropdown-proxy-block { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dropdown-product-block > .dropdown-column-title, .dropdown-proxy-block > .dropdown-column-title { margin-bottom: 0; }
.proxy-family-grid { display: flex; flex-direction: column; gap: 10px; }
.proxy-family-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; border: 0; text-decoration: none; color: inherit; background: transparent; transition: background 0.25s; min-height: auto; }
.dropdown-solutions { min-width: 900px; }
.dropdown-solutions .proxy-family-grid { gap: 6px; }
.dropdown-solutions .sol-nav-card { flex-direction: row; align-items: center; gap: 10px; padding: 9px 12px; }
.dropdown-solutions .sol-nav-card .pfc-icon { font-size: 1.15rem; flex-shrink: 0; }
.dropdown-solutions .sol-nav-card .pfc-title-row { flex: 1; min-width: 0; margin: 0; flex-wrap: nowrap; gap: 6px; }
.dropdown-solutions .sol-nav-card strong { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-solutions .sol-nav-card .corner-badge { font-size: 0.58rem; padding: 2px 6px; flex-shrink: 0; }
.proxy-family-card:hover { background: rgba(24,144,255,0.05); }
.proxy-family-card .pfc-icon { font-size: 1.35rem; line-height: 1; }
.jp-nav-sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.pfc-icon.well,
.dropdown-icon.well {
  width: 28px; height: 28px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #f1f5f9; color: #475569;
}
.pfc-icon.well svg,
.dropdown-icon.well svg { width: 18px; height: 18px; display: block; }
.well.c-res { background: #e6f4ff; color: #1677ff; }
.well.c-mob { background: #e6fffb; color: #13c2c2; }
.well.c-biz { background: #f9f0ff; color: #722ed1; }
.well.c-isp { background: #f0f5ff; color: #2f54eb; }
.well.c-dc { background: #f4f4f5; color: #595959; }
.well.c-free-proxy { background: #ecfdf5; color: #1f9d55; }
.well.c-scrape { background: #f6ffed; color: #389e0d; }
.well.c-oc { background: #fff1f0; color: #cf1322; }
.well.c-cur { background: #f4f4f5; color: #26251e; }
.well.c-soft { background: #f0f0ff; color: #6d8ef2; }
.well.c-resrc { background: #e6f4ff; color: #1890ff; }
.dropdown-resources .dropdown-icon.well {
  width: 28px; height: 28px; border-radius: 8px; box-shadow: none; font-size: 0;
}
.dropdown-resources .dropdown-item:hover .dropdown-icon.well { background: #e6f4ff; }
.pfc-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.proxy-family-card strong { font-size: 0.92rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.proxy-family-card .pfc-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.45; display: block; overflow: visible; word-wrap: break-word; }
.dropdown-products:not(.dropdown-solutions) .proxy-family-card { box-sizing: border-box; }
.dropdown-products:not(.dropdown-solutions) .proxy-family-card .pfc-icon { height: 1.35rem; flex-shrink: 0; }
.dropdown-products:not(.dropdown-solutions) .proxy-family-card .pfc-icon.well { height: 28px; }
.dropdown-products:not(.dropdown-solutions) .pfc-title-row { flex-wrap: nowrap; min-width: 0; height: 1.2rem; flex-shrink: 0; }
.dropdown-products:not(.dropdown-solutions) .proxy-family-card > strong { height: 1.2rem; line-height: 1.2rem; flex-shrink: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-products:not(.dropdown-solutions) .pfc-title-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-products:not(.dropdown-solutions) .proxy-family-card .pfc-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; text-overflow: ellipsis; word-break: break-word; height: 2.32rem; line-height: 1.45; margin-top: auto; flex-shrink: 0; }
.dropdown-products:not(.dropdown-solutions) .proxy-family-card.pfc-tall {
  /* One Proxy IP card: .nav-links a padding 8+8, border 1+1, flex gaps 6+6, icon 1.35rem, title 1.2rem, desc 2.32rem */
  --pfc-slot: calc(30px + 4.87rem);
  height: calc(2 * var(--pfc-slot) + 10px);
  min-height: calc(2 * var(--pfc-slot) + 10px);
  justify-content: flex-start;
  transition: background 0.25s;
}
.dropdown-products:not(.dropdown-solutions) .proxy-family-card.pfc-tall .pfc-desc { margin-top: 0; }
.pfc-plugin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
  margin-top: 6px;
  min-height: 0;
  align-content: stretch;
}
.pfc-plugin-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
}
.pfc-plugin-tile:last-child { grid-column: 1 / -1; }
.pfc-plugin-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pfc-plugin-ico svg,
.pfc-plugin-ico img { width: 14px; height: 14px; display: block; }
.proxy-family-overview { display: inline-block; margin-top: 4px; font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; padding: 0 4px; }
.proxy-family-overview:hover { text-decoration: underline; }
.dropdown-column { display: flex; flex-direction: column; gap: 4px; }
.dropdown-column-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #94a3b8; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 8px; }
.dropdown-column-title a.dropdown-column-link { color: inherit; text-decoration: none; transition: color 0.2s; }
.dropdown-column-title a.dropdown-column-link:hover { color: var(--primary); }
.dropdown-subhead { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); margin: 14px 0 6px; padding: 0 16px; }
.dropdown-item-compact { padding: 8px 16px; gap: 0; }
.dropdown-item-compact .dropdown-item-content span { -webkit-line-clamp: 1; }

/* Dropdown Item */
.dropdown-item { display: flex; gap: 16px; padding: 12px 16px; border-radius: 12px; transition: all 0.3s; text-decoration: none; color: inherit; background: transparent; border: 1px solid transparent; align-items: flex-start; }
.dropdown-item:hover { background: rgba(24,144,255,0.05); border-color: rgba(24,144,255,0.2); transform: translateX(4px); }
.dropdown-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(109, 142, 242, 0.16) 0%, rgba(110, 102, 180, 0.11) 100%);
    box-shadow: 0 1px 3px rgba(109, 142, 242, 0.12);
}
.dropdown-item:hover .dropdown-icon {
    background: linear-gradient(145deg, rgba(109, 142, 242, 0.26) 0%, rgba(110, 102, 180, 0.18) 100%);
}
.dropdown-icon svg.icon {
    width: 18px;
    height: 18px;
    color: #5c64d4;
}
.dropdown-item-content { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.dropdown-item-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.dropdown-item-content strong { font-size: 0.95rem; font-weight: 600; color: var(--text); display: block; line-height: 1.35; }
.dropdown-item-content span { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.45; display: block; overflow: visible; word-wrap: break-word; }

/* Corner Badges */
.corner-badge { 
    display: inline-block; 
    padding: 3px 8px; 
    border-radius: 6px; 
    font-size: 0.65rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}
.corner-badge.popular { background: rgba(24,144,255,0.1); color: var(--primary); }
.corner-badge.discount { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); color: white; }
.corner-badge.new { background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%); color: white; }
.corner-badge.free { background: linear-gradient(135deg, #722ed1 0%, #9254de 100%); color: white; }
.corner-badge.opensource { background: rgba(15, 23, 42, 0.08); color: #24292f; border: 1px solid rgba(15, 23, 42, 0.12); }
.pfc-ip-badges { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.corner-badge.ip-dynamic,
.corner-badge.ip-static { text-transform: none; letter-spacing: 0; font-size: 0.68rem; font-weight: 600; }
.corner-badge.ip-dynamic { background: rgba(24, 144, 255, 0.12); color: #096dd9; border: 1px solid rgba(24, 144, 255, 0.28); }
.corner-badge.ip-static {
  background: linear-gradient(135deg, #6d8ef2 0%, #6d6cc4 50%, #6e66b4 100%);
  color: #fff;
  border: 1px solid rgba(110, 102, 180, 0.45);
  box-shadow: 0 1px 2px rgba(109, 142, 242, 0.2);
}
.dropdown-products:not(.dropdown-solutions) .pfc-title-row .pfc-ip-badges .corner-badge { padding: 2px 6px; font-size: 0.68rem; }
.proxy-family-card--external:hover { border-color: rgba(36, 41, 47, 0.35); background: rgba(36, 41, 47, 0.04); box-shadow: 0 6px 18px rgba(36, 41, 47, 0.08); }

/* Auth Buttons */
.header-right { display: flex; align-items: center; gap: 12px; }

/* Language Selector */
.lang-selector { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; color: var(--text-secondary); transition: all 0.3s; }
.lang-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(24,144,255,0.05); }
.lang-icon { font-size: 1rem; }
.lang-current { font-weight: 600; }
.lang-arrow { font-size: 0.75rem; opacity: 0.6; }
.lang-dropdown { display: none; position: absolute; top: 100%; right: 0; background: var(--white); min-width: 140px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); border-radius: 12px; padding: 8px; z-index: 1001; border: 1px solid var(--border); animation: slideDown 0.2s; }
.lang-selector:hover .lang-dropdown { display: block; }
.lang-dropdown a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: all 0.2s; }
.lang-dropdown a:hover { background: rgba(24,144,255,0.08); color: var(--primary); }

.auth-btns { display: flex; gap: 8px; }
.auth-btns a,
.auth-btns a:link,
.auth-btns a:visited,
.auth-btns a:hover,
.auth-btns a:active { text-decoration: none; }
.btn-text,
a.btn-text { background: transparent; border: none; color: var(--text-secondary); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 500; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; }
.btn-text:hover,
a.btn-text:hover { color: var(--primary); background: rgba(24,144,255,0.08); }
.btn-primary,
a.btn-primary { background: var(--primary); color: white; padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(24,144,255,0.3); }
.dashboard-btn { background: rgba(24,144,255,0.1); color: var(--primary); padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; transition: all 0.3s; display: flex; align-items: center; gap: 6px; }
.dashboard-btn:hover { background: rgba(24,144,255,0.15); }
.user-avatar { width: 28px; height: 28px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.85rem; font-weight: 600; }

/* Modal Styles */

 to { transform: translateY(0); opacity: 1 } }











/* Google Login Button */




.google-icon { flex-shrink: 0; }

/* Divider */
.divider { display: flex; align-items: center; text-align: center; margin: 24px 0; color: var(--text-light); font-size: 0.85rem; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border); }
.divider span { padding: 0 12px; }

/* Checkbox */
.checkbox-group { margin-bottom: 20px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9rem; color: var(--text-secondary); }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; accent-color: var(--primary); }
.checkbox-label a { color: var(--primary); text-decoration: none; font-weight: 500; }
.checkbox-label a:hover { text-decoration: underline; }








@media (max-width: 992px) {
    body { padding-top: 56px; }
    .header-bar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        height: 56px !important;
        padding: 0 12px !important;
        min-width: 0;
    }
    .nav-links {
        position: fixed !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        min-width: 0 !important;
        width: min(86vw, 300px) !important;
        max-width: 100vw !important;
    }
    .nav-links .nav-dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
    .nav-dropdown .dropdown-content,
    .dropdown-content {
        min-width: 0 !important;
        position: static !important;
    }
    .nav-dropdown:hover .dropdown-content {
        display: none !important;
    }
    .nav-dropdown--resources:hover .dropdown-content,
    .nav-dropdown--pricing:hover .dropdown-content,
    .nav-dropdown--locations:hover .dropdown-content {
        display: none !important;
    }
    .nav-dropdown.mobile-open .dropdown-content {
        display: block !important;
    }
    .nav-dropdown.mobile-open .dropdown-products,
    .nav-dropdown.mobile-open .dropdown-wide,
    .nav-dropdown.mobile-open .dropdown-medium {
        display: block !important;
    }
    .dropdown-products:not(.dropdown-solutions) .proxy-family-card.pfc-tall {
        height: auto;
        min-height: 0;
    }
}

.footer { background: #0a1628; color: white; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p { color: rgba(255,255,255,0.6); line-height: 1.8; margin-top: 16px; font-size: 0.95rem; }
.footer-support-email { margin-top: 8px !important; }
.footer-support-email a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-support-email a:hover { color: #fff; }
.footer-company-name { margin-top: 10px !important; color: rgba(255,255,255,0.55) !important; font-size: 0.88rem !important; }
.footer-company-address { margin-top: 4px !important; color: rgba(255,255,255,0.42) !important; font-size: 0.8rem !important; line-height: 1.55 !important; max-width: 280px; }
.footer-social { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: none; background: transparent; text-decoration: none; transition: opacity 0.25s, transform 0.25s; }
.footer-social-link:hover { opacity: 1; transform: translateY(-1px); }
.footer-social-link img { display: block; width: 22px; height: auto; opacity: 0.72; transition: opacity 0.25s; }
.footer-social-link:hover img { opacity: 1; }
.footer h4 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; color: white; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; }
.footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; font-size: 0.95rem; }
.footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.9rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; margin: 0; }
.footer-legal-links { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer-legal-links a { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
.footer-legal-links a:hover { color: rgba(255,255,255,0.9); }
.footer-legal-sep { color: rgba(255,255,255,0.22); user-select: none; }
.footer .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer .logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #6d8ef2 0%, #6d6cc4 50%, #6e66b4 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; font-weight: 700; box-shadow: 0 4px 12px rgba(109,142,242,0.3); }
.footer .logo span.logo-word--footer {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #fff;
}

/* Scheme A feature / product marks (marketing pages) */
.jp-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  flex-shrink: 0;
}
.jp-mark svg { width: 20px; height: 20px; display: block; }
.jp-mark.feat { background: rgba(109,142,242,.10); color: #6d8ef2; }
.jp-mark.lg { width: 44px; height: 44px; border-radius: 12px; }
.jp-mark.lg svg { width: 24px; height: 24px; }
.jp-mark.inline {
  width: 1em;
  height: 1em;
  margin: 0 .45em 0 0;
  background: none;
  color: inherit;
  display: inline-flex;
  border-radius: 0;
  vertical-align: -0.15em;
}
.jp-mark.inline svg { width: 1em; height: 1em; }
.gui-point-icon svg,
.preview-point-icon svg { width: 22px; height: 22px; color: #6d8ef2; display: block; }
.about-image { display: flex; align-items: center; justify-content: center; }
.about-image .jp-mark { width: 88px; height: 88px; border-radius: 22px; margin: 0; }
.about-image .jp-mark svg { width: 44px; height: 44px; }
.signup-bonus-promo,
.register-bonus-promo { display: inline-flex; align-items: center; }
