/* Premium Financial Advice Portal Theme */
/* Colors */
:root {
    --primary-blue: #2563EB;
    /* Royal Blue */
    --primary-dark: #1e3a8a;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f0f9ff;
    /* Warm Trustworthy Light Blue/Teal Hint */
    --white: #ffffff;
    --border-color: #e5e7eb;
    --success-green: #10b981;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    background-color: var(--white);
    padding: 5rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Information Cards Grid */
.services-section {
    padding: 4rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2.5rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #2563EB;
    /* Premium Royal Blue */
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-action {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-action:after {
    content: "→";
    transition: transform 0.2s;
}

.info-card:hover .card-action:after {
    transform: translateX(4px);
}

/* Trust Section */
.trust-section {
    background-color: #eff6ff;
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-section h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.trust-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.trust-item p {
    color: var(--text-muted);
}

/* Guide Page Styles */
.guide-container {
    max-width: 800px;
    margin: 4rem auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.guide-header {
    text-align: center;
    margin-bottom: 3rem;
}

.checklist {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #166534;
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.primary-btn {
    display: block;
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s;
    margin-bottom: 2.5rem;
    box-sizing: border-box;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    color: white;
    /* Ensure text stays white */
}

.troubleshooting {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.troubleshooting h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.troubleshooting p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: var(--white);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .nav-links {
        display: none;
        /* Hide on mobile for cleanliness */
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* Article Styling */
.article-container {
    max-width: 800px;
    margin: 4rem auto;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.article-content p {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    color: #374151;
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #374151;
}

.highlight-box {
    background-color: #f0f9ff;
    /* Light Blue */
    border: 1px solid #bae6fd;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.highlight-box h2 {
    margin-top: 0;

    /* Guide Detail Page Styling */
    .guide-detail-container {
        max-width: 800px;
        margin: 3rem auto;
        background: var(--white);
        padding: 3rem;
        border-radius: 1rem;
        box-shadow: var(--shadow-card);
        border: 1px solid var(--border-color);
    }

    .guide-hero-title {
        font-size: 2.25rem;
        font-weight: 800;
        color: var(--primary-dark);
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .guide-hero-subtitle {
        text-align: center;
        color: var(--text-muted);
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    /* Yellow Warning Box */
    .warning-box {
        background-color: #fffbeb;
        /* Amber 50 */
        border: 1px solid #fcd34d;
        /* Amber 300 */
        border-radius: 0.75rem;
        padding: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .warning-box h3 {
        color: #92400e;
        /* Amber 800 */
        font-size: 1.1rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .checklist-ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .checklist-ul li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.5rem;
        color: #92400e;
        font-weight: 500;
    }

    .checklist-ul li::before {
        content: "•";
        /* Or a checkmark SVG */
        position: absolute;
        left: 0;
        font-weight: bold;
    }

    /* Steps */
    .steps-container {
        margin-bottom: 3rem;
    }

    .steps-container h2 {
        font-size: 1.5rem;
        color: var(--primary-blue);
        margin-bottom: 1.5rem;
        border-bottom: 2px solid #e5e7eb;
        padding-bottom: 0.5rem;
    }

    .step-item {
        display: flex;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .step-number {
        background-color: var(--primary-blue);
        color: white;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .step-content {
        font-size: 1.1rem;
        color: var(--text-main);
    }

    /* Golden Button */
    .cta-container {
        text-align: center;
        margin: 3rem 0;
        background: #f8fafc;
        padding: 2rem;
        border-radius: 1rem;
    }

    .golden-btn {
        display: inline-block;
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: white;
        font-size: 1.25rem;
        font-weight: 700;
        padding: 1rem 2.5rem;
        border-radius: 9999px;
        box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3), 0 2px 4px -1px rgba(245, 158, 11, 0.2);
        transition: transform 0.2s, box-shadow 0.2s;
        text-decoration: none;
        margin-bottom: 0.5rem;
    }

    .golden-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4), 0 4px 6px -2px rgba(245, 158, 11, 0.2);
        color: white;
    }

    .crypto-text {
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-top: 0.75rem;
    }

    /* Troubleshooting Info */
    .troubleshooting-section {
        border-top: 1px solid var(--border-color);
        padding-top: 2rem;
    }

    .troubleshooting-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .faq-mini {
        margin-bottom: 1rem;
    }

    .faq-mini strong {
        display: block;
        color: var(--primary-dark);
        margin-bottom: 0.25rem;
    }

    .faq-mini p {
        color: var(--text-muted);
        font-size: 0.95rem;
        margin: 0;
    }
}

/* Guide Detail Page Styling */
.guide-detail-container {
    max-width: 800px;
    margin: 3rem auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.guide-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.guide-hero-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Yellow Warning Box */
.warning-box {
    background-color: #fffbeb;
    /* Amber 50 */
    border: 1px solid #fcd34d;
    /* Amber 300 */
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.warning-box h3 {
    color: #92400e;
    /* Amber 800 */
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #92400e;
    font-weight: 500;
}

.checklist-ul li::before {
    content: "•";
    /* Or a checkmark SVG */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Steps */
.steps-container {
    margin-bottom: 3rem;
}

.steps-container h2 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    background-color: var(--primary-blue);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Golden Button */
.cta-container {
    text-align: center;
    margin: 3rem 0;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
}

.golden-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3), 0 2px 4px -1px rgba(245, 158, 11, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.golden-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4), 0 4px 6px -2px rgba(245, 158, 11, 0.2);
    color: white;
}

.crypto-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Troubleshooting Info */
.troubleshooting-section {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.troubleshooting-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.faq-mini {
    margin-bottom: 1rem;
}

.faq-mini strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.faq-mini p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.back-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.guide-hero-title {
    font-size: 1.75rem;
}


/* Video Splash Screen */
#splash-overlay {
    background-color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#intro-video {
    width: 100%;
    max-width: 800px;
    /* Increased size: bigger than 500px, smaller than full screen */
    max-height: 90vh;
    /* Allow it to be taller */
    object-fit: contain;
    border-radius: 12px;
}



/* Animations */
@keyframes flyInLeft {
    0% {
        transform: translateX(-100vw) scale(0.5);
        opacity: 0;
    }

    60% {
        transform: translateX(45vw) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translateX(calc(50vw - 4rem));
    }

    /* Meet in center */
}

@keyframes flyInRight {
    0% {
        transform: translateX(100vw) scale(0.5);
        opacity: 0;
    }

    60% {
        transform: translateX(-45vw) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translateX(calc(-50vw + 4rem));
    }

    /* Meet in center */
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideUp {
    to {
        transform: translateY(-100%);
        border-bottom-left-radius: 50% 20%;
        border-bottom-right-radius: 50% 20%;
    }
}

/* Screen Shake Class */
.shake-screen {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-4px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(6px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-8px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(8px, 0, 0);
    }
}

@media (max-width: 600px) {

    .hand-left,
    .hand-right,
    .final-hand {
        font-size: 5rem;
    }

    .intro-text {
        font-size: 2.5rem;
    }
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    /* Clean White */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out;
}

.splash-content {
    text-align: center;
}

.splash-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.splash-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.splash-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.big-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    font-family: monospace;
    letter-spacing: 2px;
    margin: 1rem 0;
}

/* Global Button Fix */
.btn-primary,
.action-btn-green,
.action-btn-blue {
    display: inline-block;
    background-color: #1e40af;
    /* Royal Blue Default */
    color: #ffffff !important;
    /* Force White Text */
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.3);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.action-btn-green {
    background-color: #059669;
    /* Emerald Green */
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.action-btn-blue {
    background-color: #1e40af;
    /* Royal Blue */
}

.btn-primary:hover,
.action-btn-green:hover,
.action-btn-blue:hover {
    transform: translateY(-2px);
    filter: brightness(110%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Balance Page Redesign */
.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto;
}

.digital-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.digital-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon-box {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: #eff6ff;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-details {
    margin-bottom: 2rem;
    width: 100%;
}

.card-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.card-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: monospace;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}


/* Guide Page Money Button (Premium Refined) */
.money-btn {
    display: inline-block;
    background-color: #2563EB;
    /* Premium Royal Blue */
    color: #ffffff !important;
    font-size: 1.1rem;
    /* More professional size */
    font-weight: 600;
    /* refined weight */
    padding: 14px 28px;
    border-radius: 8px;
    /* Classic modern radius */
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.money-btn:hover {
    background-color: #1d4ed8;
    /* Darker Blue on hover */
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.money-btn:active {
    transform: translateY(0);
}

/* Education & About Section */
.info-section {
    background-color: #f8fafc;
    /* Soft Off-White */
    padding: 4rem 0 6rem;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    font-weight: 800;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.info-col h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-col p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.info-list li {
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
}

.disclaimer-text {
    font-size: 0.85rem !important;
    color: #9ca3af !important;
    font-style: italic;
    margin-top: 1rem;
}

/* Quick Guides Preview */
.guide-preview-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.guide-preview-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.guide-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.guide-preview-card h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.guide-preview-card span {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}


/* EPF Millionaire Calculator Theme (Light Mode) */
.millionaire-body {
    background-color: var(--bg-light);
    /* Off-white instead of dark gradient */
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.millionaire-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.calc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calc-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-dark);
    /* Dark Blue */
    margin-bottom: 0.5rem;
}

.calc-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.calc-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    /* Soft shadow */
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    /* Grey instead of light grey */
    font-weight: 500;
}

.highlight-val {
    color: #B45309;
    /* Darker Amber for visibility on white */
    font-weight: 700;
    font-size: 1.2rem;
}

.slider {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    /* Light grey track */
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #B45309;
    /* Amber Thumb */
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-box {
    background: #f8fafc;
    /* Very light grey input */
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
}

.calc-result-area {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.result-hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #B45309;
    margin-bottom: 0.5rem;
}

.hero-amount {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    color: #B45309;
    /* Solid Amber/Gold */
    background: linear-gradient(to right, #B45309, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wealth-bar-container {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.wealth-bar-invested {
    background: #94a3b8;
    /* Slate grey */
}

.wealth-bar-interest {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    /* Gold gradient */
}

.bar-legend {
    display: flex;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-dot.invested {
    background: #94a3b8;
}

.legend-dot.interest {
    background: #f59e0b;
}

/* Home Page Wealth Card */
.wealth-card {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #fbbf24, #d97706);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.1);
}

.wealth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.2);
}

/* Layout Fixes */
* {
    box-sizing: border-box;
}

/* Ensure button fits */
.money-btn {
    box-sizing: border-box;
    max-width: 100%;
}


/* Share Bar Styles */
.share-area {
    margin-top: 1.5rem;
    text-align: center;
}

.share-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.share-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
    color: white;
    /* Ensure text stays white */
}

/* Brand Colors */
.share-btn.wa {
    background-color: #25D366;
}

.share-btn.tg {
    background-color: #0088cc;
}

.share-btn.li {
    background-color: #0077b5;
}

.share-btn.tw {
    background-color: #000000;
}

/* X is black */
.share-btn.fb {
    background-color: #1877F2;
}

.share-btn.insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Toast Notification */
.copy-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.copy-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}


/* Dynamic Image Share Styles */
.share-img-btn {
    width: 100%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.share-img-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Hidden Share Card (for html2canvas) */
#share-card {
    position: absolute;
    left: -9999px;
    width: 1080px;
    height: 1350px;
    /* 4:5 Instagram Portrait */
    background: #0f172a;
    /* Deep Royal Blue */
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 20px solid transparent;
    border-image: linear-gradient(135deg, #fbbf24, #d97706) 1;
}

.sc-content {
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: white;
    padding: 4rem;
}

.sc-header {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: #94a3b8;
    margin-bottom: 5rem;
}

.sc-amount {
    font-size: 10rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(to right, #fbbf24, #fffbeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    line-height: 1;
}

.sc-text {
    font-size: 3rem;
    color: #e2e8f0;
    max-width: 800px;
    margin: 0 auto 5rem auto;
    line-height: 1.4;
}

.sc-footer {
    font-size: 2.5rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 3rem;
    border-radius: 50px;
    display: inline-block;
}


/* =========================================
   GLOBAL FOOTER (Official & Trustworthy)
   ========================================= */

.site-footer {
    background-color: #0f172a;
    /* Slate 900 */
    color: #94a3b8;
    /* Slate 400 */
    padding: 4rem 1rem 2rem;
    margin-top: auto;
    /* Push to bottom */
    font-family: 'Inter', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: left;
}

.footer-section h4 {
    color: #f8fafc;
    /* Slate 50 */
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    /* Slate 300 */
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    /* Slate 700 */
    text-align: center;
    font-size: 0.8rem;
}

/* Legal Page Styles */
.legal-body {
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    line-height: 1.6;
    padding: 2rem 1rem;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.legal-container h1 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
}

.legal-container h2 {
    font-size: 1.25rem;
    color: #334155;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-container p {
    margin-bottom: 1rem;
}

.alert-box {
    background-color: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.legal-footer {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.legal-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}


/* =========================================
   MOBILE RESPONSIVENESS FIXES (User Requested)
   ========================================= */
@media (max-width: 768px) {

    /* 1. Container Breathing Room */
    /* 1. Container Breathing Room - WIDE VIEW */
    .container,
    .guide-container,
    .guide-detail-container,
    .millionaire-container,
    .legal-container,
    .article-container {
        width: 96% !important;
        max-width: 100% !important;
        padding: 0 8px !important;
        margin: 0 auto;
    }

    /* Force Full Width for Guide/Article Cards */
    .guide-detail-container,
    .guide-container,
    .article-container {
        border-radius: 8px;
        /* Slightly less rounded for wide view */
        padding: 1.5rem 1rem !important;
        /* Keep internal padding logical */
    }

    /* 2. Typography Scaling */
    h1,
    .hero h1,
    .calc-title,
    .guide-hero-title,
    .article-title {
        font-size: 1.75rem !important;
        /* Scaled down */
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    #greeting-msg {
        font-size: 0.75rem !important;
    }

    h2,
    .section-header,
    .steps-container h2 {
        font-size: 1.5rem !important;
        text-align: left;
        /* Align to left for dashboard look */
    }

    /* 3. Grid & Layout - Single Column */
    /* 3. Grid & Layout - 2-Column Dashboard */
    .grid,
    .balance-grid,
    .guide-preview-row,
    .trust-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        align-items: stretch;
        /* Ensure equal height */
    }

    /* Info Section - Stacked Square Boxes */
    .info-grid {
        grid-template-columns: 1fr !important;
        /* Stacked 1 above another */
        gap: 1.5rem;
    }

    /* Square Box Styling for Info */
    .info-col {
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    /* Truncation Logic */
    .info-col.collapsed .info-content {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        /* Show 3 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }

    /* Hide lists when collapsed */
    .info-col.collapsed .info-list,
    .info-col.collapsed .disclaimer-text {
        display: none;
    }

    .read-more-btn {
        display: block;
        color: var(--primary-blue);
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        margin-top: 0.5rem;
        text-align: right;
    }

    .trust-grid,
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* 3.5 Miniature Cards (Applies to Services, Balance, and Guides) */
    .info-card,
    .guide-preview-card,
    .trust-item,
    .digital-card {
        padding: 12px !important;
        /* Force small padding */
        min-height: auto !important;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* FIX: Step Cards (Blue Circles) Alignment */
    .step-card {
        padding: 1rem !important;
        display: flex !important;
        flex-direction: row !important;
        /* Side by side */
        gap: 1rem !important;
        align-items: flex-start !important;
    }

    .step-number {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        width: 32px !important;
        height: 32px !important;
    }

    .step-title {
        margin-top: 0 !important;
        margin-bottom: 0.25rem !important;
        font-size: 1.1rem !important;
    }

    /* Guide Preview Specifics (UAN Section) */
    .guide-preview-card h4 {
        font-size: 0.95rem !important;
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }

    .guide-preview-card span {
        font-size: 0.8rem;
    }

    /* Trust Item Specifics */
    .trust-item {
        background: white;
        /* Ensure box look */
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .trust-item h3 {
        font-size: 0.95rem !important;
    }

    .trust-item p {
        font-size: 0.8rem !important;
    }

    .card-header {
        margin-bottom: 0.5rem;
    }

    .card-label {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }

    .card-title {
        font-size: 0.95rem !important;
        /* Smaller title */
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .card-text {
        font-size: 0.8rem !important;
        margin-bottom: 1rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-action {
        font-size: 0.8rem !important;
        margin-top: auto;
    }

    /* Special fix for Wealth Card gradient border to look good small */
    .wealth-card {
        width: 100%;
        height: 100%;
        text-align: left;
        /* Ensure text alignment is clean */
        align-items: flex-start;
        /* Align flex items to start */
    }

    /* Ensure flex containers stack */
    .result-row {
        flex-direction: row;
        /* Keep small rows side-by-side if they fit, or wrap */
        flex-wrap: wrap;
    }

    /* 4. Buttons - Touch Friendly */
    .money-btn,
    .primary-btn,
    .action-btn-green,
    .action-btn-blue,
    .cta-button,
    .golden-btn {
        width: 100% !important;
        display: block;
        text-align: center;
        padding: 16px;
        /* Larger touch target */
        margin-bottom: 1rem;
        box-sizing: border-box;
    }

    /* 5. Millionaire Card Mobile */
    .wealth-card {
        width: 100%;
        height: auto;
    }

    .calc-card {
        padding: 1.5rem 1rem;
    }

    /* Calculator Result Amount - Scale down */
    .hero-amount,
    .sc-amount {
        font-size: 2.5rem !important;
        word-wrap: break-word;
    }

    /* Input sliders full width */
    .input-group {
        width: 100%;
    }

    /* Wealth Bar Legend Stack */
    .bar-legend {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .legend-dot.interest {
        margin-left: 0 !important;
    }

    /* 6. Navbar - Stack cleanly */
    /* 6. Navbar - Refined Mobile Row */
    .nav-container {
        flex-direction: row;
        /* Keep logo and links side-by-side if possible, or adjust below */
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        /* Side by side */
        width: auto;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-links a {
        margin-left: 0;
        display: inline-block;
        width: auto;
        padding: 0;
        background: transparent;
        /* Remove boxy background */
        border-radius: 0;
        color: var(--primary-blue);
        font-weight: 600;
        text-align: right;
    }

    /* Hero Padding Fix */
    .hero {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Reduce Gap between Hero and Cards */
    .services-section {
        padding-top: 1.5rem;
    }

    /* Logo Scale */
    .logo {
        font-size: 1.2rem;
    }

    /* 7. Footer adjustments */
    .site-footer {
        padding: 3rem 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 8. Share Icons */
    .share-container {
        gap: 1rem;
        flex-wrap: wrap;
    }
}