/* ========================================
   HEADER COMPONENT
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(255, 215, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.logo img {
    height: 45px;
    width: auto;
}

/* Desktop Navigation */
.navbar {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.navbar a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition-fast);
}

.navbar a:hover,
.navbar a.active {
    color: var(--text-gold);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-actions .btn {
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* Mobile Menu Toggle - Hamburger Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation to X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Only Actions (Hidden on Desktop) */
.mobile-only-actions {
    display: none;
}

.btn-block {
    width: 100%;
    text-align: center;
    display: block;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--text-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
/* Hero Pills - Plan Info Cards */
.hero-pills {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pill-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(5px);
    border: 1.5px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pill-card:hover {
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    background: rgba(26, 26, 26, 0.95);
}

.pill-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.pill-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pill-value {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.pill-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(255, 215, 0, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .badge {
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ========================================
   INVESTMENT PLANS
   ======================================== */

.plan-card {
    background: var(--bg-dark-secondary);
    border-radius: 16px;
    padding: 2.5rem;
    border: 2px solid rgba(255, 215, 0, 0.1);
    transition: var(--transition-fast);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.plan-card:hover::before {
    transform: scaleX(1);
}

.plan-card.featured {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border-color: var(--gold-primary);
    transform: scale(1.05);
}

.plan-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1.5rem 0;
}

.plan-price span {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.plan-features {
    text-align: left;
    margin: 2rem 0;
}

.plan-features li {
    padding: 0.8rem 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓';
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ========================================
   STATISTICS
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--bg-dark-secondary);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: var(--transition-smooth);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ========================================
   TRANSACTIONS TABLE
   ======================================== */

.transactions-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.transaction-section {
    background: var(--bg-dark-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.transaction-section h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.1);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-dark-tertiary);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.05);
    transition: var(--transition-fast);
}

.transaction-item:hover {
    border-color: var(--gold-primary);
    transform: translateX(5px);
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.transaction-user {
    font-weight: 600;
    color: var(--text-primary);
}

.transaction-date {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.transaction-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
}

/* ========================================
   PAYMENT METHODS
   ======================================== */

.payment-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.payment-item {
    background: var(--bg-dark-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: var(--transition-fast);
    aspect-ratio: 1;
}

.payment-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.payment-item img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%) brightness(2);
    transition: var(--transition-fast);
}

.payment-item:hover img {
    filter: grayscale(0%) brightness(1);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--bg-dark-secondary);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-gold);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-gold);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-small);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-dark-tertiary);
    border: 2px solid rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-primary);
}

/* ========================================
   MODAL
   ======================================== */

.modal-overlay {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-dark-secondary);
    border-radius: 16px;
    border: 2px solid var(--gold-primary);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-fast);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 2rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
}

.modal-body {
    padding: 2rem;
}

/* ========================================
   RESPONSIVE COMPONENTS
   ======================================== */

@media screen and (max-width: 992px) {
    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
        order: 1;
    }
    
    /* Transform navbar to mobile menu */
    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
        backdrop-filter: blur(10px);
        border-right: 2px solid rgba(255, 215, 0, 0.2);
        z-index: 999;
        padding: 80px 1.5rem 30px;
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    .navbar.active {
        left: 0;
    }
    
    /* Style navbar links for mobile */
    .navbar a {
        width: 100%;
        padding: 1rem 1.2rem;
        font-size: 1.05rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 215, 0, 0.08);
        position: relative;
        overflow: hidden;
        text-align: center;
        border-radius: 8px;
        margin-bottom: 0.3rem;
    }
    
    .navbar a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: var(--gold-gradient);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }
    
    .navbar a::after {
        display: none;
    }
    
    .navbar a:hover,
    .navbar a.active {
        background: rgba(255, 215, 0, 0.1);
        color: var(--text-gold);
    }
    
    .navbar a:hover::before,
    .navbar a.active::before {
        transform: scaleY(1);
    }
    
    .navbar a:last-of-type {
        border-bottom: 1px solid rgba(255, 215, 0, 0.08);
    }
    
    /* Show mobile only actions inside navbar */
    .mobile-only-actions {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 2px solid rgba(255, 215, 0, 0.15);
        width: 100%;
    }
    
    .mobile-only-actions .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 50px;
        transition: all 0.3s ease;
        text-align: center;
        display: block;
    }
    
    .mobile-only-actions .btn-outline {
        background: transparent;
        border: 2px solid var(--gold-primary);
        color: var(--text-gold);
    }
    
    .mobile-only-actions .btn-outline:hover {
        background: var(--gold-gradient);
        color: var(--bg-dark);
        transform: translateY(-2px);
    }
    
    .mobile-only-actions .btn-primary {
        background: var(--gold-gradient);
        color: var(--bg-dark);
        border: 2px solid transparent;
    }
    
    .mobile-only-actions .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    
    /* Hide desktop header actions */
    .header-actions {
        display: none;
    }
    
    /* Mobile menu overlay - only show when active */
    .mobile-menu-overlay {
        display: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    /* Navbar scrollbar */
    .navbar::-webkit-scrollbar {
        width: 4px;
    }
    
    .navbar::-webkit-scrollbar-track {
        background: rgba(255, 215, 0, 0.05);
    }
    
    .navbar::-webkit-scrollbar-thumb {
        background: var(--gold-gradient);
        border-radius: 2px;
    }
    
    /* Keep logo on left on mobile */
    .header-content {
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .logo {
        order: 2;
        margin: 0;
    }
    
    .logo img {
        height: 35px;
    }
    
    /* Hero adjustments */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        position: relative;
        z-index: 2;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .transactions-wrapper {
        grid-template-columns: 1fr;
    }
    
    .payment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar {
        width: 260px;
    }
}

@media screen and (max-width: 480px) {
    .logo img {
        height: 30px;
        max-width: 180px;
    }
    
    .navbar {
        width: 240px;
    }
    
    .navbar a {
        font-size: 1rem;
        padding: 0.9rem 0;
    }
}

/* Auth Page Styles */
.auth-page-compact {
    position: relative;
}

.auth-page-compact::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/all-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -1;
}
