:root {
    --bg: #09090b;
    --bg-subtle: #0c0c0f;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --surface-active: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);

    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.3);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.3);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.3);

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    --sidebar-width: 240px;
    --header-height: 72px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

html {
    font-size: 14px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* ========================
   AUTH SCREEN
   ======================== */

.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
}

.auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: glow-float 8s ease-in-out infinite;
}

.auth-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.auth-glow-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    bottom: -150px;
    left: -100px;
    animation-delay: -4s;
}

@keyframes glow-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(30px, -30px) scale(1.1); opacity: 0.5; }
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(17, 17, 19, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    z-index: 1;
}

/* Auth Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logo-shield {
    position: relative;
    width: 64px;
    height: 70px;
}

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

.shield-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: shield-draw 1.5s ease-out forwards;
}

.check-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: check-draw 0.6s ease-out 0.8s forwards;
}

@keyframes shield-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes check-draw {
    to { stroke-dashoffset: 0; }
}

.shield-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 88px;
    border: 2px solid var(--accent);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    opacity: 0;
    animation: shield-pulse 2s ease-out 1.2s infinite;
}

@keyframes shield-pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.logo-wordmark {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.logo-chk {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-panel {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.02em;
}

.auth-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.auth-tab.active {
    background: var(--accent);
    color: white;
}

.auth-tab:not(.active):hover {
    color: var(--text);
}

/* ========================
   SIDEBAR LOGO MINI
   ======================== */

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

.logo-mini-svg {
    width: 32px;
    height: 36px;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.logo-mini-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================
   WALLET CARD PREMIUM
   ======================== */

.wallet-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.wallet-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.wallet-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 50%, #1a1a2e 100%);
    z-index: 0;
}

.wallet-card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

.wallet-card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.wallet-card:hover .wallet-card-shine {
    transform: translateX(100%);
}

.wallet-card-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.wallet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Chip do cartão */
.wallet-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 50%, #d4af37 100%);
    border-radius: 4px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip-lines {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    width: 100%;
    height: 100%;
}

.chip-lines span {
    background: linear-gradient(135deg, #c9a227 0%, #8b7722 100%);
    border-radius: 1px;
}

.wallet-card-logo {
    width: 28px;
    height: 32px;
    color: rgba(255, 255, 255, 0.6);
}

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

/* Saldo */
.wallet-card-balance {
    margin-bottom: 20px;
}

.balance-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.balance-currency {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.balance-value {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Stats */
.wallet-card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-stat-icon.used {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.card-stat-icon.checks {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

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

.card-stat-value {
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: #fff;
}

.card-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

/* Add Button */
.wallet-card-add {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wallet-card-add:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.wallet-card-add svg {
    opacity: 0.8;
}

/* Layout */
.app {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-subtle);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

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

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sidebar-nav {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.nav-item.active {
    background: var(--surface-active);
    color: var(--text);
}

.nav-item svg {
    opacity: 0.7;
}

.nav-item.active svg,
.nav-item:hover svg {
    opacity: 1;
}

/* Sidebar Footer - Wallet & User Widgets */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Wallet Widget */
.wallet-widget {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.wallet-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(34, 197, 94, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.wallet-widget:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

.wallet-widget:hover::before {
    opacity: 1;
}

.wallet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
}

.wallet-icon {
    width: 28px;
    height: 28px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
}

.wallet-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--success);
    letter-spacing: 0.1em;
}

.wallet-add-btn {
    margin-left: auto;
    width: 24px;
    height: 24px;
    background: var(--success);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.wallet-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--success-glow);
}

.wallet-balance {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.wallet-currency {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.wallet-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--success);
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.wallet-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.wallet-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wallet-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wallet-stat-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.wallet-bar {
    height: 4px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.wallet-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, #4ade80 100%);
    border-radius: 2px;
    transition: width var(--transition-slow);
}

/* User Widget */
.user-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--surface-active);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

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

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.user-role {
    font-size: 10px;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-menu-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.user-menu-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-subtle);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-fast);
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* Main */
.main {
    flex: 1;
    margin-left: var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.header-stats {
    display: flex;
    gap: 24px;
}

.header-stat {
    text-align: right;
}

.header-stat-value {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent);
}

.header-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Notification Button */
.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.notification-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--border-strong);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 0 8px var(--danger-glow);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notification Center */
.notification-center {
    position: fixed;
    top: 80px;
    right: 24px;
    width: 360px;
    max-height: 480px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px) scale(0.95);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-center.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

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

.notification-header h3 {
    font-size: 14px;
    font-weight: 700;
}

.notification-clear {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.notification-clear:hover {
    background: var(--surface-hover);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: var(--text-muted);
    gap: 12px;
}

.notification-empty svg {
    opacity: 0.3;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

.notification-item:hover {
    background: var(--surface-hover);
}

.notification-item.read {
    opacity: 0.6;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.notification-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.notification-icon.info {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.notification-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 10px;
    color: var(--text-muted);
}

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.metric-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-normal);
}

.metric-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

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

.metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.metric-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.metric-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.metric-icon.neutral {
    background: rgba(161, 161, 170, 0.15);
    color: var(--text-secondary);
}

.metric-icon.warning svg {
    animation: spin 1.5s linear infinite;
}

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

.metric-value {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 12px;
}

.metric-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.metric-bar-fill.success { background: var(--success); }
.metric-bar-fill.danger { background: var(--danger); }
.metric-bar-fill.warning { background: var(--warning); }
.metric-bar-fill.neutral { background: var(--text-muted); }

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Panel */
.panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

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

.panel-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.panel-actions {
    display: flex;
    gap: 8px;
}

.panel-badge {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    background: var(--surface-active);
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--text-secondary);
}

.panel-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

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

.btn-primary .btn-loader {
    display: none;
}

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

.btn-primary.loading .btn-loader {
    display: flex;
    position: absolute;
}

.btn-primary.loading .btn-loader svg {
    animation: spin 1s linear infinite;
}

.btn-large {
    padding: 16px 32px;
    font-size: 15px;
    border-radius: var(--radius-lg);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    color: var(--text);
}

/* Input */
.input-wrapper {
    display: flex;
    flex-direction: column;
}

#cards-input {
    width: 100%;
    min-height: 180px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color var(--transition-fast);
}

#cards-input::placeholder {
    color: var(--text-muted);
}

#cards-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 0;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Options */
.options-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle input {
    display: none;
}

.toggle-slider {
    width: 36px;
    height: 20px;
    background: var(--border);
    border-radius: 10px;
    position: relative;
    transition: background var(--transition-fast);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle input:checked + .toggle-slider::after {
    left: 18px;
    background: white;
}

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

.number-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.number-input label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.number-input input {
    width: 56px;
    padding: 6px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
    text-align: center;
}

.number-input input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Tabs */
.tabs-wrapper {
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
}

.tabs {
    display: flex;
    gap: 4px;
    position: relative;
}

.tab {
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
    position: relative;
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    color: var(--text);
}

.tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    pointer-events: none;
}

/* Results */
.results-list {
    flex: 1;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px 20px;
}

.results-list::-webkit-scrollbar {
    width: 6px;
}

.results-list::-webkit-scrollbar-track {
    background: transparent;
}

.results-list::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 250px;
    color: var(--text-muted);
    gap: 12px;
}

.empty-state svg {
    opacity: 0.3;
}

.empty-title {
    font-size: 14px;
    font-weight: 600;
}

.empty-text {
    font-size: 12px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: all var(--transition-fast);
}

.result-item:hover {
    border-color: var(--border-strong);
}

.result-status-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-status-icon.approved {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.result-status-icon.declined {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.result-status-icon.error {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-card {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2px;
}

.result-message {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-time {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Activity Panel */
.activity-panel {
    margin-top: auto;
}

.activity-list {
    padding: 12px 20px;
    max-height: 150px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.activity-time {
    font-family: var(--font-mono);
    color: var(--text-muted);
    width: 40px;
    flex-shrink: 0;
}

.activity-text {
    color: var(--text-secondary);
}

/* Toast */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--bg-subtle);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast-exit {
    animation: toast-out 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

.toast.warning {
    border-color: var(--warning);
}

.toast.info {
    border-color: var(--accent);
}

.toast-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--accent); }

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.toast-close:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    animation: toast-progress 4s linear forwards;
}

.toast.success .toast-progress { background: var(--success); }
.toast.error .toast-progress { background: var(--danger); }
.toast.warning .toast-progress { background: var(--warning); }

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--bg-subtle);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
    overflow-y: auto;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.step.active .step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 16px var(--accent-glow);
}

.step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--text);
}

.step-line {
    width: 48px;
    height: 2px;
    background: var(--border);
    margin: 0 12px 20px;
}

/* Modal Step Content */
.modal-step {
    text-align: center;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent);
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-title.success {
    color: var(--success);
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.modal-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 12px;
    min-height: 20px;
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.amount-btn {
    position: relative;
    padding: 16px 12px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.amount-btn:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
}

.amount-btn.active {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.amount-btn.popular {
    border-color: var(--success);
}

.amount-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.amount-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.amount-bonus {
    font-size: 11px;
    color: var(--success);
    font-weight: 600;
}

/* Custom Amount */
.custom-amount {
    margin-bottom: 24px;
}

.custom-amount label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: left;
}

.custom-amount-input {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-prefix {
    position: absolute;
    left: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.custom-amount-input input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 18px;
    font-family: var(--font-mono);
}

.custom-amount-input input:focus {
    outline: none;
    border-color: var(--accent);
}

/* QR Code Container */
.qr-container {
    margin-bottom: 24px;
}

.qr-wrapper {
    width: 220px;
    height: 220px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    margin: 0 auto 16px;
    position: relative;
    overflow: hidden;
}

.qr-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: none;
    align-items: center;
    justify-content: center;
}

.qr-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.qr-timer strong {
    color: var(--text);
    font-family: var(--font-mono);
}

/* Payment Info */
.payment-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.payment-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

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

.payment-value {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--success);
}

.payment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status-indicator {
    position: relative;
    width: 12px;
    height: 12px;
}

.status-indicator.waiting .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--warning);
    animation: pulse-ring 1.5s ease-out infinite;
}

.status-indicator.waiting .pulse-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--warning);
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* PIX Code */
.pix-code-wrapper {
    margin-bottom: 24px;
}

.pix-code-wrapper label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: left;
}

.pix-code-input {
    display: flex;
    gap: 8px;
}

.pix-code-input input {
    flex: 1;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 11px;
    font-family: var(--font-mono);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--accent-hover);
}

/* Success Animation */
.success-animation {
    margin-bottom: 24px;
}

.success-circle {
    width: 100px;
    height: 100px;
    background: rgba(34, 197, 94, 0.15);
    border: 3px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--success);
    animation: success-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes success-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-circle svg {
    animation: check-draw 0.5s ease-out 0.2s both;
}

@keyframes check-draw {
    0% { stroke-dashoffset: 100; opacity: 0; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Confirmation Details */
.confirmation-details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.detail-row span {
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-row strong {
    font-size: 16px;
    font-family: var(--font-mono);
    color: var(--success);
}

/* History Modal */
.history-modal {
    max-width: 560px;
}

.history-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.history-tab {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.history-tab:hover {
    background: var(--surface-hover);
}

.history-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: var(--text-muted);
    gap: 12px;
}

.history-empty svg {
    opacity: 0.3;
}

.history-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.history-item:hover {
    background: var(--surface-hover);
}

.history-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-icon.recharge {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.history-icon.usage {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.history-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-content strong {
    font-size: 13px;
}

.history-content span {
    font-size: 11px;
    color: var(--text-muted);
}

.history-amount {
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.history-amount.recharge {
    color: var(--success);
}

.history-amount.usage {
    color: var(--danger);
}

/* Spinner */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 1200px) {
    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main {
        margin-left: 0;
    }

    .metrics {
        grid-template-columns: 1fr;
    }

    .notification-center {
        right: 16px;
        left: 16px;
        width: auto;
    }

    .modal {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
}

/* Focus states */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================
   SETTINGS MODAL
   ======================== */

.settings-modal {
    max-width: 520px;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.settings-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.settings-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-user-info h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.settings-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    width: fit-content;
}

.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.settings-item:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.settings-item-icon {
    width: 36px;
    height: 36px;
    background: var(--surface-active);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.settings-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

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

.settings-item-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Settings Toggle */
.settings-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 24px;
    transition: all var(--transition-fast);
}

.settings-toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.settings-toggle input:checked + .settings-toggle-slider {
    background: var(--success);
}

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

/* Settings Info Rows */
.settings-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.settings-info-row:not(:last-child) {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.settings-info-row:not(:first-child) {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

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

.settings-info-value {
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text);
}

.settings-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* Change Password Modal */
.change-password-modal {
    max-width: 400px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Setup 2FA Modal */
.setup-2fa-modal {
    max-width: 420px;
}

.setup-2fa-secret {
    margin-bottom: 24px;
}

.setup-2fa-secret label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: center;
}

.secret-code {
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    letter-spacing: 0.1em;
    user-select: all;
}

.modal-icon.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.modal-icon.warning {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

/* Danger Button */
.btn-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-fast);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

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