/* ===== 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: 10px;
    transform: translateY(0);
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
}

.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;
}

/* ===== 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;
}

/* ===== 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);
}