/* Eternity Theme - Red/Black Premium Redesign */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Based on Screenshots */
    --primary: #ff0000;
    /* Bright Red */
    --primary-hover: #cc0000;
    --secondary: #1a1a1a;

    /* Backgrounds */
    --bg-body: #0a0a0a;
    /* Very Dark Black */
    --bg-sidebar: linear-gradient(180deg, #8B0000 0%, #4a0000 100%);
    /* distinct Red gradient */
    --bg-card: #ffffff;
    /* White cards as seen in screenshot */
    --bg-glass: rgba(255, 255, 255, 1);
    /* Solid white for cards */

    /* Text */
    --text-main: #111111;
    /* Dark text on white cards */
    --text-muted: #666666;
    --text-light: #ffffff;
    /* For sidebar/dark areas */

    /* Borders & Strings */
    --border-color: #e5e5e5;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-sans: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-body);
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Global Wrapper with Red Glow Background */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Red glow at bottom/center similar to screenshot */
    background: radial-gradient(circle at 50% 100%, rgba(139, 0, 0, 0.4), transparent 60%),
        var(--bg-body);
}

/* 
   -----------------------------------
   SIDEBAR (Dashboard)
   ----------------------------------- 
*/
.component-sidebar,
.wrapper-sidebar-navbar .component-sidebar {
    background: var(--bg-sidebar) !important;
    color: var(--text-light);
    border-right: none;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

/* Sidebar Links */
.component-sidebar__menu-item-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.component-sidebar__menu-item-link:hover,
.component-sidebar__menu-item-active .component-sidebar__menu-item-link {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transform: translateX(4px);
}

.component-sidebar__menu-item-icon {
    color: #ffd700;
    /* Gold/Yellow icons based on screenshot? */
    margin-right: 10px;
}

/* 
   -----------------------------------
   NAVBAR (Top Bar)
   ----------------------------------- 
*/
.component-navbar {
    background: transparent !important;
    padding: 1rem 0;
}

/* Public Navbar (Login Page) */
.component-navbar__navbar-public {
    background: transparent;
}

/* Private Navbar (Dashboard) */
.component-navbar-private__wrapper {
    background: transparent !important;
    /* Let body bg show through */
    border-bottom: none;
}

.component-navbar-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
}

/* Balance Pill */
.balance-dropdown-container {
    background: #000;
    color: #ffd700;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid #333;
    font-weight: 600;
}

/* 
   -----------------------------------
   CARDS & FORMS (Generic)
   ----------------------------------- 
*/
.card,
.well {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    padding: 1.25rem;
    color: var(--text-main);
}

/* Form Controls */
.form-control {
    background: #f9f9f9;
    /* Light grey styling */
    border: 1px solid #ddd;
    color: #333;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    height: auto;
}

.form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
    color: #333;
}

/* Primary Button (Red) */
.btn-primary {
    background: var(--primary) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

/* 
   -----------------------------------
   LOGIN PAGE SPECIFIC
   ----------------------------------- 
*/
/* Centered Layout for Login */
body.guest-page .wrapper {
    align-items: center;
    justify-content: flex-start;
    /* changed from center to flex-start to allow moving up */
    padding-top: 5vh;
    /* Reduced from 4rem to dynamic small viewport height */
}


/* Big Heading on Login */
.login-header-text {
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
}

.login-header-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    /* Ensure white */
}

.login-header-text p {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Section Headers (Why Choose Us, How it Works, FAQ) - Force White */
.text-block__title h2,
.text-block__description p,
.style-header-text h2,
.style-header-text p {
    color: #ffffff !important;
}

/* Footer Text - Force White */
.footer,
.component-footer,
.component-footer__public-copyright,
.component-footer__public-copyright p,
.component-footer__public-copyright span {
    color: #ffffff !important;
}


/* Glass FAQ Accordion */
.glass-faq-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-faq-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
}

.glass-faq-title {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.glass-faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    color: #ff3333;
    /* Red icon default */
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

/* Horizontal line */
.glass-faq-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: translateY(-50%);
    border-radius: 2px;
}

/* Vertical line */
.glass-faq-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: currentColor;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Rotate icon when not collapsed (i.e. open) - Turns + into X */
.glass-faq-header[aria-expanded="true"] .glass-faq-icon {
    transform: rotate(45deg);
    color: #fff;
    /* Turns white on active */
}

.glass-faq-body {
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* Public Navbar Links */
.component-navbar-nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    padding: 0 20px !important;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
    display: inline-block;
    line-height: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.component-navbar-nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Ensure navbar-nav items are not collapsed */
/* Ensure navbar-nav items are not collapsed on Desktop */
@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row;
    }
}

.nav-item {
    margin-left: 5px;
    margin-right: 5px;
}




/* Login Card Centering & Spacing */
.component_card {
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    /* Very transparent */
    backdrop-filter: blur(20px);
    /* Strong glass blur */
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.block-signin {
    padding: 3.5rem;
}

.component_card .card {
    border: none;
    background: transparent;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    /* Stronger shadow for depth */
}

/* Premium Form Styling - Dark Mode / Glass */
.block-signin label {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    /* Light text */
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.2);
    /* Darker semi-transparent input */
    padding: 0.75rem 1rem;
    border-radius: 10px;
    height: auto;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    /* White text */
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ff3333;
    /* Bright red focus */
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 51, 51, 0.15);
    outline: none;
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Input Group Icons */
.input-group-text {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    /* Merge with input */
    color: rgba(255, 255, 255, 0.7);
    border-radius: 10px 0 0 10px;
    padding: 0.75rem 1rem;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
    border-left: none;
    /* Merge with icon */
    padding-left: 0.5rem;
}

.input-group:focus-within .input-group-text {
    border-color: #ff3333;
    border-right: none;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: -4px 0 0 0 rgba(255, 51, 51, 0.15);
    /* Extend glow to left */
}

.input-group:focus-within .form-control {
    box-shadow: none;
    /* Remove default shadow to prevent overlap artifact */
    border-left: none;
}

/* Premium Gradient Button */
.btn-lg {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 10px;
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    /* Rich Red */
    border: none;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(204, 0, 0, 0.4);
    background: linear-gradient(135deg, #e60000 0%, #b30000 100%);
}

/* Subtle Links - Light Mode for Dark Card */
.custom-control-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.text-center p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.text-primary {
    color: #ff6666 !important;
    /* Lighter red for visibility */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.text-primary:hover {
    color: #ff9999 !important;
    text-decoration: underline;
}

/* Forgot Password Specific */
a[href="/resetpassword"] {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem;
    font-weight: 500;
}

a[href="/resetpassword"]:hover {
    color: #ff6666 !important;
}

/* Navbar Burger (Mobile Menu) */
.navbar-burger {
    cursor: pointer;
    padding: 10px;
    display: block;
    position: relative;
    z-index: 2000;
    /* Ensure it's above the collapsed menu */
}

.navbar-toggler {
    z-index: 2000;
    position: relative;
}

.navbar-burger-line {
    background-color: #ffffff !important;
    /* Force white for visibility on dark header */
    height: 2px;
    width: 24px;
    display: block;
    margin: 5px 0;
    transition: all 0.3s;
}

/* 
   -----------------------------------
   UTILITIES
   ----------------------------------- 
*/
.text-white {
    color: #fff !important;
}

.text-danger {
    color: var(--primary) !important;
}

/* Custom Badge/Pills */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* Vertical Glass Timeline - How It Works */
.glass-timeline-wrapper {
    position: relative;
    padding: 3rem 0;
}

/* Central Line */
.glass-timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 51, 51, 0) 0%, rgba(255, 51, 51, 0.5) 20%, rgba(255, 51, 51, 0.5) 80%, rgba(255, 51, 51, 0) 100%);
    transform: translateX(-50%);
}

.timeline-row {
    position: relative;
    margin-bottom: 3rem;
    align-items: center;
}

.timeline-row:last-child {
    margin-bottom: 0;
}

/* Icons */
.timeline-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-icon {
    font-size: 3.5rem;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Number Indicators */
.timeline-number-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.timeline-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cc0000 0%, #660000 100%);
    border: 4px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.6);
    position: relative;
}

.timeline-number::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: rgba(204, 0, 0, 0.2);
    z-index: -1;
}

/* Glass Content Cards - RESTORED Glass Effect */
.glass-timeline-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.3s ease;
}

.glass-timeline-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.glass-timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff !important;
    /* Force White */
    margin-bottom: 0.5rem;
}

.glass-timeline-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    /* Whiter text */
    margin: 0;
    line-height: 1.5;
}

/* Icons */
.timeline-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-icon {
    font-size: 3rem;
    display: inline-block;
}

/* Specific weights for Regular/Light if needed, though usually class handles it */
.far.timeline-icon {
    font-weight: 400;
}

/* Vertical Line - MADE VISIBLE (White/Grey) */
.glass-timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
    /* Visible white line */
    transform: translateX(-50%);
}

/* Text Alignment Helpers */
.text-right-md {
    text-align: right;
}

.text-left-md {
    text-align: left;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .glass-timeline-wrapper::before {
        left: 30px;
        /* Move line to left */
    }

    .timeline-row {
        flex-direction: column;
        margin-bottom: 4rem;
    }

    /* Reorder for mobile: Number -> Card -> Icon (hidden or small) */
    .timeline-number-wrap {
        justify-content: flex-start;
        margin-bottom: 1rem;
        width: 100%;
    }

    .timeline-number {
        margin-left: 0;
    }

    .timeline-content-col,
    .timeline-icon-col {
        width: 100%;
        max-width: 100%;
        text-align: left !important;
        padding-left: 60px !important;
        /* Indent content past the line */
    }

    .timeline-icon-col {
        display: none;
        /* Hide large icons on mobile to save space, or move them */
    }

    .glass-timeline-card {
        text-align: left !important;
    }
}

/* Glass Feature Cards (Why Choose Us) - Redesign */
.glass-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .glass-feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.glass-feature-card {
    background: rgba(255, 255, 255, 0.1);
    /* Dark theme adjustment */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Icon Container - White Circle with Shadow */
.glass-feature-icon-wrap {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.glass-feature-icon-wrap svg {
    width: 30px;
    height: 30px;
}

/* Text Styling */
.glass-feature-content {
    text-align: left;
}

.glass-feature-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.glass-feature-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0;
}