/* Base styles - shared across all pages */
:root {
    --bg-dark: #1a2332;
    --bg-darker: #0f1621;
    --card-dark: #263447;
    --yellow: #ffc107;
    --green: #10b981;
    --blue: #3b82f6;
    --red: #ef4444;
}

[data-bs-theme="light"] {
    --bg-dark: #f0f2f5;
    --bg-darker: #ffffff;
    --card-dark: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: background 0.3s ease;
}

[data-bs-theme="light"] body {
    color: #333;
}

/* Top Navigation */
.top-nav {
    background: var(--bg-darker);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

[data-bs-theme="light"] .top-nav {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.logo {
    background: var(--yellow);
    color: #000;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.2rem;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-btn.wallet {
    background: var(--green);
    color: #fff;
}

.nav-btn.user {
    background: var(--card-dark);
    color: #fff;
}

[data-bs-theme="light"] .nav-btn.user {
    color: #000;
}

.nav-btn.menu {
    background: var(--yellow);
    color: #000;
}

.nav-btn.back {
    background: var(--card-dark);
    color: #fff;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-darker);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}

[data-bs-theme="light"] .sidebar {
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
}

.sidebar.show {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

[data-bs-theme="light"] .sidebar-header {
    border-bottom-color: rgba(0,0,0,0.1);
}

.sidebar-profile {
    background: var(--card-dark);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    color: inherit;
}

.sidebar-profile:hover {
    background: rgba(255,193,7,0.1);
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sidebar-menu {
    padding: 0 1rem;
}

.menu-section {
    margin-bottom: 1.5rem;
}

.menu-section-title {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

[data-bs-theme="light"] .menu-section-title {
    color: rgba(0,0,0,0.4);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
    color: #fff;
    text-decoration: none;
}

[data-bs-theme="light"] .menu-item {
    color: #333;
}

.menu-item:hover {
    background: var(--card-dark);
    color: var(--yellow) !important;
}

.menu-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.menu-item-icon.yellow {
    background: var(--yellow);
    color: #000;
}

.menu-item-icon.blue {
    background: #3b82f6;
    color: #fff;
}

.menu-item-icon.red {
    background: #ef4444;
    color: #fff;
}

.menu-item-icon.green {
    background: var(--green);
    color: #fff;
}

.menu-item-icon.dark {
    background: var(--card-dark);
    color: var(--yellow);
}

.menu-item-content {
    flex: 1;
}

.menu-item-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.menu-item-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

[data-bs-theme="light"] .menu-item-subtitle {
    color: rgba(0,0,0,0.5);
}

.soon-badge {
    background: var(--card-dark);
    color: rgba(255,255,255,0.6);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

[data-bs-theme="light"] .soon-badge {
    background: #e0e0e0;
    color: rgba(0,0,0,0.6);
}

.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin: 1rem;
    background: var(--card-dark);
    border-radius: 12px;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: var(--yellow);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(28px);
}

.sign-out {
    margin: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    border: none;
    width: calc(100% - 2rem);
    font-size: 1rem;
}

.sidebar-footer {
    padding: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

[data-bs-theme="light"] .sidebar-footer {
    color: rgba(0,0,0,0.3);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
    text-decoration: none;
}

.whatsapp-float .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Container */
.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    padding-bottom: 4rem;
}
