/* style.css - Fully Responsive Global Stylesheet for Aurora Globale */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;800;900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Gugi&display=swap');


/* ==========================================================================
   Fonts
   ========================================================================== */
.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.audiowide-regular {
    font-family: "Audiowide", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* ==========================================================================
   Phase 1: Design Tokens (CSS Variables)
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-blue-dark: #0d2b6b;
    --primary-blue-light: #50a1e0;
    /* Sky blue accents and active buttons */
    --primary-blue-accent: #2196f3;
    --bg-gradient: linear-gradient(180deg, #6ba5d7 0%, #153570 100%);
    --card-bg-light: rgba(255, 255, 255, 0.9);
    --text-dark: #111111;
    --text-light: #ffffff;
    --accent-gold: #ffd700;
    --success-green: #4caf50;
    --danger-red: #f44336;

    /* Typography */
    --font-family-base: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    /* Spacing & Layout */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-round: 50%;

    /* Z-Index */
    --z-index-header: 100;
    --z-index-footer: 100;
    --z-index-modal: 1000;

    /* Shadow */
    --box-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --box-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Base Resets & Typography
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    background-color: #f0f4f8;
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 1rem;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
    background: none;
}

/* ==========================================================================
   Responsive Layout Framework
   ========================================================================== */

/* The outer container always spans full screen, managing the background context */
.app-container {
    width: 100%;
    min-height: 100vh;
    background: #d3eeff;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Use this class for screens that have the solid dark background context (e.g. Register) */
.app-container.solid-bg {
    background: var(--primary-blue-dark);
}

/* Inner content bounding box that prevents wide screens from breaking layout spacing */
.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
    padding-bottom: 100px;
    /* Accounts for fixed bottom sticky nav menu */
    box-sizing: border-box;
    flex: 1;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--card-bg-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--box-shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Flex and Grid Layout Utilities */
.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

/* --- Fluid Responsive Utilities for App Pages --- */
.responsive-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Default mobile single column stack */
    gap: var(--spacing-md);
}

/* Button Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
    width: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: #214179;
    color: var(--text-light);
}

.btn-primary:active,
.btn-primary:hover {
    background-color: var(--primary-blue-accent);
}

/* ==========================================================================
   Phase 2: Common Shared Layouts (Fully Adaptive)
   ========================================================================== */

/* Global Header Component */
.global-header {
    background: linear-gradient(90deg, #68b8e9 0%, #3279bb 100%);
    color: var(--text-light);
    position: relative;
    z-index: var(--z-index-header);
    box-shadow: var(--box-shadow-sm);
    width: 100%;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
}

.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-xs);
}

.brand-logo {
    font-family: "Gugi", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo a {
    display: flex;
    align-items: end;
    gap: 8px;
    color: inherit;
}

.brand-logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.header-locale {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
}

.flag-icon {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flag-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Carousel Styles */
.carousel-container1 {
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: 260px;
    border-radius: var(--border-radius-lg);
    /* Rounded corners */
    overflow: hidden;
    position: relative;
    margin: var(--spacing-sm) auto 0;
    /* Center align */
    background-color: #f2f8ff;
    box-shadow: var(--box-shadow-md);
    margin-bottom: -100px;
}



.carousel-container {
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: 200px;
    border-radius: var(--border-radius-lg);
    /* Rounded corners */
    overflow: hidden;
    position: relative;
    margin: var(--spacing-sm) auto 0;
    /* Center align */
    background-color: #cae7ff;
    box-shadow: var(--box-shadow-md);
    margin-bottom: -100px;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    /* Banner images fit - cover */
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    position: relative;
    z-index: 10;
    transform: translateY(70px);
    /* Pulls dots up over the image */
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--border-radius-round);
    background-color: rgba(255, 255, 255, 0.4);
    transition: background-color 0.2s ease;
}

.indicator-dot.active {
    background-color: var(--text-light);
}

/* Global Bottom Navigation Footer Component */
/* ==========================================================================
   Global Bottom Navigation Footer Component (MacBook Dock Variation)
   ========================================================================== */
.global-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: transparent;
    /* Makes background transparent so dock looks floating */
    z-index: var(--z-index-footer);
    pointer-events: none;
    /* Let clicks pass through empty spaces around dock margins */
}

.footer-inner {
    max-width: 600px;
    /* Restricts width on PC monitors so it retains a dock style shape */
    margin: 0 auto;
    padding: 0 var(--spacing-md) calc(10px + env(safe-area-inset-bottom, 0px));
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.55);
    /* Premium glassmorphism base */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    /* Creates smooth rounded dock edges */
    padding: var(--spacing-sm) var(--spacing-md);
    box-shadow: 0 10px 30px rgba(13, 43, 107, 0.2), var(--box-shadow-lg);
    position: relative;
    pointer-events: auto;
    /* Restores click tracking over the navigation elements */
    padding-top: 15px;
    /* Lowers dock grid path line alignment */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #556080;
    font-size: 0.75rem;
    gap: 4px;
    flex: 1;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: var(--spacing-xs) 0;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-blue-dark);
    transform: translateY(-2px);
    /* Subtle MacBook app zoom interaction */
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    /* Balanced icon sizing */
    color: inherit;
}

/* Central elevated "Grab" button wrapper constraints */
.nav-item-center {
    width: 90px;
    height: 50px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.floating-action-btn {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -18px;
    /* Lowers base center into dock grid path line alignment */
    transform: translateY(-20px);
    /* Elevates top arc profile above header horizon safely */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: transparent;
    border: none;
}

.floating-action-btn img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-round);
    object-fit: cover;
    border: 1px solid #3f5268;
    /* Premium physical border outer rim */
}

.floating-action-btn:active {
    transform: translateY(-20px) scale(0.92);
    /* Clean response metric click animations */
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-blue-light);
}

.text-gold {
    color: var(--accent-gold);
}

.text-success {
    color: #214179;
}

.text-danger {
    color: var(--danger-red);
}

.text-muted {
    color: #666666;
}

.font-bold {
    font-weight: bold;
}

.font-semibold {
    font-weight: 600;
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-md);
    color: var(--text-dark);
    transition: background-color 0.2s, border-color 0.2s;
    font-size: 0.95rem;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary-blue-light);
}

.form-control::placeholder {
    color: #888;
}

.input-group {
    display: flex;
    gap: var(--spacing-sm);
}

.input-group .form-control {
    flex: 1;
}

.phone-select {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-md);
    padding: 0 12px;
}

.phone-select select {
    background: transparent;
    padding: 14px 0;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue-light);
    border: 1px solid var(--primary-blue-light);
    padding: 14px 16px;
    white-space: nowrap;
    width: auto;
    font-size: 0.9rem;
}

.btn-secondary:active,
.btn-secondary:hover {
    background-color: rgba(33, 150, 243, 0.1);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-blue-dark);
    text-align: center;
}

.auth-link {
    display: block;
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.auth-link span {
    color: var(--primary-blue-light);
    font-weight: 600;
}

/* Auth Page specific layout positioning */
.auth-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--spacing-lg);
    width: 100%;
}

.auth-wrapper .glass-card {
    width: 100%;
    max-width: 440px;
    /* Restricts login panel card from getting awkwardly wide on PC */
}

/* ==========================================================================
   Phase 3: Media Queries for Desktop Layout Enhancement (PC Optimization)
   ========================================================================== */
@media (min-width: 768px) {

    /* Broaden application page layout grids dynamically on monitors */
    .responsive-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--spacing-lg);
    }

    /* Optimized sub-sections for screens like Dashboard Tiers or Wallet Views */
    .business-hall-grid-base.business-hall-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }

    .carousel-container {
        max-height: 300px;
    }

    /* Keep footer navigation items closer together on large screens */
    .footer-nav {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Dashboard Specific Layouts
   ========================================================================== */
.content-wrapper {
    flex: 1;
    padding: var(--spacing-md);
    overflow-y: auto;
    padding-bottom: 190px;
    /* Space for sticky footer */
}

.alert-banner {
    /* background-color: rgba(255, 235, 59, 0.15); */
    color: #1f3173;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    font-weight: 500;
    justify-content: center;
    padding-top: 110px;
}

.financial-toggles {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.financial-toggles .btn {
    flex: 1;
    background-color: var(--card-bg-light);
    color: var(--primary-blue-dark);
    box-shadow: var(--box-shadow-sm);
    font-size: 1.3rem;
    padding: 12px;
}

.financial-toggles .btn:hover,
.financial-toggles .btn:active {
    background-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-md);
}

.financial-toggles .btn-add-funds {
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue-dark));
    color: var(--text-light);
    border: none;
}

.financial-toggles .btn-add-funds:hover,
.financial-toggles .btn-add-funds:active {
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue-dark));
    color: var(--text-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    line-height: 1.4rem;
    padding-top: 10px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1rem;
    color: #1e2761;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgb(23 41 97);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--box-shadow-sm);
    transition: transform 0.2s;
    color: #ffffff;
}

.feature-item:hover .feature-icon-wrapper {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}

/* Dashboard Features Section - Mobile First */
.dashboard-features-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.user-level-banner {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border-radius: var(--border-radius-lg);
    padding: 16px 24px;
    color: #0d2b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.level-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.level-icon {
    font-size: 2.5rem;
    color: #0d2b6b;
}

.level-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.level-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-num {
    font-family: 'Audiowide', 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.feature-grid.buttons-only {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 0;
}

/* Desktop Mode Layout for Dashboard Features */
@media (min-width: 768px) {
    .dashboard-features-section {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-xl);
    }

    .user-level-banner {
        flex: 0 0 auto;
        min-width: 575px;
        justify-content: flex-start;
    }

    .feature-grid.buttons-only {
        flex: 1;
        display: flex;
        justify-content: space-between;
    }
}

.ref-banner {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* Desktop: crops to fill */
}

@media (max-width: 1200px) {
    .ref-banner {
        object-fit: contain;
    }
}

.referral-banner {
    background: linear-gradient(135deg, #1e2761 0%, #0d1b3e 100%);
    border-radius: var(--border-radius-lg);
    padding: 16px 24px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 8px 24px rgba(13, 43, 107, 0.25);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.referral-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(80, 161, 224, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.referral-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13, 43, 107, 0.3);
}

.referral-banner:active {
    transform: scale(0.98);
}

.referral-content {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.referral-icon {
    width: 55px;
    height: 55px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.referral-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .referral-text {
        font-size: 1rem;
    }
}

.referral-text::after {
    content: 'Earn rewards together!';
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-gold);
    margin-top: 2px;
    text-shadow: none;
    letter-spacing: 0;
}

.referral-arrow {
    color: var(--accent-gold);
    font-size: 1.2rem;
    z-index: 1;
    background: rgba(255, 215, 0, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.referral-banner:hover .referral-arrow {
    background: var(--accent-gold);
    color: #1e2761;
    transform: translateX(4px);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d2b6b;
    margin-top: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title1 {
    font-family: "Gugi", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: #162966;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .section-title1 {
        font-size: 1.8rem;
    }
}

/* Base business hall grid for mobile */
.business-hall-grid-base {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.tier-card {
    background: var(--card-bg-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    box-shadow: var(--box-shadow-md);
    position: relative;
}

.tier-card:last-child {
    margin-bottom: 0px;
}

.tier-card.locked {
    opacity: 0.85;
}

.large-lock-icon {
    position: absolute;
    top: 61%;
    left: 91%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--primary-blue-dark);
    opacity: 0.1;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: var(--spacing-xs);
    font-weight: 800;
    color: var(--primary-blue-dark);
    font-size: 1.25rem;
}

.tier-level {
    background: #1e2761;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
}

.tier-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.metric-value {
    font-weight: 700;
    color: var(--primary-blue-dark);
}

/* ==========================================================================
   Portfolio Layout (3a) Specific Layouts
   ========================================================================== */

.portfolio-metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .portfolio-metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.metric-summary-card {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(220, 240, 255, 0.6) 100%);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: var(--spacing-xs);
}

.metric-icon {
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
}

.metric-title-group {
    display: flex;
    flex-direction: column;
}

.metric-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.metric-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.metric-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--spacing-xs);
}

.metric-body .metric-value {
    font-size: 2rem;
    font-weight: 800;
}

.metric-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Team Performance Details Table styling */
.team-details-card {
    padding: var(--spacing-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(230, 245, 255, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 1);
}

.data-table-list {
    display: flex;
    flex-direction: column;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.data-divider {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
}

.data-label {
    color: var(--text-dark);
    font-weight: 500;
}

.data-value {
    color: var(--text-dark);
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-blue-light);
    border-radius: var(--border-radius-lg);
    transition: width 0.3s ease;
}

/* ==========================================================================
   Utility Spacing Classes
   ========================================================================== */
.mt-xs {
    margin-top: var(--spacing-xs);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-xs {
    margin-bottom: var(--spacing-xs);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.pb-xs {
    padding-bottom: var(--spacing-xs);
}

.pb-sm {
    padding-bottom: var(--spacing-sm);
}

.border-bottom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Group Info / Referral Specific Layouts
   ========================================================================== */

/* Referral Token Display Card */
.referral-token-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--box-shadow-sm);
    margin-bottom: var(--spacing-md);
}

.referral-token-card .token-header {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.referral-token-card .token-box {
    background: #eef5fb;
    border: 1px solid #b8d4f0;
    border-radius: var(--border-radius-sm);
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.invite-code {
    grid-column: 2;
    font-family: 'poppins-black', sans-serif;
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    letter-spacing: 2px;
    font-weight: 900;
    color: #0d2b6b;
    text-align: center;
    white-space: nowrap;
}

.btn-copy {
    grid-column: 3;
    justify-self: end;
    color: #333333;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    transition: color 0.2s;
    white-space: nowrap;
}

/* Small screens (phones) */
@media (max-width: 640px) {
    .btn-copy {
        font-size: 0.8rem;
    }
}



.btn-copy:hover,
.btn-copy:active {
    color: #0d2b6b;
}

.btn-share {
    background-color: #50a1e0;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    width: 100%;
}

/* Roadmap Flow Progress */
.progress-flow-container {
    position: relative;
    padding: 20px 0 10px 0;
    margin-bottom: var(--spacing-lg);
}

.flow-track {
    position: absolute;
    top: 60px;
    /* Centered with the icon outer rings */
    left: 15%;
    right: 15%;
    height: 6px;
    background: #264b8e;
    z-index: 1;
}

.flow-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding: 0 10%;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    max-width: 160px;
}

.node-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* background: #eef5fb; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    /* border: 4px solid #cdd6e0; */
    transition: all 0.3s ease;
}

.flow-node.complete .node-icon-wrapper {
    border-color: #ffffff;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(38, 75, 142, 0.15);
}

.node-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.node-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flow-node.complete .node-badge {
    background-color: #264b8e;
}

.flow-node.pending .node-badge {
    background-color: #d4af37;
    /* Gold color for the lock */
}

.node-label-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 6px;
}

.node-label-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1a202c;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.node-label-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: #718096;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.node-label-status {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 95%;
    max-width: 130px;
    margin: 0 auto;
    padding: 4px 8px;
    border-radius: 5px;
    gap: 3px;
    box-sizing: border-box;
}

.flow-node.complete .node-label-status {
    background-color: #ffffff96;
    color: #264b8e;
    border: 1px solid rgba(38, 75, 142, 0.15);
}

.flow-node.pending .node-label-status {
    background-color: rgba(102, 102, 102, 0.05);
    color: #718096;
    border: 1px solid rgba(102, 102, 102, 0.1);
    font-weight: normal;
}

.node-label-amount {
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 95%;
    max-width: 130px;
    border-radius: 5px;
    padding: 4px 8px;
    box-sizing: border-box;
    text-transform: uppercase;
}

.flow-node.complete .node-label-amount {
    background-color: #21d32857;
    color: #215424;
    border: 1px solid rgba(76, 175, 80, 0.15);
}

.flow-node.pending .node-label-amount {
    background-color: rgba(80, 161, 224, 0.08);
    color: #264b8e;
    border: 1px solid rgba(80, 161, 224, 0.15);
}

/* Responsive styles for smaller screens (Mobile) */
@media (max-width: 640px) {
    .progress-flow-container {
        padding: 15px 0 5px 0;
    }

    .flow-track {
        top: 45px;
        height: 4px;
        left: 15%;
        right: 15%;
    }

    .flow-nodes {
        padding: 0 5%;
    }

    .node-icon-wrapper {
        width: 60px;
        height: 60px;
        border-width: 3px;
        margin-bottom: 8px;
    }

    .node-badge {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        bottom: -3px;
        right: -3px;
        border-width: 1.5px;
    }

    .node-label-container {
        gap: 4px;
    }

    .node-label-title {
        font-size: 0.75rem;
        height: 14px;
    }

    .node-label-subtitle {
        font-size: 0.6rem;
        height: 12px;
    }

    .node-label-status {
        font-size: 0.68rem;
        min-height: 28px;
        height: auto;
        max-width: 100px;
        border-radius: 4px;
        padding: 3px 6px;
    }

    .node-label-amount {
        font-size: 0.68rem;
        min-height: 24px;
        height: auto;
        max-width: 100px;
        border-radius: 4px;
        padding: 3px 6px;
    }
}

/* Multi-level Commission Tier Summary */
.commission-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: #214179;
    color: white;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.commission-summary-col {
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.commission-summary-col.no-border-right,
.commission-summary-col:last-child {
    border-right: none;
}

.commission-summary-col.title-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.commission-summary-col.value-col {
    padding-top: 8px;
}

.commission-summary-title {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0;
    opacity: 0.9;
}

.commission-summary-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.commission-summary-subvalue {
    font-size: 0.65rem;
    opacity: 0.8;
}

.commission-tiers-list {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--box-shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
}

.commission-tiers-header {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-blue-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
}

.commission-tiers-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-blue-light);
    border-radius: 2px;
}

.commission-tier-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: #f4f9ff;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.commission-tier-row:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-color: rgba(80, 161, 224, 0.2);
}

.commission-tier-row .tier-name {
    font-weight: 700;
    color: #1d2d50;
}

.commission-tier-row .tier-value {
    font-weight: 800;
    color: #264b8e;
    background: rgba(38, 75, 142, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(38, 75, 142, 0.15);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.commission-tier-row.highlight {
    background: linear-gradient(135deg, #153570 0%, #264b8e 100%);
    color: white;
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    margin: 12px 0;
    box-shadow: 0 4px 15px rgba(38, 75, 142, 0.25);
    border: 1px solid #153570;
    transform: scale(1.015);
}

.commission-tier-row.highlight:hover {
    transform: scale(1.015) translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(38, 75, 142, 0.35);
}

.commission-tier-row.highlight .tier-name {
    color: #ffffff;
}

.commission-tier-row.highlight .tier-value {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.35);
}

/* ==========================================================================
   Wheel of Fortune Gamification Styles
   ========================================================================== */

/* Tooltip Styles */
.fab-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(20, 20, 20, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.floating-action-btn:hover .fab-tooltip,
.floating-action-btn:active .fab-tooltip {
    opacity: 1;
}

/* Wheel Modal Overlay */
.wheel-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.wheel-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wheel-modal-overlay.active .wheel-container {
    transform: scale(1);
}

@keyframes wheelGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.5);
    }
}

@keyframes pointerPulse {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    }

    50% {
        transform: translateX(-50%) translateY(-5px);
        filter: drop-shadow(0 8px 12px rgba(255, 215, 0, 0.8));
    }
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid var(--accent-gold);
    /* 5 sections: 0.5, 1, 2, 5, 10 USDT -> each 72 degrees */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%),
        conic-gradient(#e74c3c 0deg 72deg,
            #f1c40f 72deg 144deg,
            #2ecc71 144deg 216deg,
            #3498db 216deg 288deg,
            #9b59b6 288deg 360deg);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 4s cubic-bezier(0.1, 0.8, 0.1, 1);
    position: relative;
    overflow: hidden;
    animation: wheelGlow 2s infinite alternate ease-in-out;
}

.wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, #fff, var(--accent-gold));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.wheel-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: rotate(calc(var(--i) * 72deg + 36deg));
}

.wheel-segment span {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    display: inline-block;
    letter-spacing: 1px;
}


.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #ffffff;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    animation: pointerPulse 2s infinite ease-in-out;
}

.wheel-close {
    position: absolute;
    top: -45px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.wheel-close:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    transform: scale(1.1);
}

.wheel-message {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 360px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-align: center;
    line-height: 1.3;
}

.wheel-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.wheel-message small {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #e0e0e0;
    margin-top: 8px;
    line-height: 1.4;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Confetti Container */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10000;
}

/* ==========================================================================
   Home Page Specific Overrides (Moved from index.php)
   ========================================================================== */

/* Responsive Grid adjustment for 3 nodes on desktop */
@media (min-width: 992px) {
    .business-hall-grid-base.business-hall-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (min-width: 768px) {
    .journey-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 768px) {
    .process-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.hero-banner {
    background: linear-gradient(135deg, rgba(21, 53, 112, 0.95) 0%, rgba(13, 43, 107, 0.85) 100%);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-banner .section-title1 {
    color: #ffffff;
}

.hero-banner .text-muted {
    color: #d0e1fd;
}

.hero-banner .text-primary {
    color: var(--primary-blue-light);
}

/* Team Section Overrides */
.team-member-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    background: rgba(255, 255, 255, 0.6);
}

.team-image-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-blue-light);
    box-shadow: var(--box-shadow-md);
    transition: border-color 0.3s ease;
}

.team-member-card:hover .team-image-wrapper {
    border-color: var(--primary-blue-dark);
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: 15px;
}

.social-link {
    color: #556080;
    font-size: 1.2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    color: var(--primary-blue-accent);
    transform: scale(1.15);
}

@media (min-width: 992px) {
    .team-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: var(--spacing-lg);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .team-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-lg);
    }
}

/* Contact Section Styles */
.contact-section {
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    color: var(--primary-blue-dark);
    position: relative;
    padding-bottom: 8px;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-blue-accent);
    border-radius: 2px;
}

.contact-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.contact-icon {
    font-size: 1.25rem;
    color: var(--primary-blue-accent);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 150, 243, 0.12);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.contact-text a {
    color: var(--primary-blue-dark);
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-text a:hover {
    color: var(--primary-blue-accent);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.45);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.contact-form .form-control {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
}

.contact-form .form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary-blue-accent);
}

.contact-form .form-control::placeholder {
    color: #888888;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--spacing-xl);
    }
}

/* Contact Section - Hero Banner Variation */
.contact-section.hero-banner {
    color: var(--text-light);
}

.contact-section.hero-banner .contact-title {
    color: #ffffff;
}

.contact-section.hero-banner .contact-title::after {
    background-color: var(--primary-blue-light);
}

.contact-section.hero-banner .contact-desc {
    color: #d0e1fd;
}

.contact-section.hero-banner .contact-icon {
    color: var(--primary-blue-light);
    background: rgba(255, 255, 255, 0.1);
}

.contact-section.hero-banner .contact-text {
    color: #ffffff;
}

.contact-section.hero-banner .contact-text a {
    color: #d0e1fd;
}

.contact-section.hero-banner .contact-text a:hover {
    color: #ffffff;
}

.contact-section.hero-banner .contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section.hero-banner .contact-form .form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.contact-section.hero-banner .contact-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-blue-light);
}

.contact-section.hero-banner .contact-form .form-control::placeholder {
    color: #d0e1fd;
    opacity: 0.6;
}

/* Certificate Hero Section Styles */
.certificate-section {
    background: linear-gradient(135deg, rgba(13, 43, 107, 0.95) 0%, rgba(8, 25, 66, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.certificate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: left;
    align-items: center;
}

.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(33, 150, 243, 0.2);
    color: var(--primary-blue-light);
    padding: 6px 12px;
    border-radius: var(--border-radius-round);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(33, 150, 243, 0.3);
    width: fit-content;
}

.reg-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.reg-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reg-label {
    font-size: 0.75rem;
    color: #d0e1fd;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.reg-value {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
}

.certificate-thumbnail-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-thumbnail-card {
    position: relative;
    max-width: 280px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

.certificate-thumbnail-card:hover {
    transform: scale(1.03) translateY(-5px);
    border-color: var(--primary-blue-light);
}

.cert-thumb-img {
    width: 100%;
    height: auto;
    display: block;
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 43, 107, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
}

.certificate-thumbnail-card:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay i {
    font-size: 2rem;
}

.cert-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox Modal Styles */
.cert-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 59, 0.95);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.cert-lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.cert-modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-modal-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 4px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cert-lightbox-modal.active .cert-modal-img {
    transform: scale(1);
}

.cert-modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

.cert-modal-close:hover {
    color: var(--primary-blue-light);
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .certificate-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--spacing-xl);
    }
}

/* Earning Rules Infographic Styles */
.earning-rules-section {
    font-family: 'Poppins', sans-serif;
    color: #0d2b6b;
}

.earning-hero {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.earning-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 1px;
}

.earning-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.earning-callout {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: #ffffff;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: left;
}

.earning-callout .callout-icon {
    background: var(--primary-blue);
    color: #2957a4;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .earning-title {
        font-size: 1.8rem;
    }

    .earning-callout {
        flex-direction: row;
        text-align: center;
        font-size: 0.75rem;
    }
}

.section-divider {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(13, 43, 107, 0.15), transparent);
}

.section-heading {
    font-family: 'Gugi', sans-serif;
    font-size: 1.6rem;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Bonus Cards */
.bonus-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .bonus-cards-grid {
        grid-template-columns: 1fr;
    }
}

.bonus-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 10px 25px rgba(13, 43, 107, 0.05);
    border: 1.5px solid #e1eaf7;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bonus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(13, 43, 107, 0.12);
}

.bonus-card-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.badge-icon {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.level-info-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.level-label {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-transform: none;
    white-space: nowrap;
    text-align: center;
}

.level-percent {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.bonus-card-divider {
    width: 45px;
    height: 3px;
    border-radius: 2px;
    margin: 14px auto;
}

.level-desc-box {
    padding: 14px 18px;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-desc {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

/* Tier-specific custom colors, gradients, and shadows */
/* Level 1 - Gold / Orange theme */
.bonus-card-level-1 .level-label {
    background: linear-gradient(135deg, #ffae19 0%, #ff6f00 100%);
    box-shadow: 0 4px 10px rgba(255, 111, 0, 0.3);
}

.bonus-card-level-1 .level-percent {
    color: #ff7b00;
    text-shadow: 0 2px 4px rgba(255, 111, 0, 0.08);
}

.bonus-card-level-1 .bonus-card-divider {
    background-color: #ff9800;
}

.bonus-card-level-1 .level-desc-box {
    background-color: #fff6ef;
    /* Light peach tint matching screenshot */
}

/* Level 2 - Silver / Blue theme */
.bonus-card-level-2 .level-label {
    background: linear-gradient(135deg, #5ca4ff 0%, #1d4ed8 100%);
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
}

.bonus-card-level-2 .level-percent {
    color: #1e40af;
    text-shadow: 0 2px 4px rgba(29, 78, 216, 0.08);
}

.bonus-card-level-2 .bonus-card-divider {
    background-color: #3b82f6;
}

.bonus-card-level-2 .level-desc-box {
    background-color: #eff6ff;
    /* Light blue tint */
}

/* Level 3 - Bronze / Purple theme */
.bonus-card-level-3 .level-label {
    background: linear-gradient(135deg, #c084fc 0%, #7c3aed 100%);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
}

.bonus-card-level-3 .level-percent {
    color: #6d28d9;
    text-shadow: 0 2px 4px rgba(124, 58, 237, 0.08);
}

.bonus-card-level-3 .bonus-card-divider {
    background-color: #8b5cf6;
}

.bonus-card-level-3 .level-desc-box {
    background-color: #faf5ff;
    /* Light purple tint */
}

/* Steps */
.steps-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
}

@media (max-width: 992px) {
    .steps-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-lg);
    }

    .step-arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    .step-item {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        width: 100%;
        text-align: left;
    }

    .step-item .step-icon-wrapper {
        margin: 0;
        flex: 0 0 auto;
    }
}

.step-item {
    flex: 1;
    text-align: center;
}

.step-icon-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
}

.step-icon {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.step-item:hover .step-icon {
    transform: rotate(0deg) scale(1.05);
}

.step-num {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.step-arrow {
    font-size: 1.5rem;
    color: #0d2b6b;
}

/* Why Join */
.features-grid-join {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.feature-box {
    background: #ffffff;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    min-width: 200px;
    flex: 1 1 auto;
}

.feature-icon {
    font-size: 1.8rem;
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Utilities */
.bg-orange {
    background-color: #ff9800;
}

.bg-blue {
    background-color: #3b82f6;
}

.bg-green {
    background-color: #10b981;
}

.bg-purple {
    background-color: #8b5cf6;
}

.text-orange {
    color: #ff9800;
}

.text-blue {
    color: #3b82f6;
}

.text-green {
    color: #10b981;
}

.text-purple {
    color: #8b5cf6;
}

.text-teal {
    color: #14b8a6;
}

/* BEP-20 Network Badge */
.wallet-network-badge {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.4);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #50a1e0;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

@media (max-width: 480px) {
    .wallet-network-badge {
        font-size: 0.55rem;
    }
}

/* Tier Badges styling */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tier-badge i {
    font-size: 0.85rem;
}

/* Tier-specific Badge colors */
.tier-badge.tier-0 {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.tier-badge.tier-1 {
    background: linear-gradient(135deg, rgba(142, 158, 171, 0.2) 0%, rgba(238, 242, 243, 0.2) 100%);
    border: 1px solid rgba(238, 242, 243, 0.4);
    color: #eef2f3;
}

.tier-badge.tier-2 {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(80, 227, 194, 0.2) 100%);
    border: 1px solid rgba(80, 227, 194, 0.4);
    color: #50e3c2;
}

.tier-badge.tier-3 {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(139, 195, 74, 0.2) 100%);
    border: 1px solid rgba(139, 195, 74, 0.4);
    color: #8bc34a;
}

.tier-badge.tier-4 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(139, 69, 19, 0.2) 100%);
    border: 1px solid rgba(205, 127, 50, 0.4);
    color: #cd7f32;
}

.tier-badge.tier-5 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.25) 0%, rgba(220, 220, 220, 0.25) 100%);
    border: 1px solid rgba(220, 220, 220, 0.5);
    color: #e2e8f0;
}

.tier-badge.tier-6 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
}

.tier-badge.tier-7 {
    background: linear-gradient(135deg, rgba(229, 231, 235, 0.25) 0%, rgba(156, 163, 175, 0.25) 100%);
    border: 1px solid rgba(229, 231, 235, 0.6);
    color: #f3f4f6;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.tier-badge.tier-8 {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(79, 79, 229, 0.2) 100%);
    border: 1px solid rgba(0, 242, 254, 0.6);
    color: #00f2fe;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
    animation: tier-glow 2s infinite alternate;
}

@keyframes tier-glow {
    from {
        box-shadow: 0 2px 5px rgba(0, 242, 254, 0.2), inset 0 0 2px rgba(0, 242, 254, 0.2);
    }

    to {
        box-shadow: 0 2px 10px rgba(0, 242, 254, 0.4), inset 0 0 5px rgba(0, 242, 254, 0.4);
    }
}

@media (max-width: 480px) {
    .tier-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
        gap: 4px;
    }
}