/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0f14;
    --bg-secondary: #1a1a24;
    --bg-tertiary: #22222e;
    --bg-card: rgba(30, 30, 45, 0.7);
    --bg-card-hover: rgba(35, 35, 52, 0.85);
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-modal: rgba(20, 20, 30, 0.95);
    --text-primary: #e8e8f0;
    --text-secondary: #888899;
    --text-muted: #555566;
    --accent: #2AABEE;
    --accent-dark: #1d8bc4;
    --accent-glow: rgba(42, 171, 238, 0.3);
    --accent-light: rgba(42, 171, 238, 0.1);
    --success: #34d058;
    --success-glow: rgba(52, 208, 88, 0.3);
    --danger: #f85149;
    --danger-glow: rgba(248, 81, 73, 0.2);
    --warning: #e3b341;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    -webkit-user-select: none;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== PAGES ===== */
.page {
    display: none;
    height: 100vh;
    overflow-y: auto;
}

.page.active {
    display: flex;
    flex-direction: column;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== LOGIN PAGE ===== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(42, 171, 238, 0.08) 0%, transparent 60%);
}

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 48px 40px;
    background: var(--bg-card);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.6s ease;
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    animation: float 3s ease-in-out infinite;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* Floating shapes background */
.login-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(42, 171, 238, 0.15);
    top: -100px;
    right: -80px;
    animation: drift 8s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: rgba(138, 43, 226, 0.1);
    bottom: -60px;
    left: -60px;
    animation: drift 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: rgba(42, 171, 238, 0.1);
    top: 50%;
    left: 20%;
    animation: drift 12s ease-in-out infinite;
}

/* ===== INPUT GROUPS ===== */
.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
    caret-color: var(--accent);
}

.input-group input:focus {
    border-color: var(--accent);
    background: rgba(42, 171, 238, 0.05);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
    transition: var(--transition);
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
    top: 0;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    background: var(--bg-card);
    padding: 0 6px;
    letter-spacing: 0.5px;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 1px;
}

.input-group input:focus~.input-line {
    width: 100%;
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2AABEE, #1d8bc4);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d8bc4, #1a7db3);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.loading .btn-text {
    opacity: 0;
}

.btn-primary.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    position: absolute;
}

.btn-secondary {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-secondary:hover {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-sm {
    width: auto;
    padding: 10px 18px;
    font-size: 13px;
}

.btn-danger {
    background: linear-gradient(135deg, #f85149, #d73a49);
}

.btn-danger:hover {
    box-shadow: 0 4px 20px var(--danger-glow);
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.btn-logout:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-glow);
}

/* ===== ERROR MESSAGE ===== */
.error-msg {
    color: var(--danger);
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
    padding-left: 4px;
    animation: fadeIn 0.3s ease;
}

/* ===== TOP NAV ===== */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
}

.nav-greeting {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== USER CONTENT ===== */
.user-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

/* ===== STATS CARD ===== */
.stats-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.stats-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 4px;
}

.stats-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ADD NUMBER CARD ===== */
.add-number-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--text-primary);
}

/* Steps */
.step {
    display: none;
    animation: slideUp 0.4s ease;
}

.step.active {
    display: block;
}

.step-info {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

/* ===== SUCCESS ANIMATION ===== */
.success-animation {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.checkmark {
    width: 80px;
    height: 80px;
}

.checkmark-circle {
    stroke: var(--success);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: var(--success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

.success-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-top: 12px;
    color: var(--success);
}

.success-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
}

/* ===== ADMIN CONTENT ===== */
.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tab-header h2 {
    font-size: 20px;
    font-weight: 600;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.admin-stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

.stat-users::before {
    background: linear-gradient(90deg, #2AABEE, #229ED9);
}

.stat-accounts::before {
    background: linear-gradient(90deg, #34d058, #28a745);
}

.stat-numbers::before {
    background: linear-gradient(90deg, #e3b341, #d29922);
}

.stat-blocked::before {
    background: linear-gradient(90deg, #f85149, #d73a49);
}





.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-hover);
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== TABLES ===== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    white-space: nowrap;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(42, 171, 238, 0.04);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: rgba(52, 208, 88, 0.15);
    color: #34d058;
}

.badge-blocked {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
}

.badge-2fa {
    background: rgba(227, 179, 65, 0.15);
    color: #e3b341;
}

.badge-no2fa {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

/* Action buttons in tables */
.action-btns {
    display: flex;
    gap: 6px;
}

.action-btn {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.action-btn:hover {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.action-btn-edit:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.action-btn-block:hover {
    color: var(--warning);
    border-color: var(--warning);
}

.action-btn-reset:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.action-btn-delete:hover {
    color: var(--danger);
    border-color: var(--danger);
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-modal);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger-glow);
    border-color: var(--danger);
    color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.modal-body .input-group {
    margin-bottom: 20px;
}

.modal-body .btn-primary {
    margin-top: 8px;
}

/* ===== TOAST ===== */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: white;
    box-shadow: var(--shadow);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
    max-width: 360px;
}

.toast-success {
    background: linear-gradient(135deg, #34d058, #28a745);
}

.toast-error {
    background: linear-gradient(135deg, #f85149, #d73a49);
}

.toast-info {
    background: linear-gradient(135deg, #2AABEE, #1d8bc4);
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(30px, -30px);
    }

    50% {
        transform: translate(-20px, 20px);
    }

    75% {
        transform: translate(25px, 10px);
    }
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== STEP PROGRESS ===== */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-dot.active {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    border-color: #2AABEE;
    color: #fff;
    box-shadow: 0 0 16px rgba(42, 171, 238, 0.4);
}

.step-dot.done {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: #fff;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    transition: background 0.4s ease;
}

.step-line.active {
    background: linear-gradient(90deg, #2AABEE, #229ED9);
}

/* ===== PHONE INPUT WITH PREFIX ===== */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.phone-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.15);
}

.phone-prefix {
    padding: 14px 12px 14px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #2AABEE;
    background: rgba(42, 171, 238, 0.08);
    border-right: 1px solid var(--border);
    user-select: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.phone-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
}

.phone-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== GLOW BUTTON ===== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 1;
}

/* ===== STATS CARD GLOW ===== */
.stats-card {
    position: relative;
    overflow: hidden;
}

.stats-card-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(42, 171, 238, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ===== USER NAV — ULTRA 2026 ===== */
.user-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(12, 12, 18, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    position: relative;
}

.user-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(42, 171, 238, 0.3), rgba(167, 139, 250, 0.3), transparent);
}

.user-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 171, 238, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(42, 171, 238, 0.12);
}

.brand-text {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #2AABEE, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.user-nav-greeting {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.user-btn-logout {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.user-btn-logout:hover {
    border-color: rgba(248, 81, 73, 0.4);
    color: #f85149;
    background: rgba(248, 81, 73, 0.08);
    transform: scale(1.05);
}

/* ===== HERO COUNTER ===== */
.user-hero-counter {
    position: relative;
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeInUp 0.6s ease-out;
}

.hero-counter-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(42, 171, 238, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(167, 139, 250, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(42, 171, 238, 0.06) 0%, transparent 50%);
    background-color: rgba(18, 18, 28, 0.9);
}

.hero-counter-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmerMove 4s ease-in-out infinite;
}

@keyframes shimmerMove {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 140%;
    }
}

.hero-counter-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-counter-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 171, 238, 0.08);
    border-radius: 14px;
    border: 1px solid rgba(42, 171, 238, 0.12);
    margin-bottom: 6px;
    animation: float 3s ease-in-out infinite;
}

.hero-counter-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #2AABEE 0%, #60b6f7 40%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -2px;
}

.hero-counter-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ===== USER FORM CARD ===== */
.user-form-card {
    position: relative;
    background: rgba(18, 18, 28, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 32px 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

.user-form-card-border {
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(42, 171, 238, 0.2), rgba(167, 139, 250, 0.1), rgba(42, 171, 238, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.user-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.section-title-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 171, 238, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(42, 171, 238, 0.12);
}

/* ===== USER PHONE INPUT ===== */
.user-phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 10px;
}

.user-phone-input-wrapper:focus-within {
    border-color: rgba(42, 171, 238, 0.4);
    box-shadow: 0 0 0 4px rgba(42, 171, 238, 0.08), 0 0 24px rgba(42, 171, 238, 0.06);
    background: rgba(42, 171, 238, 0.02);
}

.user-phone-prefix {
    padding: 16px 14px 16px 18px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #2AABEE, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    user-select: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.user-phone-input {
    flex: 1;
    padding: 16px 16px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
}

.user-phone-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

/* ===== USER BUTTONS ===== */
.user-btn-primary {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #2AABEE 0%, #1d8bc4 50%, #a78bfa 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
}

.user-btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(42, 171, 238, 0.25), 0 0 0 1px rgba(42, 171, 238, 0.1);
}

.user-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(42, 171, 238, 0.15);
}

.user-btn-primary.loading .btn-text {
    opacity: 0;
}

.user-btn-primary.loading .btn-loader {
    display: block;
}

.user-btn-primary .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    position: absolute;
}

.user-btn-back {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    font-size: 14px;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.user-btn-back:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== USER INFO BADGE ===== */
.user-info-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(42, 171, 238, 0.05);
    border: 1px solid rgba(42, 171, 238, 0.12);
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.user-info-badge svg {
    flex-shrink: 0;
}

.user-info-badge-warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* ===== USER SUCCESS ===== */
.user-success-wrap {
    padding: 16px 0 8px;
}

.user-success-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin-top: 12px;
    background: linear-gradient(135deg, #34d058, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-success-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}


/* ===== CUSTOM CONFIRM DIALOG ===== */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-overlay.active {
    opacity: 1;
}

.confirm-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 32px 28px 24px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(239, 68, 68, 0.1);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-overlay.active .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-icon {
    font-size: 42px;
    margin-bottom: 12px;
    animation: confirmShake 0.5s ease-in-out 0.3s;
}

@keyframes confirmShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

.confirm-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.confirm-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.confirm-text strong {
    color: #ef4444;
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

.confirm-btn-cancel {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.confirm-btn-cancel:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.confirm-btn-delete {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.confirm-btn-delete:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.confirm-btn-delete:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* ===== STEP INFO CARD ===== */
.step-info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(42, 171, 238, 0.06);
    border: 1px solid rgba(42, 171, 238, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.step-info-card svg {
    flex-shrink: 0;
}

/* ===== DOWNLOAD DROPDOWN — ULTRA ===== */
.download-dropdown {
    position: relative;
}

#btn-download-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(42, 171, 238, 0.3);
}

#btn-download-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(42, 171, 238, 0.45);
}

.download-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 300px;
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(42, 171, 238, 0.15);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(42, 171, 238, 0.08);
    z-index: 100;
    padding: 8px;
    animation: dropdownSlide 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-dropdown.open .download-menu {
    display: block;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }

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

.download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.download-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}

.download-item:hover::before {
    height: 60%;
}

.download-item[data-type="all"]::before {
    background: #2AABEE;
}

.download-item[data-type="phones"]::before {
    background: #10b981;
}

.download-item[data-type="sessions"]::before {
    background: #f59e0b;
}

.download-item[data-type="tokens"]::before {
    background: #8b5cf6;
}

.download-item[data-type="2fa"]::before {
    background: #ef4444;
}

.download-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.download-item[data-type="all"]:hover {
    background: rgba(42, 171, 238, 0.08);
}

.download-item[data-type="phones"]:hover {
    background: rgba(16, 185, 129, 0.08);
}

.download-item[data-type="sessions"]:hover {
    background: rgba(245, 158, 11, 0.08);
}

.download-item[data-type="tokens"]:hover {
    background: rgba(139, 92, 246, 0.08);
}

.download-item[data-type="2fa"]:hover {
    background: rgba(239, 68, 68, 0.08);
}

.download-item .dl-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.download-item:hover .dl-icon {
    transform: scale(1.08);
}

.download-item[data-type="all"] .dl-icon {
    background: rgba(42, 171, 238, 0.12);
}

.download-item[data-type="phones"] .dl-icon {
    background: rgba(16, 185, 129, 0.12);
}

.download-item[data-type="sessions"] .dl-icon {
    background: rgba(245, 158, 11, 0.12);
}

.download-item[data-type="tokens"] .dl-icon {
    background: rgba(139, 92, 246, 0.12);
}

.download-item[data-type="2fa"] .dl-icon {
    background: rgba(239, 68, 68, 0.12);
}

.download-item svg {
    flex-shrink: 0;
}

.download-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.download-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.download-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

.download-item .dl-arrow {
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.download-item:hover .dl-arrow {
    opacity: 0.6;
    transform: translateX(0);
}

/* ===== PROXY PANEL ===== */
.proxy-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.proxy-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.proxy-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.proxy-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proxy-toggle-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.proxy-toggle-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    box-shadow: 0 0 16px rgba(42, 171, 238, 0.3);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(24px);
}

/* Proxy Stats Row */
.proxy-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.proxy-stat-mini {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.proxy-stat-mini .stat-num {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proxy-stat-mini .stat-num.green {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
}

.proxy-stat-mini .stat-num.red {
    background: linear-gradient(135deg, #ef4444, #f87171);
    -webkit-background-clip: text;
    background-clip: text;
}

.proxy-stat-mini .stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Proxy Table */
.proxy-table-wrap {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 12px;
}

.proxy-table-wrap::-webkit-scrollbar {
    width: 4px;
}

.proxy-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(42, 171, 238, 0.3);
    border-radius: 4px;
}

.proxy-table {
    width: 100%;
    border-collapse: collapse;
}

.proxy-table th {
    padding: 10px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
    position: sticky;
    top: 0;
}

.proxy-table td {
    padding: 8px 14px;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.proxy-table tr:hover td {
    background: rgba(42, 171, 238, 0.04);
}

.proxy-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.proxy-status-dot.alive {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.proxy-status-dot.dead {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.proxy-status-dot.unknown {
    background: #6b7280;
}

.proxy-check-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: rgba(42, 171, 238, 0.08);
    border: 1px solid rgba(42, 171, 238, 0.15);
    color: #2AABEE;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
}

.proxy-check-btn:hover {
    background: rgba(42, 171, 238, 0.15);
    transform: translateY(-1px);
}

.proxy-check-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.proxy-check-btn .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(42, 171, 238, 0.3);
    border-top-color: #2AABEE;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.proxy-check-btn.loading .spinner {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .login-card {
        padding: 36px 28px;
        margin: 0 16px;
    }

    .admin-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-content,
    .admin-content {
        padding: 16px;
    }

    .add-number-card {
        padding: 24px 20px;
    }

    .stats-number {
        font-size: 28px;
    }

    .stat-value {
        font-size: 28px;
    }

    .action-btns {
        flex-wrap: wrap;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }

    #toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .tab-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .tab-header .btn-primary {
        width: 100%;
    }
}

/* ===== STYLED SELECT DROPDOWN ===== */
.select-group {
    margin-bottom: 24px;
}

.select-label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.styled-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b8b' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.styled-select:focus {
    border-color: var(--accent);
    background-color: rgba(42, 171, 238, 0.05);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.styled-select option,
.styled-select optgroup {
    background: #1a1a2e;
    color: var(--text-primary);
}

.styled-select optgroup {
    font-weight: 700;
    font-size: 13px;
    color: var(--accent);
}

/* ===== SETTINGS CARD ===== */
.settings-card {
    max-width: 560px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.settings-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 14px 16px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    margin-bottom: 28px;
}

.settings-status {
    min-height: 20px;
    font-size: 13px;
    margin-bottom: 12px;
    padding-left: 4px;
}

.settings-status.success {
    color: var(--success);
}

.settings-status.error {
    color: var(--danger);
}

/* ===== Login Code Modal ===== */
.login-code-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-code-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-code-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.login-code-overlay.active .login-code-modal {
    transform: scale(1) translateY(0);
}

.login-code-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.login-code-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

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

.login-code-icon {
    font-size: 48px;
    margin-bottom: 8px;
    animation: loginBounce 0.6s ease;
}

@keyframes loginBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.login-code-header h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.login-code-phone {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.login-code-phone:hover {
    background: rgba(42, 171, 238, 0.1);
    border-color: var(--accent);
    transform: scale(1.02);
}

.login-code-phone:active {
    transform: scale(0.98);
}

.login-code-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.login-code-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-code-result {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    animation: codeFadeIn 0.4s ease;
}

@keyframes codeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-code-value {
    font-size: 42px;
    font-weight: 900;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #10b981;
    letter-spacing: 8px;
    cursor: pointer;
    padding: 8px 24px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    transition: all 0.2s;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.login-code-value:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: scale(1.05);
}

.login-code-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.login-code-2fa {
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    margin-top: 12px;
}

.login-code-2fa-label {
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
}

.login-code-2fa-value {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

.login-code-message {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    max-height: 60px;
    overflow-y: auto;
    word-break: break-word;
}

/* Kirib olish button */
.btn-login-account {
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    background: rgba(42, 171, 238, 0.15);
    border: 1px solid rgba(42, 171, 238, 0.3);
    border-radius: 6px;
    color: #2aabee;
    transition: all 0.2s;
}

.btn-login-account:hover {
    background: rgba(42, 171, 238, 0.3);
    transform: scale(1.05);
}