/* app.css - Core Theme, Base Styles, and Global Utilities */

/* -------------------------------------------------------------------------- */
/*                            1. RESET & BASE                                 */
/* -------------------------------------------------------------------------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--home-bg-secondary);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.preload * {
    transition: none !important;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}


/* -------------------------------------------------------------------------- */
/*                         2. LAYOUT & CONTAINERS                             */
/* -------------------------------------------------------------------------- */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.page-content-wrapper {
    max-width: 1024px;
    margin: auto;
    padding: 100px 0;
}

/* -------------------------------------------------------------------------- */
/*                      3. TYPOGRAPHY & TEXT UTILITIES                        */
/* -------------------------------------------------------------------------- */

.page-title {
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.page-header {
    background: transparent;
    text-align: center;
    border-bottom: none;
    margin-bottom: 0;
}

.page-content-body {
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    line-height: 1.9;
    text-align: left;
}

/* Alignment Helpers */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}


/* -------------------------------------------------------------------------- */
/*                    4. BUTTONS & INTERACTIVE ELEMENTS                       */
/* -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn:disabled,
.btn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary */
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Submit (Auth/Forms) */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Ghost */
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Danger with Glow */
.btn-danger-glow {
    background: var(--error) !important;
    border-color: var(--error) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.btn-danger-glow:hover {
    background: #dc2626 !important;
}

.btn-block {
    width: 100%;
}

/* Password Toggle Icon */
.btn-password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-password-toggle:hover {
    color: var(--text-main);
}


/* -------------------------------------------------------------------------- */
/*                           5. FORMS & INPUTS                                */
/* -------------------------------------------------------------------------- */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}


/* -------------------------------------------------------------------------- */
/*                          6. GLOBAL UTILITIES                               */
/* -------------------------------------------------------------------------- */

.hidden,
.d-none {
    display: none !important;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.mt-16 {
    margin-top: 16px;
}

.icon-fixed-width {
    width: 20px;
    text-align: center;
    display: inline-block;
}


/* -------------------------------------------------------------------------- */
/*                       7. PAGE SPECIFIC (CONTACT)                           */
/* -------------------------------------------------------------------------- */

/* Contact Page Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: left;
}

@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr 1.2fr;
        gap: 60px;
        align-items: start;
    }
}

.contact-info-side {
    padding: 20px 0;
}

.contact-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Contact Card (Overrides) */
.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .contact-card {
        padding: 40px;
        border-radius: 24px;
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    }
}

.contact-card .form-group {
    margin-bottom: 24px;
}

.contact-card .form-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.contact-card .form-input {
    background: transparent;
    border: 1px solid var(--glass-border);
    padding: 16px;
    font-size: 1rem;
    border-radius: 12px;
}

.contact-card .form-input:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.contact-card .btn-submit {
    margin-top: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.contact-hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    margin-top: 30px;
}


/* Dynamic Contact Grid */
.contact-dynamic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 15%;
}

.contact-card-sm {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card-sm:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.contact-icon-circle {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.contact-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.contact-card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/*                            8. MODALS & OVERLAYS                            */
/* -------------------------------------------------------------------------- */

/* Custom Premium Modal */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.custom-modal-overlay.is-visible .custom-modal {
    transform: scale(1) translateY(0);
}

.custom-modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem auto;
}

.custom-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.custom-modal-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.custom-modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.custom-modal-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.custom-modal-btn-confirm {
    background: #ef4444;
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all 0.2s;
}

.custom-modal-btn-confirm:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* -------------------------------------------------------------------------- */
/*                            9. ACTIONS & BADGES                             */
/* -------------------------------------------------------------------------- */

.btn-delete {
    color: var(--error);
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-delete:hover {
    opacity: 0.8;
}

/* Status Badges */
.badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* -------------------------------------------------------------------------- */
/*                         10. NEW UTILITIES (REFACTORED)                     */
/* -------------------------------------------------------------------------- */

.text-xs {
    font-size: 0.75rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

.max-w-300 {
    max-width: 300px;
}

.user-card-highlight {
    border-left: 5px solid var(--primary);
}

/* Payment Success Page */
.payment-success-container {
    padding: 100px 20px;
    text-align: center;
}

.payment-success-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius);
}

.payment-success-icon {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 20px;
}

.payment-success-title {
    margin-bottom: 10px;
}

.payment-success-text {
    margin-bottom: 30px;
}

/* Verification Input */
.input-verification {
    font-size: 1.5rem !important;
    letter-spacing: 0.5rem;
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/*                        11. ERROR PAGES (404, 500)                          */
/* -------------------------------------------------------------------------- */

body.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
}

.error-card {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

/*                           9. LANDING PAGE (Home)                           */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/*                            1. CORE & LAYOUT                                */
/* -------------------------------------------------------------------------- */

/* Home Wrapper */
.home-wrapper {
    background-color: var(--home-bg);
    color: var(--home-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* -------------------------------------------------------------------------- */
/*                          2. UTILITIES & HELPERS                            */
/* -------------------------------------------------------------------------- */

.home-text-center {
    text-align: center;
}

.home-pointer {
    cursor: pointer;
}

.home-w-100 {
    width: 100%;
}

.home-d-none {
    display: none;
}

.home-d-block {
    display: block;
}

.home-d-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-mb-0 {
    margin-bottom: 0 !important;
}

.home-mt-4 {
    margin-top: 16px;
}

.home-mr-3 {
    margin-right: 12px;
}

.home-text-success {
    color: #10b981;
}

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

.bg-home-main {
    background: var(--home-bg);
}

.home-max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Animation Utils */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.2s;
}

.delay-200 {
    transition-delay: 0.4s;
}

.delay-300 {
    transition-delay: 0.6s;
}


/* -------------------------------------------------------------------------- */
/*                             3. HERO SECTION                                */
/* -------------------------------------------------------------------------- */

.home-hero {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 50%, rgba(90, 53, 222, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(165, 39, 190, 0.15), transparent 25%);
}

.home-hero .home-container {
    position: relative;
    z-index: 2;
}

.home-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(90, 53, 222, 0.1);
    border: 1px solid rgba(90, 53, 222, 0.3);
    color: #a78bfa;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.home-hero-title {
    background: var(--home-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
}

.home-hero-subtitle {
    font-size: 1rem;
    color: var(--home-text-muted);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Hero CTA Card */
.home-hero-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--home-border);
    border-radius: var(--home-border-radius);
    padding: 12px;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.02);
}

.home-hero-input-fake {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 24px;
    font-size: 1.1rem;
    color: var(--home-text-muted);
    display: flex;
    align-items: center;
}

.home-btn-primary {
    background: var(--home-primary);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-btn-primary:hover {
    background: var(--home-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(90, 53, 222, 0.4);
}

/* -------------------------------------------------------------------------- */
/*                       4. SECTIONS, GRIDS & CARDS                           */
/* -------------------------------------------------------------------------- */

.home-section {
    padding: 50px 0;
    position: relative;
    background: var(--home-card-bg);
}

.home-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.home-section-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Grid Systems */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.home-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.home-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Feature Card */
.home-card {
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: var(--home-border-radius);
    padding: 40px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.home-card:hover {
    background: var(--home-card-hover);
    border-color: rgba(90, 53, 222, 0.3);
    transform: translateY(-5px);
}

.home-card-lg-padding {
    padding: 30px;
}

.home-card-icon,
.icon-lg {
    width: 64px;
    height: 64px;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--home-text-main);
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.icon-lg {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Generic large icon variant */

.home-card:hover .home-card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--home-text-main);
}

.home-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.home-card-title-sm {
    font-size: 1.1rem;
}

.home-card-desc {
    color: var(--home-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.home-card-link {
    margin-top: auto;
    color: var(--home-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

/* Step Card */
.home-step-card {
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
}

.home-step-title {
    font-size: 1.2rem;
}

.home-step-number {
    width: 40px;
    height: 40px;
    background: var(--home-gradient);
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(90, 53, 222, 0.4);
}

/* Showcase Gallery Item */
.home-showcase-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    transition: all 0.3s ease;
}

.home-showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: var(--home-primary);
}

.home-showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-showcase-item:hover img {
    transform: scale(1.05);
}

.home-showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--home-text-main);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-showcase-item:hover .home-showcase-overlay {
    opacity: 1;
}


/* -------------------------------------------------------------------------- */
/*                    5. INTERACTIVE ELEMENTS (DUMMY TOOL)                    */
/* -------------------------------------------------------------------------- */

.dummy-tool-container {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* Wrapper for centering */
.dummy-tool-scroll-box {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Animated Toggle Wrapper */
.dummy-tool-toggle-wrapper {
    display: flex;
    justify-content: center;
    border-radius: 50px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
    background: transparent;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    border: none;
    padding: 6px;
    width: fit-content;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.dummy-tool-toggle-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 2px;
}

.dummy-tool-toggle-scroll::-webkit-scrollbar {
    display: none;
}

/* Animated Border Mask */
.dummy-tool-toggle-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(115deg, var(--home-primary), #005bff7a, #ffffff, #5106d4, var(--home-primary));
    background-size: 300% 300%;
    animation: running-stroke 8s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
}

.dummy-tool-toggle-wrapper:hover {
    border: translateX(0%) translateY(-3px);
    box-shadow: 0 5px 20px -5px rgba(90, 53, 222, 0.25), 0 0 20px rgba(6, 182, 212, 0.2);
}

.dummy-tool-toggle-wrapper:hover::before {
    animation-duration: 3s;
}

/* Toggle Pills */
.dummy-tool-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--home-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    z-index: 3;
    background: transparent;
}

.dummy-tool-toggle-pill i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.dummy-tool-toggle-pill:hover {
    color: var(--home-text-main);
    background: var(--home-bg);
    border: 1px solid var(--home-card-hover);
}

.dummy-tool-toggle-pill:hover i {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
}

.dummy-tool-toggle-pill.active {
    background: linear-gradient(115deg, var(--home-primary), #424aff99, #5106d4, var(--home-primary));
    background-size: 300% 300%;
    animation: running-stroke 8s linear infinite;
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(90, 53, 222, 0.4);
}

@keyframes running-stroke {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Tool Panel Card */
.dummy-tool-panel-card {
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.dummy-tool-panel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.dummy-tool-upload-box {
    border: 2px dashed var(--home-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dummy-tool-upload-box:hover {
    border-color: var(--home-primary);
    background: rgba(90, 53, 222, 0.05);
}

.dummy-tool-upload-icon {
    font-size: 2.5rem;
    color: var(--home-text-muted);
    margin-bottom: 16px;
}

.dummy-tool-upload-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--home-text-main);
}

.dummy-tool-upload-subtitle {
    font-size: 0.95rem;
    color: var(--home-text-muted);
    margin-bottom: 24px;
}

.dummy-tool-footer {
    margin-top: 20px;
    text-align: center;
}

.dummy-tool-footer-text {
    font-size: 0.9rem;
    color: var(--home-text-muted);
}


/* -------------------------------------------------------------------------- */
/*                           6. STATS & COUNTERS                              */
/* -------------------------------------------------------------------------- */

.home-stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--home-border);
}

.home-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--home-text-muted);
    font-size: 0.9rem;
}

.home-stat-counter-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 60px 0;
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
}

.home-counter-card {
    text-align: center;
    padding: 20px;
}

.home-counter-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--home-text-main);
    margin-bottom: 8px;
    background: var(--home-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-counter-label {
    color: var(--home-text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* -------------------------------------------------------------------------- */
/*                                7. FAQ SECTION                              */
/* -------------------------------------------------------------------------- */

.home-faq-card {
    padding: 24px;
    margin-bottom: 16px;
    min-height: auto;
    cursor: pointer;
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: 16px;
    transition: background-color 160ms ease 40ms;
}

.home-faq-card:hover {
    background: var(--home-bg-secondary);
}

.home-faq-header {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.home-faq-body {
    margin-top: 16px;
    color: var(--home-text-muted);
    display: none;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/*                        8. PLATFORM FEATURE SECTION                         */
/* -------------------------------------------------------------------------- */

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-row.reveal.active {
    opacity: 1;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-media {
    flex: 1;
    position: relative;
}

.feature-img-box {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--home-border);
    background: var(--home-card-bg);
}

.feature-img-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.feature-img-box:hover img {
    transform: scale(1.03);
}

.feature-label {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.feature-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #7d3aff, #2680ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.feature-desc {
    font-size: 1.05rem;
    color: var(--home-text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

.feature-list {
    margin-left: 1.5em;
    color: var(--home-text-muted);
}


/* -------------------------------------------------------------------------- */
/*                            8. RESPONSIVE RULES                             */
/* -------------------------------------------------------------------------- */


@media (max-width: 768px) {
    .home-hero-title {
        font-size: 2.5rem;
    }

    .home-hero-card {
        flex-direction: column;
        padding: 8px;
    }

    .home-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .home-stats-bar {
        gap: 16px;
        align-items: center;
    }

    .home-steps-grid {
        grid-template-columns: 1fr;
    }

    .home-grid-4 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);

    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .feature-text {
        order: 2;
    }

    .feature-media {
        order: 1;
        width: 100%;
    }

    .feature-title {
        font-size: 1.8rem;
    }

    /* Dummy Tool Mobile */

    .dummy-tool-upload-box {
        border: 2px dashed var(--home-border);
        border-radius: 16px;
        padding: 20px;
        text-align: center;
        transition: all 0.2s ease;
        display: block;
        text-decoration: none;
        color: inherit;
        cursor: pointer;

    }

    .dummy-tool-upload-icon {
        font-size: 2rem;
        color: var(--home-text-muted);
        margin-bottom: 16px;

    }

    .dummy-tool-upload-title {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--home-text-main);

    }

    .dummy-tool-upload-subtitle {
        font-size: 0.7rem;
        color: var(--home-text-muted);
        margin-bottom: 24px;

    }

    .dummy-tool-container {
        padding: 0 10px;
    }

    .dummy-tool-scroll-box {
        width: 100%;
        padding: 5px 0 20px 0;
        margin-bottom: -10px;
        display: flex;
        justify-content: center;
    }

    .dummy-tool-toggle-wrapper {
        display: flex;
        margin: 10px auto;
        margin-bottom: 10px;
        position: relative;
        left: auto;
        transform: none;
        width: fit-content;
        max-width: 95vw;
        flex-shrink: 0;
        overflow-x: hidden;
        justify-content: center;
        border-radius: 50px;
        background: var(--home-bg);
        box-shadow: 0 5px 20px -5px rgba(90, 53, 222, 0.25), 0 0 20px rgba(6, 182, 212, 0.2);
        padding: 4px;
    }

    .dummy-tool-toggle-scroll {
        justify-content: flex-start;
        gap: 20px;
    }

    .dummy-tool-toggle-wrapper::before {
        display: block;
        border-radius: 50px;
    }

    .dummy-tool-toggle-pill {
        flex: 0 0 auto;
        font-size: 0.72rem;
        padding: 7px 10px;
        gap: 5px;
    }

    .dummy-tool-toggle-pill i {
        font-size: 0.8rem;
    }

    .dummy-tool-toggle-pill.active {
        background: linear-gradient(115deg, var(--home-primary), #424aff99, #5106d4, var(--home-primary));
        background-size: 300% 300%;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }
}

/* home-canvas.css — Premium Canvas Background (ONLY inside Home Hero .home-container) */

.home-hero .home-container {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    /* clean stacking context */
}

/* Canvas wrap sits behind hero content but INSIDE the container */
.home-hero .home-canvas-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* IMPORTANT: not -1 */
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

/* Canvas fills the wrap */
.home-hero .home-canvas-wrap>canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Ensure hero content stays above the canvas */
.home-hero .home-container> :not(.home-canvas-wrap) {
    position: relative;
    z-index: 1;
}

/* Optional premium glow wash (very subtle) */


/* You can keep this div in HTML, but it's not needed */
.home-hero .home-canvas-noise {
    display: none;
}

/* -------------------------------------------------------------------------- */
/*                        1. CORE LAYOUT & CONTAINER                          */
/* -------------------------------------------------------------------------- */

.pricing-page-container {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.pricing-three-col {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    align-items: stretch;
}


/* -------------------------------------------------------------------------- */
/*                         2. PRICING CARDS & GRID                            */
/* -------------------------------------------------------------------------- */

.pricing-col {
    background: var(--home-bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s;
    /* Flex adjustments */
    flex: 1;
    min-width: 300px;
    max-width: 380px;
}

.pricing-col.featured {
    border: 1px solid #22d3ee;
    background: var(--home-bg-secondary);
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

.col-features {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.col-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}


/* -------------------------------------------------------------------------- */
/*                         3. TYPOGRAPHY & BADGES                             */
/* -------------------------------------------------------------------------- */

.pricing-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #22d3ee 0%, #5106d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.col-header {
    text-align: center;
    margin-bottom: 24px;
}

.col-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.col-title.highlight {
    color: #22d3ee;
}

.col-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    transition: opacity 0.2s;
}

.col-sub {
    color: #64748b;
    font-size: 0.9rem;
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
}


/* -------------------------------------------------------------------------- */
/*                      4. PLAN SELECTORS & INPUTS                            */
/* -------------------------------------------------------------------------- */

.col-selector {
    margin-bottom: 24px;
    flex-grow: 1;
}

.selector-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.selector-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
}

.plan-option:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.05);
}

.plan-option.active {
    border-color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1) inset;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #64748b;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-circle input {
    display: none;
}

.active .radio-circle {
    border-color: #22d3ee;
    background: #22d3ee;
}

.active .radio-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #0f172a;
    border-radius: 50%;
}

.opt-credits {
    font-weight: 600;
    color: var(--text-main);
    margin-right: auto;
    font-size: 0.95rem;
}

.opt-price {
    color: var(--text-muted);
    font-weight: 500;
}


/* -------------------------------------------------------------------------- */
/*                          5. BUTTONS & ACTIONS                              */
/* -------------------------------------------------------------------------- */

.col-btn {
    border-radius: 99px;
    padding: 14px;
    font-weight: 700;
    margin-bottom: 32px;
    transition: all 0.2s;
}

.btn-glass {
    background: var(--home-card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 1px 10px var(--home-border);
    transform: translateY(-1px);
}

.sub-col .col-btn {
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.sub-col .col-btn:hover {
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.active-sub-status {
    text-align: center;
    margin: 20px;

}

.badge-active-plan {
    color: #22d3ee;
    font-size: 1rem;
    gap: 10px;
    display: inline-flex;
    align-items: center;
}

.plan-option.disabled {
    pointer-events: none !important;
    opacity: 0.5 !important;
}


/* -------------------------------------------------------------------------- */
/*                           6. RESPONSIVE RULES                              */
/* -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    .pricing-three-col {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-col.featured {
        transform: none;
        order: -1;
    }
}

/* -------------------------------------------------------------------------- */
/*                           11. BLOG                                         */
/* -------------------------------------------------------------------------- */
.blog-hero {
    background-color: var(--home-bg);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-grid-section {
    padding: 60px 0 80px;
    background-color: var(--home-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--home-card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.blog-thumb-link {
    display: block;
    overflow: hidden;
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.blog-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-meta i {
    color: var(--primary);
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.blog-read-more:hover {
    gap: 10px;
}

/* =========================================
   Blog Single Implementation
   ========================================= */
.article-header {
    background-color: var(--home-bg-secondary);
    padding: 10px 0;
    text-align: center;
}

.article-header .badge {
    background-color: rgba(99, 102, 241, 0.1);
    /* Primary with opacity */
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 1rem;
}

.article-content-section {
    padding: 60px 0 100px;
    background: var(--home-bg);
}

.article-featured-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: var(--radius);
    margin: -100px auto 60px;
    /* Overlap effect */
    display: block;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    border: 1px solid var(--glass-border);
}

/* Typography / Prose */
.blog-prose {
    max-width: 740px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-main);
}

.blog-prose p {
    margin-bottom: 1.5em;
}

.blog-prose h1,
.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
    color: var(--text-main);
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
}

.blog-prose ul,
.blog-prose ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
    color: var(--text-main);
}

.blog-prose li {
    margin-bottom: 0.5em;
}

.blog-prose blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5em;
    font-style: italic;
    color: var(--text-muted);
    margin: 2em 0;
}

.blog-prose img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    margin: 2em 0;
    border: 1px solid var(--glass-border);
}

.blog-prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Share Footer (Redesign) */
.article-share-section {
    padding-top: 40px;
}

.share-title {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: var(--text-main);
}

.share-icon-link {
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid transparent;
}

.share-icon-link:hover {
    color: var(--text-main);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--glass-border);
    transform: translateY(-2px);
}

/* =========================================
   New Hero & Categories (Redesign)
   ========================================= */

.pt-120 {
    padding-top: 120px;
}

.blog-header {
    background: var(--home-bg);
}

/* Remove old mini hero if unused, or keep for legacy */

.blog-hero-featured {
    background: var(--home-bg);
}

.hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--home-card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.hero-image-wrapper {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-card:hover .hero-image-wrapper img {
    transform: scale(1.05);
}

.hero-content {
    padding: 20px 20px 20px 0;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-title a {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.hero-title a:hover {
    color: var(--primary);
}

.hero-excerpt {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-image-wrapper {
        height: 250px;
    }

    .hero-content {
        padding: 0 10px 10px;
    }

    .hero-title a {
        font-size: 1.8rem;
    }
}

/* Category Navigation */
.category-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.category-nav::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.category-nav {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.category-pill {
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--home-card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* =========================================
   Blog Single Sidebar Layout
   ========================================= */

.blog-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .blog-layout-grid {
        grid-template-columns: 1fr 320px;
        gap: 60px;
    }
}

/* Sidebar Styling */
.blog-sidebar {
    position: relative;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: var(--home-bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

/* Recent Posts Widget */
.sidebar-post-item {
    text-decoration: none;
    transition: transform 0.2s;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
}

.sidebar-post-item:hover {
    transform: translateX(4px);
    background: var(--glass-border);
}

.sidebar-thumb {
    width: auto;
    height: 100px;
    margin: 10px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Categories Widget */
.sidebar-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Main Content Adjustments */
.blog-main-content .article-featured-image {
    margin: 0 0 30px;
    /* Reset overlap logic from previous design */
    width: 100%;
    max-width: 100%;
}

.blog-main-content .blog-prose {
    max-width: 100%;
    /* Let grid control width */
}

/* -------------------------------------------------------------------------- */
/*                        1. ANTI-FLASH & STATE LOGIC                         */
/* -------------------------------------------------------------------------- */

/* Hides body temporarily while translation loads */
body.lang-pending {
    opacity: 0 !important;
    transition: opacity 0.5s ease;
}


/* -------------------------------------------------------------------------- */
/*                   2. GOOGLE UI HIDING (BANNER & FRAMES)                    */
/* -------------------------------------------------------------------------- */

/* Hide Top Banner Frame */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.skiptranslate {
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: -9999px !important;
    display: none !important;
}

/* Hide Floating Widget Icon */
.goog-te-gadget-icon {
    display: none !important;
}


/* -------------------------------------------------------------------------- */
/*                       3. LAYOUT FIXES (BODY/HTML RESET)                    */
/* -------------------------------------------------------------------------- */

/* Prevent Google Margin Shift */
body {
    top: 0px !important;
    position: static !important;
    margin-top: 0px !important;
}

html {
    margin-top: 0px !important;
    height: 100% !important;
}


/* -------------------------------------------------------------------------- */
/*                      4. VISUAL ARTIFACT PREVENTION                         */
/* -------------------------------------------------------------------------- */

/* Fix "White Blink" on Text */
font,
font * {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

font:hover {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* -------------------------------------------------------------------------- */
/*                           13. INSTALLER                                    */
/* -------------------------------------------------------------------------- */

body.installer-body {
    background: var(--home-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.success-icon-container {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    height: 80px;
    width: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.step-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 20px;
}

/* Alerts */
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
}

/* Success Box */
.installer-success-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0 30px 0;
    text-align: center;
}

.installer-text-muted {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.installer-text-highlight {
    color: var(--text-main);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.installer-box-locked {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    text-align: center;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 24px;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
    text-decoration: none;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

.btn-block-link {
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Utilities */
.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-2 {
    margin-top: 0.5rem;
}

/* Pulse Animation for Button */
@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.btn-premium-pulse {
    animation: btnPulse 2s infinite;
}

.text-success {
    color: var(--success);
}

/* components.css - Component Styles
   Contents:
   1. Header / Navbar
   2. Sidebar / Mobile Menu
   3. User Dashboard
   4. Library Grid
   5. Modals (Auth, Payment, Feedback)
   6. Toasts & Alerts
   7. Email Templates & Progress
   8. Utilities (Scroll Top, etc.)
*/

/* -------------------------------------------------------------------------- */
/*                               1. HEADER / NAVBAR                           */
/* -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--glass-border);
    min-height: 80px;
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.header-brand:hover {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.header-brand-logo {
    height: 40px;
    width: auto;
    margin: auto;
}

.header-brand-logo--light {
    display: none;
}

html.theme-light .header-brand-logo--light {
    display: block;
}

html.theme-light .header-brand-logo--dark {
    display: none;
}

/* Nav (Desktop) */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
    background: var(--hover-bg);
}

.nav-link.active {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.nav-link.active .nav-link-icon {
    color: var(--text-main);
    opacity: 1;
}

.nav-link-inner {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link-icon {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Dropdowns */
.nav-item-has-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    min-width: 200px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.7);
    display: none;
    z-index: 2100;
}

.nav-item-has-dropdown:hover .nav-dropdown,
.nav-dropdown-open {
    background: var(--home-bg-secondary);
    display: block;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-dropdown-link:hover {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-main);
}

.nav-dropdown-icon,
.nav-icon-fixed {
    width: 20px;
    text-align: center;
}

/* Actions Area */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Button Icon (Circular) */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon:hover {
    background: var(--hover-bg);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(149, 149, 149, 0.3);
}

/* Theme Icons */
.icon-sun,
.icon-moon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.icon-sun {
    color: #fbbf24;
}

.icon-moon {
    color: #94a3b8;
}

html.theme-light .icon-moon {
    color: #475569;
    display: block !important;
}

html.theme-light .icon-sun {
    display: none;
}

.btn-icon:hover .icon-sun {
    transform: rotate(45deg);
    color: #f59e0b;
}

.btn-icon:hover .icon-moon {
    transform: rotate(-15deg);
    color: #1e293b;
}

/* User Avatar Dropdown (Premium UI) */
.user-avatar-container {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    transition: all 0.2s ease;
}

.user-avatar-initials {
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    padding: 0;
    margin: 0;
}

.user-avatar-container:hover .user-avatar,
.user-avatar-container.active .user-avatar {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.user-avatar-container .dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 280px;
    background: var(--home-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.user-avatar-container.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Premium Dropdown Internals */
.dropdown-header-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 12px 8px;
    margin-bottom: 0;
}

.dropdown-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.dropdown-user-plan {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.dropdown-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Credits Card */
.dropdown-credits-card {
    background: var(--home-bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    margin: 4px 0 12px 0;
}

.dropdown-credits-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.d-credits-label {
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.d-credits-val {
    color: #fcd34d;
    font-weight: 700;
    font-family: 'Inter', monospace;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.dropdown-btn-upgrade-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-btn-upgrade-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.3);
    color: #000;
}

/* Nav Items */
.dropdown-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.15s;
    font-weight: 500;
}

.dropdown-nav-item:hover {
    background: var(--glass-border);
    color: var(--text-main);
}

.dropdown-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    opacity: 0.8;
}

.dropdown-divider {
    height: 1px;
    border: 1px solid var(--glass-border);
    margin: 6px 0;
}

.item-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Premium Sub Info (Restored Feature) */
.dropdown-sub-info-premium {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-top: 8px;
}

.d-sub-days {
    color: #818cf8;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.d-sub-days i {
    font-size: 0.9rem;
}

.d-sub-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Credits Badge (Navbar) - Reduced usage if dropdown is prominent */
.credits-badge {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    height: auto !important;
    border-radius: 8px !important;
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: var(--text-main) !important;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
}

@media(min-width: 768px) {
    .credits-badge {
        display: inline-flex;
    }
}

.credits-badge:hover {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.credits-badge i,
.credits-badge svg {
    color: var(--text-main);
    font-size: 0.9rem;
    width: 16px;
    height: 16px;
}

/* Upgrade Button (Navbar) */
.btn-upgrade {
    display: none;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
    text-decoration: none;
    transition: all 0.2s;
}

@media(min-width: 900px) {
    .btn-upgrade {
        display: inline-flex;
    }
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.5);
    color: #fff;
}

/* Lang Switcher */
.lang-switch {
    display: none;
    position: relative;
}

@media(min-width: 900px) {
    .lang-switch {
        display: block;
    }
}

.btn-lang {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-lang:hover {
    color: var(--text-main);
}

.lang-arrow {
    font-size: 0.75rem;
    opacity: 0.7;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--home-bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px;
    display: none;
    min-width: 120px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.lang-switch:hover .lang-dropdown {
    display: block;
}

.lang-dropdown-link {
    display: block;
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-radius: 4px;
}

.lang-dropdown-link:hover {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}


/* -------------------------------------------------------------------------- */
/*                          2. SIDEBAR / MOBILE MENU                          */
/* -------------------------------------------------------------------------- */

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 1990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile Auth Button Container - Default Hidden on Desktop */
.mobile-menu-auth-container {
    display: none;
}

/* Only show on desktop if explicitly not suppressed (Safety rule default hidden) */
@media (min-width: 992px) {
    .mobile-menu-auth-container {
        display: none !important;
    }
}

/* Responsive Rules (Max Width 991px) */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--home-bg);
        z-index: 2500;
        padding: 80px 20px 40px 20px;
        overflow-y: auto;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav.is-open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 12px;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-dropdown {
        position: static;
        width: 100%;
        margin-top: 5px;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 10px;
        display: none;
    }

    .nav-dropdown-open {
        display: block;
    }

    /* Mobile Auth Button Logic */
    .mobile-menu-auth-container {
        display: flex !important;
        width: 100%;
        margin-top: 24px;
        padding: 0 16px;
        position: relative;
        z-index: 100;
        justify-content: center;
    }

    .mobile-auth-btn {
        width: 100%;
        justify-content: center;
    }

    .desktop-auth-btns {
        display: none;
    }
}


/* -------------------------------------------------------------------------- */
/*                            3. USER DASHBOARD                               */
/* -------------------------------------------------------------------------- */

.user-page-container {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.user-page-header {
    margin-bottom: 40px;
    text-align: center;
}

.user-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.user-card {
    background: var(--home-bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-state-action {
    margin-top: 20px;
}

/* Data Tables */
.table-responsive {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.user-table th {
    padding: 16px 24px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.user-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s;
}

.user-table-date {
    color: var(--text-main);
}

.user-table-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-table-plan {
    font-weight: 600;
    color: var(--text-main);
}

.user-table-amount {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--text-main);
}

.user-table-ref {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.85rem;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-paid {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-icon {
    margin-right: 6px;
    font-size: 0.7rem;
}


/* -------------------------------------------------------------------------- */
/*                             4. LIBRARY GRID                                */
/* -------------------------------------------------------------------------- */

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    animation: fadeIn 0.5s ease-out;
}

.library-card {
    background: var(--home-bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;

}

.library-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.library-img-wrapper {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.library-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.library-card:hover .library-img-wrapper img {
    transform: scale(1.05);
}

.library-overlay {
    position: absolute;
    inset: 0;
    background: var(--home-bg-secondary);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: all 0.3s ease;
}

.library-card:hover .library-overlay {
    opacity: 1;
}

.library-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    text-decoration: none;
}

.library-btn:hover {
    background: white;
    color: var(--bg-body);
    transform: scale(1.1);
}

.btn-delete:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

.library-info {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
}

.library-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tool Badges */
.tool-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

@media (max-width: 768px) {
    .library-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}


/* -------------------------------------------------------------------------- */
/*                                5. MODALS                                   */
/* -------------------------------------------------------------------------- */

/* --- AUTH MODAL --- */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.active,
.auth-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
}

.auth-modal {
    background: var(--home-bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    padding: 32px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.auth-modal-overlay.active .auth-modal,
.auth-modal-overlay.is-visible .auth-modal {
    transform: scale(1) translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.auth-modal.view-verify-active .auth-modal-close {
    display: none !important;
}

.auth-modal-close:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Auth Content */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab-btn.active {
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.auth-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-view.active {
    display: block;
}

/* Social Login */
.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: white;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
}

.auth-google-btn:hover {
    background: #f8fafc;
    border-color: #ccc;
    transform: translateY(-1px);
}

.auth-google-btn i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: #444;
}

.auth-google-btn img {
    margin-right: 10px;
    width: 20px;
}

/* Auth Wrapper (Full Page) */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-footer,
.auth-switch-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 24px;
}

.auth-footer a,
.auth-switch-text a {
    color: var(--primary);
    font-weight: 600;
}

.auth-switch-text a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.auth-divider::before {
    margin-right: 12px;
}

.auth-divider::after {
    margin-left: 12px;
}

.auth-terms {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

.auth-terms a {
    color: var(--text-main);
    text-decoration: underline;
}

/* --- PAYMENT MODAL --- */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.payment-method-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.payment-method-btn span {
    flex: 1;
    margin-left: 16px;
}

.payment-icon {
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.payment-method-btn:hover .payment-icon {
    color: var(--text-main);
}

.payment-method-btn .arrow {
    opacity: 0.5;
    transition: transform 0.2s;
    font-size: 0.9rem;
}

.payment-method-btn:hover .arrow {
    opacity: 1;
    transform: translateX(4px);
    color: var(--primary);
}

.auth-footer-text {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.payment-verify-loader {
    text-align: center;
    padding: 20px;
}

.modal-content-sm {
    max-width: 400px;
    text-align: center;
}

.modal-icon-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    margin: 0 auto 20px;
}

/* --- FEEDBACK MODAL --- */
.feedback-modal {
    max-width: 400px;
    text-align: center;
}

.feedback-header {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feedback-text {
    margin-bottom: 20px;
}

.feedback-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.feedback-btn-good {
    border-color: #10b981;
    color: #10b981;
}

.feedback-btn-good:hover {
    background: rgba(16, 185, 129, 0.1);
}

.feedback-btn-bad {
    border-color: #ef4444;
    color: #ef4444;
}

.feedback-btn-bad:hover {
    background: rgba(239, 68, 68, 0.1);
}

.feedback-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.feedback-bad-container {
    margin-top: 15px;
}

.feedback-textarea {
    width: 100%;
    margin-bottom: 10px;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background: var(--bg-main);
    color: var(--text-main);
}

.feedback-textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.feedback-submit-btn {
    width: 100%;
}


/* -------------------------------------------------------------------------- */
/*                            6. TOASTS & ALERTS                              */
/* -------------------------------------------------------------------------- */

#toast-container,
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Fallback/Legacy Toast Support */
.toast-container {
    bottom: 24px;
    top: auto;
}

.toast {
    pointer-events: auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 16px 24px;
    border-radius: 12px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast-text {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    margin: -4px -4px -4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* Variants */
.toast-success {
    border-left: 4px solid var(--success);
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--error);
}

.toast-error .toast-icon {
    color: var(--error);
}

.toast-info {
    border-left: 4px solid var(--primary);
}

.toast-info .toast-icon {
    color: var(--primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Static Flash Messages */
.flash-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
    display: none !important;
}

.flash-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.flash-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    margin-left: 10px;
}

.flash-close:hover {
    opacity: 1;
}


/* -------------------------------------------------------------------------- */
/*                  7. PAYMENT REDIRECT PROGRESS & EMAIL TEMPLATES / INVOICE */
/* -------------------------------------------------------------------------- */

.redirect-progress-wrapper {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    margin-top: 20px;
    overflow: hidden;
    position: relative;
}

.redirect-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, #a855f7 100%);
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
    transition: width 1s linear;
}


:root {
    --invoice-bg: #ffffff;
    --invoice-text: #1f2937;
    --invoice-border: #e5e7eb;
    --invoice-primary: #4F46E5;
}

body.email-body {
    background-color: #f3f4f6;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 40px 0;
    color: var(--invoice-text);
}

.email-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--invoice-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

.email-header {
    padding: 30px;
    text-align: center;
    background: #111827;
    border-bottom: 4px solid var(--invoice-primary);
}

.email-header h1 {
    color: #ffffff;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.email-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.email-content {
    padding: 40px;
}

.email-title,
.email-content h2 {
    margin-top: 0;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.email-text,
.email-content p {
    color: #6b7280;
    text-align: center;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.email-code-box {
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #4f46e5;
    margin: 30px 0;
    display: inline-block;
    font-family: monospace;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.email-message-box {
    margin: 24px 0;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #4F46E5;
}

.center-text {
    text-align: center;
}

/* Redundant but kept for backward compat */
.email-btn,
.email-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--invoice-primary);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.email-btn:hover,
.email-btn-primary:hover {
    background-color: #4338ca;
}

.print-btn {
    background-color: #fff;
    color: #374151 !important;
    border: 1px solid #d1d5db;
    margin-right: 10px;
}

.print-btn:hover {
    background-color: #f3f4f6;
}

.email-action-section {
    text-align: center;
    margin-top: 30px;
}

.email-footer {
    text-align: center;
    padding: 20px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #9ca3af;
}

.email-note {
    display: block;
    color: #9ca3af;
    font-size: 13px;
    margin-top: 10px;
}

/* Email Invoice Tables */
.email-invoice-details {
    margin-bottom: 24px;
    background: #f9fafb;
    border: 1px solid var(--invoice-border);
    border-radius: 8px;
    padding: 20px;
}

.email-invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #4b5563;
}

.email-invoice-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.email-invoice-label {
    color: #6b7280;
    font-weight: 500;
}

.email-invoice-value {
    color: #111827;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.email-invoice-credit {
    color: #10B981;
}

.email-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0;
    border: none;
}

.email-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-top: 0;
}

.email-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #e0e7ff;
    color: #4338ca;
}

/* Legacy Table Support */
.email-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.email-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.email-table .label {
    font-weight: bold;
    width: 30%;
    color: #4b5563;
}

.email-table .value {
    color: #111827;
}

@media only screen and (max-width: 600px) {
    .email-body {
        padding: 20px 10px;
    }

    .email-container {
        padding: 0;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
        color: black;
    }

    .email-container {
        box-shadow: none;
        max-width: 100%;
        border-radius: 0;
        margin: 0;
    }

    .no-print,
    .email-action-section {
        display: none !important;
    }

    .email-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .btn,
    .email-btn {
        display: none;
    }
}


/* -------------------------------------------------------------------------- */
/*                             8. UTILITIES                                   */
/* -------------------------------------------------------------------------- */

/* Scroll To Top */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 42px;
    height: 42px;
    background: transparent;
    color: var(--text-muted);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid var(--glass-border);
    z-index: 1900;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(20px);
    text-decoration: none;
    cursor: pointer;
}

.scroll-top-btn:hover {
    background: var(--hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 1px 10px rgba(99, 102, 241, 0.3);
    color: var(--text-main);
}

.scroll-top-btn.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 30px;
        right: 30px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* FAQ Accordion */

.section-faq {
    max-width: 900px;
    margin: auto;
}

.faq-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.faq-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--home-text-main);
}

.faq-hero-title {
    background: var(--home-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: inherit;
}

.faq-item {
    padding: 24px;
    margin-bottom: 16px;
    min-height: auto;
    cursor: pointer;
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: 16px;
    transition: background-color 160ms ease 40ms;
}

.faq-item:hover {
    background: var(--home-bg-secondary);
}

.faq-header i {
    transition: transform 0.3s ease;
    color: var(--home-text-muted);
}

.faq-header {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    color: var(--home-text-main);
    font-size: 1.05rem;
}

.faq-body {
    margin-top: 16px;
    color: var(--home-text-muted);
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-header i {
    color: var(--home-text-main);
}

/* Password Toggle Styles */
.input-wrapper {
    position: relative;
    width: 100%;
}

.btn-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: color 0.2s;
    z-index: 5;
}

.btn-password-toggle:hover {
    color: var(--primary);
    background: transparent;
}

/* Password Strength Meter */
.password-strength-area {
    margin-top: 10px;
    margin-bottom: 20px;
}

.strength-meter {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.strength-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.req-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.req-item i {
    font-size: 0.4rem;
    transition: color 0.2s, transform 0.2s;
}

.req-item.valid {
    color: var(--success);
}

.req-item.valid i {
    color: var(--success);
    transform: scale(1.2);
}

.strength-weak {
    background-color: var(--error);
}

.strength-medium {
    background-color: #fbbf24;
}

.strength-strong {
    background-color: var(--success);
}

/* Footer */
.site-footer {
    background-color: var(--home-bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    margin-top: 10%;
    color: var(--text-muted);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    text-align: left;
}

.footer-logo img,
.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.footer-logo .logo-light {
    display: none;
}

.footer-logo .logo-dark {
    display: block;
}

html.theme-light .footer-logo .logo-light {
    display: block;
}

html.theme-light .footer-logo .logo-dark {
    display: none;
}

.footer-desc {
    font-size: 0.95rem;
    display: flex;
    line-height: 1.6;
    max-width: 300px;
    margin-bottom: 10px;
    margin-top: 16px;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--home-bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.footer-socials a:hover {
    color: var(--text-main);
    border: 1px solid rgb(0, 0, 0, 0.2);
    box-shadow: 0 1px 10px rgb(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list a {
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav-list a:hover {
    color: var(--text-main);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    gap: 15px;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-desc {
        margin: 0 auto 15px auto;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Pagination (Global / for Helper) */
.global-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
}

.pagination-link:hover,
.pagination-btn:hover {
    background: var(--hover-bg);
    color: var(--text-main);
    border-color: var(--primary);
}

.pagination-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pagination-btn.disabled,
.pagination-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.pagination-dots {
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 2px;
}

/* -------------------------------------------------------------------------- */
/*                        10. NAVIGATION HINT (GLOBAL)                        */
/* -------------------------------------------------------------------------- */

.nav-scroll-hint {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--home-bg-secondary);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 20;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(90, 53, 222, 0.4);
}

.nav-scroll-hint.visible {
    opacity: 1;
    visibility: visible;
    animation: nav-hint-pulse 2s infinite;
}

@keyframes nav-hint-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(90, 53, 222, 0.7);
        transform: translateY(-50%) scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(90, 53, 222, 0);
        transform: translateY(-50%) scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(90, 53, 222, 0);
        transform: translateY(-50%) scale(1);
    }
}