/* ============================================
   Google AI Sec — Design System & Styles
   ============================================ */

:root {
    /* Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(24, 33, 54, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-modal: rgba(17, 24, 39, 0.95);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-active: rgba(255, 255, 255, 0.12);
    
    /* Google Colors */
    --google-blue: #4285F4;
    --google-red: #EA4335;
    --google-yellow: #FBBC04;
    --google-green: #34A853;
    
    /* Semantic Colors */
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;
    --color-purple: #a855f7;
    
    /* Gradients */
    --gradient-google: linear-gradient(135deg, #4285F4, #EA4335, #FBBC04, #34A853);
    --gradient-blue: linear-gradient(135deg, #3b82f6, #2563eb);
    --gradient-card: linear-gradient(135deg, rgba(66,133,244,0.05), rgba(234,67,53,0.03));
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow-blue: 0 0 20px rgba(66,133,244,0.2);
    --shadow-glow-green: 0 0 20px rgba(34,168,83,0.2);
    --shadow-glow-red: 0 0 20px rgba(239,68,68,0.2);
    
    /* Sizing */
    --header-height: 72px;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-xs: 6px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   Background Particles
   ============================================ */

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-particles::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse 600px 600px at 20% 30%, rgba(66,133,244,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 80% 20%, rgba(234,67,53,0.04) 0%, transparent 70%),
        radial-gradient(ellipse 700px 700px at 60% 80%, rgba(52,168,83,0.04) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 10% 80%, rgba(168,85,247,0.04) 0%, transparent 70%);
    animation: bgFloat 30s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, -3%) rotate(1deg); }
    50% { transform: translate(-1%, 2%) rotate(-0.5deg); }
    75% { transform: translate(3%, 1%) rotate(0.5deg); }
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ============================================
   Header
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(66,133,244,0.08);
    border-radius: 12px;
    border: 1px solid rgba(66,133,244,0.15);
    transition: var(--transition-normal);
}

.logo-icon:hover {
    background: rgba(66,133,244,0.14);
    transform: scale(1.05);
}

.logo-icon svg {
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { filter: drop-shadow(0 0 0px rgba(66,133,244,0)); }
    50% { filter: drop-shadow(0 0 8px rgba(66,133,244,0.4)); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-highlight {
    background: var(--gradient-google);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-clock {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
    padding: 8px 14px;
    border-radius: var(--border-radius-xs);
    border: 1px solid var(--border-color);
    letter-spacing: 0.05em;
}

.btn-add-account {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-blue);
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 2px 10px rgba(59,130,246,0.3);
}

.btn-add-account:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}

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

/* ============================================
   Stats Row
   ============================================ */

.main {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: rgba(66,133,244,0.12);
    color: var(--google-blue);
}

.stat-icon.green {
    background: rgba(34,197,94,0.12);
    color: var(--color-success);
}

.stat-icon.yellow {
    background: rgba(245,158,11,0.12);
    color: var(--color-warning);
}

.stat-icon.purple {
    background: rgba(168,85,247,0.12);
    color: var(--color-purple);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* ============================================
   Section Header
   ============================================ */

.section-header {
    margin-bottom: 28px;
}

.section-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Accounts Grid
   ============================================ */

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 20px;
}

/* Account Card */
.account-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-normal);
    animation: cardSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.account-card:hover {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card-top-gradient {
    height: 3px;
    background: var(--gradient-google);
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
}

.card-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    position: relative;
    flex-shrink: 0;
}

.user-avatar::after {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: var(--color-success);
    border-radius: 50%;
    border: 2.5px solid var(--bg-secondary);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.card-actions {
    display: flex;
    gap: 6px;
}

.card-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.card-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

.card-btn.delete:hover {
    background: rgba(239,68,68,0.12);
    color: var(--color-danger);
}

/* Pro Badge */
.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 8px;
    background: linear-gradient(135deg, rgba(66,133,244,0.15), rgba(168,85,247,0.15));
    border: 1px solid rgba(66,133,244,0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--google-blue);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-left: 58px;
    margin-bottom: 6px;
    margin-top: -6px;
}

.pro-badge svg {
    width: 12px;
    height: 12px;
}

/* Limit Sections */
.card-limits {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.limit-section {
    background: rgba(255,255,255,0.02);
    border-radius: var(--border-radius-sm);
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,0.03);
}

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

.limit-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.limit-title svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.limit-numbers {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 600;
}

.limit-used {
    color: var(--text-primary);
}

.limit-total {
    color: var(--text-muted);
}

/* Progress Bar */
.progress-wrapper {
    position: relative;
    height: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 4px;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    animation: progressShimmer 2.5s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar.safe {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    box-shadow: 0 0 12px rgba(34,197,94,0.3);
}

.progress-bar.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    box-shadow: 0 0 12px rgba(245,158,11,0.3);
}

.progress-bar.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    box-shadow: 0 0 12px rgba(239,68,68,0.3);
}

.progress-bar.critical {
    background: linear-gradient(90deg, #ef4444, #991b1b);
    box-shadow: 0 0 16px rgba(239,68,68,0.4);
    animation: criticalPulse 1.5s ease-in-out infinite;
}

@keyframes criticalPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(239,68,68,0.3); }
    50% { box-shadow: 0 0 24px rgba(239,68,68,0.5); }
}

.progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-percent {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
}

.progress-percent.safe { color: var(--color-success); }
.progress-percent.warning { color: var(--color-warning); }
.progress-percent.danger { color: var(--color-danger); }
.progress-percent.critical { color: var(--color-danger); }

.progress-status {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.status-dot.safe { background: var(--color-success); }
.status-dot.warning { background: var(--color-warning); }
.status-dot.danger { background: var(--color-danger); }
.status-dot.critical { background: var(--color-danger); animation: blink 1s infinite; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Timer */
.card-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-timer svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.timer-value {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.empty-state.show {
    display: flex;
}

.empty-icon {
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 24px;
    animation: emptyBounce 3s ease-in-out infinite;
}

@keyframes emptyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.btn-add-first {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-blue);
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}

.btn-add-first:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(59,130,246,0.45);
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.modal {
    background: var(--bg-modal);
    border: 1px solid var(--border-active);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(239,68,68,0.1);
    color: var(--color-danger);
}

.modal-form {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 46px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xs);
    transition: var(--transition-fast);
    color: var(--text-muted);
}

.input-wrapper:focus-within {
    border-color: var(--google-blue);
    background: rgba(66,133,244,0.05);
    box-shadow: 0 0 0 3px rgba(66,133,244,0.1);
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-suffix {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: block;
    border: 3px solid transparent;
    transition: var(--transition-fast);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.1);
}

.color-option input:checked + .color-swatch {
    border-color: white;
    transform: scale(1.15);
    box-shadow: 0 0 16px currentColor;
}

.color-swatch:hover {
    transform: scale(1.1);
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.form-divider span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-group.half {
    flex: 1;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--gradient-blue);
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 2px 12px rgba(59,130,246,0.3);
    margin-top: 6px;
}

.btn-submit:hover {
    box-shadow: 0 4px 24px rgba(59,130,246,0.45);
    transform: translateY(-1px);
}

/* Edit modal */
.edit-account-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--border-radius-xs);
    border: 1px solid var(--border-color);
}

.edit-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.edit-info-text {
    display: flex;
    flex-direction: column;
}

.edit-info-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.edit-info-email {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.btn-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 12px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: var(--border-radius-sm);
    color: var(--color-danger);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-reset:hover {
    background: rgba(239,68,68,0.14);
}

.form-actions .btn-submit {
    flex: 2;
    margin-top: 0;
}

/* ============================================
   Toast
   ============================================ */

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-active);
    border-radius: var(--border-radius-sm);
    padding: 14px 24px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
    }
    
    .logo-sub {
        display: none;
    }
    
    .btn-add-account span {
        display: none;
    }
    
    .main {
        padding: 20px 16px 40px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .section-header h1 {
        font-size: 1.3rem;
    }
    
    .card-header {
        padding: 16px 18px 12px;
    }
    
    .card-limits {
        padding: 0 18px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .live-clock {
        display: none;
    }
    
    .modal {
        margin: 10px;
        max-height: 95vh;
    }
}
