/* AMIGO.CLICK - MERCHANT DASHBOARD CSS - COMPLETE */

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12132d;
    --bg-tertiary: #1a1b3d;
    --bg-card: rgba(26, 27, 61, 0.6);
    --accent-primary: #6366f1;
    --accent-secondary: #10b981;
    --accent-gold: #f59e0b;
    --accent-red: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.app-container { display: flex; min-height: 100vh; position: relative; z-index: 1; }

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

.sidebar-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon { font-size: 1.75rem; }
.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-dot { -webkit-text-fill-color: var(--accent-gold); }

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: none;
}
.sidebar-toggle:hover { background: var(--bg-tertiary); color: var(--text-primary); }

.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.nav-section { padding: 0 0.75rem; margin-bottom: 1.5rem; }
.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    margin-bottom: 0.25rem;
}
.nav-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.nav-item svg { flex-shrink: 0; }
.nav-item span { font-size: 0.9rem; font-weight: 500; }

.sidebar-footer { padding: 1rem; border-top: 1px solid var(--border-color); }
.user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}
.user-card:hover { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }
.user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 0.85rem; font-weight: 600; }
.user-plan { font-size: 0.75rem; color: var(--accent-secondary); }

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition);
}

.main-header {
    height: var(--header-height);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left { display: flex; flex-direction: column; gap: 0.25rem; }
.page-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 700; }
.page-subtitle { font-size: 0.85rem; color: var(--text-secondary); }

.header-right { display: flex; align-items: center; gap: 1rem; }

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.lang-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active {
    background: var(--accent-primary);
    color: white;
}

.header-btn {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.header-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.notification-badge {
    position: absolute;
    top: -2px; right: -2px;
    width: 18px; height: 18px;
    background: var(--accent-red);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}

/* ==================== PAGE CONTENT ==================== */
.page-content { padding: 2rem; }
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-description { color: var(--text-secondary); font-size: 0.95rem; }

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all var(--transition);
}
.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.stat-icon.green { background: rgba(16, 185, 129, 0.15); }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); }
.stat-icon.gold { background: rgba(245, 158, 11, 0.15); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); }

.stat-content { flex: 1; }
.stat-value { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.75rem; font-weight: 800; display: block; }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); }

.stat-trend {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}
.stat-trend.up { background: rgba(16, 185, 129, 0.15); color: var(--accent-secondary); }
.stat-trend.down { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

/* ==================== WIDGET SECTION ==================== */
.widget-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-code-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.widget-code-box code {
    color: var(--accent-secondary);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
}

.widget-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== ACTIVITY SECTION ==================== */
.activity-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.card-header h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 600; }

.activity-list { margin-top: 1rem; }
.activity-empty { text-align: center; padding: 2rem; color: var(--text-muted); }

/* ==================== GAMES CONFIG ==================== */
.games-config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-config-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
    text-align: center;
}
.game-config-card:hover { border-color: rgba(99, 102, 241, 0.3); transform: translateY(-4px); }

.game-config-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.game-icon-large { font-size: 3rem; }
.game-config-card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.game-config-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* ==================== REWARDS SUMMARY ==================== */
.rewards-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.summary-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.summary-value { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem; font-weight: 800; color: var(--accent-primary); }
.summary-label { font-size: 0.85rem; color: var(--text-muted); }

.summary-card.pending .summary-value { color: var(--accent-gold); }
.summary-card.paid .summary-value { color: var(--accent-secondary); }

/* ==================== COMMISSIONS SUMMARY ==================== */
.commissions-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ==================== SWITCH ==================== */
.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-tertiary);
    transition: var(--transition);
    border-radius: 26px;
    border: 1px solid var(--border-color);
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 2px; bottom: 2px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--accent-secondary); border-color: var(--accent-secondary); }
input:checked + .slider:before { transform: translateX(22px); }

/* ==================== SETTINGS SECTION ==================== */
.settings-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.settings-section h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 1.5rem; }

.settings-section.danger-zone { border-color: rgba(239, 68, 68, 0.3); }
.settings-section.danger-zone h3 { color: var(--accent-red); }

.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.setting-item label { font-size: 0.85rem; color: var(--text-secondary); }
.setting-item input[type="number"] {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* ==================== DATA TABLE ==================== */
.data-table-container {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    background: var(--bg-tertiary);
    padding: 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.status-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}
.status-badge.pending { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }
.status-badge.completed, .status-badge.paid, .status-badge.active { background: rgba(16, 185, 129, 0.15); color: var(--accent-secondary); }
.status-badge.inactive { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

.action-buttons { display: flex; gap: 0.5rem; }
.btn-icon {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-icon:hover { background: var(--accent-primary); border-color: var(--accent-primary); }
.btn-icon.danger:hover { background: var(--accent-red); border-color: var(--accent-red); }

/* ==================== PYRAMID ==================== */
.pyramid-visual {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.pyramid-level {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}
.pyramid-level.level-1 { border-left: 4px solid var(--accent-secondary); }
.pyramid-level.level-2 { border-left: 4px solid var(--accent-primary); margin-left: 2rem; }
.pyramid-level.level-3 { border-left: 4px solid var(--accent-gold); margin-left: 4rem; }

.level-icon { font-size: 1.5rem; }
.level-info { flex: 1; }
.level-info h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.level-info p { font-size: 0.85rem; color: var(--text-secondary); }

.level-rate { display: flex; align-items: center; gap: 0.5rem; }
.level-rate input {
    width: 70px;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}
.level-rate span { font-size: 1rem; color: var(--text-secondary); }

.pyramid-connector { width: 2px; height: 20px; background: var(--border-color); margin-left: 3rem; }

.pyramid-example {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.pyramid-example h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }

.example-breakdown { display: flex; flex-direction: column; gap: 0.5rem; }
.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}
.breakdown-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-weight: 600;
    color: var(--accent-secondary);
}

/* ==================== BRANDING ==================== */
.branding-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.branding-section h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 1.5rem; }

.color-pickers { display: flex; gap: 2rem; flex-wrap: wrap; }
.color-picker-item { display: flex; flex-direction: column; gap: 0.5rem; }
.color-picker-item label { font-size: 0.85rem; color: var(--text-secondary); }

.color-input-group { display: flex; gap: 0.5rem; align-items: center; }
.color-input-group input[type="color"] {
    width: 50px; height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: transparent;
}
.color-input-group input[type="text"] {
    width: 90px;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.85rem;
}

.branding-preview {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-secondary:hover { background: var(--bg-card); color: var(--text-primary); }

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-danger:hover { background: var(--accent-red); color: white; }

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease;
}
.modal-content.small { max-width: 400px; }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.25rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.modal-close:hover { color: var(--text-primary); }

.modal-body { padding: 1.5rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 1rem; padding: 1.5rem; border-top: 1px solid var(--border-color); }

/* ==================== FORM ==================== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-secondary); }
.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent-primary); }
.form-group input:read-only { opacity: 0.6; cursor: not-allowed; }

input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 2rem; right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-secondary);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition);
    z-index: 2000;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-message { font-size: 0.9rem; font-weight: 500; color: var(--accent-secondary); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .games-config-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: block; }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .games-config-grid { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .page-content { padding: 1rem; }
    .main-header { padding: 0 1rem; }
    .pyramid-level.level-2, .pyramid-level.level-3 { margin-left: 0; }
    .rewards-summary, .commissions-summary { flex-direction: column; }
    .color-pickers { flex-direction: column; }
}
