/* ==========================================================================
   The Vido - DARK GAMING & GOLD HIGH-YIELD THEME
   Deep Charcoal/Navy (#070B0E) + Warm Golden Amber (#FFB000 / #F59E0B)
   ========================================================================== */

:root {
    --bg-primary: #070B0E;
    --bg-secondary: #0A0F14;
    --bg-card: #0E141A;
    --bg-card-hover: #141B22;
    --bg-surface: #121820;
    --bg-input: #0b1016;

    --accent-gold: #FFB000;
    --accent-gold-hover: #F59E0B;
    --accent-amber: #D97706;
    --accent-gold-glow: rgba(255, 176, 0, 0.28);
    --accent-gold-dim: rgba(245, 158, 11, 0.12);

    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --text-gold: #FFB000;

    --border-subtle: #1F2937;
    --border-gold: rgba(245, 158, 11, 0.35);
    --border-gold-glow: rgba(255, 176, 0, 0.5);

    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;

    --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(217, 119, 6, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(255, 176, 0, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Subtle background stars/dots overlay */
.bg-stars {
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
}

.bg-ambient-glow {
    position: relative;
}
.bg-ambient-glow::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.heading-xl {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.heading-lg {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    text-transform: uppercase;
}

.heading-md {
    font-size: 1.5rem;
    font-weight: 700;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.text-gold-gradient {
    background: linear-gradient(135deg, #FFB000 0%, #FFE082 50%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overline-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-gold {
    background: linear-gradient(135deg, #FFB000 0%, #F59E0B 100%);
    color: #000000;
    box-shadow: 0 4px 18px var(--accent-gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
    color: #000000;
}

.btn-gold-outline {
    background: transparent;
    color: var(--accent-gold);
    border: 1.5px solid var(--accent-gold);
}

.btn-gold-outline:hover {
    background: var(--accent-gold-dim);
    color: #FFFFFF;
    border-color: #FFB000;
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-dark:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    color: var(--accent-gold);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.825rem;
    border-radius: var(--radius-full);
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Cards & Surfaces */
.card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-dark:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
}

.card-gold-highlight {
    background: linear-gradient(145deg, #FFB000 0%, #F59E0B 100%);
    color: #070B0E;
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 8px 30px var(--accent-gold-glow);
}

.card-gold-highlight h1, 
.card-gold-highlight h2, 
.card-gold-highlight h3, 
.card-gold-highlight p {
    color: #070B0E;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-gold {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
    border: 1px solid var(--border-gold);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-glow);
    background: var(--bg-card);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    background-color: var(--bg-input);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Custom Checkbox / Switch */
.form-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

/* Header & Navbar */
.site-header {
    background: rgba(7, 11, 14, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.brand-logo .gold-mark {
    color: var(--accent-gold);
}

.brand-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFB000 0%, #D97706 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #070B0E;
    font-size: 1.25rem;
    font-weight: 900;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    background: var(--accent-gold-dim);
    border: 1px solid var(--border-gold);
    color: var(--accent-gold);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 1.5rem 0 2.25rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-card {
    background: linear-gradient(160deg, #141B22 0%, #0E141A 100%);
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-gold-dim);
    position: relative;
    width: 100%;
    max-width: 440px;
}

/* 3-Column How It Works Section */
.steps-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(14, 20, 26, 0.5);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
    position: relative;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 176, 0, 0.2) 0%, rgba(14, 20, 26, 0.8) 70%);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-gold);
    box-shadow: 0 0 20px var(--accent-gold-glow);
}

.step-number {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-gold);
    color: #070B0E;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
}

/* Investment Plans Grid */
.plans-section {
    padding: 5.5rem 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card.featured {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 35px var(--accent-gold-dim);
    background: linear-gradient(180deg, #141B22 0%, #0E141A 100%);
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.plan-profit-rate {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent-gold);
    line-height: 1;
    margin: 1.25rem 0 0.25rem;
}

.plan-features-list {
    list-style: none;
    margin: 1.75rem 0;
    padding: 0;
    flex-grow: 1;
}

.plan-features-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.plan-features-list li span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* Statistics Strip */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 4rem 0;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.5rem;
    text-align: center;
}

.stat-figure {
    font-size: clamp(1.3rem, 1.85vw, 1.9rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.4rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.card-gold-highlight .stat-figure {
    font-size: clamp(1.35rem, 1.9vw, 1.95rem) !important;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* FAQs 2-Column Accordion */
.faq-section {
    padding: 5rem 0;
}

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

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-gold);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.925rem;
    display: none;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Footer */
.site-footer {
    background: #05080B;
    border-top: 1px solid var(--border-subtle);
    padding: 4.5rem 0 2rem;
    color: var(--text-secondary);
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-col h5 {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   DASHBOARD & LTE COLLAPSIBLE LAYOUT (USER & ADMIN)
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    width: 270px;
    background: #080D12;
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

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

.sidebar-user {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sidebar-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB000 0%, #D97706 100%);
    color: #070B0E;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sidebar-nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    padding: 1.25rem 1.5rem 0.5rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0.5rem 0.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.925rem;
    transition: var(--transition);
}

.sidebar-item a i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.sidebar-item a:hover {
    background: rgba(255, 176, 0, 0.08);
    color: #FFFFFF;
}

.sidebar-item a:hover i {
    color: var(--accent-gold);
}

.sidebar-item.active a {
    background: linear-gradient(90deg, rgba(255, 176, 0, 0.18) 0%, rgba(255, 176, 0, 0.04) 100%);
    color: var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
}

.sidebar-item.active a i {
    color: var(--accent-gold);
}

/* Collapsed Sidebar (Fold / Unfold) */
.app-layout.sidebar-folded .app-sidebar {
    width: 80px;
}
.app-layout.sidebar-folded .sidebar-header .brand-text,
.app-layout.sidebar-folded .sidebar-user .user-info,
.app-layout.sidebar-folded .sidebar-nav-section-title,
.app-layout.sidebar-folded .sidebar-item a span,
.app-layout.sidebar-folded .sidebar-item a .menu-badge {
    display: none;
}
.app-layout.sidebar-folded .app-main {
    margin-left: 80px;
}

/* Main Content Area */
.app-main {
    flex: 1;
    margin-left: 270px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-topbar {
    background: rgba(8, 13, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.9rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.sidebar-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.sidebar-toggle-btn:hover {
    border-color: var(--border-gold);
    color: var(--accent-gold);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.wallet-badge {
    background: rgba(255, 176, 0, 0.1);
    border: 1px solid var(--border-gold);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.app-content {
    padding: 2rem;
    flex: 1;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.7rem;
    font-weight: 800;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.925rem;
}

.custom-table th {
    background: #080D12;
    padding: 1rem 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.custom-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    vertical-align: middle;
}

.custom-table tr:hover td {
    background: rgba(255, 176, 0, 0.03);
}

/* Alerts / Flash Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34D399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #F87171;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FBBF24;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60A5FA;
}

/* Binance-Style P2P Trading Components */
.p2p-badge-tab {
    display: inline-flex;
    padding: 0.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
}

.p2p-badge-tab button, .p2p-badge-tab a {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: none;
    background: transparent;
    cursor: pointer;
}

.p2p-badge-tab button.active, .p2p-badge-tab a.active {
    background: var(--accent-gold);
    color: #070B0E;
}

.p2p-trade-box {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.chat-box {
    height: 380px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.chat-bubble.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, #FFB000 0%, #F59E0B 100%);
    color: #070B0E;
    font-weight: 500;
}

.chat-bubble.other {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.chat-bubble.system {
    align-self: center;
    background: rgba(255, 176, 0, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--accent-gold);
    font-size: 0.8rem;
    text-align: center;
}

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

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

.modal-content {
    background: #0E141A;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-gold-glow);
    transform: scale(0.95);
    transition: var(--transition);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: #0E141A;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    min-width: 200px;
    padding: 0.5rem;
    list-style: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1100;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(255, 176, 0, 0.1);
    color: var(--accent-gold);
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER, SIDEBAR BACKDROP & BULLETPROOF RESPONSIVENESS
   ========================================================================== */
html {
    overflow-x: hidden;
    max-width: 100%;
}

.app-main {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.app-content,
.card-dark,
.card-gold-highlight,
.stat-box,
.plan-card {
    min-width: 0;
}

/* Ensure any CSS grid children never blow out viewport width */
[style*="display: grid"] > *,
.hero-grid > *,
.steps-grid > *,
.plans-grid > *,
.stats-strip > *,
.faq-grid > *,
.footer-grid > * {
    min-width: 0;
}

/* Smooth horizontal touch scroll for data tables */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.custom-table th {
    white-space: nowrap;
}

/* Frontend Mobile Menu Toggle & Drawer */
.mobile-menu-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    color: var(--accent-gold);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: var(--accent-gold-dim);
}

.mobile-nav-drawer {
    display: none;
    background: #080D12;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-gold);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.mobile-nav-drawer.open {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    background: rgba(255, 176, 0, 0.1);
    color: var(--accent-gold);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

/* Dashboard Sidebar Backdrop & Close Button */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    z-index: 1040;
}

.sidebar-backdrop.active {
    display: block;
}

.sidebar-close-btn {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

.sidebar-close-btn:hover {
    color: var(--accent-gold);
    border-color: var(--border-gold);
}

/* Pagination styling (Laravel Tailwind-free fallback) */
nav[role="navigation"] svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

nav[role="navigation"] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

/* Tablet & Mobile Breakpoint (<= 992px) */
@media (max-width: 992px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .hide-mobile,
    .d-none-sm {
        display: none !important;
    }

    .sidebar-close-btn {
        display: inline-flex;
    }

    .hero-section {
        padding: 3rem 0 2.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 1rem;
    }

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

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Collapse all inline 2-col and 3-col grids gracefully on tablets & phones */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .app-sidebar {
        transform: translateX(-100%);
        width: 280px !important;
        max-width: 85vw;
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.85);
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
    }

    .app-layout.sidebar-folded .app-sidebar .brand-text,
    .app-layout.sidebar-folded .app-sidebar .user-info,
    .app-layout.sidebar-folded .app-sidebar .sidebar-nav-section-title,
    .app-layout.sidebar-folded .app-sidebar .sidebar-item a span,
    .app-layout.sidebar-folded .app-sidebar .sidebar-item a .menu-badge {
        display: initial;
    }

    .app-main {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* Smartphone Breakpoint (<= 640px) */
@media (max-width: 640px) {
    .hide-xs {
        display: none !important;
    }

    .header-container,
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .brand-logo {
        font-size: 1.05rem;
        gap: 0.45rem;
    }

    .sidebar-header {
        gap: 0.75rem;
        padding: 1rem 1.15rem;
    }

    .sidebar-header .brand-logo {
        font-size: 1.05rem !important;
    }

    .brand-logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .stats-strip {
        grid-template-columns: 1fr !important;
    }

    .stat-figure {
        font-size: 1.75rem !important;
        word-break: break-word;
    }

    .plans-grid {
        grid-template-columns: 1fr !important;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.85rem;
    }

    .app-content {
        padding: 1rem;
    }

    .app-topbar {
        padding: 0.7rem 0.85rem;
        gap: 0.5rem;
    }

    .topbar-left {
        gap: 0.65rem;
    }

    .topbar-right {
        gap: 0.6rem;
    }

    .wallet-badge {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .page-header {
        margin-bottom: 1.25rem;
    }

    .page-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .card-dark,
    .card-gold-highlight,
    .hero-visual-card {
        padding: 1.25rem !important;
    }

    .custom-table th,
    .custom-table td {
        padding: 0.7rem 0.75rem;
        font-size: 0.82rem;
    }

    .btn {
        padding: 0.65rem 1.15rem;
        font-size: 0.88rem;
    }

    .btn-lg {
        padding: 0.85rem 1.4rem;
        font-size: 0.95rem;
    }

    .p2p-badge-tab {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .p2p-badge-tab a,
    .p2p-badge-tab button {
        text-align: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Filter bar inputs fill full width cleanly on phones */
    form[style*="display: flex"] .form-control {
        width: 100% !important;
        max-width: 100% !important;
    }

    .modal-content {
        width: calc(100% - 1.5rem);
        max-height: 90vh;
        overflow-y: auto;
        padding: 1.35rem;
    }

    .chat-box {
        height: 300px !important;
    }

    .alert {
        flex-wrap: wrap;
        font-size: 0.88rem;
        padding: 0.85rem 1rem;
    }
}

/* ==========================================================================
   NATIVE MOBILE APP BOTTOM NAVIGATION BAR (<= 768px)
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(74px + env(safe-area-inset-bottom));
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .app-content {
        padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;
        background: rgba(8, 13, 18, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(245, 158, 11, 0.28);
        padding: 0.45rem 0.25rem calc(0.45rem + env(safe-area-inset-bottom));
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.65);
    }

    .mobile-bottom-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.22rem;
        padding: 0.35rem 0.15rem;
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        border-radius: 10px;
        transition: var(--transition);
        position: relative;
    }

    .mobile-bottom-item i {
        font-size: 1.15rem;
        transition: transform 0.2s ease;
    }

    .mobile-bottom-item.active,
    .mobile-bottom-item:active {
        color: var(--accent-gold);
    }

    .mobile-bottom-item.active i {
        transform: translateY(-1px);
        text-shadow: 0 0 12px var(--accent-gold-glow);
    }

    .mobile-bottom-item.active::after {
        content: '';
        position: absolute;
        top: -0.45rem;
        width: 24px;
        height: 3px;
        background: var(--accent-gold);
        border-radius: 0 0 4px 4px;
        box-shadow: 0 2px 10px var(--accent-gold-glow);
    }

    .mobile-bottom-cta i {
        color: var(--accent-gold);
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   BRAND HIGH-RES TRANSPARENT LOGO, FOOTER APK CARD & MOBILE APK POPUP
   ========================================================================== */
.brand-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 176, 0, 0.35));
    transition: transform 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.06);
}

.hero-emblem-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 0 22px rgba(255, 176, 0, 0.45));
    animation: heroFloat 3.6s ease-in-out infinite;
}

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

.footer-apk-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(135deg, rgba(255, 176, 0, 0.14) 0%, rgba(14, 20, 26, 0.95) 100%);
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-md);
    transition: var(--transition);
    max-width: 310px;
}

.footer-apk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    border-color: var(--accent-gold);
}

.footer-apk-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FFB000 0%, #D97706 100%);
    color: #070B0E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

/* Mobile APK Auto Pop-Up Modal */
.apk-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 9, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.apk-popup-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.apk-popup-card {
    background: linear-gradient(165deg, #131B24 0%, #0A0F14 100%);
    border: 1.5px solid var(--accent-gold);
    border-radius: 24px;
    width: 100%;
    max-width: 410px;
    padding: 1.85rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 36px rgba(255, 176, 0, 0.25);
    transform: translateY(35px);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}

.apk-popup-overlay.open .apk-popup-card {
    transform: translateY(0);
}

.apk-popup-close {
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.apk-popup-close:hover {
    color: var(--accent-gold);
    border-color: var(--border-gold);
}

.apk-popup-logo-wrap {
    width: 82px;
    height: 82px;
    margin: 0 auto 0.9rem;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(255, 176, 0, 0.22) 0%, rgba(7, 11, 14, 0.95) 75%);
    border: 1.5px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(255, 176, 0, 0.3);
}

.apk-popup-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.apk-popup-features {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #FFFFFF;
}

.apk-popup-features span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 0.3rem 0.65rem;
    border-radius: 99px;
}

@media (max-width: 640px) {
    .brand-logo-img {
        width: 34px;
        height: 34px;
    }
}
