/* ==========================================================================
   QReality Design System & Stylesheet
   ========================================================================== */

/* --- 1. Custom Properties & Tokens --- */
:root {
    /* Color Palette - Premium Light Corporate Theme */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-solid: #ffffff;
    --bg-input: #ffffff;
    --border-color: #e2e8f0;
    --border-glow: rgba(0, 102, 255, 0.03);

    --primary: #0066ff;
    /* Vibrant Blue */
    --primary-hover: #0052cc;
    --primary-glow: rgba(0, 102, 255, 0.12);

    --secondary: #00b4d8;
    --secondary-hover: #0096c7;

    --text-primary: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-dark: #0f172a;

    --success: #10b981;
    /* Emerald */
    --success-glow: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    /* Amber */
    --danger: #ef4444;
    /* Red */

    /* Layout & Styling */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 20px -2px rgba(0, 82, 204, 0.04), 0 2px 8px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 82, 204, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.01);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================================== 
   Branded pricing, legal and contact pages
   ========================================================================== */
.pricing-page {
    position: relative;
    padding: 58px 0 70px;
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 102, 255, .11), transparent 27%),
        radial-gradient(circle at 90% 18%, rgba(0, 180, 216, .11), transparent 25%),
        linear-gradient(180deg, #f7faff 0%, #ffffff 42%);
}

.pricing-page::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 50%;
    width: 86px;
    height: 86px;
    opacity: .12;
    background: repeating-conic-gradient(#0066ff 0 25%, transparent 0 50%) 50% / 22px 22px;
    transform: translateX(-50%) rotate(8deg);
}

.pricing-page-header {
    position: relative;
    z-index: 1;
    margin-bottom: 46px;
}

.pricing-page-header h1 {
    background: linear-gradient(135deg, #0f2346, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-page-grid {
    position: relative;
    z-index: 1;
    gap: 22px;
    padding: 0 8px;
}

.pricing-plan-card {
    min-height: 600px;
    padding: 28px;
    overflow: visible;
    border: 1px solid #dce7f5;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 20px 55px rgba(28, 73, 128, .11);
}

.pricing-plan-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, #0066ff, #00b4d8);
}

.pricing-plan-featured {
    color: #ffffff;
    border: 0;
    background: linear-gradient(155deg, #0f2c63 0%, #075dd6 62%, #00a4d0 130%);
    transform: translateY(-10px);
    box-shadow: 0 24px 65px rgba(0, 88, 205, .28);
}

.pricing-plan-featured::before {
    background: linear-gradient(90deg, #79e1ff, #ffffff, #79e1ff);
}

.pricing-plan-head,
.pricing-plan-featured .pricing-plan-head {
    display: flex;
    min-height: 118px;
    align-items: flex-start;
    gap: 14px;
    padding: 6px 0 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pricing-plan-mark {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #0066ff !important;
    border-radius: 16px;
    background: #eaf3ff;
    box-shadow: inset 0 0 0 1px #c8defd;
    font-size: 23px !important;
    font-weight: 900;
}

.pricing-plan-featured .pricing-plan-mark {
    color: #113167 !important;
    background: #ffffff;
    box-shadow: none;
}

.pricing-plan-head h2 {
    color: #142b54;
    font-size: 24px;
    text-transform: none;
}

.pricing-plan-head p {
    margin: 3px 0 11px;
    color: #5e708e;
}

.pricing-plan-head div>span {
    color: #71819b;
    font-size: 12px;
}

.pricing-plan-featured .pricing-plan-head h2,
.pricing-plan-featured .pricing-plan-head p,
.pricing-plan-featured .pricing-plan-head div>span {
    color: #ffffff;
}

.pricing-popular {
    top: -42px;
    right: 18px;
    padding: 7px 12px;
    color: #07469e !important;
    background: #dff8ff;
    box-shadow: 0 6px 18px rgba(4, 36, 81, .22);
}

.pricing-page-price {
    margin: 12px 0 0;
    color: #10274f;
    text-align: left;
}

.pricing-plan-featured .pricing-page-price,
.pricing-plan-featured .pricing-annual {
    color: #ffffff;
}

.pricing-annual {
    margin: 9px 0 23px;
    color: #6f7f99;
    text-align: left;
}

.pricing-get-started {
    margin: 4px 0 25px;
    padding: 13px 20px;
    color: #ffffff;
    border-radius: 11px;
    background: linear-gradient(90deg, #0066ff, #00a9d6);
    box-shadow: 0 9px 22px rgba(0, 102, 255, .2);
}

.pricing-plan-featured .pricing-get-started {
    color: #0755b8;
    background: #ffffff;
    box-shadow: 0 9px 24px rgba(3, 32, 78, .2);
}

.pricing-feature-list {
    gap: 0;
    margin: 0;
}

.pricing-feature-list li {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 12px 0 12px 31px;
    border-bottom: 1px solid #e8eef6;
}

.pricing-feature-list li::before {
    content: '✓';
    position: absolute;
    top: 12px;
    left: 0;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: #13a571;
    font-size: 11px;
    font-weight: 900;
}

.pricing-feature-list strong {
    padding: 0;
    color: #075fda;
    background: transparent;
    text-align: left;
    text-transform: none;
}

.pricing-feature-list span {
    color: #526481;
}

.pricing-plan-featured .pricing-feature-list li {
    border-bottom-color: rgba(255, 255, 255, .18);
}

.pricing-plan-featured .pricing-feature-list strong,
.pricing-plan-featured .pricing-feature-list span {
    color: #ffffff;
}

.pricing-tax-note {
    margin-top: 28px;
}

.pricing-value-section {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
    margin-top: 88px;
    padding: 65px 58px;
    border-radius: 30px;
    background: #0f2346;
    color: #ffffff;
}

.pricing-section-copy h2 {
    margin: 13px 0;
    font-size: 36px;
    line-height: 1.12;
}

.pricing-section-copy p {
    color: #bdcbe0;
}

.pricing-value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pricing-value-grid article {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
}

.pricing-value-grid article>span {
    color: #63d7ff;
    font-size: 12px;
    font-weight: 900;
}

.pricing-value-grid h3 {
    margin: 8px 0 5px;
    font-size: 18px;
}

.pricing-value-grid p {
    color: #bdcbe0;
    font-size: 13px;
}

.pricing-guide-section {
    display: grid;
    grid-template-columns: .55fr 1.45fr;
    gap: 45px;
    margin: 62px 0;
    padding: 0 18px;
}

.pricing-guide-section h2 {
    margin-top: 12px;
    color: #11284f;
    font-size: 34px;
}

.pricing-guide-list {
    display: grid;
    gap: 12px;
}

.pricing-guide-list p {
    padding: 18px 20px;
    color: #536784;
    border-left: 4px solid #0066ff;
    border-radius: 0 14px 14px 0;
    background: #f2f7fd;
}

.pricing-guide-list strong {
    color: #075fd6;
}

.pricing-faq-section {
    padding: 58px 42px;
    border-radius: 28px;
    background: #f3f7fc;
}

.pricing-faq-list {
    display: grid;
    max-width: 900px;
    gap: 10px;
    margin: 34px auto 0;
}

.pricing-faq-list details {
    padding: 17px 20px;
    border: 1px solid #d9e4f1;
    border-radius: 13px;
    background: #ffffff;
}

.pricing-faq-list summary {
    color: #172b50;
    font-weight: 800;
    cursor: pointer;
}

.pricing-faq-list p {
    padding-top: 10px;
    color: #5c6f8c;
}

.pricing-faq-list a {
    color: #0066ff;
}

.pricing-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 42px;
    padding: 38px 44px;
    color: #ffffff;
    border-radius: 24px;
    background: linear-gradient(110deg, #0066ff, #00a9d6);
}

.pricing-final-cta span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.pricing-final-cta h2 {
    margin: 6px 0;
}

.pricing-final-cta p {
    color: rgba(255, 255, 255, .82);
}

.pricing-final-cta .btn {
    color: #0755b8;
    background: #ffffff;
    white-space: nowrap;
}

.inner-page-shell,
.contact-page {
    min-height: calc(100vh - 80px);
    padding: 56px 0 76px;
    background: linear-gradient(180deg, #f7faff, #ffffff);
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 55px;
    border: 1px solid #dce6f2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 55px rgba(31, 68, 116, .09);
}

.legal-page header {
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e1e8f1;
}

.legal-page h1 {
    margin: 12px 0 6px;
    color: #10274f;
    font-size: 46px;
}

.legal-page header p {
    color: #72819a;
}

.legal-page>p {
    color: #51647f;
}

.legal-page h2 {
    margin: 30px 0 8px;
    color: #173666;
    font-size: 21px;
}

.legal-page a {
    color: #0066ff;
    font-weight: 700;
}

.contact-page-intro {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.contact-page-intro h1 {
    margin: 12px 0 8px;
    color: #10274f;
    font-size: 48px;
}

.contact-page-intro p {
    color: #60728f;
    font-size: 17px;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 25px;
}

.contact-details-card,
.contact-form-card {
    padding: 38px;
    border: 1px solid #dce6f3;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 15px 45px rgba(31, 70, 124, .09);
}

.contact-details-card {
    color: #ffffff;
    border: 0;
    background: linear-gradient(145deg, #102952, #0066db);
}

.contact-details-card h2 {
    font-size: 30px;
}

.contact-details-card>p {
    margin: 8px 0 30px;
    color: #bfd1eb;
}

.contact-details-card>a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 19px 0;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, .16);
    overflow-wrap: anywhere;
}

.contact-details-card span {
    color: #72dcff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.contact-hours {
    margin-top: 18px;
    padding: 18px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .09);
}

.contact-hours p {
    color: #d0ddf0;
}

.contact-form-card {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.contact-form-card label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #344967;
    font-size: 12px;
    font-weight: 800;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    padding: 12px 14px;
    color: #172b4d;
    border: 1px solid #cbd8e7;
    border-radius: 9px;
    background: #fbfdff;
    font: inherit;
    font-weight: 500;
    outline: 0;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, .1);
}

.contact-form-card textarea {
    min-height: 125px;
    resize: vertical;
}

.contact-form-card .btn {
    align-self: flex-start;
}

.contact-form-note {
    color: #75849c;
    font-size: 11px;
}

.contact-help-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.contact-help-strip article {
    padding: 24px;
    border: 1px solid #dce6f2;
    border-radius: 17px;
    background: #ffffff;
}

.contact-help-strip h3 {
    color: #17335f;
}

.contact-help-strip p {
    margin: 7px 0 13px;
    color: #657792;
    font-size: 13px;
}

.contact-help-strip a {
    color: #0066ff;
    font-weight: 800;
}

.site-footer .footer-bottom a {
    color: inherit;
}

@media (max-width: 900px) {
    .pricing-plan-featured {
        transform: none;
    }

    .pricing-value-section,
    .pricing-guide-section,
    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .pricing-value-section {
        padding: 42px 28px;
    }

    .contact-help-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .pricing-page {
        padding-top: 36px;
    }

    .pricing-plan-card {
        padding: 23px;
    }

    .pricing-value-grid {
        grid-template-columns: 1fr;
    }

    .pricing-faq-section {
        padding: 38px 18px;
    }

    .pricing-final-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 30px 24px;
    }

    .legal-page {
        padding: 32px 22px;
        border-radius: 16px;
    }

    .legal-page h1,
    .contact-page-intro h1 {
        font-size: 36px;
    }

    .contact-details-card,
    .contact-form-card {
        padding: 27px 22px;
    }

    .contact-form-card .inputs-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- 2. Base & Layout Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    position: relative;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- 3. Ambient Glow Effects (Disabled for Light Theme) --- */
.bg-glow {
    display: none;
}

/* --- 4. Main Navigation Header --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 500;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f6df6;
}

.logo-icon i,
.logo-icon svg {
    width: 44px;
    height: 44px;
    stroke-width: 2.5px;
}

.logo-text-bold {
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, #0066ff, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 38px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #0066ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0066ff;
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logged-out-actions {
    display: flex;
    align-items: center;
}

.btn-login-header {
    font-size: 13.5px;
    font-weight: 600;
    color: #0066ff;
    padding: 8px 16px;
    border: 1px solid #d2e4ff;
    border-radius: 8px;
    transition: var(--transition-fast);
    margin-right: 8px;
    cursor: pointer;
}

.btn-login-header:hover {
    background: rgba(0, 102, 255, 0.04);
    border-color: #0066ff;
}

.btn-signup-header {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff !important;
    background: #0066ff;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-signup-header:hover {
    background: #0052cc;
}

.lang-selector-wrapper {
    border-left: 1px solid #e2e8f0;
    padding-left: 14px;
    margin-left: 4px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}

.lang-selector i {
    width: 15px;
    height: 15px;
}

.user-tier-badge {
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 50px;
    color: #64748b;
}

.user-tier-badge.pro {
    background: rgba(0, 102, 255, 0.08);
    border-color: rgba(0, 102, 255, 0.2);
    color: #0066ff;
}

.user-profile-menu {
    position: relative;
}

.profile-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0066ff, #00b4d8);
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.avatar:hover {
    border-color: #0066ff;
    transform: scale(1.05);
}

.dropdown-menu {
    position: absolute;
    top: 48px;
    right: 0;
    width: 240px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    flex-direction: column;
    z-index: 200;
    animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-header {
    padding: 12px 16px;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.user-email {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-muted);
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.dropdown-item i {
    width: 16px;
    height: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* --- 5. Button Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: #ffffff;
    color: var(--text-primary);
    border: 1.5px solid var(--primary, #0066ff);
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(0, 102, 255, 0.05);
    border-color: var(--primary-hover, #0052cc);
    color: var(--primary-hover, #0052cc);
    box-shadow: 0 0 0 3px var(--primary-glow, rgba(0, 102, 255, 0.2));
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

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

.w-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* --- 6. Glass Panels & UI Wrapper --- */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.main-content {
    flex: 1;
    max-width: 1340px;
    width: 100%;
    margin: 0 auto;
    padding: 38px 24px 48px;
}

/* --- 7. View Sections Routing --- */
.view-section {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

/* --- 8. Landing Page UI (Screenshot-Matched Light Corporate Layout) --- */
.landing-hero-header {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 32px;
}

.landing-hero-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    /* Dark navy text */
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.landing-hero-subtitle {
    font-size: 16px;
    color: #64748b;
    /* Slate grey */
    max-width: 600px;
    margin: 0 auto;
}

/* 2-Column Generator Grid */
.generator-container-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.86fr) minmax(340px, 1fr);
    gap: 28px;
    width: 100%;
    max-width: none;
    margin: 0 auto 30px;
    align-items: stretch;
}

.white-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    box-shadow: 0 6px 24px rgba(31, 68, 135, 0.07);
    padding: 20px;
}

.designer-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

/* Tabs Scroller and Icon Row */
.tabs-scroll-container {
    overflow-x: auto;
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

/* Hide scrollbar but keep functionality */
.tabs-scroll-container::-webkit-scrollbar {
    display: none;
}

.tabs-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.icon-tabs-row {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.icon-tab {
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 9px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    transition: var(--transition-fast);
    min-width: 68px;
}

#home-tabs-row .icon-tab {
    min-width: 104px;
    flex: 1 0 104px;
}

#home-tabs-row .icon-tab:nth-child(2) {
    min-width: 142px;
}

.icon-tab:hover {
    color: var(--primary);
    background: rgba(0, 102, 255, 0.02);
}

.icon-tab.active {
    border-color: #0066ff;
    color: #0066ff;
    background: rgba(63, 109, 246, 0.06);
    font-weight: 600;
}

.icon-tab i {
    width: 23px;
    height: 23px;
    stroke-width: 2px;
}

.icon-tab svg {
    width: 23px;
    height: 23px;
    stroke-width: 2px;
}

/* "More types" floating dropdown menu (top tab row) */
.more-dropdown-wrapper {
    position: relative;
    display: flex;
}

.top-more-dropdown-menu {
    /* position:fixed (not absolute) + JS-computed top/left — the toggle button
       lives inside .tabs-scroll-container, which needs overflow-x:auto for its
       own horizontal scroll and would otherwise clip this popup regardless of
       position:absolute, since overflow clipping applies to descendants
       independent of their own positioning scheme. Fixed positioning escapes
       that clipping context entirely. */
    position: fixed;
    min-width: 210px;
    max-height: min(420px, calc(100vh - 24px));
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 500;
}

.top-more-dropdown-menu.hidden {
    display: none;
}

.dropdown-type-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.dropdown-type-item:hover {
    background: #f0f7ff;
}

.dropdown-type-item i,
.dropdown-type-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #0066ff;
    stroke-width: 2.2px;
}

/* Form inputs & areas */
.designer-inputs-area {
    margin-bottom: 10px;
    min-height: 118px;
}

.home-tab-input {
    animation: fadeIn 0.25s ease;
}

.input-field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #334155;
}

.field-input-text {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: var(--transition-fast);
    background: #ffffff;
}

.field-input-text:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.field-textarea {
    width: 100%;
    height: 110px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    resize: none;
    transition: var(--transition-fast);
    background: #ffffff;
}

.field-textarea:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.field-select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
}

.input-field-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

.inputs-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vcard-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 18px;
    margin-top: 14px;
}

.vcard-field {
    min-width: 0;
    padding: 4px 10px 7px;
    border: 1px solid #b9c7d9;
    border-radius: 7px;
    background: #ffffff;
}

.vcard-field:focus-within {
    border-color: #3f72e8;
    box-shadow: 0 0 0 3px rgba(63, 114, 232, .1);
}

.vcard-field legend {
    padding: 0 5px;
    color: #536388;
    font-size: 12px;
    font-weight: 700;
}

.vcard-field input,
.vcard-field textarea {
    width: 100%;
    padding: 6px 2px;
    color: #18233e;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
}

.vcard-field textarea {
    min-height: 82px;
    resize: vertical;
}

.field-span-2 {
    grid-column: 1 / -1;
}

/* Public mobile digital business card opened by a scan. */
.public-card-view {
    min-height: calc(100vh - 140px);
    padding: 28px 0 54px;
    background: #f3f6fa;
}

body:has(#view-card:not(.hidden)) .main-header {
    display: none;
}

body:has(#view-card:not(.hidden)) .main-content {
    max-width: none;
    padding: 0;
}

.public-card-phone {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 24px 14px;
    border: 1px solid #cfd6df;
    border-radius: 48px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(27, 43, 72, .13);
}

.public-card-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid #d9dee5;
    background: #fff;
}

.public-card-hero {
    padding: 52px 24px 30px;
    text-align: center;
    color: #fff;
    background: #52616a;
}

.public-card-avatar {
    position: relative;
    width: 116px;
    height: 116px;
    margin: 0 auto 18px;
    overflow: hidden;
    border-radius: 50%;
    background: #d9e1ea;
}

.public-card-avatar img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-card-avatar img:not([src]) {
    display: none;
}

.public-card-avatar span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #52616a;
    font-size: 36px;
    font-weight: 800;
}

.public-card-hero h1 {
    margin: 0 0 5px;
    font-size: 28px;
}

.public-card-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
}

.public-card-company {
    margin-top: 4px !important;
    font-size: 13px;
}

.public-card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #52616a;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.public-card-actions a {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, .18);
    text-transform: uppercase;
    font-size: 11px;
}

.public-card-actions a:last-child {
    border-right: 0;
}

.public-card-actions strong {
    font-size: 24px;
    line-height: 1;
}

.public-card-body {
    padding: 32px 26px 90px;
}

.public-card-body>p {
    margin-bottom: 28px;
    color: #25324a;
    line-height: 1.55;
}

.public-card-detail {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid #e7ebf0;
    color: #9aabc0;
}

.public-card-detail a,
.public-card-detail p {
    margin: 0;
    color: #263859;
    overflow-wrap: anywhere;
}

.public-card-detail small {
    display: block;
    color: #7787a0;
}

.public-card-save {
    position: absolute;
    right: 25px;
    bottom: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    color: #fff;
    border: 0;
    border-radius: 30px;
    background: #dc3261;
    box-shadow: 0 8px 24px rgba(183, 37, 82, .3);
    font-weight: 800;
    cursor: pointer;
}

.public-card-save span {
    font-size: 23px;
    line-height: .8;
}

@media (max-width: 600px) {
    .vcard-fields-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: auto;
    }

    .public-card-view {
        padding: 0;
    }

    .public-card-phone {
        width: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.mt-3 {
    margin-top: 12px;
}

/* Teaser Lock box inside tab */
.teaser-more-box {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teaser-lock-icon {
    width: 32px;
    height: 32px;
    color: #64748b;
    margin-bottom: 12px;
}

.teaser-more-box h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
}

.teaser-more-box p {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
    max-width: 280px;
}

.more-types-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.more-type-btn {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 10px 7px;
    color: #52627d;
    border: 1px solid #dce5ef;
    border-radius: 11px;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.more-type-btn:hover,
.more-type-btn.active {
    color: #245fe5;
    border-color: #78a5ff;
    background: #eff5ff;
}

.more-type-btn svg {
    width: 21px;
    height: 21px;
}

/* Hero Header Block */
.hero-header-block {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 18px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0 0 6px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

/* Step Badge Headers */
.step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    flex-shrink: 0;
}

.step-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Main generator design controls */
.home-design-panel {
    margin: 12px 0 16px;
    padding: 14px;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #fbfdff;
    box-shadow: 0 4px 12px rgba(31, 68, 135, 0.04);
}

.home-design-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #1d2b49;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-design-title svg {
    width: 18px;
    height: 18px;
    color: #3f6df6;
}

.home-design-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 16px;
    border-bottom: 1px solid #dce5ef;
}

.home-design-tab {
    padding: 10px 8px;
    color: #5e6e89;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.home-design-tab.active {
    color: #3169e8;
    border-bottom-color: #3169e8;
}

.home-design-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    animation: fadeIn 0.2s ease;
}

.home-design-content.hidden {
    display: none;
}

.home-frame-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 76px;
    min-height: 108px;
    padding: 5px 4px 6px;
    gap: 5px;
    color: #3d4f6b;
    border: 1.5px solid #dce6f0;
    border-radius: 10px;
    background: #ffffff;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
    overflow: hidden;
    text-align: center;
}

.frame-thumb-svg {
    width: 72px;
    height: 84px;
    flex-shrink: 0;
    display: block;
    border-radius: 6px;
    overflow: visible;
}

.frame-thumb-label {
    font-size: 9.5px;
    font-weight: 600;
    color: #5a6b88;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 2px;
}

.home-frame-option:hover {
    border-color: #4b86f7;
    background: #f5f9ff;
    box-shadow: 0 3px 10px rgba(75, 134, 247, 0.12);
    transform: translateY(-2px);
}

.home-frame-option:hover .frame-thumb-label {
    color: #245fe5;
}

.home-frame-option.active {
    border-color: #3b7ef8;
    background: #edf3ff;
    box-shadow: 0 0 0 2.5px rgba(59, 126, 248, 0.22);
}

.home-frame-option.active .frame-thumb-label {
    color: #245fe5;
    font-weight: 700;
}


.home-logo-upload {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 13px;
    padding: 16px;
    color: #42526d;
    border: 1px dashed #91acd0;
    border-radius: 11px;
    background: #ffffff;
    cursor: pointer;
}

.home-logo-upload svg {
    width: 27px;
    height: 27px;
    color: #3569ee;
}

.home-logo-upload span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.home-logo-upload small {
    color: #7a899f;
    font-size: 10px;
    font-weight: 500;
}

.home-logo-preview {
    display: grid;
    width: 100%;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    background: #ffffff;
    font-size: 11px;
}

.home-logo-preview.hidden {
    display: none;
}

.home-logo-preview img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.home-logo-preview button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    color: #d33d52;
    border: 0;
    background: #fff1f3;
    border-radius: 7px;
    cursor: pointer;
}

.home-logo-preview button svg {
    width: 14px;
    height: 14px;
}

.home-color-shape {
    align-items: center;
}

.home-color-shape>label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    color: #52627d;
    border: 1px solid #dce5ef;
    border-radius: 9px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
}

.home-color-shape input[type="color"] {
    width: 32px;
    height: 28px;
    padding: 2px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.home-shape-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.home-shape-group>span {
    min-width: 88px;
    color: #52627d;
    font-size: 11px;
    font-weight: 700;
}

.home-shape-option,
.home-eye-option {
    padding: 7px 10px;
    color: #60708a;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.home-shape-option.active,
.home-eye-option.active {
    color: #245fe5;
    border-color: #4b86f7;
    background: #eff5ff;
}

/* Reference-style design studio */
.home-design-panel {
    padding: 24px 26px 28px;
    border-color: #d8e1ec;
    background: #fbfcfe;
}

.home-design-title {
    margin-bottom: 28px;
    color: #1d2946;
    font-size: 17px;
}

.home-design-title svg {
    width: 22px;
    height: 22px;
    color: #57698f;
    transform: rotate(180deg);
}

.home-design-tabs {
    margin: 0 0 44px;
}

.home-design-tab {
    padding: 16px 8px;
    color: #536388;
    font-size: 18px;
}

.home-design-tab.active {
    color: #3972dc;
    border-bottom-width: 1px;
}

.frame-preview {
    position: relative;
    display: flex;
    width: min(56px, 86%);
    height: min(70px, 86%);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #111827;
}

.frame-mini-qr {
    display: block;
    width: 35px;
    height: 35px;
    border: 2px solid #111827;
    background: repeating-conic-gradient(#18233e 0 25%, transparent 0 50%) 50% / 8px 8px;
    opacity: 0.28;
}

.frame-preview small,
.frame-preview b {
    z-index: 1;
    padding: 2px 4px;
    color: #fff;
    background: #05070b;
    font-size: 6px;
    line-height: 1;
}

.frame-preview em {
    margin-top: 2px;
    color: #111827;
    font-family: cursive;
    font-size: 10px;
    font-weight: 700;
}

.frame-none .frame-preview::before {
    content: '';
    width: 42px;
    height: 42px;
    border: 4px solid #5a6b91;
    border-radius: 50%;
}

.frame-none .frame-preview::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    border-radius: 4px;
    background: #5a6b91;
    transform: rotate(45deg);
}

.frame-top .frame-preview {
    flex-direction: column;
}

.frame-top .frame-preview b {
    order: 0;
}

.frame-top .frame-mini-qr {
    order: 1;
}

.frame-card .frame-preview {
    border: 1px solid #17213b;
}

.frame-rounded .frame-preview {
    border: 2px solid #17213b;
    border-radius: 7px;
}

.frame-corner .frame-preview::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 44px;
    height: 13px;
    background: #0b0d12;
    clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}

.frame-script-light .frame-mini-qr {
    border-color: #fff;
    opacity: 0.18;
}

.frame-outline .frame-preview {
    border: 2px solid #17213b;
}

.frame-label .frame-preview::before {
    content: '';
    position: absolute;
    inset: 5px 3px 13px;
    border: 3px solid #111827;
}

.frame-brush .frame-preview {
    background: linear-gradient(135deg, transparent 20%, #111827 21% 25%, transparent 26% 70%, #111827 71% 75%, transparent 76%);
}

.frame-bag .frame-preview::before {
    content: '';
    position: absolute;
    inset: 13px 5px 5px;
    border: 4px solid #111827;
}

.frame-bow .frame-preview>b,
.frame-coffee .frame-preview>b,
.frame-food .frame-preview>b {
    color: #111827;
    background: transparent;
    font-size: 15px;
}

.frame-bag .frame-mini-qr,
.frame-bow .frame-mini-qr,
.frame-coffee .frame-mini-qr,
.frame-food .frame-mini-qr,
.frame-email .frame-mini-qr,
.frame-storefront .frame-mini-qr,
.frame-delivery .frame-mini-qr,
.frame-event .frame-mini-qr,
.frame-business .frame-mini-qr {
    width: 27px;
    height: 27px;
    background-size: 6px 6px;
}

.frame-email .business-frame-symbol,
.frame-storefront .business-frame-symbol,
.frame-delivery .business-frame-symbol,
.frame-event .business-frame-symbol,
.frame-business .business-frame-symbol {
    width: 29px;
    height: 19px;
    font-size: 11px;
}

#home-design-logo {
    flex-direction: column;
    gap: 16px;
}

/* Scrollable horizontal logo bar — mirrors the Frame section UX */
.logo-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    user-select: none;
}

.logo-scroll-container:active {
    cursor: grabbing;
}

.logo-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.logo-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.logo-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.logo-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.home-logo-presets {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    width: max-content;
    padding: 4px 2px;
}

.home-logo-preset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.home-logo-preset:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.home-logo-preset.active {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.25);
    transform: scale(1.1);
}

.home-logo-preset svg {
    width: 24px;
    height: 24px;
}

.home-logo-preset svg path,
.home-logo-preset svg circle,
.home-logo-preset svg rect,
.home-logo-preset svg polygon {
    fill: #ffffff !important;
}

/* Real brand-mark icons set their own true color via the SVG root's `fill`
   attribute (e.g. Facebook's <svg fill="#1877F2">) and rely on their child
   shapes inheriting it — restore that instead of forcing white like the
   generic Lucide icons above. */
.home-logo-preset .brand-badge-bg svg path,
.home-logo-preset .brand-badge-bg svg circle,
.home-logo-preset .brand-badge-bg svg rect,
.home-logo-preset .brand-badge-bg svg polygon {
    fill: inherit !important;
}

.logo-preset-none {
    position: relative;
    width: 24px;
    height: 24px;
    border: 3px solid #64748b;
    border-radius: 50%;
}

.logo-preset-none::after {
    content: '';
    position: absolute;
    top: 9px;
    left: -4px;
    width: 26px;
    height: 3px;
    background: #64748b;
    transform: rotate(45deg);
}

.logo-preset-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #0f172a;
    border-radius: 6px;
    font-size: 7.5px;
    font-weight: 800;
    line-height: 0.9;
    color: #0f172a;
    text-align: center;
}

.home-logo-preset[data-home-logo-preset="facebook"] {
    background: #1877F2;
    border-color: #1877F2;
}

.home-logo-preset[data-home-logo-preset="instagram"] {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
}

.home-logo-preset[data-home-logo-preset="twitter"] {
    background: #000000;
    border-color: #000000;
}

.home-logo-preset[data-home-logo-preset="whatsapp"] {
    background: #25D366;
    border-color: #25D366;
}

.home-logo-preset[data-home-logo-preset="youtube"] {
    background: #FF0000;
    border-color: #FF0000;
}

.home-logo-preset[data-home-logo-preset="linkedin"] {
    background: #0A66C2;
    border-color: #0A66C2;
}

.home-logo-preset[data-home-logo-preset="snapchat"] {
    background: #FFFC00;
    border-color: #F9D81A;
}

.home-logo-preset[data-home-logo-preset="spotify"] {
    background: #1DB954;
    border-color: #1DB954;
}

.home-logo-preset[data-home-logo-preset="paypal"] {
    background: #003087;
    border-color: #003087;
}

.home-logo-preset[data-home-logo-preset="visa"] {
    background: #1A1F71;
    border-color: #1A1F71;
}

.home-logo-preset[data-home-logo-preset="btc"] {
    background: #F7931A;
    border-color: #F7931A;
}

.home-logo-preset[data-home-logo-preset="globe"] {
    background: #0066FF;
    border-color: #0066FF;
}

.home-logo-preset[data-home-logo-preset="gpay"] {
    background: #ffffff;
    border-color: #e2e8f0;
}

.home-logo-preset[data-home-logo-preset="phonepay"] {
    background: #5f259f;
    border-color: #5f259f;
}

/* Panel Collapse / Expand Styling */
.home-design-panel.collapsed .home-design-tabs,
.home-design-panel.collapsed .home-design-content {
    display: none !important;
}

.home-design-title {
    cursor: pointer;
    user-select: none;
}

.home-design-title i {
    transition: transform 0.3s ease;
}

.home-logo-upload {
    width: fit-content;
    padding: 0 10px;
    color: #3d75d4;
    border: 0;
    background: transparent;
    font-size: 19px;
}

.home-logo-upload svg {
    width: 23px;
    height: 23px;
}

.home-logo-upload small {
    display: none;
}

.home-logo-formats {
    margin: -16px 0 0 10px;
    color: #56678c;
    font-size: 13px;
}

.home-color-shape {
    display: block;
}

.home-shape-gallery {
    display: grid;
    grid-template-columns: repeat(6, minmax(72px, 1fr));
    gap: 12px;
    margin-bottom: 44px;
}

.home-shape-option {
    display: grid;
    min-height: 92px;
    place-items: center;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #f4f6f9;
}

.home-shape-option.active {
    border-color: #4b86f7;
    background: #edf4ff;
}

.shape-preview {
    display: block;
    width: 58px;
    height: 58px;
    background-color: transparent;
}

.shape-square {
    background: repeating-conic-gradient(#17213f 0 25%, transparent 0 50%) 50% / 14px 14px;
}

.shape-circle {
    background: radial-gradient(circle, #17213f 0 42%, transparent 45%) 0 0 / 14px 14px;
}

.shape-sharp {
    background: conic-gradient(from 45deg, #05070b 0 25%, transparent 0 50%, #05070b 0 75%, transparent 0) 0 0 / 18px 18px;
}

.shape-rounded {
    background: radial-gradient(ellipse at 55% 45%, #17213f 0 42%, transparent 46%) 0 0 / 17px 14px;
}

.shape-dots {
    background: radial-gradient(circle, #17213f 0 38%, transparent 42%) 0 0 / 16px 16px;
}

.shape-compact {
    background: linear-gradient(90deg, #17213f 45%, transparent 45% 55%, #17213f 55%) 0 0 / 18px 18px, linear-gradient(#17213f 45%, transparent 45% 55%, #17213f 55%) 0 0 / 18px 18px;
}

.home-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.home-color-field {
    display: grid;
    grid-template-columns: 1fr 46px;
    align-items: center;
    min-width: 0;
    padding: 7px 10px 9px 16px;
    color: #536388;
    border: 1px solid #b9c7d9;
    border-radius: 7px;
}

.home-color-field legend {
    padding: 0 4px;
    font-size: 15px;
    font-weight: 600;
}

.home-color-field input[type="text"] {
    width: 100%;
    color: #1d2946;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 18px;
    text-transform: uppercase;
}

.home-color-field input[type="color"] {
    width: 42px;
    height: 42px;
    padding: 2px;
    border: 1px solid #c5d0dd;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

/* Radio button selectors (Static vs Dynamic) */
.qr-type-selector-row {
    display: flex;
    gap: 28px;
    margin: auto 0 22px;
    border-top: 0;
    padding-top: 0;
}

.qr-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #334155;
    position: relative;
    user-select: none;
}

.qr-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: var(--transition-fast);
}

.qr-radio-label input[type="radio"]:checked+.custom-radio {
    border-color: #0066ff;
}

.qr-radio-label input[type="radio"]:checked+.custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #0066ff;
    border-radius: 50%;
}

.pro-badge-micro {
    background: #10b981;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 2px;
    letter-spacing: 0.02em;
}

.icon-info-small {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    margin-left: 4px;
    cursor: help;
}

.gated-home-option {
    opacity: 0.6;
}

/* Large Generate CTA Button */
.btn-generate-cta {
    width: 100%;
    background: linear-gradient(135deg, #3f6df6, #3763e9);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.15);
    transition: var(--transition);
}

.btn-generate-cta:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.25);
}

.btn-generate-cta i {
    width: 18px;
    height: 18px;
    stroke-width: 2.5px;
}

.btn-download-home {
    background: linear-gradient(135deg, #3f6df6, #3763e9);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.1);
    width: 100%;
    transition: var(--transition-fast);
}

.btn-download-home:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.2);
}

.btn-download-home i {
    width: 16px;
    height: 16px;
}

.download-dropdown-wrapper {
    width: 100%;
}

.preview-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.preview-actions-row button {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.preview-actions-row button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.preview-actions-row button i {
    width: 14px;
    height: 14px;
}

/* Right Side: Preview Panel Card */
.preview-panel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    padding: 20px;
}

.panel-preview-title {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 0;
    padding-bottom: 0;
    width: 100%;
}

.live-preview-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    float: right;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
}

.live-preview-status>span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.qr-output-box {
    border: 0;
    border-radius: 0;
    padding: 14px;
    width: 100%;
    max-width: 390px;
    height: auto;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    margin: 10px auto 6px;
}

.with-logo-badge {
    position: absolute;
    top: 10px;
    right: -28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    line-height: 1.15;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: var(--transition-fast);
    z-index: 3;
}

.logo-badge-close {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    padding: 0;
    color: #53627d;
    border: 1px solid #d7e1ee;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.12);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.logo-badge-close:hover {
    color: #d33d52;
    border-color: #f1a5b0;
}

.with-logo-badge:hover {
    border-color: #0066ff;
    color: #0066ff;
    transform: scale(1.05);
}

.home-qr-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    background: transparent;
}

.business-frame-symbol {
    display: grid;
    width: 32px;
    height: 24px;
    place-items: center;
    color: #111827;
    border: 2px solid currentColor;
    border-radius: 3px;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.frame-storefront .business-frame-symbol {
    border-top-width: 7px;
}

.frame-event .business-frame-symbol {
    border-style: dashed;
}

.frame-delivery .business-frame-symbol {
    border-radius: 50% 8px 8px 50%;
}

.frame-business .business-frame-symbol {
    border-radius: 1px;
    font-size: 13px;
}

.home-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
}

.home-qr-placeholder i {
    width: 48px;
    height: 48px;
    stroke-width: 1px;
}

/* Solutions Carousel Section Styles */
.solutions-section {
    padding: 24px 26px 18px;
    margin-top: 0;
}

.solutions-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.solutions-title-group h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
}

.solutions-title-group p {
    font-size: 13.5px;
    color: #64748b;
}

.view-all-link {
    font-size: 13.5px;
    font-weight: 700;
    color: #0066ff;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.view-all-link:hover {
    color: #0052cc;
}

.view-all-link i {
    width: 14px;
    height: 14px;
    stroke-width: 2.5px;
}

.solutions-grid-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    padding: 4px 0;
}

/* Hide scrollbar */
.solutions-grid-wrapper::-webkit-scrollbar {
    display: none;
}

.solutions-grid-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    min-width: 980px;
}

.solution-card {
    background: #ffffff;
    border: 1.5px solid #edf2f7;
    border-radius: 12px;
    padding: 22px 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 0;
}

.solution-card:hover {
    border-color: #0066ff;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.04);
    transform: translateY(-2px);
}

.sol-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.sol-icon-wrapper i,
.sol-icon-wrapper svg {
    width: 29px;
    height: 29px;
    stroke-width: 2.2px;
}

/* Colors for solution card icons */
.blue-icon {
    background: #eaf1ff;
    color: #2867ee;
}

.purple-icon {
    background: #f3eaff;
    color: #8b4bea;
}

.green-icon {
    background: #e8faef;
    color: #21a45c;
}

.orange-icon {
    background: #fff4df;
    color: #e69318;
}

.violet-icon {
    background: #efedff;
    color: #6657e8;
}

.whatsapp-icon {
    background: #e8faeb;
    color: #20ae4f;
}

.grey-icon {
    background: #eef2f6;
    color: #64748b;
}

.solution-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.solution-card p {
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.3;
    max-width: 100px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active {
    background: #0066ff;
    width: 16px;
    border-radius: 4px;
}

/* --- 8.5 Detailed QR Designer Section --- */
.detailed-designer-section {
    padding: 32px;
}

.designer-top-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.d-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    background: #ffffff;
    transition: var(--transition-fast);
}

.d-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.d-tab.active {
    background: rgba(0, 102, 255, 0.05);
    border-color: #0066ff;
    color: #0066ff;
}

.d-tab i {
    width: 16px;
    height: 16px;
}

.d-tab-more {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    background: #ffffff;
    color: #475569;
}

.designer-split-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    border: 1.5px solid #edf2f7;
    border-radius: 16px;
    margin-top: 24px;
    overflow: hidden;
    background: #ffffff;
}

.designer-left-pane {
    padding: 28px;
}

.designer-right-pane {
    padding: 28px;
    background: #f8fafc;
    border-left: 1.5px solid #edf2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.step-container {
    width: 100%;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.step-number {
    width: 22px;
    height: 22px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.step-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

.step-body {
    padding-left: 32px;
}

.d-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.pro-upload-teaser {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pro-upload-teaser i {
    width: 18px;
    height: 18px;
    color: #64748b;
}

.pro-upload-teaser p {
    font-size: 11px;
    color: #64748b;
    max-width: 240px;
}

.inputs-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Sub tabs under Step 2 */
.design-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 8px;
}

.sub-tab {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.sub-tab.active {
    background: rgba(0, 102, 255, 0.06);
    color: #0066ff;
}

/* Frame grid styling */
.frames-carousel-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.frame-selector {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 80px;
    background: #ffffff;
}

.frame-selector:hover {
    border-color: #cbd5e1;
}

.frame-selector.active {
    border-color: #0066ff;
    background: rgba(0, 102, 255, 0.02);
}

.frame-icon-box {
    width: 54px;
    height: 54px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    background: #ffffff;
}

.frame-selector.active .frame-icon-box {
    border-color: #0066ff;
}

.no-frame-icon {
    justify-content: center;
    color: #94a3b8;
}

.no-frame-icon i {
    width: 18px;
    height: 18px;
}

.font-frame {
    padding: 2px 0 0 0;
}

.f-inner-qr {
    flex: 1;
    border: 1px dashed #cbd5e1;
    margin: 4px;
    width: calc(100% - 8px);
    border-radius: 3px;
}

.f-inner-banner {
    background: #0066ff;
    color: #ffffff;
    font-size: 5px;
    font-weight: 800;
    width: 100%;
    text-align: center;
    padding: 2px 0;
    letter-spacing: 0.02em;
}

.f-inner-banner.font-small {
    font-size: 4.5px;
}

.frame-selector span {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

/* Shape/Logo/Level styles */
.shapes-list-grid,
.logo-list-grid,
.levels-list-grid {
    display: flex;
    gap: 12px;
}

.shape-list-item,
.logo-list-item,
.level-list-item {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 80px;
    background: #ffffff;
}

.shape-list-item:hover,
.logo-list-item:hover,
.level-list-item:hover {
    border-color: #cbd5e1;
}

.shape-list-item.active,
.logo-list-item.active,
.level-list-item.active {
    border-color: #0066ff;
    background: rgba(0, 102, 255, 0.02);
}

.shape-list-item span,
.logo-list-item span,
.level-list-item span {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shape-block {
    width: 18px;
    height: 18px;
    background: #64748b;
}

.shape-list-item.active .shape-block {
    background: #0066ff;
}

.square-block {
    border-radius: 0;
}

.rounded-block {
    border-radius: 4px;
}

.circle-block {
    border-radius: 50%;
}

.logo-block {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.logo-block i {
    width: 16px;
    height: 16px;
}

.level-box {
    width: 20px;
    height: 20px;
    border: 1.5px solid #64748b;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}

.level-list-item.active .level-box {
    border-color: #0066ff;
    color: #0066ff;
}

.gated-designer-item {
    position: relative;
    opacity: 0.85;
}

.lock-mini {
    width: 9px;
    height: 9px;
    color: #64748b;
}

/* Right pane: Download frame */
.designer-qr-preview-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    max-width: 180px;
    height: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #edf2f7;
    margin: 24px 0;
}

.designer-qr-canvas {
    width: 100% !important;
    height: 100% !important;
}

.designer-download-wrapper {
    width: 100%;
}

.btn-download-designer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 0;
    border-radius: 30px;
    /* pill rounded like Step 3 screenshot */
}

/* --- 9. Auth Pages --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: radial-gradient(circle at 12% 8%, rgba(0, 102, 255, 0.08), transparent 40%),
        radial-gradient(circle at 90% 18%, rgba(0, 180, 216, 0.08), transparent 40%),
        linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    min-height: calc(100vh - 80px);
}

.auth-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid #dce7f5;
    box-shadow: 0 25px 50px -12px rgba(0, 82, 204, 0.08);
    width: 960px;
    max-width: 100%;
    overflow: hidden;
    min-height: 600px;
}

@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }
}

.auth-brand-panel {
    position: relative;
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 50%, #00b4d8 100%);
    padding: 50px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.brand-panel-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15), transparent 50%);
    pointer-events: none;
    animation: rotateGlow 30s linear infinite;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.brand-panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-logo-icon i {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

.brand-logo-text {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.brand-logo-bold {
    font-weight: 800;
}

.brand-welcome-msg {
    margin-top: 40px;
}

.brand-welcome-msg h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #ffffff;
}

.brand-welcome-msg p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.brand-benefits {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.brand-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-icon i {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.benefit-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.benefit-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.brand-panel-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.auth-card {
    background: var(--bg-surface);
    width: 100%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.auth-tab.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 102, 255, 0.08);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.3s ease;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: -12px;
    margin-bottom: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

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

.input-with-icon i {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-icon input,
.form-group input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px 12px 44px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.input-with-icon input:focus,
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: #ffffff;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: var(--danger);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Demo autofill section styling */
.demo-login-helper {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.demo-login-helper:hover {
    border-color: var(--primary);
    background: #f0f6ff;
}

.demo-helper-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-helper-title i {
    width: 13px;
    height: 13px;
}

.demo-login-helper p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.btn-demo-autofill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-demo-autofill:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-demo-autofill i {
    width: 14px;
    height: 14px;
}

/* --- 10. Management Dashboard --- */
.dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}

/* Sidebar (Left) */
.dashboard-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search i {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.sidebar-search input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px 10px 38px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.sidebar-search input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.sidebar-group h3 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    padding-left: 8px;
    text-transform: uppercase;
}

.sidebar-categories,
.sidebar-folders {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-btn,
.folder-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.category-btn i,
.folder-btn i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.category-btn:hover,
.folder-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.category-btn:hover i,
.folder-btn:hover i {
    color: var(--primary);
}

.category-btn.active,
.folder-btn.active {
    background: #eff6ff;
    color: var(--primary);
}

.category-btn.active i,
.folder-btn.active i {
    color: var(--primary);
}

.category-btn .count-badge,
.folder-btn .count-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 20px;
}

.category-btn.active .count-badge,
.folder-btn.active .count-badge {
    background: #dbeafe;
    color: var(--primary);
}

/* Folders List & Wrapper */
.folder-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    transition: var(--transition);
}

.folder-item-wrapper:hover {
    background: #f1f5f9;
}

.folder-item-wrapper.active {
    background: #eff6ff;
}

.folder-item-wrapper .folder-btn {
    flex-grow: 1;
}

.btn-delete-folder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    margin-right: 4px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.folder-item-wrapper:hover .btn-delete-folder {
    opacity: 1;
}

.btn-delete-folder:hover {
    background: #fee2e2;
    color: var(--danger);
}

.btn-delete-folder i {
    width: 14px;
    height: 14px;
}

.btn-new-folder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: #f0f6ff;
    border: 1px dashed #bfdbfe;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-new-folder:hover {
    background: #dbeafe;
    border-color: var(--primary);
}

.btn-new-folder i {
    width: 14px;
    height: 14px;
}

/* Management Panel (Right) */
.dashboard-main-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    min-height: 560px;
}

.panel-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.panel-title-area h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.panel-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.panel-action-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.sort-wrapper select {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.sort-wrapper select:focus {
    border-color: var(--primary);
}

.btn-create-qr {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
}

/* QR Code Grid List */
.dashboard-qr-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-qr-card {
    display: grid;
    grid-template-columns: 1fr 120px 90px 150px;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.dashboard-qr-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 30px -4px rgba(0, 102, 255, 0.04);
    transform: translateY(-2px);
}

.dashboard-qr-card.paused {
    background: #fafafa;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .dashboard-qr-card {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
        text-align: center;
    }
}

.qr-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

@media (max-width: 768px) {
    .qr-card-info {
        text-align: center;
        align-items: center;
    }
}

.qr-card-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-type-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: #eff6ff;
    padding: 3px 8px;
    border-radius: 6px;
}

.qr-status-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.qr-status-pill.active {
    background: #d1fae5;
    color: #065f46;
}

.qr-status-pill.paused {
    background: #f3f4f6;
    color: #4b5563;
}

.qr-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.qr-card-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-item i {
    width: 14px;
    height: 14px;
}

.meta-item.link-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.meta-item.link-item a:hover {
    text-decoration: underline;
}

/* Statistics Block */
.qr-card-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scans-count {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.scans-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.btn-stats-details {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.btn-stats-details:hover {
    text-decoration: underline;
}

.btn-stats-details i {
    width: 12px;
    height: 12px;
}

/* Thumbnail preview */
.qr-card-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    background: #ffffff;
    width: 78px;
    height: 78px;
}

.qr-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card Actions Section */
.qr-card-actions-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.format-downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.item-control-buttons {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.btn-item-ctrl {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: #475569;
    transition: var(--transition);
}

.btn-item-ctrl:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f6ff;
}

.btn-item-ctrl.delete:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: #fff1f2;
}

.btn-item-ctrl i {
    width: 14px;
    height: 14px;
}

/* Empty State Styling */
.dashboard-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 50%;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-icon i {
    width: 32px;
    height: 32px;
}

.dashboard-empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.dashboard-empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 380px;
    margin-bottom: 24px;
}

/* Edit Modal overlays */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    width: 440px;
    padding: 24px;
    animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-close-modal:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.btn-close-modal i {
    width: 16px;
    height: 16px;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
}

/* --- 12. Billing & Upgrade Panel --- */
.billing-wrapper {
    max-width: 960px;
    margin: 40px auto;
}

.billing-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    align-items: start;
}

.invoice-summary {
    padding: 32px;
}

.invoice-summary h2,
.credit-card-form h2 {
    font-size: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.plan-summary-item {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.plan-summary-text h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.plan-summary-text p {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 260px;
}

.plan-summary-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--secondary);
}

.price-calculations {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.price-row.total {
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.billing-guarantees {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.guarantee-item i {
    width: 16px;
    height: 16px;
    color: var(--success);
}

/* Card Visual Rendering */
.credit-card-form {
    padding: 32px;
}

.card-viz-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.card-viz {
    width: 320px;
    height: 190px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-viz.flipped {
    transform: rotateY(180deg);
}

.card-viz-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-viz-front {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
}

.card-viz-back {
    background: linear-gradient(135deg, #311042 0%, #1e1b4b 100%);
    transform: rotateY(180deg);
    padding: 24px 0;
}

.card-viz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-viz-chip {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
    border-radius: 4px;
}

.card-viz-type i {
    width: 28px;
    height: 28px;
    stroke-width: 1.5px;
}

.card-viz-number {
    font-family: monospace;
    font-size: 19px;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin: 18px 0;
}

.card-viz-footer {
    display: flex;
    justify-content: space-between;
}

.card-viz-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-viz-label {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.card-viz-name,
.card-viz-expiry {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-viz-magnetic-strip {
    background: #000;
    height: 40px;
    width: 100%;
}

.card-viz-signature-box {
    background: rgba(255, 255, 255, 0.8);
    height: 38px;
    margin: 16px 24px 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 12px;
}

.card-viz-cvv {
    color: #000;
    font-family: monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
}

/* --- 13. History Panel --- */
.history-container {
    padding: 32px;
}

.history-empty {
    padding: 80px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.history-empty i {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.1);
    stroke-width: 1px;
    margin-bottom: 24px;
}

.history-empty h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.history-empty p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 360px;
}

.history-counter {
    font-size: 13px;
    color: var(--text-muted);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.history-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.history-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.history-card-date {
    font-size: 11px;
    color: var(--text-muted);
}

.history-card-content {
    font-size: 13px;
    font-weight: 500;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 16px;
    height: 40px;
}

.history-card-preview {
    background: #fff;
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    align-self: center;
    width: 140px;
    height: 140px;
}

.history-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.history-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.history-card-actions {
    display: flex;
    gap: 8px;
}

.history-card-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.history-card-actions button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.history-card-actions button.btn-delete-item:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.history-card-actions button i {
    width: 16px;
    height: 16px;
}

/* --- 14. Toast Notification Popup --- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #12121a;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    min-width: 300px;
    max-width: 440px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

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

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

.toast.error {
    border-left-color: var(--danger);
}

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

.toast.info {
    border-left-color: var(--warning);
}

.toast.info i {
    color: var(--warning);
}

@keyframes slideUp {
    from {
        transform: translateY(24px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* --- 15. Expanded Reference-Inspired Landing Page --- */
.landing-block {
    margin-top: 34px;
    scroll-margin-top: 104px;
}

.section-heading-row,
.centered-section-heading {
    margin-bottom: 28px;
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading-row h2,
.centered-section-heading h2,
.platform-copy h2,
.faq-intro h2,
.final-cta-section h2,
.cyan-cta h2 {
    color: #12213f;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-heading-row h2 {
    margin-top: 12px;
    max-width: 670px;
}

.section-heading-row p,
.centered-section-heading p,
.platform-copy p,
.faq-intro p {
    color: #60708e;
    font-size: 15px;
    line-height: 1.75;
    margin-top: 10px;
}

.section-heading-row p {
    max-width: 720px;
}

.centered-section-heading {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.centered-section-heading h2 {
    margin-top: 12px;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    color: #1d5fe9;
    border: 1px solid #bfd4ff;
    border-radius: 999px;
    background: #f4f8ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.eyebrow-dark {
    color: #10213f;
    border-color: rgba(16, 33, 63, 0.24);
    background: rgba(255, 255, 255, 0.36);
}

.text-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: #1d5fe9;
    font-size: 14px;
    font-weight: 700;
}

.text-arrow-link svg {
    width: 17px;
    height: 17px;
}

/* Creative use-case cards */
.ideas-section {
    padding: 38px 0 16px;
}

.idea-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.idea-card {
    overflow: hidden;
    padding: 8px 8px 20px;
    border: 1px solid #dfE7f1;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(22, 49, 94, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.idea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(22, 49, 94, 0.13);
}

.idea-art {
    position: relative;
    min-height: 164px;
    overflow: hidden;
    border-radius: 16px;
}

.idea-art img {
    display: block;
    width: 100%;
    height: 164px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.idea-card:hover .idea-art img {
    transform: scale(1.035);
}

.idea-card h3 {
    margin: 18px 12px 4px;
    color: #13213f;
    font-size: 17px;
}

.idea-card p {
    margin: 0 12px;
    color: #6f7d96;
    font-size: 12px;
    line-height: 1.55;
}

/* Ideas section: continuous auto-scrolling marquee.
   The track renders the 4 cards twice back-to-back; animating exactly to
   -50% of its own (content-sized) width lines the second copy up perfectly
   with where the first one started, so the loop never jumps or shows a gap. */
.idea-slider-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.idea-slider-track {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: ideaSliderMarquee 34s linear infinite;
}

.idea-slider-viewport:hover .idea-slider-track,
.idea-slider-viewport:focus-within .idea-slider-track {
    animation-play-state: paused;
}

.idea-slider-track .idea-card {
    flex: 0 0 272px;
    width: 272px;
}

@keyframes ideaSliderMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 9px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .idea-slider-track {
        animation: none;
    }
}

.idea-slider-dot.active {
    background: #0066ff;
    width: 22px;
    border-radius: 5px;
}

/* QR basics / accordion */
.basics-section {
    padding: 72px 0 38px;
}

.basics-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: 64px;
    max-width: 1060px;
    margin: 0 auto;
}

.basics-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 28px;
    background: transparent;
}

.basics-visual::before,
.basics-visual::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(46, 113, 246, 0.14);
    border-radius: 50%;
}

.basics-visual::before {
    width: 320px;
    height: 320px;
}

.basics-visual::after {
    width: 430px;
    height: 430px;
}

.phone-demo {
    position: relative;
    z-index: 2;
    display: flex;
    width: 190px;
    height: 310px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: #ffffff;
    border: 8px solid #17223b;
    border-radius: 30px;
    background: linear-gradient(150deg, #263657, #111a2e);
    box-shadow: 0 26px 40px rgba(17, 35, 70, 0.25);
    transform: rotate(-4deg);
}

.phone-speaker {
    position: absolute;
    top: 10px;
    width: 52px;
    height: 5px;
    border-radius: 99px;
    background: #56627a;
}

.phone-demo svg {
    width: 112px;
    height: 112px;
    color: #b9d5ff;
}

.phone-demo span {
    font-size: 11px;
    font-weight: 600;
    color: #bdd2f7;
}

.scan-beam {
    position: absolute;
    z-index: 3;
    width: 238px;
    height: 3px;
    border-radius: 99px;
    background: #22c3ff;
    box-shadow: 0 0 18px #22c3ff;
    transform: rotate(-4deg) translateY(10px);
}

.result-bubble {
    position: absolute;
    z-index: 4;
    right: 28px;
    bottom: 70px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #136440;
    border: 1px solid #b7ead4;
    border-radius: 12px;
    background: #effcf7;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(17, 67, 49, 0.1);
}

.result-bubble svg {
    width: 16px;
    height: 16px;
}

.basics-accordion,
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.basics-accordion details,
.faq-list details {
    overflow: hidden;
    border: 1px solid #dfe7f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(31, 59, 100, 0.07);
}

.basics-accordion summary,
.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px;
    color: #142340;
    cursor: pointer;
    list-style: none;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.basics-accordion summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
    display: none;
}

.basics-accordion summary svg,
.faq-list summary svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.basics-accordion details[open] summary svg,
.faq-list details[open] summary svg {
    transform: rotate(180deg);
}

.basics-accordion details[open] summary,
.faq-list details[open] summary {
    background: #f2faff;
}

.basics-accordion details p,
.faq-list details p {
    padding: 0 18px 18px;
    color: #61718f;
    font-size: 13.5px;
    line-height: 1.75;
}

.learn-more-btn {
    width: fit-content;
    margin-top: 8px;
}

/* High-impact CTAs */
.cyan-cta,
.final-cta-section {
    position: relative;
    overflow: hidden;
    padding: 68px 32px;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #18c5f4 0%, #06aee9 100%);
    box-shadow: 0 20px 50px rgba(0, 159, 216, 0.18);
}

.cyan-cta h2,
.final-cta-section h2 {
    position: relative;
    z-index: 2;
    margin: 15px auto 10px;
    max-width: 840px;
}

.cyan-cta p,
.final-cta-section p {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto 24px;
    color: #173354;
    font-size: 15px;
}

.cta-light-btn {
    position: relative;
    z-index: 2;
    color: #10213f;
    border: 1px solid rgba(16, 33, 63, 0.14);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 33, 63, 0.12);
}

.cta-light-btn:hover {
    transform: translateY(-2px);
    background: #f7fbff;
}

.cta-orbit {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #142340;
    background: rgba(255, 255, 255, 0.55);
    transform: rotate(-9deg);
}

.cta-orbit svg {
    width: 44px;
    height: 44px;
}

.cta-orbit-one {
    left: 38px;
    bottom: 24px;
    width: 82px;
    height: 66px;
    border-radius: 20px;
}

.cta-orbit-two {
    right: 42px;
    top: 28px;
    width: 78px;
    height: 78px;
    border-radius: 18px;
    transform: rotate(9deg);
}

/* Three-step section */
.steps-section {
    padding: 72px 0 30px;
}

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

.step-card {
    position: relative;
    min-height: 290px;
    padding: 34px 30px;
    border: 1px solid #e1e8f1;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(24, 54, 96, 0.09);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 22px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #0e2c52;
    border-radius: 10px;
    background: #20c2f3;
    font-weight: 800;
}

.step-icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin-bottom: 28px;
    place-items: center;
    color: #3569ee;
    border: 1px solid #dce8ff;
    border-radius: 20px;
    background: #f5f8ff;
}

.step-icon svg {
    width: 34px;
    height: 34px;
}

.step-card h3 {
    margin-bottom: 10px;
    color: #142340;
    font-size: 21px;
}

.step-card p {
    color: #62728f;
    font-size: 13.5px;
    line-height: 1.7;
}

/* Platform overview */
.platform-section {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 64px;
    padding: 86px 56px;
    border: 1px solid #deebf5;
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff, #f1faff);
}

.platform-wordmark {
    display: block;
    margin-bottom: 15px;
    color: #ff641f;
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
}

.platform-copy h2 {
    margin: 14px 0;
}

.platform-copy .btn {
    margin-top: 24px;
}

.platform-visual {
    position: relative;
    min-height: 390px;
}

.platform-window {
    position: absolute;
    inset: 18px 42px 36px 0;
    padding: 22px;
    border: 7px solid #172440;
    border-radius: 18px;
    background: #f2f4f7;
    box-shadow: 0 24px 50px rgba(20, 45, 83, 0.2);
}

.window-dots {
    display: flex;
    gap: 5px;
    padding-bottom: 16px;
}

.window-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9aa8bb;
}

.platform-stat-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(22, 49, 94, 0.06);
    font-size: 12px;
}

.platform-stat-row svg {
    width: 20px;
    height: 20px;
    color: #2f6dec;
}

.platform-stat-row span {
    color: #33435e;
    font-weight: 600;
}

.platform-stat-row strong {
    color: #1b2a46;
    font-size: 11px;
}

.platform-phone {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    display: flex;
    width: 150px;
    height: 260px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    color: #142340;
    border: 7px solid #15233f;
    border-radius: 28px;
    background: linear-gradient(160deg, #90e8ff, #28c3f6);
    box-shadow: 0 22px 40px rgba(20, 45, 83, 0.24);
}

.platform-phone svg {
    width: 76px;
    height: 76px;
}

.platform-phone span {
    font-size: 11px;
    font-weight: 800;
}

/* Product capabilities */
.capability-section {
    padding: 72px 0 30px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.capability-card {
    padding: 28px;
    border: 1px solid #dfeaf4;
    border-radius: 18px;
    background: linear-gradient(145deg, #f4fbff, #eaf7fd);
    box-shadow: 0 10px 26px rgba(31, 74, 112, 0.08);
}

.capability-card>svg {
    width: 32px;
    height: 32px;
    margin-bottom: 22px;
    color: #1876e9;
}

.capability-card h3 {
    color: #152441;
    font-size: 19px;
    margin-bottom: 8px;
}

.capability-card p {
    min-height: 66px;
    color: #60718e;
    font-size: 13px;
    line-height: 1.65;
}

.capability-card span {
    display: inline-block;
    margin-top: 16px;
    color: #1470dc;
    font-size: 11px;
    font-weight: 800;
}

/* QR type cards */
.types-section {
    padding: 70px 34px 38px;
    border-radius: 28px;
    background: #dff6ff;
}

.type-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.type-feature-grid article {
    padding: 24px;
    min-height: 180px;
    border: 1px solid rgba(32, 116, 166, 0.14);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 9px 22px rgba(32, 90, 125, 0.09);
}

.type-feature-grid svg {
    width: 26px;
    height: 26px;
    margin-bottom: 24px;
    color: #0875b6;
}

.type-feature-grid h3 {
    color: #152441;
    font-size: 17px;
    margin-bottom: 8px;
}

.type-feature-grid p {
    color: #526784;
    font-size: 12.5px;
    line-height: 1.65;
}

/* Pricing */
.pricing-section {
    padding: 74px 0 34px;
}

.landing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    max-width: 1050px;
    margin: 0 auto;
}

.landing-price-card {
    position: relative;
    padding: 32px;
    border: 1px solid #dfe7f1;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(29, 58, 101, 0.08);
}

.featured-price-card {
    border: 2px solid #3e6ef1;
    box-shadow: 0 20px 44px rgba(62, 110, 241, 0.16);
    transform: translateY(-10px);
}

.popular-price-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    padding: 5px 12px;
    color: #ffffff;
    border-radius: 99px;
    background: #3e6ef1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    transform: translateX(-50%);
}

.price-label {
    color: #3b6fec;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.landing-price-card h3 {
    margin: 8px 0 14px;
    color: #152441;
    font-size: 22px;
}

.price-value {
    color: #13213e;
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 800;
}

.price-value small {
    color: #7a879d;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.landing-price-card ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 28px 0;
    list-style: none;
}

.landing-price-card li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #55657f;
    font-size: 12.5px;
}

.landing-price-card li svg {
    width: 17px;
    height: 17px;
    color: #13a571;
}

.price-plan-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    place-items: center;
    color: #3569ee;
    border: 1px solid #dbe7ff;
    border-radius: 14px;
    background: #f3f7ff;
}

.price-plan-icon svg {
    width: 23px;
    height: 23px;
}

.landing-price-card .pricing-outline-btn {
    color: #17304e;
    border: 1.5px solid #9eb5d2;
    background: #ffffff;
}

.landing-price-card .pricing-outline-btn:hover {
    color: #245fe5;
    border-color: #3569ee;
    background: #f4f7ff;
}

/* Dedicated pricing page */
.pricing-page {
    min-height: calc(100vh - 120px);
    padding: 34px 0 48px;
}

.pricing-page-header {
    margin-bottom: 52px;
    text-align: center;
}

.pricing-page-header h1 {
    margin: 12px 0 6px;
    color: #1c294b;
    font-size: clamp(42px, 5vw, 62px);
    line-height: 1.05;
}

.pricing-page-header p {
    color: #58698d;
    font-size: 18px;
}

.pricing-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pricing-plan-card {
    position: relative;
    display: flex;
    min-height: 620px;
    flex-direction: column;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #d7e0ea;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(35, 54, 88, .12);
}

.pricing-plan-featured {
    border: 2px solid #55b7f5;
    transform: translateY(-8px);
}

.pricing-plan-head {
    position: relative;
    min-height: 128px;
    padding: 18px 17px;
    border: 1px solid #cbd5df;
    border-radius: 20px;
    background: #eef2f5;
    box-shadow: 0 3px 8px rgba(31, 44, 68, .09);
}

.pricing-plan-featured .pricing-plan-head {
    border-color: #5cbaf2;
    background: linear-gradient(135deg, #d9f0ff, #89d5fb);
}

.pricing-plan-head h2 {
    margin: 0;
    color: #202e50;
    font-size: 22px;
    text-transform: uppercase;
}

.pricing-plan-head p {
    margin: 2px 0 14px;
    color: #30446c;
}

.pricing-plan-head>span:last-child {
    color: #30446c;
    font-size: 12px;
}

.pricing-popular {
    position: absolute;
    top: 16px;
    right: 15px;
    padding: 5px 9px;
    color: #ffffff !important;
    border-radius: 8px;
    background: #21345e;
    box-shadow: 0 0 0 3px rgba(70, 151, 220, .28);
    font-size: 12px !important;
    font-weight: 800;
}

.pricing-page-price {
    margin: 22px 0 0;
    color: #1d2b50;
    text-align: center;
    font-size: clamp(44px, 4vw, 58px);
    font-weight: 700;
    line-height: 1;
}

.pricing-page-price sup {
    font-size: 27px;
    vertical-align: 16px;
}

.pricing-page-price small {
    font-size: 14px;
    font-weight: 600;
}

.pricing-annual {
    margin: 8px 0 18px;
    color: #5a6b8f;
    text-align: center;
    font-size: 13px;
}

.pricing-get-started {
    margin: 18px 18px 22px;
    color: #142345;
    border: 0;
    border-radius: 0;
    background: #68b8ec;
}

.pricing-get-started:hover {
    color: #ffffff;
    background: #347fcb;
}

.pricing-feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 18px 24px;
    list-style: none;
}

.pricing-feature-list li {
    display: grid;
    grid-template-columns: 122px 1fr;
    align-items: center;
    gap: 14px;
    color: #1d2b50;
}

.pricing-feature-list strong {
    padding: 6px 8px;
    border-radius: 4px;
    background: #e9eef2;
    text-align: center;
    text-transform: uppercase;
    font-size: 13px;
}

.pricing-feature-list span {
    font-size: 13px;
}

.pricing-tax-note {
    margin-top: 20px;
    color: #596a8c;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 900px) {
    .pricing-page-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }

    .pricing-plan-featured {
        transform: none;
    }

    .pricing-plan-card {
        min-height: 0;
    }
}

/* FAQ and footer */
.faq-section {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 70px;
    padding: 72px 0;
}

.faq-intro {
    position: sticky;
    top: 112px;
    align-self: start;
}

.faq-intro h2 {
    margin-top: 14px;
}

.faq-art {
    overflow: hidden;
    margin: 34px 0 0;
    border: 1px solid #dce9f6;
    border-radius: 24px;
    background: #f7fbff;
    box-shadow: 0 18px 42px rgba(31, 74, 112, 0.11);
}

.faq-art img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.62 / 1;
    object-fit: cover;
}

.final-cta-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cta-outline-btn {
    color: #142340;
    border-color: #142340;
    background: transparent;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 42px;
    width: 100vw;
    margin-top: 34px;
    margin-left: calc(50% - 50vw);
    padding: 54px max(48px, calc((100vw - 1292px) / 2)) 28px;
    color: #17304e;
    border-top: 1px solid #c7eaf8;
    border-radius: 0;
    background: #dff6ff;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.footer-logo svg {
    width: 31px;
    height: 31px;
}

.footer-brand p {
    max-width: 250px;
    color: #24425e;
    font-size: 12px;
    line-height: 1.65;
}

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

.footer-column h3 {
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-column a {
    width: fit-content;
    color: #234461;
    font-size: 11.5px;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(20, 49, 76, 0.2);
    font-size: 10px;
}

/* --- 16. Responsive Styling --- */
@media (max-width: 1024px) {
    .header-container {
        height: 72px;
    }

    .logo {
        font-size: 21px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .logo-icon i,
    .logo-icon svg {
        width: 36px;
        height: 36px;
    }

    .nav-links {
        gap: 18px;
    }

    .generator-container-grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
        gap: 20px;
    }

    .icon-tab {
        min-width: 62px;
        padding-inline: 6px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 0;
    }

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

    .hero-desc {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sticky-preview {
        position: static;
    }

    .billing-grid {
        grid-template-columns: 1fr;
    }

    .type-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .basics-layout {
        gap: 34px;
    }

    .platform-section {
        gap: 34px;
        padding: 64px 36px;
    }

    .capability-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-section {
        gap: 38px;
    }

    .site-footer {
        grid-template-columns: 1.4fr repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 22px 14px 36px;
    }

    .header-container {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
        /* In a production app, we would add a mobile drawer toggle */
    }

    .mobile-menu-btn {
        display: block;
    }

    .lang-selector-wrapper {
        display: none;
    }

    .generator-container-grid {
        grid-template-columns: 1fr;
    }

    .designer-card,
    .preview-panel-card {
        padding: 16px;
    }

    .with-logo-badge {
        right: 2px;
        top: 4px;
    }

    .solutions-section {
        padding: 20px 16px 16px;
    }

    .solutions-header {
        align-items: flex-start;
        gap: 12px;
    }

    .solutions-grid {
        grid-template-columns: repeat(6, 142px);
        min-width: max-content;
        gap: 12px;
    }

    .hero-title {
        font-size: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
        max-width: 400px;
    }

    .card-viz-wrapper {
        transform: scale(0.9);
    }

    .landing-block {
        margin-top: 24px;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading-row h2,
    .centered-section-heading h2,
    .platform-copy h2,
    .faq-intro h2,
    .final-cta-section h2,
    .cyan-cta h2 {
        font-size: 30px;
    }

    .ideas-section,
    .basics-section,
    .steps-section,
    .capability-section,
    .pricing-section {
        padding-top: 48px;
    }

    .basics-layout,
    .platform-section,
    .faq-section {
        grid-template-columns: 1fr;
    }

    .basics-layout {
        gap: 28px;
    }

    .basics-visual {
        min-height: 360px;
    }

    .steps-grid,
    .landing-pricing-grid {
        grid-template-columns: 1fr;
    }

    .featured-price-card {
        transform: none;
    }

    .platform-section {
        padding: 50px 24px;
    }

    .platform-visual {
        min-height: 350px;
    }

    .capability-grid {
        grid-template-columns: 1fr;
    }

    .capability-card p {
        min-height: 0;
    }

    .types-section {
        padding: 48px 18px 24px;
    }

    .faq-section {
        padding: 52px 0;
    }

    .faq-intro {
        position: static;
    }

    .faq-art {
        display: block;
        max-width: 560px;
    }

    .cyan-cta,
    .final-cta-section {
        padding: 56px 24px;
    }

    .cta-orbit {
        opacity: 0.35;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
        padding: 42px 26px 24px;
    }

    .footer-brand,
    .footer-bottom {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .logo-text {
        font-size: 18px;
    }

    .logged-out-actions .btn-login-header {
        display: none;
    }

    .btn-signup-header {
        padding: 7px 12px;
    }

    .mobile-menu-btn {
        display: none;
    }

    .solutions-header {
        flex-direction: column;
    }

    .inputs-grid-2,
    .preview-actions-row {
        grid-template-columns: 1fr;
    }

    .more-types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-design-panel {
        padding: 14px;
    }

    .home-design-panel {
        padding: 18px 14px 22px;
    }

    .home-design-title {
        margin-bottom: 18px;
    }

    .home-design-tabs {
        margin-bottom: 28px;
    }

    .home-design-tab {
        font-size: 14px;
    }

    .home-frame-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .home-frame-option {
        width: 70px;
        min-height: 100px;
        padding: 4px 3px 5px;
    }

    .frame-thumb-svg {
        width: 66px;
        height: 78px;
    }

    .home-shape-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: 28px;
    }

    .home-color-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-logo-presets {
        gap: 10px;
    }

    .home-logo-preset {
        width: 78px;
        height: 78px;
    }

    .home-logo-preview {
        grid-template-columns: 42px 1fr;
    }

    .home-logo-preview button {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .type-feature-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .idea-art {
        min-height: 210px;
    }

    .idea-art img {
        height: 210px;
    }

    .basics-visual {
        min-height: 330px;
    }

    .phone-demo {
        width: 160px;
        height: 270px;
    }

    .phone-demo svg {
        width: 92px;
        height: 92px;
    }

    .result-bubble {
        right: 12px;
        bottom: 44px;
    }

    .final-cta-actions,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .platform-window {
        inset: 10px 24px 54px 0;
        padding: 12px;
    }

    .platform-stat-row {
        grid-template-columns: 26px 1fr;
    }

    .platform-stat-row strong {
        display: none;
    }

    .platform-phone {
        width: 112px;
        height: 205px;
    }

    .platform-phone svg {
        width: 56px;
        height: 56px;
    }

    .site-footer {
        border-radius: 0;
    }

    .footer-brand,
    .footer-bottom {
        grid-column: auto;
    }
}

/* Final branded pricing overrides (kept after legacy landing-page rules). */
.pricing-page {
    position: relative;
    padding: 58px 0 70px;
    background: radial-gradient(circle at 12% 8%, rgba(0, 102, 255, .11), transparent 27%), radial-gradient(circle at 90% 18%, rgba(0, 180, 216, .11), transparent 25%), linear-gradient(180deg, #f7faff 0%, #fff 42%);
}

.pricing-page-grid {
    gap: 22px;
    padding: 0 8px;
}

.pricing-plan-card {
    min-height: 600px;
    padding: 28px;
    overflow: visible;
    border: 1px solid #dce7f5;
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 20px 55px rgba(28, 73, 128, .11);
}

.pricing-plan-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, #0066ff, #00b4d8);
}

.pricing-plan-featured {
    color: #fff;
    border: 0;
    background: linear-gradient(155deg, #0f2c63 0%, #075dd6 62%, #00a4d0 130%);
    transform: translateY(-10px);
    box-shadow: 0 24px 65px rgba(0, 88, 205, .28);
}

.pricing-plan-head,
.pricing-plan-featured .pricing-plan-head {
    display: flex;
    min-height: 118px;
    align-items: flex-start;
    gap: 14px;
    padding: 6px 0 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pricing-plan-mark {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #0066ff !important;
    border-radius: 16px;
    background: #eaf3ff;
    box-shadow: inset 0 0 0 1px #c8defd;
    font-size: 23px !important;
    font-weight: 900;
}

.pricing-plan-featured .pricing-plan-mark {
    color: #113167 !important;
    background: #fff;
}

.pricing-plan-head h2 {
    color: #142b54;
    font-size: 24px;
    text-transform: none;
}

.pricing-plan-head p {
    margin: 3px 0 11px;
    color: #5e708e;
}

.pricing-plan-head div>span {
    color: #71819b;
    font-size: 12px;
}

.pricing-plan-featured .pricing-plan-head h2,
.pricing-plan-featured .pricing-plan-head p,
.pricing-plan-featured .pricing-plan-head div>span {
    color: #fff;
}

.pricing-popular {
    top: -42px;
    right: 18px;
    padding: 7px 12px;
    color: #07469e !important;
    background: #dff8ff;
    box-shadow: 0 6px 18px rgba(4, 36, 81, .22);
}

.pricing-page-price {
    margin: 12px 0 0;
    color: #10274f;
    text-align: left;
}

.pricing-plan-featured .pricing-page-price,
.pricing-plan-featured .pricing-annual {
    color: #fff;
}

.pricing-annual {
    margin: 9px 0 23px;
    text-align: left;
}

.pricing-get-started {
    margin: 4px 0 25px;
    padding: 13px 20px;
    color: #fff;
    border-radius: 11px;
    background: linear-gradient(90deg, #0066ff, #00a9d6);
}

.pricing-plan-featured .pricing-get-started {
    color: #0755b8;
    background: #fff;
}

.pricing-feature-list {
    gap: 0;
    margin: 0;
}

.pricing-feature-list li {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 12px 0 12px 31px;
    border-bottom: 1px solid #e8eef6;
}

.pricing-feature-list li::before {
    content: '✓';
    position: absolute;
    top: 12px;
    left: 0;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #13a571;
    font-size: 11px;
    font-weight: 900;
}

.pricing-feature-list strong {
    padding: 0;
    color: #075fda;
    background: transparent;
    text-transform: none;
}

.pricing-feature-list span {
    color: #526481;
}

.pricing-plan-featured .pricing-feature-list li {
    border-bottom-color: rgba(255, 255, 255, .18);
}

.pricing-plan-featured .pricing-feature-list strong,
.pricing-plan-featured .pricing-feature-list span {
    color: #fff;
}

@media (max-width: 900px) {
    .pricing-plan-featured {
        transform: none;
    }
}

/* Keep every routed page on the same index-page surface palette. */
.pricing-page,
.inner-page-shell,
.contact-page {
    background: var(--bg-base);
}

#site-header-slot:empty {
    display: block;
    min-height: 80px;
}

#site-footer-slot {
    width: 100%;
}

body:has(#view-card:not(.hidden)) #site-footer-slot {
    display: none;
}

.layout-load-error::before {
    content: 'Unable to load the shared page layout. Please refresh.';
    display: block;
    padding: 16px;
    color: #991b1b;
    background: #fee2e2;
    text-align: center;
}

/* Shared layout remains visible on every route, including scanned cards. */
body:has(#view-card:not(.hidden)) .main-header {
    display: block;
}

body:has(#view-card:not(.hidden)) #site-footer-slot {
    display: block;
}

body:has(#view-card:not(.hidden)) .main-content {
    max-width: 1340px;
    padding: 38px 24px 48px;
}

/* --- 17. Creation Wizard Flow & Standalone Creator --- */
.wizard-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 992px) {
    .wizard-container {
        grid-template-columns: 1fr;
    }

    .wizard-preview-panel {
        display: none;
        /* Hide device previews on small tablets/phones */
    }
}

.wizard-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* Selected details box */
.wizard-details-box {
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px -2px rgba(0, 102, 255, 0.05);
}

.details-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.details-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 8px;
}

.details-icon i {
    width: 20px;
    height: 20px;
}

.details-title-row {
    display: flex;
    flex-direction: column;
}

.details-title-row h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-dynamic {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    background: #e0f2fe;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.btn-csv-import {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.details-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.details-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Choice Selection Grid */
.wizard-divider-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 28px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-divider-text::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: var(--border-color);
}

.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.wizard-card {
    display: flex;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.wizard-card:hover {
    border-color: #bfdbfe;
    background: #fcfdfe;
    transform: translateY(-1px);
}

.wizard-card.active {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
    flex-shrink: 0;
    transition: var(--transition);
}

.wizard-card:hover .card-icon {
    color: var(--primary);
    background: #eff6ff;
}

.wizard-card.active .card-icon {
    color: #ffffff;
    background: var(--primary);
}

.card-icon i {
    width: 18px;
    height: 18px;
}

.card-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.card-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Phone Mockup Frame inside Wizard preview */
.wizard-preview-panel {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 100px;
}

.phone-frame-wrapper {
    position: relative;
    width: 290px;
    height: 560px;
    background: #0f172a;
    border: 8px solid #334155;
    border-radius: 36px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 26px;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.phone-welcome-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 24px;
}

.phone-welcome-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 50%;
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.phone-welcome-icon i {
    width: 22px;
    height: 22px;
}

.phone-welcome-state h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.phone-welcome-state p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Dynamic Phone Preview Card */
.phone-preview-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.phone-banner {
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
}

.phone-avatar-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #ffffff;
    margin: -27px auto 8px;
    z-index: 10;
}

.phone-title {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.phone-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
}

.phone-fields-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-mock-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
}

.phone-mock-field i {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.phone-mock-field-text {
    display: flex;
    flex-direction: column;
}

.phone-mock-field-text span:first-child {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.phone-mock-field-text span:last-child {
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 600;
}

.phone-cta-btn {
    margin: 16px;
    padding: 10px;
    background: var(--primary);
    color: #ffffff;
    text-align: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

/* Wizard Bottom Bar */
.wizard-bottom-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: 40px;
}

/* ================= STANDALONE DESIGNER LAYOUT ================= */
.designer-layout-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 992px) {
    .designer-layout-container {
        grid-template-columns: 1fr;
    }
}

.designer-controls-side {
    display: flex;
    flex-direction: column;
}

.designer-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.designer-controls-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.designer-type-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 6px;
}

/* designer card box container */
.designer-card-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.box-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Gated structures */
.control-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 800;
    color: #7c3aed;
    background: #f3e8ff;
    padding: 2px 6px;
    border-radius: 4px;
}

.pro-badge i {
    width: 10px;
    height: 10px;
}

.pro-badge.mini {
    padding: 2px;
    border-radius: 3px;
}

.pro-badge.mini i {
    width: 8px;
    height: 8px;
}

/* Sticky Preview panel (Right) */
.designer-preview-side {
    position: relative;
}

.designer-sticky-preview {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.preview-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.preview-card-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-card-header .dot.red {
    background: #ef4444;
}

.preview-card-header .dot.yellow {
    background: #f59e0b;
}

.preview-card-header .dot.green {
    background: #10b981;
}

.preview-card-header .card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

/* QR code canvas layout */
.qr-canvas-container-outer {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    aspect-ratio: 1 / 1;
    position: relative;
}

.qr-output-canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.qr-placeholder {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.qr-placeholder i {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

.qr-placeholder span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Scan status safe label */
.scan-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 6px 12px;
    border-radius: 6px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.success {
    background: #10b981;
}

.status-text {
    font-size: 11px;
    font-weight: 700;
    color: #065f46;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-grid .col-span-2 {
    grid-column: span 2;
}

/* Disabled Overlay blocks for locked elements */
.gated-feature.disabled {
    opacity: 0.65;
    pointer-events: none;
    position: relative;
}

/* --- QRCG Create Wizard & Branding Styles --- */

/* Back Button in header */
#header-back-btn {
    display: none;
}

body.route-create #header-back-btn,
body.route-designer #header-back-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #cbd5e1;
    height: 20px;
}

body.route-create #header-back-btn:hover,
body.route-designer #header-back-btn:hover {
    color: #f97316;
}

body.route-create .nav-links,
body.route-designer .nav-links,
body.route-create .lang-selector-wrapper,
body.route-designer .lang-selector-wrapper,
body.route-create .logged-out-actions,
body.route-designer .logged-out-actions {
    display: none !important;
}

/* Selected layout adjustment when creating a code */
body.route-create .main-header,
body.route-designer .main-header {
    background: #ffffff;
    border-bottom: 1px solid #cbd5e1;
}

/* Static Codes Toggle style */
.static-codes-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-top: 24px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
}

.static-codes-toggle:hover {
    border-color: #bfdbfe;
    background: #fcfdfe;
}

.static-toggle-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: #f8fafc;
    border-radius: 6px;
    color: #64748b;
}

.static-codes-toggle:hover .static-toggle-icon {
    color: var(--primary);
    background: #eff6ff;
}

/* Waving character preview screen styling */
.phone-welcome-state {
    padding: 32px 24px !important;
}

.phone-welcome-state .character-svg-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    animation: characterWave 3s ease-in-out infinite;
}

.phone-welcome-state .character-text {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    line-height: 1.5;
}

/* Animate character waving */
@keyframes characterWave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Device frame styling adjustment when in welcome state */
.phone-frame-wrapper.welcome-active {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.phone-frame-wrapper.welcome-active .phone-frame {
    background: transparent !important;
    border: none !important;
}

/* Make wizard grid strictly 2-columns on large screens for QRCG look */
@media (min-width: 768px) {
    .wizard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Note: an older dark-themed mobile nav drawer used to live here
   (.nav-links a { color: #f1f5f9; border-bottom: ... }). It targeted every
   anchor under .nav-links, which is more specific than .nav-dropdown-item,
   so it was silently washing out and underlining the dropdown menu items.
   Removed — the current mobile nav styling lives in the
   "Mobile Responsive Header Styles" @media (max-width: 900px) block below. */

/* Ensure website navigation menu is strictly hidden in creator studio & dashboard views */
body.route-dashboard #main-nav-links,
body.route-create #main-nav-links,
body.route-designer #main-nav-links,
body.route-billing #main-nav-links,
body.route-history #main-nav-links,
.route-dashboard .nav-links,
.route-create .nav-links,
.route-designer .nav-links,
.route-billing .nav-links,
.route-history .nav-links {
    display: none !important;
}

/* Global Interactive QR Cursor Follower */
.qr-cursor-follower {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    width: 34px;
    height: 34px;
    background: #0066ff;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.45);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
    opacity: 0;
}

.qr-cursor-follower.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.qr-cursor-follower.pulsing-qr {
    animation: qrPulse 1.3s infinite ease-in-out;
}

@keyframes qrPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 4px 14px rgba(0, 102, 255, 0.4);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 8px 24px rgba(0, 102, 255, 0.7);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 4px 14px rgba(0, 102, 255, 0.4);
    }
}

/* Centered Icons Inside Circle Badges */
.icon-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.15);
    color: #0066ff;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    margin-top: 1px;
    box-sizing: border-box;
}

.icon-circle svg,
.icon-circle i {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    margin: auto !important;
    color: currentColor;
}

/* Animated 3D Scanning Grid Mesh Overlay on Image Hover (No Blue Border Line) */
.card-visual,
.card-img-header,
.faq-card-header,
.api-visual-box {
    position: relative;
    overflow: hidden;
}

.card-visual::after,
.card-img-header::after,
.faq-card-header::after,
.api-visual-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.14) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.feature-showcase-card:hover .card-visual::after,
.help-card-item:hover .card-img-header::after,
.faq-card-item:hover .faq-card-header::after,
.api-visual-box:hover::after {
    opacity: 1;
    animation: gridScanPulse 2s infinite linear;
}

@keyframes gridScanPulse {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 24px 24px;
    }
}

/* Background Edge Floating & Rotating QR Accent Elements */
.bg-qr-accent {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    color: #0066ff;
    transition: opacity 0.3s ease;
}

.bg-qr-accent-left {
    top: 25%;
    left: -20px;
    animation: rotateFloatLeft 16s infinite linear;
}

.bg-qr-accent-right {
    bottom: 20%;
    right: -20px;
    animation: rotateFloatRight 18s infinite ease-in-out;
}

@keyframes rotateFloatLeft {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-30px) rotate(180deg) scale(1.1);
    }

    100% {
        transform: translateY(0) rotate(360deg) scale(1);
    }
}

@keyframes rotateFloatRight {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(35px) rotate(-180deg) scale(0.95);
    }

    100% {
        transform: translateY(0) rotate(-360deg) scale(1);
    }
}

/* 2-Column FAQ Grid Layout (8 Left + 8 Right) */
.faq-two-col-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .faq-two-col-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Scanner Laser Line Animation (Active alongside Grid Mesh) */
.card-laser-scanner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #0066ff 50%, transparent 100%);
    box-shadow: 0 0 12px #0066ff, 0 0 20px #38bdf8;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.feature-showcase-card:hover .card-laser-scanner,
.help-card-item:hover .card-laser-scanner,
.api-card-item:hover .card-laser-scanner,
.faq-card-item:hover .card-laser-scanner,
.api-visual-box:hover .card-laser-scanner {
    opacity: 1;
    animation: scanLaser 2s infinite linear;
}

@keyframes scanLaser {
    0% {
        top: 0%;
    }

    50% {
        top: 95%;
    }

    100% {
        top: 0%;
    }
}

/* Hover State for Icon Circles (Turn Solid Blue on Card Hover) */
.feature-showcase-card:hover .icon-circle,
.help-card-item:hover .icon-circle,
.api-card-item:hover .icon-circle,
.faq-card-item:hover .icon-circle {
    background: #0066ff !important;
    border-color: #0066ff !important;
    color: #ffffff !important;
    transform: scale(1.08);
}

.feature-showcase-card:hover .icon-circle svg,
.feature-showcase-card:hover .icon-circle i,
.help-card-item:hover .icon-circle svg,
.help-card-item:hover .icon-circle i,
.api-card-item:hover .icon-circle svg,
.api-card-item:hover .icon-circle i,
.faq-card-item:hover .icon-circle svg,
.faq-card-item:hover .icon-circle i {
    color: #ffffff !important;
}

/* Standardized Bullet List Flex Alignment across All Pages */
.icon-bullet-list,
.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.icon-bullet-list li,
.bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.icon-bullet-list li span,
.bullet-list li span {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
}

/* Info Tooltips for Pricing Features (Screenshot 1) */
.info-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
}

.info-tooltip-trigger {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.info-tooltip-wrapper:hover .info-tooltip-trigger {
    color: #0066ff;
}

.info-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: normal;
    width: 190px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 99;
    line-height: 1.45;
}

.info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.info-tooltip-wrapper:hover .info-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Background QR Opacity Reduction (50%+ reduction on mobile) */
@media (max-width: 768px) {
    .bg-qr-accent {
        opacity: 0.03 !important;
        transform: scale(0.6) !important;
    }
}

/* Interactive QR Types Showcase Section (Screenshot 2) */
.types-tab-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    scrollbar-width: none;
}

.types-tab-bar::-webkit-scrollbar {
    display: none;
}

.type-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.type-tab-btn i,
.type-tab-btn svg {
    width: 22px;
    height: 22px;
    color: #64748b;
    transition: color 0.25s ease;
}

.type-tab-btn.active,
.type-tab-btn:hover {
    background: rgba(0, 102, 255, 0.08);
    color: #0066ff;
    border-color: rgba(0, 102, 255, 0.2);
}

.type-tab-btn.active i,
.type-tab-btn.active svg,
.type-tab-btn:hover i,
.type-tab-btn:hover svg {
    color: #0066ff;
}

/* --- Screenshot 2 Matched Icon Box Tabs & Underline Bar --- */
.type-box-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px 12px;
    position: relative;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.type-box-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.type-box-icon i,
.type-box-icon svg {
    width: 24px;
    height: 24px;
    color: #64748b;
    transition: color 0.2s ease;
}

.type-box-btn span {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    transition: color 0.2s ease;
}

.type-box-btn:hover .type-box-icon,
.type-box-btn.active .type-box-icon {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
}

.type-box-btn:hover .type-box-icon i,
.type-box-btn:hover .type-box-icon svg,
.type-box-btn.active .type-box-icon i,
.type-box-btn.active .type-box-icon svg {
    color: #3b82f6 !important;
}

.type-box-btn:hover span,
.type-box-btn.active span {
    color: #0f172a;
    font-weight: 700;
}

/* --- Info Tooltip Styles --- */
.info-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    cursor: pointer;
    vertical-align: middle;
}

.info-tooltip-trigger {
    width: 15px;
    height: 15px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.info-tooltip-wrapper:hover .info-tooltip-trigger {
    color: #0066ff;
}

.info-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0f172a;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: normal;
    width: max-content;
    max-width: 210px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    pointer-events: none;
}

.info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.info-tooltip-wrapper:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- High-Visibility Swipe Control Buttons --- */
.swipe-arrow-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid #0066ff !important;
    background: #0066ff !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35) !important;
    font-size: 22px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.swipe-arrow-btn:hover {
    background: #004ecc !important;
    transform: scale(1.08) !important;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.45) !important;
}

/* --- Ultra-Realistic Smartphone Frame Mockup --- */
.qrfy-phone-mockup {
    width: 290px !important;
    height: 490px !important;
    background: #0f172a !important;
    border-radius: 46px !important;
    padding: 10px !important;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    border: 5px solid #1e293b !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.qrfy-phone-notch {
    width: 90px !important;
    height: 16px !important;
    background: #0f172a !important;
    border-radius: 12px !important;
    margin: 4px auto 10px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* --- Feature Bullet List Checkmark Circle --- */
.icon-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.icon-bullet-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
}

.icon-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.25);
    color: #0066ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 3.5px;
}

.featured-price-card .icon-circle {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.featured-price-card .icon-circle svg {
    stroke: #ffffff !important;
    stroke-width: 3.5px !important;
}

/* ==========================================================================
   Sticky Main Header & Bottom Line on Scroll
   ========================================================================== */
.main-header {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.main-header.scrolled {
    background: #ffffff;
    border-bottom-color: #cbd5e1;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 14.5px;
    transition: all 0.2s ease;
    padding: 6px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #0066ff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: #0066ff;
    border-radius: 99px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-login-header {
    text-decoration: none;
    color: #0066ff;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.btn-login-header:hover {
    background: rgba(0, 102, 255, 0.06);
}

.btn-signup-header {
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

.header-back-btn {
    display: none;
}

/* Mobile Navigation Hamburger Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #0f172a;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
}

/* Mobile Responsive Header Styles */
@media (max-width: 900px) {
    .main-header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 10000 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08) !important;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 4px;
        border: 1px solid #eef2f7;
        border-radius: 18px;
        box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
        display: none;
        z-index: 9999;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        animation: mobileNavDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes mobileNavDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

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

    .nav-link {
        padding: 13px 14px;
        border-radius: 12px;
        font-size: 16px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #f0f7ff;
    }

    .nav-link.active::after {
        display: none;
    }

    #nav-pricing {
        margin-top: 6px;
        border-top: 1px solid #eef2f7;
        border-radius: 0;
        padding-top: 17px;
    }

    .nav-item-dropdown {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 13px 14px;
        border-radius: 12px;
        font-weight: 700;
        color: #0f172a;
    }

    .nav-dropdown-trigger:hover {
        background: #f8fafc;
    }

    /* Chevron-down reads as chevron-right on mobile: it signals "drill in", not "expand below" */
    .nav-caret {
        transform: rotate(-90deg);
    }

    /* Hidden until drilled into; JS adds .mobile-open to swap the trigger for the full submenu */
    .nav-dropdown-panel {
        display: none;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        min-width: 0 !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 4px !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-item-dropdown.mobile-open .nav-dropdown-trigger {
        display: none !important;
    }

    .nav-item-dropdown.mobile-open .nav-dropdown-panel {
        display: flex !important;
    }

    /* While one section is drilled into, hide every other root-level menu item */
    .nav-links.drilled>*:not(.nav-item-dropdown.mobile-open) {
        display: none !important;
    }

    .nav-dropdown-back {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 12px 10px !important;
        margin-bottom: 8px !important;
        border: none !important;
        background: #f1f5f9 !important;
        border-radius: 10px !important;
        font: inherit !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        cursor: pointer !important;
        text-align: left !important;
    }

    .nav-dropdown-back:hover {
        color: #0066ff !important;
    }

    .nav-dropdown-back i,
    .nav-dropdown-back svg {
        width: 18px !important;
        height: 18px !important;
        color: #0066ff !important;
        flex-shrink: 0 !important;
    }

    .nav-dropdown-item {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 13px 14px !important;
        color: #0f172a !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        background: #f8fafc !important;
        border: 1px solid #eef2f7 !important;
        margin-bottom: 6px !important;
        opacity: 1 !important;
        visibility: visible !important;
        text-decoration: none !important;
    }

    .nav-dropdown-item:hover,
    .nav-dropdown-item:focus {
        background: #edf5ff !important;
        color: #0066ff !important;
    }

    .nav-dropdown-item span {
        color: #0f172a !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-dropdown-item i,
    .nav-dropdown-item svg {
        width: 20px !important;
        height: 20px !important;
        color: #0066ff !important;
        flex-shrink: 0 !important;
        stroke-width: 2.5px !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Black Social Media Buttons */
.black-social-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: #000000 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.black-social-btn:hover {
    transform: translateY(-2px) scale(1.08) !important;
    background: #1e293b !important;
}

/* Premium Dynamic QR Type Promo Card Panel */
.home-promo-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 44px;
    min-height: 380px;
    background: #ffffff;
    border-radius: 20px;
}

.home-promo-panel.hidden {
    display: none !important;
}

.home-promo-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
    font-family: 'Outfit', system-ui, sans-serif;
}

.home-promo-desc {
    font-size: 16.5px;
    line-height: 1.65;
    color: #475569;
    max-width: 480px;
    margin: 0 0 32px 0;
    font-weight: 500;
}

.btn-promo-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 34px;
    border-radius: 50px;
    background: #4338ca;
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(67, 56, 202, 0.28);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-promo-register:hover {
    transform: translateY(-2px);
    background: #3730a3;
    box-shadow: 0 14px 28px rgba(67, 56, 202, 0.38);
}

/* Side Preview Generate QR Code Button */
.btn-side-generate {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    border-radius: 50px;
    background: #e2e8f0;
    color: #475569;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-side-generate:hover,
.btn-side-generate.active-ready {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
}

.btn-side-generate:active {
    transform: scale(0.98);
}

/* Popular QR Code Solutions Continuous Auto-Rotating Marquee Slider */
.solutions-grid-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 16px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35px, #000 calc(100% - 35px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 35px, #000 calc(100% - 35px), transparent 100%);
}

.solutions-grid {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: solutionsContinuousMarquee 32s linear infinite;
}

.solutions-grid-wrapper:hover .solutions-grid {
    animation-play-state: paused;
}

@keyframes solutionsContinuousMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 9px));
    }
}

.solution-card {
    flex: 0 0 200px;
    width: 200px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 18px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border-color: #0066ff;
}

/* Vibrant Icon Circle Colors */
.sol-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin-bottom: 14px;
    transition: transform 0.25s ease;
}

.solution-card:hover .sol-icon-wrapper {
    transform: scale(1.1);
}

.sol-icon-wrapper i,
.sol-icon-wrapper svg {
    width: 26px;
    height: 26px;
    stroke-width: 2px;
}

.blue-icon {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

.purple-icon {
    background: #f3e8ff !important;
    color: #9333ea !important;
}

.green-icon {
    background: #dcfce7 !important;
    color: #16a34a !important;
}

.violet-icon {
    background: #ede9fe !important;
    color: #7c3aed !important;
}

.orange-icon {
    background: #ffedd5 !important;
    color: #ea580c !important;
}

.pink-icon {
    background: #fce7f3 !important;
    color: #db2777 !important;
}

.red-icon {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.cyan-icon {
    background: #cff4fc !important;
    color: #0891b2 !important;
}

.indigo-icon {
    background: #e0e7ff !important;
    color: #4f46e5 !important;
}

.emerald-icon {
    background: #d1fae5 !important;
    color: #059669 !important;
}

.slate-icon {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.gold-icon {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

/* ==========================================================================
   Header Nav Dropdowns (Products / Resources mega-menu)
   ========================================================================== */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: #475569;
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-dropdown-trigger:hover {
    color: #0066ff;
}

.nav-item-dropdown:hover .nav-dropdown-trigger,
.nav-item-dropdown:focus-within .nav-dropdown-trigger {
    color: #0066ff;
}

.nav-caret {
    width: 14px;
    height: 14px;
    stroke-width: 2.5px;
    transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 6px);
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 200;
}

.nav-item-dropdown:hover .nav-dropdown-panel,
.nav-item-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    transition: background 0.15s ease;
}

.nav-dropdown-item:hover {
    background: #f0f7ff;
}

.nav-dropdown-item i,
.nav-dropdown-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #0066ff;
    stroke-width: 2.2px;
}

.nav-dropdown-divider {
    height: 1px;
    background: #eef2f7;
    margin: 6px 4px;
}

.nav-dropdown-viewall {
    color: #0066ff;
}

/* Desktop uses hover mega-menus; the "back" row only makes sense in the
   mobile drill-down navigation (see the max-width: 900px block below). */
.nav-dropdown-back {
    display: none;
}

@media (max-width: 900px) {
    .nav-item-dropdown {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 13px 14px;
        border-radius: 12px;
        font-weight: 700;
        color: #0f172a;
    }

    .nav-dropdown-trigger:hover {
        background: #f8fafc;
    }

    /* Chevron-down reads as chevron-right on mobile: it signals "drill in", not "expand below" */
    .nav-caret {
        transform: rotate(-90deg);
    }

    /* Hidden until drilled into; JS adds .mobile-open to swap the trigger for the full submenu */
    .nav-dropdown-panel {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
        min-width: 0;
        flex-direction: column;
        gap: 2px;
        background: transparent;
        padding: 0;
        margin: 0;
    }

    .nav-item-dropdown.mobile-open .nav-dropdown-trigger {
        display: none;
    }

    .nav-item-dropdown.mobile-open .nav-dropdown-panel {
        display: flex;
    }

    /* While one section is drilled into, hide every other root-level menu item */
    .nav-links.drilled>*:not(.nav-item-dropdown.mobile-open) {
        display: none;
    }

    .nav-dropdown-back {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 11px 8px;
        margin-bottom: 6px;
        border: none;
        background: none;
        font: inherit;
        font-size: 15px;
        font-weight: 700;
        color: #0f172a;
        cursor: pointer;
        border-bottom: 1px solid #eef2f7;
        text-align: left;
    }

    .nav-dropdown-back:hover {
        color: #0066ff;
    }

    .nav-dropdown-back i {
        width: 18px;
        height: 18px;
        color: #64748b;
        flex-shrink: 0;
    }

    .nav-dropdown-item {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 14px !important;
        color: #0f172a !important;
        font-size: 14.5px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        background: #f8fafc;
        margin-bottom: 4px;
    }

    .nav-dropdown-item:hover {
        background: #edf5ff !important;
        color: #0066ff !important;
    }

    .nav-dropdown-item span {
        color: #0f172a !important;
        font-size: 14.5px !important;
        font-weight: 600 !important;
    }

    .nav-dropdown-item i,
    .nav-dropdown-item svg {
        width: 20px !important;
        height: 20px !important;
        color: #0066ff !important;
        flex-shrink: 0 !important;
        stroke-width: 2.2px !important;
    }
}

/* Floating Click to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0066ff;
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top-btn:hover {
    background: #0052cc;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.45);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* --- Type Preview Image Modal --- */
.type-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.type-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.type-modal-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.type-modal-backdrop.show .type-modal-card {
    transform: scale(1) translateY(0);
}

.type-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    border: none;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s ease;
}

.type-modal-close:hover {
    background: rgba(15, 23, 42, 0.15);
}

.type-modal-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.type-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.type-modal-header p {
    color: #64748b;
    font-size: 13.5px;
    margin: 0;
}

.type-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
}

.type-modal-phone-preview {
    width: 100%;
    max-width: 320px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.12);
    border: 6px solid #0f172a;
    padding: 24px 20px;
    text-align: center;
}

/* --- Ambient Background Glow Circles & Wave Animation behind Showcase Image --- */
.showcase-bg-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsating distinctly visible wave rings */
.showcase-wave-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.8px solid rgba(59, 130, 246, 0.22);
    pointer-events: none;
    animation: wavePulse 4.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-wave-ring-1 {
    width: 320px;
    height: 320px;
    animation-delay: 0s;
}

.showcase-wave-ring-2 {
    width: 400px;
    height: 400px;
    animation-delay: 1.5s;
    border-color: rgba(99, 102, 241, 0.18);
}

.showcase-wave-ring-3 {
    width: 470px;
    height: 470px;
    animation-delay: 3s;
    border-color: rgba(168, 85, 247, 0.14);
}

@keyframes wavePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0.85;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0.85;
    }
}

/* Distinctly visible ambient aura circles */
.showcase-aura-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(35px);
    opacity: 0.32;
    pointer-events: none;
    z-index: 0;
}

.showcase-aura-blue {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, #0066ff, #00b4d8);
    top: 8%;
    left: 5%;
    animation: floatAura1 6s ease-in-out infinite alternate;
}

.showcase-aura-purple {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #8b5cf6, #ec4899);
    bottom: 8%;
    right: 5%;
    animation: floatAura2 7s ease-in-out infinite alternate;
}

@keyframes floatAura1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(14px, -16px) scale(1.12);
    }
}

@keyframes floatAura2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-14px, 16px) scale(1.1);
    }
}

.showcase-preview-img-active {
    position: relative;
    z-index: 2;
    max-width: 350px;
    max-height: 520px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 36px rgba(15, 23, 42, 0.16));
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.showcase-preview-img-active:hover {
    transform: scale(1.03) translateY(-4px);
    filter: drop-shadow(0 26px 48px rgba(0, 102, 255, 0.22));
}

/* --- Showcase Grid Responsive Controls --- */
.qrfy-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 380px 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .qrfy-showcase-grid {
        grid-template-columns: 1fr 320px 1fr;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .qrfy-showcase-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .qrfy-copy-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .qrfy-copy-left h3 {
        font-size: 28px !important;
    }

    .qrfy-copy-left p {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }

    .qrfy-features-right {
        max-width: 480px;
        margin: 0 auto;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .showcase-bg-wrapper {
        max-width: 290px;
        height: 440px;
    }

    .showcase-preview-img-active {
        max-width: 260px;
        max-height: 410px;
    }

    .showcase-wave-ring-1 {
        width: 240px;
        height: 240px;
    }

    .showcase-wave-ring-2 {
        width: 300px;
        height: 300px;
    }

    .showcase-wave-ring-3 {
        width: 350px;
        height: 350px;
    }

    .showcase-aura-blue {
        width: 180px;
        height: 180px;
    }

    .showcase-aura-purple {
        width: 160px;
        height: 160px;
    }
}

/* --- Pricing Monthly/Yearly Toggle Controls --- */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px auto 40px;
}

.pricing-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.pricing-toggle-label.active {
    color: #0066ff;
    font-weight: 700;
}

.pricing-toggle-switch {
    position: relative;
    width: 56px;
    height: 30px;
    background: #0066ff;
    border-radius: 99px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pricing-toggle-switch.monthly-active {
    background: #64748b;
}

.pricing-toggle-slider {
    position: absolute;
    top: 3px;
    left: 29px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, left 0.3s ease;
}

.pricing-toggle-switch.monthly-active .pricing-toggle-slider {
    left: 3px;
}

.pricing-discount-badge {
    background: #dbeafe;
    color: #0066ff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 99px;
    margin-left: 4px;
    display: inline-block;
}

/* --- Responsive Rules for Hero Studio Generator Grid --- */
@media (max-width: 990px) {
    .generator-container-grid {
        grid-template-columns: 1fr !important;
    }

    .designer-card,
    .preview-card {
        padding: 16px !important;
    }
}

@media (max-width: 640px) {
    .creator-type-tabs button {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .frame-selector-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }
}

.swipe-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    z-index: 2;
}

.swipe-arrow-btn:hover {
    background: #0066ff;
    color: #ffffff;
    border-color: #0066ff;
    transform: scale(1.08);
}

.types-nav-scroller {
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px;
}

.types-nav-scroller::-webkit-scrollbar {
    display: none;
}

.types-tab-bar {
    display: flex;
    gap: 10px;
    min-width: max-content;
}

.type-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

.type-tab-btn i,
.type-tab-btn svg {
    width: 17px;
    height: 17px;
    color: #64748b;
    transition: color 0.2s ease;
}

.type-tab-btn:hover,
.type-tab-btn.active {
    background: #0066ff !important;
    color: #ffffff !important;
    border-color: #0066ff !important;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.25);
    transform: translateY(-2px);
}

.type-tab-btn:hover i,
.type-tab-btn:hover svg,
.type-tab-btn.active i,
.type-tab-btn.active svg {
    color: #ffffff !important;
}

/* --- Hero Container & Quick Creator Responsive Styles --- */
.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 24px;
}

@media (max-width: 990px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        margin: 20px auto 40px;
        text-align: center;
    }
}

.quick-creator-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}

.creator-type-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.type-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-btn:hover,
.type-btn.active {
    background: #0066ff;
    color: #ffffff !important;
    border-color: #0066ff;
}

.type-btn:hover i,
.type-btn.active i {
    color: #ffffff !important;
}

.creator-input-group {
    display: flex;
    gap: 12px;
}

@media (max-width: 600px) {
    .creator-input-group {
        flex-direction: column;
    }
}

.creator-input-group input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.creator-input-group input:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.hero-preview-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.qr-preview-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.preview-actions-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.preview-actions-row .btn {
    flex: 1;
    white-space: nowrap;
}

/* World-Class Recreated "DYNAMIC & STATIC FORMATS" Section */
.interactive-types-section {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 24px;
}

.type-showcase-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 44px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

@media (max-width: 990px) {
    .type-showcase-card {
        grid-template-columns: 1fr;
        padding: 28px 20px;
        gap: 32px;
    }
}

.phone-mockup-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.interactive-phone-frame {
    width: 270px;
    height: 440px;
    background: #0f172a;
    border-radius: 42px;
    padding: 12px;
    box-shadow: 0 24px 48px rgba(0, 50, 150, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 4px solid #1e293b;
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .interactive-phone-frame {
        width: 240px;
        height: 390px;
        border-radius: 34px;
    }
}

.phone-top-bar {
    width: 90px;
    height: 16px;
    background: #1e293b;
    border-radius: 10px;
    margin: 0 auto 12px;
}

.phone-screen-body {
    width: 100%;
    height: calc(100% - 28px);
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #f1f5f9;
}

/* Comprehensive Responsive Breakpoints Audit */
@media (max-width: 1024px) {
    .landing-block {
        margin: 40px auto 60px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 768px) {
    .centered-section-heading h2 {
        font-size: 26px !important;
    }

    .centered-section-heading p {
        font-size: 14.5px !important;
    }

    .steps-grid,
    .capability-grid {
        grid-template-columns: 1fr !important;
    }

    .landing-pricing-grid {
        grid-template-columns: 1fr !important;
    }

    .type-showcase-card {
        padding: 24px 16px !important;
    }

    .quick-creator-card {
        padding: 16px !important;
    }
}

@media (max-width: 480px) {
    .hero-container h1 {
        font-size: 26px !important;
    }

    .type-tab-btn {
        padding: 8px 14px !important;
        font-size: 12.5px !important;
    }

    .swipe-arrow-btn {
        width: 34px !important;
        height: 34px !important;
    }
}

/* --- QRFY Mobile & Desktop Overhaul Styles --- */

/* Level Options Grid */
.level-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.home-level-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.home-level-option strong {
    font-size: 13px;
    color: #0f172a;
}

.home-level-option span {
    font-size: 11px;
    color: #64748b;
}

.home-level-option:hover,
.home-level-option.active {
    border-color: #0066ff;
    background: rgba(0, 102, 255, 0.04);
}

.home-level-option.active strong {
    color: #0066ff;
}

/* Mobile Step Switcher Bar */
.mobile-step-switcher {
    display: none;
    gap: 8px;
    margin-bottom: 18px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
}

.mobile-step-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-step-btn.active {
    background: #ffffff;
    color: #0066ff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.mobile-step-btn .step-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mobile-step-btn.active .step-badge {
    background: #0066ff;
    color: #ffffff;
}

/* Mobile responsive rules (<768px) */
@media (max-width: 768px) {
    .generator-container-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* On mobile, Preview Panel card is rendered at TOP! */
    .preview-panel-card {
        order: -1 !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .designer-card {
        order: 1 !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .mobile-step-switcher {
        display: flex !important;
    }

    /* The pill switcher above already communicates "step 1 / step 2", so the
       redundant numbered circle badges are dropped on mobile (heading text stays). */
    .step-num {
        display: none !important;
    }

    .hidden-mobile {
        display: none !important;
    }

    .hero-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .hero-subtitle {
        font-size: 14px !important;
    }

    .qr-output-box {
        max-width: 210px !important;
        margin: 0 auto 12px !important;
        padding: 12px !important;
        background: #f8fafc !important;
        border-radius: 16px !important;
    }

    #home-tabs-row {
        gap: 6px !important;
        overflow-x: auto !important;
        padding-bottom: 4px !important;
    }

    #home-tabs-row .icon-tab {
        min-width: 86px !important;
        flex: 0 0 auto !important;
        padding: 8px 10px !important;
        font-size: 11.5px !important;
    }

    .btn-download-home {
        font-size: 14px !important;
        padding: 12px 18px !important;
        border-radius: 99px !important;
    }
}

/* --- QRFY Overhaul Specific Layout & Component Styles --- */
.home-design-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.home-design-tab {
    flex: 0 0 auto !important;
    padding: 6px 16px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.home-design-tab.active {
    background: #eff6ff !important;
    color: #0066ff !important;
}

.frame-preset-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    cursor: grab;
    padding-bottom: 4px;
    margin-bottom: 14px;
}

.frame-preset-row:active {
    cursor: grabbing;
}

.frame-preset-row>* {
    scroll-snap-align: start;
}

/* "Movable bar" — a chunky, always-visible scroll track so a swipeable
   row reads as swipeable at a glance, instead of a bare overflow. */
.frame-preset-row::-webkit-scrollbar,
.eye-border-gallery::-webkit-scrollbar,
.eye-center-gallery::-webkit-scrollbar,
.logo-scroll-container::-webkit-scrollbar {
    height: 7px;
}

.frame-preset-row::-webkit-scrollbar-track,
.eye-border-gallery::-webkit-scrollbar-track,
.eye-center-gallery::-webkit-scrollbar-track,
.logo-scroll-container::-webkit-scrollbar-track {
    background: #e9edf3;
    border-radius: 4px;
}

.frame-preset-row::-webkit-scrollbar-thumb,
.eye-border-gallery::-webkit-scrollbar-thumb,
.eye-center-gallery::-webkit-scrollbar-thumb,
.logo-scroll-container::-webkit-scrollbar-thumb {
    background: #b0bccb;
    border-radius: 4px;
}

.frame-preset-row::-webkit-scrollbar-thumb:hover,
.eye-border-gallery::-webkit-scrollbar-thumb:hover,
.eye-center-gallery::-webkit-scrollbar-thumb:hover,
.logo-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.frame-preset-row,
.eye-border-gallery,
.eye-center-gallery,
.logo-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #b0bccb #e9edf3;
}

.qrfy-color-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-top: 14px;
}

.qrfy-input-group {
    margin-bottom: 12px;
}

.qrfy-input-label,
.qrfy-color-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.qrfy-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
}

.qrfy-color-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.qrfy-color-box {
    flex: 1;
    min-width: 110px;
}

.qrfy-color-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 4px 6px;
    gap: 6px;
}

.qrfy-hex-input {
    width: 100%;
    border: none;
    font-size: 12.5px;
    font-family: monospace;
    color: #0f172a;
    outline: none;
    background: transparent;
}

.qrfy-color-picker {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

.btn-invert-colors {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0066ff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 34px;
}

.btn-invert-colors:hover {
    background: #eff6ff;
    border-color: #0066ff;
}

.qrfy-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 12px 0 8px;
}

.eye-border-gallery,
.eye-center-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    cursor: grab;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.eye-border-gallery:active,
.eye-center-gallery:active {
    cursor: grabbing;
}

.eye-border-gallery>*,
.eye-center-gallery>* {
    scroll-snap-align: start;
}

.home-eye-border-option,
.home-eye-center-option {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-size: 14px;
}

.home-eye-border-option.active,
.home-eye-center-option.active {
    border-color: #0066ff;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

.logo-scroll-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    cursor: grab;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.logo-scroll-container:active {
    cursor: grabbing;
}

.logo-scroll-container .home-logo-preset {
    scroll-snap-align: start;
}

.home-logo-presets {
    display: flex;
    gap: 10px;
    padding: 2px;
}

.logo-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.logo-icon-wrap i,
.logo-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.whatsapp-bg {
    background: #25d366;
}

.link-bg {
    background: #8b5cf6;
}

.map-bg {
    background: #ef4444;
}

.wifi-bg {
    background: #06b6d4;
}

.card-bg {
    background: #3b82f6;
}

.mail-bg {
    background: #eab308;
}

.scan-bg {
    background: #d946ef;
}

.fb-bg {
    background: #1877f2;
}

.insta-bg {
    background: #e4405f;
}

.x-bg {
    background: #0f172a;
}

/* Real brand-mark presets sit on a plain badge so each logo's true colors read clearly */
.brand-badge-bg {
    background: #ffffff;
    border: 1.5px solid #eef2f7;
}

.brand-badge-bg svg {
    width: 22px;
    height: 22px;
}

.qrfy-upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    background: #f8fafc;
    transition: border-color 0.2s ease;
}

.qrfy-upload-dropzone:hover {
    border-color: #0066ff;
}

.qrfy-dropzone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #475569;
    font-size: 13px;
}

.qrfy-dropzone-label i {
    font-size: 24px;
    color: #0066ff;
}

.level-options-pills-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.home-level-pill {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 12.5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.home-level-pill.active {
    border-color: #0066ff;
    background: #eff6ff;
    color: #0066ff;
}

/* ==========================================================================
   Discover Types of QR Codes — Showcase Section
   ========================================================================== */
.showcase-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 8px;
}

.showcase-tabs-container {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 4px 2px 10px;
    flex: 1;
    min-width: 0;
}

.showcase-tabs-container::-webkit-scrollbar {
    height: 5px;
}

.showcase-tabs-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.showcase-tabs-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.showcase-tabs-container .type-box-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    min-width: 76px;
}

.icon-badge-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.type-box-btn:hover .icon-badge-box,
.type-box-btn.active .icon-badge-box {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

/* Soft badge color variants */
.blue-badge {
    background: #eaf1ff;
    color: #2867ee;
}

.amber-badge {
    background: #fff6e0;
    color: #b8860b;
}

.orange-badge {
    background: #fff1e0;
    color: #e6791a;
}

.purple-badge {
    background: #f3eaff;
    color: #8b4bea;
}

.pink-badge {
    background: #ffe9f3;
    color: #db3c85;
}

.red-badge {
    background: #ffe7e7;
    color: #e0483f;
}

.green-badge {
    background: #e8faef;
    color: #21a45c;
}

.indigo-badge {
    background: #eaedff;
    color: #4d5be0;
}

.cyan-badge {
    background: #e3f8fb;
    color: #1596ad;
}

.teal-badge {
    background: #e2f9f4;
    color: #10917a;
}

.emerald-badge {
    background: #e3fbef;
    color: #189164;
}

.violet-badge {
    background: #efedff;
    color: #6657e8;
}

.slate-badge {
    background: #eef2f6;
    color: #475569;
}

/* Content grid: text + CTA / floating preview / feature checklist */
.showcase-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 24px;
    align-items: center;
    margin-top: 20px;
    padding: 34px 28px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    border-radius: 20px;
    border: 1px solid #eef2f7;
}

.showcase-col-left h3 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.showcase-col-left p {
    font-size: 14.5px;
    color: #56637d;
    line-height: 1.6;
    margin-bottom: 22px;
}

.btn-showcase-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 12px;
}

.showcase-col-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

/* Note: .showcase-bg-wrapper, .showcase-wave-ring(-1/-2/-3), .showcase-aura-circle
   (-blue/-purple), and .showcase-preview-img-active already exist earlier in this
   file (search "Ambient Background Glow Circles") — reused as-is rather than
   duplicated, since that version animates via transform/opacity (compositor-only)
   instead of width/height, which avoids forcing layout on every frame. */

.showcase-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.showcase-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #37455a;
    line-height: 1.5;
}

.check-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .showcase-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 26px 18px;
    }

    .showcase-col-left,
    .showcase-col-right {
        align-items: center;
    }

    .showcase-features-list li {
        text-align: left;
    }

    .showcase-col-center {
        order: -1;
        min-height: 260px;
    }
}