/* AiO Panel - Premium Modern UI */
:root {
    --bg-primary: #080e19;
    --bg-secondary: #0d1726;
    --bg-card: #132033;
    --bg-hover: #1a2b43;
    --accent-primary: #3b82f6;
    --accent-secondary: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 52%, #38bdf8 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #38bdf8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    z-index: 100;
    overflow: hidden;
}

.admin-sidebar { background: linear-gradient(180deg, #101c31 0%, #132440 100%); }

.sidebar-header {
    flex: 0 0 auto;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    flex: 1 1 0;
    min-height: 0;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

.sidebar-nav > * {
    flex: 0 0 auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.38);
}

.nav-item i { width: 20px; text-align: center; }
.nav-divider { height: 1px; background: var(--border-color); margin: 12px 0; }

.sidebar-footer {
    flex: 0 0 auto;
    padding: 16px;
}

.credits-card {
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-md);
}

.credits-label { font-size: 0.8rem; opacity: 0.8; }
.credits-amount {
    font-size: clamp(1.05rem, 1.4vw, 1.32rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.035em;
    white-space: nowrap;
}
.fund-button,
.credits-stat-button {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   margin-top: 10px;
   padding: 9px 12px;
   border-radius: 8px;
   background: rgba(255,255,255,.16);
   border: 1px solid rgba(255,255,255,.24);
   color: #fff;
   font-size: .82rem;
   font-weight: 700;
   text-decoration: none;
}
.credits-stat-button { width: fit-content; background: var(--accent-primary); }

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
}

.main-content.full-width { margin-left: 0; }

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, #10203a 0%, var(--bg-primary) 50%);
    padding: 20px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.36);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.auth-links a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.auth-links a:hover { color: var(--accent-secondary); }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }
.form-group small { font-size: 0.8rem; color: var(--text-muted); }

.form-input {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-input::placeholder { color: var(--text-muted); }
.form-input.small { padding: 8px 12px; font-size: 0.85rem; width: 120px; }
.form-input:disabled { opacity: 0.6; cursor: not-allowed; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.form-inline { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.36);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 { font-size: 1.1rem; font-weight: 600; }
.card-body { padding: 24px; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.stat-info { display: flex; flex-direction: column; min-width: 0; }
.stat-value { font-size: 1.8rem; font-weight: 700; }
.credits-stat-value {
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    line-height: 1.25;
    letter-spacing: -0.035em;
    white-space: nowrap;
}
.stat-label { font-size: 0.9rem; color: var(--text-secondary); }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.service-header h3 { font-size: 1.2rem; font-weight: 600; }

.service-price {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.service-form .form-group { margin-bottom: 12px; }

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.table td { font-size: 0.95rem; }
.table tr:hover { background: var(--bg-hover); }
.table-empty { padding: 28px !important; color: var(--text-muted); text-align: center !important; }
.admin-tool-url { display: inline-block; max-width: 290px; overflow: hidden; color: #78c8f2; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.tool-admin-form { display: grid; gap: 18px; }
.table code {
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.badge-completed { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge-pending { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge-failed { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.badge-refunded { background: rgba(59, 130, 246, 0.2); color: var(--info); }

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 { font-size: 1.3rem; }
.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover { color: var(--text-primary); }

/* Utility */
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .stats-grid { grid-template-columns: 1fr; }
    .form-inline { flex-direction: column; align-items: stretch; }
    .form-inline .form-input { width: 100%; }
    
    .table { display: block; overflow-x: auto; }
    .admin-tool-url { max-width: 180px; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .stat-card, .service-card, .auth-card {
    animation: fadeIn 0.4s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover { background: var(--accent-secondary); }

/* Responsible service landing page */
.landing-page {
    --landing-ink: #edf3ff;
    --landing-muted: #9baac2;
    --landing-line: rgba(167, 190, 230, 0.14);
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5.2%;
    overflow: hidden;
    background: radial-gradient(ellipse at 75% 17%, rgba(35, 101, 153, 0.2), transparent 33%), #080e19;
    color: var(--landing-ink);
    border: 1px solid rgba(167, 190, 230, 0.08);
    border-radius: 24px;
}

.landing-page a { text-decoration: none; }
.fmi-modal[hidden] { display: none; }
.fmi-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: rgba(3, 8, 16, 0.78); opacity: 0; transition: opacity 0.22s ease; }
.fmi-modal.is-open { opacity: 1; }
.fmi-modal-open { overflow: hidden; }
.fmi-dialog { position: relative; width: min(100%, 480px); padding: 32px; border: 1px solid rgba(112, 215, 207, 0.24); border-radius: 20px; background: radial-gradient(ellipse at 85% 0, rgba(35, 101, 153, 0.22), transparent 42%), #101b2b; box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55); color: #edf3ff; transform: translateY(14px) scale(0.98); transition: transform 0.22s ease; }
.fmi-modal.is-open .fmi-dialog { transform: translateY(0) scale(1); }
.fmi-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; color: #a7b6cb; border: 1px solid rgba(167, 190, 230, 0.16); border-radius: 10px; background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.fmi-close:hover { color: #edf3ff; border-color: rgba(112, 215, 207, 0.42); }
.fmi-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #76ded1; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.12em; }
.fmi-dialog h2 { margin: 12px 42px 7px 0; font-size: 1.7rem; letter-spacing: -0.035em; }
.fmi-dialog > p { color: #aab8ca; font-size: 0.88rem; line-height: 1.6; }
.fmi-form { display: grid; gap: 10px; margin-top: 22px; }
.fmi-form > label { color: #dce8f8; font-size: 0.82rem; font-weight: 650; }
.fmi-form > small { color: #8d9eb4; font-size: 0.73rem; }
.fmi-form .form-input { width: 100%; min-height: 48px; }
.fmi-bot-check { padding: 12px 13px; border: 1px solid rgba(167, 190, 230, 0.18); border-radius: 11px; color: #cbd9ec; background: rgba(255, 255, 255, 0.025); }
.fmi-bot-check[hidden] { display: none; }
.fmi-bot-check-heading { display: flex; align-items: center; gap: 9px; font-size: 0.77rem; font-weight: 650; }
.fmi-bot-check-heading strong { margin-left: auto; color: #90b4d2; font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.fmi-bot-check-icon { color: #79c7e9; }
.fmi-bot-progress { height: 6px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: rgba(167, 190, 230, 0.13); }
.fmi-bot-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #55d3c4, #42a8f5); box-shadow: 0 0 12px rgba(66, 168, 245, 0.35); transition: width 0.08s linear; }
.fmi-bot-check.is-verified { border-color: rgba(91, 220, 167, 0.3); }
.fmi-bot-check.is-verified .fmi-bot-check-icon, .fmi-bot-check.is-verified .fmi-bot-check-heading strong { color: #8af0c1; }
.fmi-bot-check.is-error { border-color: rgba(255, 111, 125, 0.34); }
.fmi-bot-check.is-error .fmi-bot-check-icon { color: #ff8994; }
.fmi-honeypot { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.fmi-submit { width: 100%; justify-content: center; margin-top: 8px; }
.fmi-submit:disabled { opacity: 0.72; cursor: wait; }
.fmi-check-status { margin-top: 18px; padding: 14px; border: 1px solid rgba(167, 190, 230, 0.16); border-radius: 12px; color: #dce8f8; background: rgba(255, 255, 255, 0.035); font-size: 0.86rem; line-height: 1.65; overflow-wrap: anywhere; }
.fmi-check-status[hidden] { display: none; }
.fmi-check-status.is-success { border-color: rgba(91, 220, 167, 0.34); color: #c8ffe8; background: rgba(34, 157, 111, 0.09); }
.fmi-check-status.is-error { border-color: rgba(255, 111, 125, 0.34); color: #ffc6cd; background: rgba(177, 52, 70, 0.1); }
.fmi-check-status.is-loading { display: flex; align-items: center; gap: 11px; color: #b6d9ef; }
.fmi-result-title { display: block; margin-bottom: 8px; color: #8af0c1; font-size: 0.75rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.fmi-result-text { margin: 0; color: #e4f5ed; font-size: 0.92rem; line-height: 1.65; white-space: pre-wrap; }
.fmi-check-remaining { display: block; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(91, 220, 167, 0.16); color: #9ebdaf; font-size: 0.72rem; }
.fmi-spinner { width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid rgba(116, 204, 232, 0.25); border-top-color: #75d9cf; border-radius: 50%; animation: fmi-spin 0.8s linear infinite; }
@keyframes fmi-spin { to { transform: rotate(360deg); } }
.fmi-privacy-note { margin: 17px 0 0; color: #8596ad !important; font-size: 0.7rem !important; }
.landing-nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--landing-line); }
.landing-mobile-menu { display: none; }
.landing-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--landing-ink); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.02em; }
.landing-brand strong { color: #70d7cf; font-weight: 700; }
.landing-brand-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #07151b; font-size: 1rem; border-radius: 12px; background: linear-gradient(135deg, #72e0d1, #58aef1); box-shadow: 0 8px 26px rgba(73, 193, 205, 0.2); }
.landing-nav-links { display: flex; align-items: center; gap: 34px; }
.landing-nav-links a, .landing-footer > a:last-child { color: var(--landing-muted); font-size: 0.88rem; transition: color 0.2s ease; }
.landing-nav-links a:hover, .landing-footer > a:last-child:hover { color: var(--landing-ink); }
.landing-nav-links .landing-nav-link { padding: 9px 13px; color: #c6d8ed; border: 1px solid transparent; border-radius: 9px; font-size: 0.84rem; font-weight: 600; }
.landing-nav-links .landing-nav-link:hover { color: #e9f4ff; border-color: rgba(75, 165, 230, 0.28); background: rgba(49, 132, 199, 0.12); }
.telegram-menu { position: relative; z-index: 20; }
.telegram-menu summary { list-style: none; }
.telegram-menu summary::-webkit-details-marker { display: none; }
.telegram-menu-trigger { min-height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 0 16px; color: #e9f4ff; border: 1px solid rgba(75, 165, 230, 0.32); border-radius: 10px; background: linear-gradient(135deg, rgba(33, 113, 190, 0.22), rgba(38, 153, 213, 0.1)); cursor: pointer; font-size: 0.88rem; font-weight: 650; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.telegram-menu-trigger:hover, .telegram-menu[open] .telegram-menu-trigger { border-color: rgba(91, 190, 245, 0.68); background: linear-gradient(135deg, rgba(33, 113, 190, 0.34), rgba(38, 153, 213, 0.2)); }
.telegram-menu-trigger > .fa-telegram { color: #48b8f5; font-size: 1.28rem; }
.telegram-chevron { color: #91b9d8; font-size: 0.65rem; transition: transform 0.2s ease; }
.telegram-menu[open] .telegram-chevron { transform: rotate(180deg); }
.telegram-menu-dropdown { position: absolute; top: calc(100% + 12px); left: 50%; width: 265px; padding: 7px; border: 1px solid rgba(113, 179, 224, 0.2); border-radius: 13px; background: #101d2d; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46); transform: translateX(-50%); animation: fadeIn 0.18s ease-out; }
.telegram-menu-dropdown::before { position: absolute; top: -6px; left: calc(50% - 6px); width: 11px; height: 11px; content: ''; border-top: 1px solid rgba(113, 179, 224, 0.2); border-left: 1px solid rgba(113, 179, 224, 0.2); background: #101d2d; transform: rotate(45deg); }
.telegram-menu-dropdown a { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 9px; color: #eaf3ff; transition: background 0.18s ease; }
.telegram-menu-dropdown a:hover { background: rgba(63, 151, 218, 0.14); }
.telegram-menu-dropdown a > .fas:first-child { width: 34px; height: 34px; display: grid; place-items: center; color: #5bc4f3; border-radius: 10px; background: rgba(62, 163, 225, 0.13); }
.telegram-menu-dropdown a span { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.telegram-menu-dropdown a strong { font-size: 0.8rem; font-weight: 650; }
.telegram-menu-dropdown a small { color: #96a9be; font-size: 0.69rem; }
.telegram-menu-dropdown a .telegram-external { color: #738ca5; font-size: 0.67rem; }
.landing-page .btn { border-radius: 9px; }
.landing-page .btn-outline { padding: 10px 16px; color: var(--landing-ink); border: 1px solid var(--landing-line); background: rgba(255,255,255,0.025); box-shadow: none; }
.landing-page .btn-outline:hover { border-color: rgba(112, 215, 207, 0.5); background: rgba(112, 215, 207, 0.08); }
.landing-page .btn-primary { color: #07151b; background: linear-gradient(110deg, #78e1d0, #6bbcf1); box-shadow: 0 10px 28px rgba(77, 188, 203, 0.2); }
.landing-page .btn-primary:hover { box-shadow: 0 13px 34px rgba(77, 188, 203, 0.3); }
.landing-hero { min-height: 555px; display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 52px; padding: 66px 0 78px; }
.landing-hero-copy { max-width: 620px; }
.landing-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #75d9cf; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #71dfbd; box-shadow: 0 0 12px rgba(113, 223, 189, 0.8); }
.landing-hero h1 { margin: 22px 0 18px; font-size: clamp(2.8rem, 5.6vw, 5rem); line-height: 1.04; letter-spacing: -0.065em; }
.landing-hero h1 span { color: #73d5d0; }
.landing-hero-copy > p, .landing-section-heading > p, .process-copy > p { max-width: 540px; color: var(--landing-muted); font-size: 1.02rem; line-height: 1.8; }
.landing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 30px; }
.landing-text-link { color: var(--landing-ink); font-size: 0.9rem; font-weight: 600; }
.landing-text-link i { margin-left: 5px; color: #74d9d1; font-size: 0.75rem; }
.landing-trustline { margin-top: 33px; color: #a4b4c8; font-size: 0.8rem; }
.landing-trustline i { margin-right: 7px; color: #70d7c3; }
.landing-visual { position: relative; min-height: 410px; display: grid; place-items: center; isolation: isolate; }
.landing-visual::before { position: absolute; z-index: -1; width: min(390px, 90%); aspect-ratio: 1; content: ''; border-radius: 50%; background: radial-gradient(circle, rgba(43, 141, 174, 0.2), rgba(38, 72, 131, 0.08) 49%, transparent 70%); }
.visual-orbit { position: absolute; border: 1px solid rgba(111, 206, 217, 0.13); border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { width: 440px; height: 230px; }
.orbit-two { width: 330px; height: 430px; transform: rotate(38deg); }
.device-card { position: relative; width: min(330px, 80%); padding: 18px 22px 21px; border: 1px solid rgba(183, 219, 246, 0.2); border-radius: 22px; background: linear-gradient(145deg, rgba(30, 48, 69, 0.95), rgba(13, 23, 38, 0.97)); box-shadow: 0 28px 80px rgba(0,0,0,0.48), inset 0 1px rgba(255,255,255,0.07); transform: rotate(-4deg); }
.device-top { display: flex; align-items: center; gap: 5px; color: #72859c; font-size: 0.53rem; letter-spacing: 0.12em; }
.device-top > span { width: 5px; height: 5px; border-radius: 50%; background: #648197; }
.device-top b { margin-left: auto; font-weight: 600; }
.device-cloud { position: relative; width: 88px; height: 88px; display: grid; place-items: center; margin: 35px auto 16px; color: #79dfd4; font-size: 2.8rem; border-radius: 25px; background: linear-gradient(145deg, rgba(105, 212, 208, 0.18), rgba(72, 141, 207, 0.12)); }
.device-check { position: absolute; right: -5px; bottom: -3px; width: 26px; height: 26px; display: grid; place-items: center; color: #07151b; font-size: 0.7rem; border: 3px solid #142337; border-radius: 50%; background: #7de0be; }
.device-title, .device-subtitle { text-align: center; }
.device-title { font-size: 1rem; font-weight: 650; }
.device-subtitle { margin-top: 5px; color: #91a4ba; font-size: 0.73rem; }
.device-progress { height: 5px; margin: 23px 0 15px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,0.09); }
.device-progress span { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #76ddc9, #67b9ee); }
.device-status { display: flex; align-items: center; gap: 7px; color: #9aacc0; font-size: 0.67rem; }
.device-status i { color: #75d9c8; }
.device-status b { margin-left: auto; color: #84d9b8; font-size: 0.65rem; font-weight: 600; }
.floating-tag { position: absolute; display: flex; align-items: center; gap: 9px; padding: 12px 15px; color: #dce8f6; font-size: 0.75rem; border: 1px solid rgba(180, 214, 235, 0.15); border-radius: 11px; background: rgba(19, 34, 52, 0.9); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.floating-tag i { color: #76dbcf; }
.tag-protection { top: 62px; right: 0; }
.tag-support { bottom: 56px; left: 0; }
.landing-benefits { padding: 76px 0 86px; border-top: 1px solid var(--landing-line); }
.landing-section-heading { text-align: center; }
.landing-section-heading h2, .process-copy h2 { margin: 13px 0 10px; font-size: clamp(1.9rem, 3.2vw, 2.7rem); letter-spacing: -0.045em; }
.landing-section-heading > p { margin: 0 auto; font-size: 0.91rem; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 40px; }
.benefit-card { min-height: 205px; padding: 25px; border: 1px solid var(--landing-line); border-radius: 15px; background: linear-gradient(145deg, rgba(28, 44, 63, 0.72), rgba(14, 24, 39, 0.7)); transition: transform 0.2s ease, border-color 0.2s ease; }
.benefit-card:hover { transform: translateY(-4px); border-color: rgba(112, 215, 207, 0.35); }
.benefit-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 19px; color: #79ddd1; border-radius: 12px; background: rgba(110, 211, 207, 0.11); }
.benefit-card h3, .process-step h3 { margin-bottom: 8px; font-size: 1rem; }
.benefit-card p, .process-step p { color: var(--landing-muted); font-size: 0.83rem; line-height: 1.7; }
.landing-process { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; padding: 65px 0 72px; border-top: 1px solid var(--landing-line); }
.process-copy h2 { max-width: 370px; line-height: 1.18; }
.process-copy > p { font-size: 0.9rem; }
.process-steps { display: grid; gap: 10px; }
.process-step { display: flex; gap: 18px; padding: 16px 18px; border: 1px solid var(--landing-line); border-radius: 13px; background: rgba(22, 36, 54, 0.58); }
.process-step > span { color: #73d9cf; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; }
.process-step h3 { margin-bottom: 4px; font-size: 0.9rem; }
.process-step p { font-size: 0.77rem; }
.landing-catalog, .landing-tools, .landing-partners { padding: 72px 0; border-top: 1px solid var(--landing-line); scroll-margin-top: 20px; }
.landing-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 17px; margin-top: 36px; }
.landing-service-card { padding: 23px; border: 1px solid var(--landing-line); border-radius: 15px; background: linear-gradient(145deg, rgba(28, 44, 63, 0.72), rgba(14, 24, 39, 0.7)); transition: transform 0.2s ease, border-color 0.2s ease; }
.landing-service-card:hover, .landing-tool-card:hover { transform: translateY(-3px); border-color: rgba(84, 169, 236, 0.4); }
.landing-service-icon, .landing-tool-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #70c4f4; border-radius: 12px; background: rgba(67, 151, 218, 0.13); }
.landing-service-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 18px; }
.landing-service-heading h3, .landing-tool-card h3 { font-size: 0.96rem; line-height: 1.4; }
.landing-service-heading strong { flex: 0 0 auto; color: #79d8d0; font-size: 0.9rem; }
.landing-service-card > p, .landing-tool-card p { min-height: 44px; margin-top: 9px; color: var(--landing-muted); font-size: 0.8rem; line-height: 1.7; }
.landing-service-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; color: #76c9f3; font-size: 0.78rem; font-weight: 650; }
.landing-service-cta:hover { color: #8be2dc; }
.landing-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 36px; }
.landing-tool-card { display: flex; flex-direction: column; align-items: center; gap: 13px; padding: 22px; border: 1px solid var(--landing-line); border-radius: 14px; background: rgba(22, 36, 54, 0.65); text-align: center; transition: transform 0.2s ease, border-color 0.2s ease; }
.landing-tool-logo { width: 76px; height: 76px; flex: 0 0 auto; object-fit: contain; border-radius: 15px; }
.landing-tool-copy { width: 100%; min-width: 0; }
.landing-tool-service { display: inline-block; margin-top: 5px; color: #73c9ef; font-size: 0.7rem; }
.landing-tool-card p { min-height: 0; margin-top: 7px; }
.landing-tool-link { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; color: #081522; border-radius: 9px; background: linear-gradient(120deg, #72e0d1, #58aef1); font-size: 0.78rem; font-weight: 700; text-decoration: none; }
.landing-tool-link:hover { box-shadow: 0 5px 16px rgba(67, 174, 218, 0.25); }
.landing-partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.landing-partner-card { position: relative; display: flex; min-width: 0; min-height: 244px; flex-direction: column; align-items: center; gap: 10px; padding: 17px 14px 18px; border: 1px solid var(--landing-line); border-radius: 19px; background: linear-gradient(145deg, rgba(28, 44, 63, 0.82), rgba(14, 24, 39, 0.88)); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); color: var(--landing-ink); text-align: center; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.landing-partner-card:hover { transform: translateY(-3px); border-color: rgba(112, 215, 207, 0.34); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3); }
.landing-partner-card.is-distributor { border-color: rgba(76, 238, 222, 0.62); box-shadow: 0 0 0 1px rgba(76, 238, 222, 0.14), 0 0 20px rgba(27, 224, 210, 0.12), 0 12px 24px rgba(0, 0, 0, 0.2); }
.landing-partner-card.is-distributor:hover { border-color: #54f5e5; box-shadow: 0 0 0 1px rgba(76, 238, 222, 0.24), 0 0 27px rgba(27, 224, 210, 0.2), 0 16px 30px rgba(0, 0, 0, 0.3); }
.landing-partner-logo, .landing-partner-logo-placeholder { width: 98px; height: 98px; display: grid; place-items: center; flex: 0 0 auto; object-fit: contain; border: 3px solid #d5e3ff; border-radius: 50%; background: #fff; box-shadow: 0 5px 13px rgba(33, 64, 107, 0.13); }
.landing-partner-logo-placeholder { color: #438dba; font-size: 1.65rem; }
.landing-partner-type { position: absolute; top: 12px; left: 12px; padding: 6px 11px; color: #b7d1ff; border: 1px solid #293555; border-radius: 999px; background: #10152a; box-shadow: 0 3px 8px rgba(17, 24, 39, 0.2); font-size: 0.68rem; font-weight: 700; }
.landing-partner-card.is-distributor .landing-partner-type { color: #83fff2; border-color: rgba(72, 246, 228, 0.7); background: rgba(9, 50, 55, 0.96); box-shadow: 0 0 8px rgba(50, 243, 224, 0.3), inset 0 0 8px rgba(50, 243, 224, 0.08); text-shadow: 0 0 8px rgba(77, 255, 234, 0.78); }
.landing-partner-card h3 { margin: 2px 0 0; color: var(--landing-ink); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.landing-partner-country { color: var(--landing-muted); font-size: 0.82rem; }
.landing-partner-country i { margin-right: 4px; color: #79d8d0; }
.landing-partner-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: auto; padding-top: 2px; }
.landing-partner-link { width: 36px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: #dceafb; border: 1px solid var(--landing-line); border-radius: 999px; background: rgba(18, 32, 49, 0.82); font-size: 0.85rem; text-decoration: none; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.landing-partner-link span { display: none; }
.landing-partner-link:hover { color: #79ddd1; border-color: rgba(112, 215, 207, 0.45); background: rgba(110, 211, 207, 0.08); }
.landing-partner-link .fa-whatsapp { color: #43d787; }
.landing-partner-link .fa-telegram { color: #55b8ee; }
.partner-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.partner-fields .form-group { min-width: 0; }
.partner-admin-form .form-input { width: 100%; }
.partner-current-logo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.partner-current-logo label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; }
.partner-admin-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.partner-admin-actions form { margin: 0; }
.partner-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 14px; }
.partner-list-heading h3 { margin: 0 0 5px; font-size: 1.15rem; }
.partner-list-heading p { color: var(--text-muted); font-size: 0.84rem; }
.partner-count { padding: 6px 11px; color: var(--text-secondary); border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-card); font-size: 0.76rem; white-space: nowrap; }
.partner-admin-list { display: grid; gap: 12px; }
.partner-admin-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid var(--border-color); border-radius: 14px; background: linear-gradient(145deg, var(--bg-card), rgba(20, 32, 49, 0.75)); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); transition: border-color 0.2s ease, opacity 0.2s ease; }
.partner-admin-card:hover { border-color: rgba(91, 166, 219, 0.42); }
.partner-admin-card.is-inactive { opacity: 0.68; }
.partner-admin-summary { display: flex; align-items: center; gap: 14px; min-width: 0; }
.partner-order-number { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: var(--text-muted); border: 1px solid var(--border-color); border-radius: 9px; font-size: 0.76rem; font-weight: 700; }
.partner-admin-logo { width: 64px; height: 64px; flex: 0 0 auto; object-fit: contain; border: 1px solid var(--border-color); border-radius: 12px; background: white; }
.partner-admin-logo-empty { display: grid; place-items: center; color: var(--text-muted); background: rgba(255, 255, 255, 0.04); font-size: 1.3rem; }
.partner-admin-details { min-width: 0; }
.partner-admin-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.partner-admin-title-row strong { color: var(--text-primary); font-size: 0.98rem; }
.partner-status { padding: 4px 8px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; }
.partner-status.is-active { color: #8be2bc; background: rgba(63, 190, 132, 0.13); }
.partner-status.is-offline { color: #aab5c2; background: rgba(145, 158, 171, 0.14); }
.partner-admin-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; margin-top: 8px; color: var(--text-muted); font-size: 0.76rem; }
.partner-admin-meta span, .partner-admin-meta a { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.partner-admin-meta a:hover { color: var(--accent); }
.partner-admin-meta i { color: var(--accent-secondary); }
.partner-order-actions { display: flex; gap: 5px; }
.partner-icon-button { width: 36px; height: 36px; padding: 0; }
.partner-icon-button:disabled { opacity: 0.35; cursor: not-allowed; }
.profile-tool-list { display: grid; gap: 12px; }
.profile-tool-item { display: flex; align-items: center; gap: 15px; padding: 14px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-secondary); }
.profile-tool-logo { width: 54px; height: 54px; flex: 0 0 auto; object-fit: contain; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.profile-tool-icon { display: grid; place-items: center; color: var(--accent-secondary); font-size: 1.25rem; }
.profile-tool-copy { flex: 1; min-width: 0; }
.profile-tool-copy strong { display: block; color: var(--text-primary); }
.profile-tool-copy small { display: block; margin-top: 4px; color: var(--accent-secondary); }
.profile-tool-copy p { margin-top: 6px; color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
.profile-tools-empty { color: var(--text-muted); }
.copy-field { display: flex; gap: 10px; }
.copy-field .form-input { flex: 1; min-width: 0; }
.copy-field-button { flex: 0 0 auto; white-space: nowrap; }
.copy-field-status { min-height: 1em; color: var(--accent-secondary) !important; }
@media (max-width: 650px) {
    .profile-tool-item { align-items: flex-start; flex-wrap: wrap; }
    .profile-tool-copy { flex-basis: calc(100% - 70px); }
    .profile-tool-item > .btn { width: 100%; justify-content: center; }
    .copy-field { align-items: stretch; }
    .copy-field-button { padding: 10px 12px; }
}
@media (max-width: 1000px) {
    .partner-admin-card { align-items: flex-start; flex-direction: column; }
    .partner-admin-actions { justify-content: flex-start; width: 100%; padding-left: 44px; }
}
@media (max-width: 600px) {
    .partner-list-heading { align-items: flex-start; flex-direction: column; }
    .partner-admin-card { padding: 14px; }
    .partner-admin-summary { align-items: flex-start; gap: 9px; }
    .partner-admin-logo { width: 48px; height: 48px; }
    .partner-order-number { width: 25px; height: 25px; }
    .partner-admin-actions { padding-left: 0; }
    .partner-admin-actions > a, .partner-admin-actions > form { flex: 1 1 auto; }
}
.landing-empty-state { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; padding: 22px; color: var(--landing-muted); border: 1px dashed rgba(139, 179, 212, 0.2); border-radius: 13px; text-align: center; }
.landing-empty-state > i { color: #64bde9; }
.landing-empty-state p { font-size: 0.84rem; }
.landing-footer { min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--landing-line); }
.landing-footer .landing-brand { flex: 0 0 auto; font-size: 0.85rem; }
.landing-footer .landing-brand-icon { width: 31px; height: 31px; border-radius: 10px; font-size: 0.85rem; }
.landing-footer > p { max-width: 510px; color: #7e8da3; font-size: 0.69rem; line-height: 1.6; text-align: center; }
.landing-footer > a:last-child { flex: 0 0 auto; font-size: 0.76rem; }
.landing-footer > a:last-child i { margin-left: 4px; color: #73d9cf; }

@media (max-width: 900px) {
    .landing-page { padding: 0 4%; }
    .landing-hero { gap: 15px; }
    .landing-hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); }
    .landing-visual { transform: scale(0.9); }
    .landing-process { gap: 35px; }
    .landing-footer { flex-wrap: wrap; justify-content: center; padding: 22px 0; }
    .landing-footer > p { order: 3; flex-basis: 100%; }
}

@media (max-width: 650px) {
    .landing-page { padding: 0 20px; border-radius: 0; }
    .fmi-modal { padding: 14px; }
    .fmi-dialog { padding: 27px 21px 22px; border-radius: 16px; }
    .landing-nav { position: relative; min-height: 72px; flex-wrap: nowrap; justify-content: flex-start; gap: 12px; padding: 12px 0; }
    .landing-mobile-menu { position: relative; z-index: 30; display: block; flex: 0 0 auto; order: 0; }
    .landing-mobile-menu > summary { width: 40px; height: 40px; display: grid; place-items: center; color: #e9f4ff; border: 1px solid rgba(113, 179, 224, 0.22); border-radius: 11px; background: rgba(25, 45, 66, 0.88); cursor: pointer; list-style: none; }
    .landing-mobile-menu > summary::-webkit-details-marker { display: none; }
    .landing-mobile-menu > summary i { font-size: 1rem; }
    .landing-mobile-menu[open] > summary { color: #79ddd1; border-color: rgba(112, 215, 207, .46); }
    .landing-mobile-menu-panel { position: absolute; top: calc(100% + 10px); left: 0; width: min(280px, calc(100vw - 40px)); display: grid; gap: 4px; padding: 8px; border: 1px solid rgba(113, 179, 224, 0.2); border-radius: 14px; background: #101d2d; box-shadow: 0 18px 48px rgba(0, 0, 0, .48); }
    .landing-mobile-menu-panel a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 10px; color: #eaf3ff; border-radius: 9px; font-size: .82rem; }
    .landing-mobile-menu-panel a:hover, .landing-mobile-menu-panel a:focus-visible { background: rgba(63, 151, 218, .14); }
    .landing-mobile-menu-panel a i { width: 20px; color: #71d5d0; text-align: center; }
    .landing-brand { order: 1; }
    .landing-nav-links, .landing-nav > .telegram-menu, .landing-nav > .btn-outline { display: none; }
    .landing-nav-links .landing-nav-link { padding: 8px 11px; font-size: 0.78rem; }
    .telegram-menu-trigger { min-height: 38px; gap: 7px; padding: 0 11px; font-size: 0.8rem; }
    .telegram-menu-dropdown { left: auto; right: 0; width: min(265px, calc(100vw - 42px)); transform: none; }
    .telegram-menu-dropdown::before { left: auto; right: 28px; }
    .landing-brand { font-size: 0.86rem; }
    .landing-brand-icon { width: 34px; height: 34px; }
    .landing-page .btn-outline { padding: 9px 11px; font-size: 0.76rem; }
    .landing-hero { grid-template-columns: 1fr; gap: 0; padding: 65px 0 48px; }
    .landing-hero h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
    .landing-hero-copy > p { font-size: 0.92rem; }
    .landing-actions { gap: 18px; }
    .landing-visual { min-height: 340px; margin-top: 15px; transform: scale(0.85); }
    .landing-benefits { padding: 55px 0; }
    .benefit-grid { grid-template-columns: 1fr; margin-top: 28px; }
    .benefit-card { min-height: 0; }
    .landing-process { grid-template-columns: 1fr; gap: 25px; padding: 53px 0; }
    .landing-catalog, .landing-tools, .landing-partners { padding: 53px 0; }
    .landing-service-grid, .landing-tool-grid { grid-template-columns: 1fr; margin-top: 27px; }
    .landing-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 27px; }
    .partner-fields { grid-template-columns: 1fr; }
    .landing-footer { justify-content: space-between; gap: 14px; }
    .landing-footer > p { text-align: left; }
}

@media (max-width: 900px) {
    .landing-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .landing-partner-grid { grid-template-columns: 1fr; }
}

/* Carry the landing page blue palette into the authentication screens */
.auth-container {
    background:
        radial-gradient(ellipse at 50% 18%, rgba(35, 101, 153, 0.24), transparent 42%),
        #080e19;
}

.auth-card {
    background: linear-gradient(155deg, rgba(24, 39, 59, 0.98), rgba(13, 22, 36, 0.99));
    border-color: rgba(112, 190, 225, 0.2);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 48px rgba(43, 141, 174, 0.08);
}

.auth-logo {
    background: linear-gradient(135deg, #72e0d1, #58aef1);
    color: #07151b;
    box-shadow: 0 8px 30px rgba(73, 193, 205, 0.3);
}

.auth-header h1 {
    color: #edf3ff;
}

.auth-header .auth-brand-name {
    font-size: 1.18rem;
    letter-spacing: -0.035em;
}

.auth-header .auth-brand-name span {
    color: #73d9cf;
}

.auth-container .btn-primary {
    color: #07151b;
    background: linear-gradient(110deg, #78e1d0, #6bbcf1);
    box-shadow: 0 4px 16px rgba(77, 188, 203, 0.25);
}

.auth-container .btn-primary:hover {
    box-shadow: 0 7px 22px rgba(77, 188, 203, 0.35);
}

.auth-links a {
    color: #78c8f2;
}

.auth-links a:hover {
    color: #78e1d0;
}

.auth-container .form-input:focus {
    border-color: #64c5e8;
    box-shadow: 0 0 0 3px rgba(100, 197, 232, 0.2);
}

.mobile-menu-toggle,
.sidebar-backdrop { display: none; }

@media (max-width: 768px) {
    .app-container.has-sidebar {
        display: block;
        width: 100%;
        min-height: 100dvh;
        overflow-x: clip;
    }

    .mobile-menu-toggle {
        position: fixed;
        z-index: 1301;
        top: 12px;
        left: 12px;
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        color: var(--text-primary);
        border: 1px solid rgba(148, 163, 184, .24);
        border-radius: 14px;
        background: rgba(19, 32, 51, .94);
        box-shadow: 0 8px 26px rgba(0, 0, 0, .28);
        backdrop-filter: blur(12px);
        font-size: 1.08rem;
        cursor: pointer;
    }

    .sidebar {
        position: fixed;
        z-index: 1201;
        inset: 68px auto auto 12px;
        width: min(320px, calc(100vw - 24px));
        height: min(72dvh, 640px);
        max-height: calc(100dvh - 84px);
        min-height: 0;
        border: 1px solid rgba(148, 163, 184, .2);
        border-radius: 16px;
        box-shadow: 0 20px 55px rgba(0, 0, 0, .48);
        transform: translateY(-8px) scale(.98);
        transform-origin: top left;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
    }

    body.mobile-menu-open { overflow: hidden; }
    body.mobile-menu-open .sidebar {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sidebar-backdrop {
        position: fixed;
        z-index: 1200;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(2, 6, 14, .68);
    }

    body.mobile-menu-open .sidebar-backdrop { display: block; }
    .sidebar-header { padding: 18px; }
    .sidebar-nav { padding: 12px; }
    .sidebar-footer { padding: 12px; }
    .credits-card { padding: 14px; }

    .app-container.has-sidebar > .main-content {
        width: 100%;
        min-width: 0;
        min-height: 100dvh;
        margin-left: 0;
        padding: 76px 16px 28px;
    }

    .app-container.has-sidebar > .main-content > * { min-width: 0; }
    .page-header { margin-bottom: 20px; }
    .page-header h1 { font-size: clamp(1.45rem, 6vw, 1.8rem); line-height: 1.2; }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 22px;
    }

    .stat-card { min-width: 0; gap: 12px; padding: 16px; }
    .stat-icon { flex: 0 0 42px; width: 42px; height: 42px; font-size: 1.05rem; }
    .stat-value { font-size: 1.35rem; }
    .credits-stat-value { font-size: clamp(1rem, 4vw, 1.3rem); }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
        gap: 14px;
    }

    .service-card { padding: 18px; }
    .service-header { align-items: flex-start; gap: 10px; }
    .service-header h3 { font-size: 1.05rem; }
    .service-price { font-size: 1.2rem; }

    .card { margin-bottom: 16px; border-radius: 14px; }
    .card-header { padding: 16px; }
    .card-body { padding: 16px; }
    .form-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .form-inline { flex-direction: column; align-items: stretch; }
    .form-inline .form-input,
    .inline-form .form-input { width: 100%; }
    .inline-form { flex-wrap: wrap; }
    input, select, textarea, button { max-width: 100%; }
    .btn { min-height: 42px; }

    .table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .table th, .table td { padding: 11px 12px; }
    .admin-tool-url { max-width: 150px; }
    .alert { align-items: flex-start; padding: 13px 14px; }
    .modal-content { width: calc(100% - 28px); max-height: 88dvh; overflow-y: auto; padding: 22px; }
    .auth-card { padding: 26px 20px; }

    .fund-wrap { width: 100%; max-width: 820px; margin: 0 auto; }
    .fund-wrap .page-header h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
    .fund-form-card { width: 100%; }
    .binance-checkout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .binance-summary { padding: 20px; border-right: 0; border-bottom: 1px solid var(--border-color); }
    .binance-main { padding: 18px; }
    .binance-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
    .app-container.has-sidebar > .main-content { padding-right: 13px; padding-left: 13px; }
    .stats-grid { grid-template-columns: minmax(0, 1fr); }
    .stat-card { padding: 14px; }
    .service-card { padding: 16px; }
    .service-form .btn { width: 100%; }
    .card-header { padding: 14px; }
    .card-body { padding: 14px; }
    .auth-container { padding: 14px; }
    .auth-card { padding: 24px 18px; }
    .fund-wrap { margin-top: 0; }
    .fund-form-card .card-body { padding: 20px 16px; }
    .binance-summary, .binance-main { padding: 16px; }
    .binance-amount { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar { transition: none; }
}
