/* --- Global Variables and Setup (High Contrast & Depth) --- */
:root {
    /* Primary Colors - Professional & Deep */
    --primary: rgb(196, 25, 25);
    /* Red */
    --secondary: #FFD700;
    /* Golden Yellowish */
    --accent: #FFD700;
    /* Matching Secondary */

    /* Utility Colors */
    --success: #27ae60;
    --warning: #f39c12;
    --info: #17a2b8;

    /* Backgrounds & Contrast */
    --light-bg: #eef2f5;
    /* Soft, slightly off-white background */
    --white: #ffffff;
    --dark: #1f2a37;
    /* Darker than primary for footer/deep background */

    /* Advanced Shadows for "Floating" Look */
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.15);
    --shadow-deep: 0 25px 50px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--primary);
    margin-bottom: 50px;
    line-height: 1.6;
}

/* Ensure no other styles are affecting the navbar brand text */
.navbar.sticky-top .navbar-brand {
    color: var(--white) !important;
}

/* Make sure the ARPA Shop text is clearly visible against the white background */
.navbar-brand {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Base Link/Anchor Style */
a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* General Layout & Utility */
.container,
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section {
        margin-bottom: 60px;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .btn-lg {
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* --- Navigation Bar (Sleek & Elevated - Text Visibility Fixed) --- */
.navbar.sticky-top {
    background-color: var(--primary) !important;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.03);
    /* Lighter, less defined border */
    border-bottom: none;
}

/* Toggler Button Visibility Fix */
.navbar-toggler {
    border: 2px solid var(--white) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: var(--light-bg);
}

.navbar-toggler-icon {
    /* Ensures the toggler icon is the secondary color for contrast against white navbar */
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--white) !important;
    padding: 0.6rem 1.2rem !important;
    margin: 0 5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50px;
}

.navbar-nav .nav-link:hover {
    color: #90ee90 !important;
    text-decoration: none !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--primary);
        padding: 15px;
        border-radius: 15px;
        margin-top: 10px;
    }
}

/* --- Section Title (Modern Separator) --- */
.section-title {
    text-align: center;
    margin-bottom: 90px;
    position: relative;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    padding-bottom: 25px;
}

.section-title span {
    color: var(--secondary);
}

.section-title:after {
    content: '';
    display: block;
    width: 120px;
    height: 7px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    margin: 15px auto 0;
    border-radius: 4px;
}

/* --- Benefit Cards (Clean, Elevated & Interactive) --- */
.benefit-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
    height: 100%;
    border: none;
}

.benefit-card:hover {
    background: var(--light-bg);
    transform: translateY(-15px) rotate(1deg);
    box-shadow: var(--shadow-medium);
}

.benefit-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(196, 25, 25, 0.5);
    transition: all 0.4s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(0.9) rotate(360deg);
}

/* --- Membership Card (Dark, Premium Pricing) --- */
.membership-card {
    background: var(--dark);
    border-radius: 25px;
    padding: 60px 40px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--secondary);
    transition: all 0.4s ease;
}

.membership-card:hover {
    background: linear-gradient(160deg, var(--primary), var(--dark));
    transform: scale(1.02);
}

.membership-price {
    font-size: 5rem;
    font-weight: 900;
    margin: 20px 0 15px;
    line-height: 1;
    color: var(--accent);
    /* Highlight price with accent color */
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.membership-feature {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.membership-feature i {
    margin-right: 15px;
    color: var(--success);
    /* Use success for features */
}

/* --- Testimonial Card (Quoted & Trusted) --- */
.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    height: 100%;
    border-top: 5px solid var(--secondary);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.testimonial-card::before {
    display: none;
}

.testimonial-card p {
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* --- Partner Icons (Vibrant & Animated) --- */
#partners {
    padding: 80px 0;
    background-color: var(--light-bg);
}

#partners .partner-logo {
    width: auto;
    height: auto;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background-color: transparent !important;
    box-shadow: none;
    filter: none;
}

#partners .partner-logo i {
    font-size: 3rem;
    transition: all 0.4s ease;
}

#partners .partner-logo:hover {
    transform: translateY(-20px) scale(1.1);
    box-shadow: none;
}

#partners .partner-logo:hover i {
    transform: scale(1.2);
}

#partners .col-md-2 p,
#partners .col-4 p {
    font-weight: 700;
    color: var(--primary);
    margin-top: 15px;
    font-size: 1.2rem;
}

/* --- Stats Section (High Contrast and Angular) --- */
.stats-section {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: var(--white);
    padding: 120px 0;
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
    margin: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    position: relative;
}

.stat-number {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 5px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: var(--secondary);
}

.stat-label {
    font-size: 1.4rem;
    opacity: 0.9;
    font-weight: 600;
}

/* --- FAQ Section (Accordion Style) --- */
.faq-item {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: none;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background: var(--white);
    padding: 20px 30px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary);
    border-left: 6px solid var(--primary);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    border-left-color: var(--secondary);
    color: var(--primary);
    background-color: var(--light-bg);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    background-color: var(--white);
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    border-top: 0;
    color: #666;
}

.faq-item.active .faq-answer {
    padding: 20px 30px;
    max-height: 500px;
    border-top: 1px solid #eee;
}

/* --- How It Works Section (Modern Cards) --- */
.how-it-works-section {
    background-color: #3d7cbb;
}

.how-it-works-step {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.how-it-works-step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.how-it-works-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.how-it-works-step:hover::after {
    transform: scaleX(1);
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(196, 25, 25, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.how-it-works-step:hover .step-icon-wrapper {
    background: var(--primary);
    color: #ffffff;
    transform: rotateY(360deg);
    box-shadow: 0 10px 20px rgba(196, 25, 25, 0.3);
}

.step-number-bg {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    line-height: 1;
    font-family: 'Arial', sans-serif;
    z-index: 0;
    transition: all 0.4s ease;
}

.how-it-works-step:hover .step-number-bg {
    color: rgba(196, 25, 25, 0.05);
    transform: scale(1.1);
}

.how-it-works-step h5 {
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
    position: relative;
    z-index: 2;
}

.how-it-works-step p {
    color: #6c757d;
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
}

.step-card-1 {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
}
.step-card-1 .step-icon-wrapper { background: rgba(255,255,255,0.7); color: #1976d2; }
.step-card-1:hover .step-icon-wrapper { background: #1976d2; color: white; box-shadow: 0 10px 20px rgba(25, 118, 210, 0.3); }
.step-card-1:hover::after { background: #1976d2; }

.step-card-2 {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffcc80;
}
.step-card-2 .step-icon-wrapper { background: rgba(255,255,255,0.7); color: #f57c00; }
.step-card-2:hover .step-icon-wrapper { background: #f57c00; color: white; box-shadow: 0 10px 20px rgba(245, 124, 0, 0.3); }
.step-card-2:hover::after { background: #f57c00; }

.step-card-3 {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
}
.step-card-3 .step-icon-wrapper { background: rgba(255,255,255,0.7); color: #388e3c; }
.step-card-3:hover .step-icon-wrapper { background: #388e3c; color: white; box-shadow: 0 10px 20px rgba(56, 142, 60, 0.3); }
.step-card-3:hover::after { background: #388e3c; }

.step-card-4 {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 1px solid #ce93d8;
}
.step-card-4 .step-icon-wrapper { background: rgba(255,255,255,0.7); color: #7b1fa2; }
.step-card-4:hover .step-icon-wrapper { background: #7b1fa2; color: white; box-shadow: 0 10px 20px rgba(123, 31, 162, 0.3); }
.step-card-4:hover::after { background: #7b1fa2; }

.how-it-works-step.step-card-1 .step-number-bg,
.how-it-works-step.step-card-2 .step-number-bg,
.how-it-works-step.step-card-3 .step-number-bg,
.how-it-works-step.step-card-4 .step-number-bg {
    color: rgba(0,0,0,0.05);
}

/* --- Footer Styles (Modern Dark Mode) --- */
.footer {
    background: var(--dark);
    color: #ecf0f1;
    padding: 80px 0 40px;
    border-top: 8px solid var(--accent);
}

.footer h5,
.footer h6 {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.4rem;
}

.footer h5:after,
.footer h6:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 15px;
    list-style: none;
    padding-left: 0;
}

.footer-links a {
    color: #ccc;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 10px;
}

.social-icons a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    margin-right: 12px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 15px rgba(231, 76, 60, 0.6);
}

/* --- General Card & Button Styles for inner pages (Enhanced) --- */
.card {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e0e0e0;
}

.card-header {
    font-weight: 700;
    background-color: var(--light-bg);
    border-bottom: 1px solid #eee;
    padding: 1.25rem 2rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    font-size: 1.2rem;
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border: none;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 10px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.5);
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}


/* --- Dashboard Sidebar Styles (Professional & Clean) --- */
.sidebar-container {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    padding: 2rem 0;
    min-height: calc(100vh - 100px);
    border: 1px solid #eee;
}

.sidebar-profile {
    text-align: center;
    padding: 0 1rem 2rem;
    border-bottom: 3px solid var(--light-bg);
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.profile-name {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 1.3rem;
}

.sidebar-nav .nav-link {
    color: #555;
    padding: 1rem 2rem;
    font-weight: 600;
    border-left: 6px solid transparent;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
    color: var(--secondary);
    background-color: rgba(52, 152, 219, 0.1);
    border-left-color: var(--secondary);
}

.sidebar-nav .nav-link .fas {
    width: 20px;
    margin-right: 15px;
}

/* --- Dashboard UI Styles (Data Driven) --- */
.dashboard-title {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 3rem;
    font-size: 2.8rem;
}

.dashboard-card {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: none;
    padding: 2rem;
    background-color: var(--white);
    transition: all 0.4s ease;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-medium);
}

.status-card .card-title,
.id-card .card-title {
    font-weight: 700;
    color: var(--primary);
    opacity: 0.8;
}

.id-card {
    background: linear-gradient(140deg, var(--dark) 30%, var(--primary));
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 2.5rem;
}

.id-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.id-card .card-title {
    color: var(--white);
    font-size: 1.2rem;
}

.membership-id-code {
    font-family: 'Consolas', monospace;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
    display: block;
    margin-top: 1rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    color: var(--secondary);
}

/* Quick Action Cards (Actionable Tiles) */
.quick-action-card {
    display: block;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
    text-align: center;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.quick-action-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
    color: var(--secondary);
    border-color: var(--secondary);
}

.quick-action-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--secondary), var(--info));
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.quick-action-card h6 {
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quick-action-card .stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
}

/* Activity List (Detailed Feed) */
.activity-list {
    padding: 0;
    list-style: none;
}

.activity-list .list-group-item {
    display: flex;
    align-items: center;
    border: none;
    padding: 1.25rem 0;
    border-bottom: 1px dashed #e0e0e0;
}

.activity-list .list-group-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    color: var(--secondary);
    font-size: 1.4rem;
}

.activity-content {
    flex-grow: 1;
}

.activity-content strong {
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.activity-time {
    color: #999;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Table Styles (Stylish & Distinct Rows) */
.table {
    border-collapse: separate;
    border-spacing: 0 12px;
    /* Extra spacing for separation */
    margin-bottom: 0;
}

.table thead th {
    border: none;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #ddd;
}

.table tbody tr {
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.1);
    outline: 2px solid var(--secondary);
    outline-offset: -2px;
}

.table tbody td {
    vertical-align: middle;
    padding: 1.5rem;
    border: none;
    font-weight: 500;
    color: #444;
}

.table tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Login/Register Card (Centric & Premium) */
.auth-card {
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden;
}

.auth-card .card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
}

.auth-card .card-body {
    padding: 3.5rem;
}

/* --- Index Page Specific Styles (Modern Theme) --- */
:root {
    --modern-primary: rgb(196, 25, 25);
    --modern-secondary: #FFD700;
    --modern-success: #10b981;
    --modern-info: #06b6d4;
    --modern-warning: #f59e0b;
    --modern-danger: #ef4444;
}

.hero-section { 
    background-color: #1b4332; 
    position: relative; 
    overflow: hidden;
    /* Resetting/Overriding default hero styles */
    display: block;
    min-height: auto;
    padding: 0;
    text-align: left;
    color: inherit;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}
.hero-stats {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-section::before { content: ''; position: absolute; width: 150%; height: 150%; background: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px); background-size: 50px 50px; animation: grid 20s linear infinite; }
@keyframes grid { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, 50px); } }

@media (min-width: 992px) {
    .hero-section { background-color: #1b4332; }
    .hero-section::before { display: none; }
    .hero-section::after { display: none; }
    .hero-gradient-bg { display: none; }
    .hero-content-wrapper {
        padding-left: 0 !important;
    }
}

@media (max-width: 991px) {
    .hero-gradient-bg { display: none; }
}

.glass-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; }

.gradient-card { border: none; border-radius: 16px; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: linear-gradient(135deg, #ffffff 0%, #fff8e1 100%) !important; border: 1px solid rgba(196, 25, 25, 0.1) !important; }
.gradient-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

.icon-box { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: white; margin-bottom: 1rem; background: linear-gradient(135deg, var(--modern-primary) 0%, var(--modern-secondary) 100%) !important; }

.stat-card { border-radius: 16px; padding: 1.5rem; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }

.btn-modern { border-radius: 50px; padding: 12px 32px; font-weight: 600; transition: all 0.3s; border: none; }
.btn-modern:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); text-decoration: none !important; }

.section-header { position: relative; display: inline-block; }
.section-header::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 60px; height: 4px; background: linear-gradient(90deg, var(--modern-primary), var(--modern-secondary)); border-radius: 2px; }

.testimonial-card { border-radius: 16px; border: none; box-shadow: 0 4px 6px rgba(0,0,0,0.07); transition: all 0.3s; }
.testimonial-card:hover { box-shadow: 0 12px 24px rgba(0,0,0,0.12); }

.faq-item { border-radius: 12px; margin-bottom: 1rem; overflow: hidden; border: 1px solid #e5e7eb; transition: all 0.3s; }
.faq-item:hover { border-color: var(--modern-primary); }
.faq-question { cursor: pointer; padding: 1.25rem; background: white; transition: all 0.3s; user-select: none; }
.faq-question:hover { background: #f9fafb; }
.faq-item.active .faq-question { background: #eef2ff; color: var(--modern-primary); }
.faq-answer { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.active .faq-answer { padding: 1.25rem; max-height: 500px; }
.faq-item .fa-chevron-down { transition: transform 0.3s; }
.faq-item.active .fa-chevron-down { transform: rotate(180deg); }

.partner-logo { background: white; border-radius: 16px; padding: 2rem; transition: all 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.partner-logo:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }

.floating { animation: floating 3s ease-in-out infinite; }
@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Modal Enhancements */
.modal-content { border-radius: 20px; border: none; }
.modal-header { border-bottom: 1px solid rgba(0,0,0,0.05); padding: 1.5rem; }
.modal-body { padding: 2rem; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 0.8rem 0; border-bottom: 1px solid #f0f0f0; display: flex; gap: 1rem; }
.feature-list li:last-child { border-bottom: none; }
.feature-icon-small { color: var(--modern-success); font-size: 1.2rem; margin-top: 3px; }
.highlight-box { background: #f8f9fa; border-left: 4px solid var(--modern-primary); padding: 1.5rem; border-radius: 8px; margin: 1.5rem 0; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat-box { background: #f8f9fa; padding: 1rem; border-radius: 10px; text-align: center; }
.stat-box-number { font-size: 1.5rem; font-weight: 800; color: var(--modern-primary); display: block; }
.stat-box-label { font-size: 0.8rem; color: #6c757d; }
.calculator { background: #f8f9fa; padding: 1.5rem; border-radius: 15px; margin-top: 2rem; }
.calculator-result { display: none; margin-top: 1.5rem; text-align: center; padding: 1.5rem; background: white; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.calculator-result.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Hero Floating Card Styles --- */
.hero-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 20px;
}

.card-mockup {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1.586;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    position: relative;
    animation: float 6s ease-in-out infinite;
    text-align: left;
    color: white;
    overflow: hidden;
}

.card-mockup::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Using your theme colors for the card background */
    background: linear-gradient(135deg, var(--modern-primary), var(--dark));
    opacity: 0.85;
    z-index: -1;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    border-radius: 6px;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: bold;
}

.card-name {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-logo-overlay {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.card-mockup-img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 767.98px) {
    .sidebar-container.offcanvas-md {
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 0;
        min-height: 100vh;
        overflow-y: auto;
    }
}