@font-face {
    font-family: "Lexend";
    src: url("/assets/storefront/fonts/Lexend-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* ==========================================================================
   EDITBOX STOREFRONT DESIGN SYSTEM — MODERN DIGITAL MARKETPLACE
   ========================================================================== */

:root {
    /* Base Color Tokens — Master Design System (Luminous Light Canvas) */
    --sf-page-bg: #f8f9fa;
    --sf-surface: #ffffff;
    --sf-surface-elevated: #f3f4f6;
    --sf-surface-soft: #f9fafb;
    --sf-surface-glass: rgba(255, 255, 255, 0.94);
    --sf-border: #e5e7eb;
    --sf-border-subtle: #f1f3f5;
    --sf-border-strong: #d1d5db;
    --sf-border-hover: rgba(220, 38, 38, 0.35);

    /* Typography / Ink Tokens */
    --sf-text-primary: #111827;
    --sf-text-secondary: #4b5563;
    --sf-text-muted: #6b7280;
    --sf-ink: var(--sf-text-primary);
    --sf-muted: var(--sf-text-muted);
    --sf-line: var(--sf-border);
    --sf-inverse: #ffffff;

    /* Primary Accent & Palette */
    --sf-red: #dc2626;
    --sf-red-hover: #b91c1c;
    --sf-red-active: #991b1b;
    --sf-red-subtle: #fef2f2;
    --sf-accent: #dc2626;
    --sf-accent-hover: #b91c1c;
    --sf-accent-dark: #991b1b;
    --sf-accent-coral: #ef4444;

    /* Secondary Brand / Accents */
    --sf-burgundy: #70000a;
    --sf-burgundy-dark: #3d0004;
    --sf-gold: #f59e0b;
    --sf-gold-dark: #d97706;
    --sf-green: #10b981;
    --sf-blue: #3b82f6;

    /* Status Colors */
    --sf-success: #10b981;
    --sf-warning: #f59e0b;
    --sf-error: #ef4444;
    --sf-success-bg: #ecfdf5;
    --sf-success-ink: #065f46;
    --sf-warning-bg: #fffbeb;
    --sf-warning-ink: #92400e;
    --sf-danger-bg: #fef2f2;
    --sf-danger-ink: #991b1b;
    --sf-info-bg: #eff6ff;
    --sf-info-ink: #1e40af;

    /* Controls & Interactions */
    --sf-control-selected-bg: #111827;
    --sf-control-selected-ink: #ffffff;
    --sf-field: #ffffff;
    --sf-panel-soft: #f9fafb;
    --sf-disabled: #e5e7eb;

    /* Gradients */
    --sf-gradient-burgundy: linear-gradient(135deg, #70000a 0%, #3d0004 100%);
    --sf-gradient-membership: linear-gradient(135deg, #70000a 0%, #450a0a 100%);
    --sf-gradient-hero-glow: radial-gradient(50% 60% at 50% 20%, #fff1f2 0%, #ffffff 75%, #f8f9fa 100%);
    --sf-gradient-card-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.05) 100%);
    --sf-gradient-placeholder: linear-gradient(135deg, #181c24 0%, #111827 100%);
    --sf-gradient-text: #ffffff;
    --sf-gradient-accent: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --sf-gradient-coral: linear-gradient(135deg, #ef4444 0%, #f87171 100%);

    /* Brand Logo Tokens */
    --sf-brand-name-fallback: #dc2626;
    --sf-brand-name-gradient: linear-gradient(105deg, #111827 0%, #dc2626 100%);
    --sf-brand-name-glow: rgba(220, 38, 38, 0.15);

    /* Dimensions & Radii */
    --sf-radius-small: 8px;
    --sf-radius-medium: 12px;
    --sf-radius-large: 16px;
    --sf-radius-pill: 9999px;
    --sf-radius: var(--sf-radius-medium);

    /* Shadows & Elevation */
    --sf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --sf-shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
    --sf-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --sf-shadow-floating: 0 4px 20px rgba(0, 0, 0, 0.06);
    --sf-shadow-cta: 0 2px 10px rgba(220, 38, 38, 0.25);
    --sf-shadow: var(--sf-shadow-sm);
    --sf-glow-accent: 0 0 20px rgba(220, 38, 38, 0.15);

    color-scheme: light;
    font-family: "Lexend", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}


/* ==========================================================================
   RESET & GLOBAL BASE
   ========================================================================== */

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    margin: 0;
    background-color: var(--sf-page-bg);
    color: var(--sf-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

button, input, select, textarea {
    font: inherit;
}

button, input, select, textarea, a {
    outline-offset: 2px;
}

:focus-visible {
    outline: 2px solid var(--sf-accent);
}

.storefront-shell {
    width: min(1380px, calc(100% - 36px));
    margin-inline: auto;
}

.storefront-skip {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 18px;
    border-radius: var(--sf-radius-small);
    background: var(--sf-accent);
    color: #0b1500;
    font-weight: 800;
    transform: translateY(-180%);
    transition: transform 0.2s ease;
}

.storefront-skip:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION — MASTER DESIGN SYSTEM
   ========================================================================== */

.storefront-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--sf-border-subtle);
    background: var(--sf-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.storefront-header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.storefront-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    user-select: none;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.storefront-brand:hover {
    transform: translateY(-1px);
}

.storefront-brand__name {
    font-size: 1.48rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.04em;
}

.brand-edit {
    color: #111827;
}

.brand-box {
    color: var(--sf-red);
}

.storefront-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.storefront-nav a {
    padding: 7px 14px;
    border-radius: 9999px;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.storefront-nav a:hover {
    color: #111827;
    background: #f3f4f6;
}

.storefront-nav a[aria-current="page"] {
    color: #111827;
    font-weight: 700;
    background: transparent;
}

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

.header-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1px solid var(--sf-border);
    background: #ffffff;
    color: #111827;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.header-btn-login:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.header-btn-membership {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    background: var(--sf-red);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--sf-shadow-cta);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.header-btn-membership:hover {
    background: var(--sf-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.32);
}

.header-btn-membership .crown-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.header-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #111827;
}

/* ==========================================================================
   BUTTONS & COMMON ACTIONS
   ========================================================================== */

.storefront-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--sf-radius-medium);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    box-shadow: var(--sf-shadow-sm);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.storefront-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--sf-shadow-md);
}

.storefront-button:active {
    transform: translateY(0);
}

.storefront-button-primary {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border-color: rgba(220, 38, 38, 0.2);
}

.storefront-button-primary:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.storefront-button-secondary {
    border-color: var(--sf-border-strong);
    background: var(--sf-surface);
    color: var(--sf-text-primary);
}

.storefront-button-secondary:hover {
    background: var(--sf-surface-elevated);
    border-color: var(--sf-text-primary);
}

.storefront-button-ghost {
    background: var(--sf-surface-elevated);
    border-color: var(--sf-border);
    color: var(--sf-text-secondary);
}

.storefront-button-ghost:hover {
    background: var(--sf-surface-soft);
    color: var(--sf-text-primary);
}

.storefront-button-disabled,
.storefront-button:disabled {
    border-color: var(--sf-border);
    background: var(--sf-disabled);
    color: var(--sf-text-muted);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.storefront-button-danger {
    border-color: rgba(255, 77, 79, 0.35);
    background: var(--sf-danger-bg);
    color: var(--sf-danger-ink);
}

.storefront-button-danger:hover {
    border-color: var(--sf-error);
    background: rgba(255, 77, 79, 0.22);
}

/* ==========================================================================
   HOMEPAGE DISCOVERY HERO & STAT STRIP — MASTER DESIGN SYSTEM
   ========================================================================== */

.storefront-discovery-hero {
    position: relative;
    padding: 56px 0 44px;
    background: radial-gradient(ellipse 80% 60% at 50% 15%, rgba(254, 226, 226, 0.5) 0%, rgba(255, 255, 255, 0.92) 70%, #f8f9fa 100%);
    text-align: center;
    overflow: hidden;
}

.storefront-discovery-hero::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 5%;
    width: 110px;
    height: 90px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80' fill='none'%3E%3Ccircle cx='20' cy='25' r='16' fill='%23fee2e2'/%3E%3Cpolygon points='16,17 28,25 16,33' fill='%23ef4444'/%3E%3Cpath d='M35 30C35 24.4772 39.4772 20 45 20H60L68 30H90C95.5228 30 100 34.4772 100 40V70C100 75.5228 95.5228 80 90 80H45C39.4772 80 35 75.5228 35 70V30Z' fill='%23ffedd5'/%3E%3Cpath d='M30 38C30 32.4772 34.4772 28 40 28H95C100.523 28 105 32.4772 105 38V70C105 75.5228 100.523 80 95 80H40C34.4772 80 30 75.5228 30 70V38Z' fill='%23fed7aa' opacity='0.7'/%3E%3C/svg%3E") no-repeat center/contain;
    opacity: 0.9;
    pointer-events: none;
    transform: rotate(-8deg);
}

.storefront-discovery-hero::after {
    content: "";
    position: absolute;
    top: 40px;
    right: 5%;
    width: 140px;
    height: 110px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100' fill='none'%3E%3Crect x='10' y='10' width='120' height='76' rx='10' fill='%23ffffff' stroke='%23f1f5f9' stroke-width='2' filter='drop-shadow(0 10px 20px rgba(0,0,0,0.06))'/%3E%3Cpath d='M25 45 L35 30 L45 55 L55 25 L65 50 L75 35 L85 55 L95 40 L105 45' stroke='%23cbd5e1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Ccircle cx='105' cy='75' r='18' fill='%23fee2e2'/%3E%3Cpath d='M100 70 L110 70 L110 80 L100 80 Z' fill='%23ef4444' opacity='0.7'/%3E%3C/svg%3E") no-repeat center/contain;
    opacity: 0.9;
    pointer-events: none;
    transform: rotate(6deg);
}

.hero-discovery-shell {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 16px;
}

.hero-discovery-title {
    font-size: clamp(2.3rem, 4.2vw, 3.2rem);
    font-weight: 850;
    line-height: 1.16;
    letter-spacing: -0.035em;
    color: #111827;
    margin: 0 0 14px;
}

.hero-title-highlight {
    color: var(--sf-red);
}

.hero-discovery-sub {
    font-size: 1.05rem;
    color: #6b7280;
    margin: 0 0 32px;
    line-height: 1.5;
}

.hero-discovery-search {
    max-width: 660px;
    margin: 0 auto 24px;
}

.hero-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 9999px;
    padding: 6px 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-box:focus-within {
    border-color: var(--sf-red);
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.12);
}

.hero-search-icon {
    flex: 0 0 auto;
    color: #9ca3af;
}

.hero-search-box input {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 0.96rem;
    color: #111827;
    outline: none;
}

.hero-search-box input::placeholder {
    color: #9ca3af;
}

.hero-software-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.software-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
}

.software-pill:hover {
    border-color: var(--sf-red);
    background: #fff5f5;
    color: var(--sf-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.1);
}

.software-pill svg {
    flex: 0 0 18px;
    height: 18px;
    width: 18px;
}

.hero-trending-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 34px;
}

.hero-trending-label {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 500;
    margin-right: 4px;
}

.hero-trending-chip {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.hero-trending-chip:hover {
    background: #e5e7eb;
    color: #111827;
}

.hero-stat-strip {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 10px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    gap: 20px;
}

.hero-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 600;
}

.hero-stat-icon {
    font-size: 1rem;
    line-height: 1;
}

.hero-stat-divider {
    width: 1px;
    height: 16px;
    background: #e5e7eb;
}

/* ==========================================================================
   HOMEPAGE CONTENT SECTIONS — MASTER DESIGN SYSTEM
   ========================================================================== */

.storefront-home-main {
    padding: 44px 0 72px;
}

.home-section {
    margin-bottom: 56px;
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    letter-spacing: -0.02em;
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--sf-red);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.section-view-all:hover {
    color: var(--sf-red-hover);
    transform: translateX(2px);
}

.section-time-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.time-tab {
    font-size: 0.86rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 9999px;
    transition: all 0.15s ease;
}

.time-tab.active,
.time-tab:hover {
    color: var(--sf-red);
    font-weight: 700;
}

/* Software Showcase 6-column Grid */
.software-showcase-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.software-showcase-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.software-showcase-card:hover {
    border-color: var(--sf-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.software-card-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
}

.software-card-info {
    min-width: 0;
}

.software-card-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.software-card-count {
    display: block;
    font-size: 0.74rem;
    color: #6b7280;
    margin-top: 2px;
}

/* Category Showcase 6-column Grid */
.categories-showcase-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.category-showcase-card:hover {
    border-color: var(--sf-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.category-card-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}

.category-icon-sfx { background: #fee2e2; color: #dc2626; }
.category-icon-vfx { background: #ccfbf1; color: #0d9488; }
.category-icon-lut { background: #ffedd5; color: #ea580c; }
.category-icon-plugin { background: #f3e8ff; color: #9333ea; }
.category-icon-template { background: #dbeafe; color: #2563eb; }
.category-icon-bundle { background: #fef3c7; color: #d97706; }

.category-card-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.category-card-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
}

/* Curated Collections 4-column Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.collection-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.collection-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-card:hover .collection-card-bg {
    transform: scale(1.05);
}

.collection-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0.1) 100%);
}

.collection-card-content {
    position: relative;
    z-index: 2;
}

.collection-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
}

.collection-card-desc {
    font-size: 0.76rem;
    color: #e5e7eb;
    line-height: 1.4;
    margin: 0 0 12px;
}

.collection-card-btn {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 9999px;
    background: #ffffff;
    color: #111827;
    font-size: 0.74rem;
    font-weight: 700;
}

/* Membership Promo Banner Burgundy */
.membership-promo-banner {
    position: relative;
    background: linear-gradient(135deg, #70000a 0%, #3d0004 100%);
    border-radius: 16px;
    padding: 32px 40px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.3fr 1.7fr auto;
    align-items: center;
    gap: 32px;
    box-shadow: 0 10px 30px rgba(112, 0, 10, 0.25);
    overflow: hidden;
}

.membership-promo-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.membership-banner-left {
    position: relative;
    z-index: 2;
}

.membership-banner-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.membership-banner-crown {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.membership-banner-title {
    font-size: 1.38rem;
    font-weight: 850;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.membership-banner-sub {
    font-size: 0.8rem;
    color: #fecdd3;
    margin: 6px 0 0;
    line-height: 1.4;
}

.membership-banner-checklist {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.membership-banner-checklist li {
    font-size: 0.82rem;
    color: #ffe4e6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.membership-banner-checklist li svg {
    flex: 0 0 14px;
    color: #fb7185;
}

.membership-banner-right {
    position: relative;
    z-index: 2;
}

.membership-banner-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--sf-red);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.membership-banner-cta:hover {
    background: #fef2f2;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

/* Services Showcase 3-column Grid */
.services-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-showcase-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.service-showcase-card:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.service-card-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.service-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.service-card-desc {
    font-size: 0.84rem;
    color: #4b5563;
    margin: 0 0 10px;
    line-height: 1.45;
}

.service-card-features {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0 0 18px;
}

.service-card-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.service-card-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.service-card-btn-red {
    background: var(--sf-red);
    border-color: var(--sf-red);
    color: #ffffff;
}

.service-card-btn-red:hover {
    background: var(--sf-red-hover);
    border-color: var(--sf-red-hover);
    color: #ffffff;
}

.storefront-home-banner {
    position: relative;
    padding: 36px 0 24px;
}

.storefront-banner-container {
    position: relative;
}

.storefront-banner-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 1080px);
    height: 72%;
    background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.15) 0%, rgba(112, 0, 10, 0.08) 50%, transparent 70%);
    filter: blur(54px);
    -webkit-filter: blur(54px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.storefront-banner-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    background: var(--sf-surface);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.storefront-banner-frame:hover {
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.storefront-banner-frame picture {
    display: block;
    width: 100%;
}

.storefront-banner-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 1672 / 650;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   CATALOG FILTER, FLOATING SEARCH BAR & SOFTWARE TAGS
   ========================================================================== */

.catalog-first {
    padding: 24px 0 96px;
}

.catalog-intro {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.catalog-intro h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.catalog-intro p {
    max-width: 850px;
    margin: 8px 0 0;
    color: var(--sf-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.catalog-intro .catalog-category-count {
    flex: 0 0 auto;
    margin: 0;
    font-size: 0.88rem;
    color: var(--sf-text-muted);
    white-space: nowrap;
}

.catalog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--sf-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.catalog-breadcrumb a:hover {
    color: var(--sf-accent);
}

.catalog-breadcrumb span[aria-current="page"] {
    color: var(--sf-text-primary);
}

.catalog-filter-bar {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) minmax(180px, 0.4fr) minmax(150px, 0.35fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--sf-border);
    border-radius: 999px;
    background: var(--sf-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--sf-shadow-md), 0 0 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-filter-bar:focus-within {
    border-color: rgba(0, 212, 146, 0.35);
    box-shadow: var(--sf-shadow-lg), 0 0 28px rgba(0, 212, 146, 0.08);
}

/* Software Quick Tags under Filter Bar */
.storefront-software-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px 4px 14px;
    margin: 0 0 54px;
}

.storefront-software-tags::-webkit-scrollbar {
    display: none;
}

.software-tag-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    color: var(--sf-text-secondary);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--sf-shadow-sm);
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.software-tag-pill:hover {
    color: var(--sf-text-primary);
    background: var(--sf-surface-elevated);
    border-color: rgba(0, 212, 146, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 146, 0.14);
}

.software-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.access-tabs {
    display: flex;
    align-items: center;
    gap: 3px;
    background: var(--sf-surface-elevated);
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--sf-border);
}

.access-tabs a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    color: var(--sf-text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.access-tabs a:hover {
    color: var(--sf-text-primary);
}

.access-tabs a[aria-current="page"] {
    background: var(--sf-gradient-accent);
    color: #071500;
    font-weight: 800;
    box-shadow: var(--sf-shadow-sm);
}

.catalog-search,
.catalog-select {
    height: 46px;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--sf-border);
    border-radius: 999px;
    background: var(--sf-field);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.catalog-search:focus-within,
.catalog-select:focus-within {
    border-color: var(--sf-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 146, 0.18);
}

.catalog-search {
    padding: 0 16px;
}

.catalog-search svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--sf-text-muted);
    stroke-width: 2;
}

.catalog-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--sf-text-primary);
    font-size: 0.9rem;
}

.catalog-select {
    position: relative;
}

.catalog-select::after {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--sf-text-muted);
    border-bottom: 2px solid var(--sf-text-muted);
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.catalog-select select {
    width: 100%;
    min-height: 44px;
    padding: 0 42px 0 16px;
    border: 0;
    outline: 0;
    appearance: none;
    background: transparent;
    color: var(--sf-text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.catalog-select select option {
    background: var(--sf-surface-elevated);
    color: var(--sf-text-primary);
    padding: 8px;
}

.catalog-filter-bar .storefront-button {
    height: 46px;
    min-height: 46px;
    padding-inline: 22px;
    border-radius: 999px;
}

/* ==========================================================================
   CATALOG LISTING (MOCKUP #6) — MASTER VISUAL REFERENCE
   ========================================================================== */

.catalog-hero-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--sf-border-subtle);
    padding: 36px 0 28px;
    margin-bottom: 24px;
}

.catalog-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.catalog-hero-left {
    flex: 0 1 420px;
}

.catalog-hero-title {
    margin: 0 0 6px;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #111827;
}

.catalog-hero-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.catalog-hero-right {
    flex: 1 1 540px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalog-search-pill {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.catalog-search-pill .search-icon {
    position: absolute;
    left: 18px;
    color: #9ca3af;
    pointer-events: none;
}

.catalog-search-pill input {
    width: 100%;
    height: 48px;
    padding: 0 18px 0 46px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 0.9rem;
    color: #111827;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-search-pill input:focus {
    border-color: var(--sf-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.catalog-software-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.catalog-software-pills .software-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s ease;
}

.catalog-software-pills .software-pill:hover,
.catalog-software-pills .software-pill.is-active {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #111827;
}

.catalog-software-pills .software-pill.is-active {
    border-color: var(--sf-red);
    color: var(--sf-red);
}

/* Applied Filters Bar */
.catalog-applied-section {
    margin-bottom: 24px;
}

.catalog-applied-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.catalog-applied-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.catalog-applied-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #111827;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.active-filter-chip:hover {
    background: #e5e7eb;
}

.active-filter-chip .chip-remove {
    font-size: 0.75rem;
    color: #6b7280;
}

.active-filter-clear {
    color: var(--sf-red);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    transition: opacity 0.15s ease;
}

.active-filter-clear:hover {
    text-decoration: underline;
}

.active-filter-none {
    font-size: 0.84rem;
    color: #9ca3af;
}

.catalog-applied-right {
    font-size: 0.88rem;
    color: #6b7280;
}

.catalog-result-count strong {
    color: #111827;
    font-weight: 600;
}

/* Catalog 2-Column Body Layout */
.catalog-body-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 80px;
}

.catalog-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-group {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sf-text-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sf-border-subtle);
    margin-bottom: 12px;
}

.filter-group-chevron {
    font-size: 0.8rem;
    color: #9ca3af;
}

.filter-group-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.86rem;
    color: var(--sf-text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.filter-item:hover {
    background: var(--sf-surface-soft);
    color: var(--sf-text-primary);
}

.filter-item.is-active {
    font-weight: 600;
    color: var(--sf-text-primary);
}

.filter-item-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--sf-border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-field);
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.filter-checkbox.is-checked {
    background: var(--sf-red);
    border-color: var(--sf-red);
    position: relative;
}

.filter-checkbox.is-checked::after {
    content: "✓";
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.filter-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--sf-border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-field);
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.filter-radio.is-checked {
    border-color: var(--sf-red);
    background: var(--sf-red);
    position: relative;
}

.filter-radio.is-checked::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.filter-sw-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.filter-item-count {
    font-size: 0.78rem;
    color: var(--sf-text-muted);
}

.filter-sort-box select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--sf-border);
    background: var(--sf-field);
    font-size: 0.86rem;
    color: var(--sf-text-primary);
    outline: none;
}

/* Main Content & Grid */
.catalog-main-content {
    flex: 1;
    min-width: 0;
}

.catalog-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* Circular Pagination */
.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination-arrow,
.pagination-page {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pagination-arrow:hover,
.pagination-page:hover {
    border-color: #9ca3af;
    color: #111827;
}

.pagination-page.is-active {
    background: var(--sf-red);
    border-color: var(--sf-red);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.pagination-ellipsis {
    color: #9ca3af;
    padding: 0 4px;
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .catalog-resource-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .catalog-hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .catalog-hero-left {
        flex: 1 1 auto;
    }
    .catalog-hero-right {
        max-width: 100%;
        width: 100%;
    }
    .catalog-body-layout {
        flex-direction: column;
        gap: 24px;
    }
    .catalog-sidebar {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .catalog-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .catalog-resource-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PRODUCT & RESOURCE CARD / GRID (CREATIVE DIGITAL MARKETPLACE STYLE)
   ========================================================================== */

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.catalog-section-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.resource-card {
    position: relative;
    min-width: 0;
    height: 100%;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--sf-border-subtle);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--sf-shadow-sm);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), border-color 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
}

.resource-card-media-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.resource-card-media {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: #111827;
    position: relative;
}

.resource-product-card-media {
    position: relative;
    background: #111827;
}

.resource-product-card-media > img,
.resource-product-card-media > .resource-card-placeholder,
.resource-card-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.resource-product-card-media > img {
    object-fit: cover;
    object-position: center;
    transition: transform 0.25s ease;
}

.resource-card:hover .resource-product-card-media > img {
    transform: scale(1.04);
}

.resource-card-preview {
    display: block;
    border: 0;
    background: #111827;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.resource-product-card-media.is-previewing .resource-card-preview {
    opacity: 1;
}

.resource-product-card-media.is-previewing > img,
.resource-product-card-media.is-previewing > .resource-card-placeholder {
    opacity: 0;
}

.resource-card-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #181c24 0%, #111827 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.resource-card-placeholder-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #181c24 0%, #0f172a 100%);
    text-align: center;
    overflow: hidden;
}

.rc-art-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.rc-art-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rc-art-sub {
    position: relative;
    z-index: 2;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Floating Badges on top of card thumbnail */
.resource-card-floating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    pointer-events: none;
}

.rc-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.rc-badge-new {
    background: var(--sf-red);
    color: #ffffff;
}

.rc-badge-membership {
    background: #f59e0b;
    color: #ffffff;
}

.rc-badge-free {
    background: #10b981;
    color: #ffffff;
}

.resource-card-body {
    display: flex;
    min-height: 125px;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 16px 16px;
    background: #ffffff;
}

.resource-card-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    overflow: hidden;
}

.resource-card-title a {
    color: #111827;
    text-decoration: none;
}

.resource-card-title a:hover {
    color: var(--sf-red);
}

.resource-card-link::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
}

.resource-card-category {
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-card-footer-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
}

.resource-software-chips {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.rc-soft-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.rc-soft-pr { background: #e0e7ff; color: #3730a3; }
.rc-soft-ae { background: #f3e8ff; color: #6b21a8; }
.rc-soft-davinci { background: #fee2e2; color: #991b1b; }
.rc-soft-fcpx { background: #fef3c7; color: #92400e; }
.rc-soft-capcut { background: #ecfdf5; color: #065f46; }
.rc-soft-ps { background: #e0f2fe; color: #0369a1; }
.rc-soft-more { background: #f3f4f6; color: #6b7280; }

.resource-download-count {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.rc-dl-icon {
    color: #9ca3af;
}

/* ==========================================================================
   DIGITAL SERVICE CARD
   ========================================================================== */

.digital-service-card {
    background: var(--sf-gradient-service-card);
    border-color: rgba(0, 212, 146, 0.15);
}

.digital-service-card .resource-card-media {
    background: transparent;
}

.digital-service-placeholder {
    background: transparent;
    color: var(--sf-gradient-text);
}

.digital-service-card-price {
    font-size: 1.18rem;
    font-weight: 850;
    color: var(--sf-accent);
    margin: 10px 0 14px !important;
}

.digital-service-card .storefront-button {
    width: 100%;
    margin-top: auto;
}

/* ==========================================================================
   CATALOG HOME SECTIONS
   ========================================================================== */

.catalog-home-sections {
    display: grid;
    gap: 64px;
    margin-top: 48px;
}

.catalog-home-section {
    min-width: 0;
}

.catalog-section-heading,
.catalog-result-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.catalog-section-heading h2,
.catalog-result-heading h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 1.95rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.catalog-section-heading p,
.catalog-result-heading p {
    margin: 6px 0 0;
    color: var(--sf-text-muted);
    font-size: 0.88rem;
}

.catalog-section-heading > a {
    flex: 0 0 auto;
    color: var(--sf-accent);
    font-size: 0.88rem;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.catalog-section-heading > a:hover {
    color: #3affc2;
    transform: translateX(3px);
}

/* ==========================================================================
   PAGINATION & EMPTY STATES
   ========================================================================== */

.storefront-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.storefront-pagination a {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0 14px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-small);
    background: var(--sf-surface);
    color: var(--sf-text-secondary);
    font-weight: 750;
    font-size: 0.9rem;
    transition: all 0.18s ease;
}

.storefront-pagination a:hover {
    background: var(--sf-surface-elevated);
    color: var(--sf-text-primary);
    border-color: var(--sf-border-strong);
}

.storefront-pagination a[aria-current="page"] {
    border-color: var(--sf-accent);
    background: var(--sf-accent);
    color: #071500;
    font-weight: 800;
    box-shadow: var(--sf-shadow-sm);
}

.storefront-state {
    max-width: 620px;
    margin: 60px auto;
    padding: 56px 32px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-large);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-md);
    text-align: center;
}

.storefront-state > span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--sf-success-bg);
    color: var(--sf-accent);
    font-size: 1.6rem;
    font-weight: 900;
}

.storefront-state h1,
.storefront-state h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    letter-spacing: -0.04em;
    font-weight: 800;
}

.storefront-state p {
    color: var(--sf-text-muted);
    font-size: 0.95rem;
    margin: 0 0 24px;
}

/* ==========================================================================
   RESOURCE DETAIL PAGE
   ========================================================================== */

/* ==========================================================================
   RESOURCE DETAIL (MOCKUP #4) — MASTER VISUAL REFERENCE
   ========================================================================== */

.resource-detail-section {
    padding: 24px 0 96px;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.86rem;
    color: #6b7280;
}

.detail-breadcrumb a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.15s ease;
}

.detail-breadcrumb a:hover {
    color: #111827;
}

.detail-breadcrumb .breadcrumb-sep {
    color: #9ca3af;
    font-size: 0.9rem;
}

.detail-breadcrumb .breadcrumb-current {
    color: #111827;
    font-weight: 600;
}

/* Top 2-Column Grid */
.resource-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr);
    align-items: start;
    gap: 40px;
}

.resource-detail-media-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resource-main-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-main-preview.is-video {
    background: #000000;
}

.resource-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-badge-new {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--sf-red);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    z-index: 2;
}

.preview-play-button {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 2;
}

.preview-play-button:hover {
    transform: scale(1.08);
    background: #ffffff;
}

.media-count-pill {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    z-index: 2;
}

/* Thumbnail Gallery Strip */
.resource-thumb-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.thumb-item {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #e5e7eb;
    background: #f3f4f6;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-item.is-active {
    border-color: #111827;
}

.thumb-item.thumb-more {
    position: relative;
}

.thumb-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right Summary Panel */
.resource-summary-panel {
    background: #ffffff;
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.resource-panel-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.badge-membership {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-new {
    background: var(--sf-red);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.resource-panel-title {
    margin: 0 0 6px;
    font-size: 1.75rem;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.035em;
    color: #111827;
}

.resource-panel-category {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.resource-panel-summary {
    margin: 0 0 24px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #4b5563;
}

/* Compatibility Block */
.resource-compat-block {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.compat-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.compat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.compat-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #f3f4f6;
    color: #374151;
}

.compat-chip-pr { background: #00005b; color: #9999ff; }
.compat-chip-ae { background: #00005b; color: #d291ff; }
.compat-chip-davinci { background: #121514; color: #ff1844; }
.compat-chip-finalcut { background: #161a18; color: #00d492; }
.compat-chip-fcpx { background: #1f2937; color: #ffffff; }

.compat-sub {
    margin: 0;
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* Specs Table */
.resource-specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.spec-name {
    color: #6b7280;
}

.spec-val {
    font-weight: 650;
    color: #111827;
}

/* Action CTAs */
.resource-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.resource-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    background: var(--sf-red);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: var(--sf-shadow-cta);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.resource-btn-primary:hover {
    background: var(--sf-red-hover);
    transform: translateY(-1px);
}

.resource-btn-primary.is-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.resource-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.resource-btn-outline:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #111827;
}

.resource-btn-outline.is-favorite {
    color: var(--sf-red);
    border-color: rgba(220, 38, 38, 0.3);
    background: #fff5f5;
}

.favorite-control-panel {
    margin: 0;
    padding: 0;
    width: 100%;
}

.resource-report-wrap {
    text-align: center;
    margin-top: 4px;
}

.resource-report-link {
    color: #9ca3af;
    font-size: 0.8rem;
    text-decoration: none;
    cursor: pointer;
}

.resource-report-link:hover {
    color: #6b7280;
    text-decoration: underline;
}

/* Trust Strip */
.resource-panel-trust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.trust-kicker {
    font-size: 0.72rem;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.trust-text {
    font-size: 0.84rem;
    font-weight: 700;
    color: #111827;
}

.trust-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
}

/* Middle Content: Tabs & Metadata */
.resource-body-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.resource-tabs-col {
    background: #ffffff;
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.resource-tabs-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 24px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    color: #111827;
}

.tab-btn.is-active {
    color: var(--sf-red);
    border-bottom-color: var(--sf-red);
}

.resource-tab-content {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #4b5563;
}

.resource-features-checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-features-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #374151;
}

.resource-copyright-notice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--sf-border);
}

.resource-copyright-notice h3 {
    margin: 0 0 8px;
    color: var(--sf-text-primary);
    font-size: 0.95rem;
    font-weight: 750;
}

.resource-copyright-notice p {
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--sf-text-muted);
}

/* Metadata Card */
.resource-meta-card {
    background: #ffffff;
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    height: fit-content;
}

.meta-card-title {
    margin: 0 0 18px;
    font-size: 1.05rem;
    font-weight: 750;
    color: #111827;
}

.meta-card-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.meta-card-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #f8f9fa;
}

.meta-card-list div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-card-list dt {
    color: #6b7280;
}

.meta-card-list dd {
    margin: 0;
    font-weight: 600;
    color: #111827;
}

.related-resources-section {
    margin-top: 64px;
}

@media (max-width: 992px) {
    .resource-detail-grid,
    .resource-body-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .detail-breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 16px;
        scrollbar-width: none;
    }
    .detail-breadcrumb::-webkit-scrollbar {
        display: none;
    }
    .resource-copyright-notice {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.related-resources {
    padding-top: 64px;
    border-top: 1px solid var(--sf-border);
    margin-top: 64px;
}

/* ==========================================================================
   SERVICES PAGE (MOCKUP #3)
   ========================================================================== */

.services-hero-section {
    padding: 64px 0 48px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(254, 226, 226, 0.45) 0%, transparent 70%);
}

.services-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.services-hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: #111827;
    margin: 0 0 16px;
}

.text-gradient-red {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-hero-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4b5563;
    max-width: 660px;
    margin: 0 auto 36px;
}

/* Filter Pills */
.services-filter-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.service-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
}

.service-pill-btn:hover {
    border-color: #d1d5db;
    color: #111827;
}

.service-pill-btn.is-active {
    background: #fff5f5;
    border-color: #dc2626;
    color: #dc2626;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.12);
}

/* Services Grid */
.services-listing-section {
    padding: 48px 0 96px;
}

.services-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.service-block-card {
    background: #ffffff;
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-block-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    border-color: #e5e7eb;
}

.service-block-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.service-block-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.service-logo-adobe {
    font-weight: 800;
    font-size: 1.1rem;
    color: #eb1000;
}

.service-logo-capcut {
    font-size: 1.3rem;
    color: #111827;
}

.service-logo-canva {
    font-weight: 800;
    font-size: 0.95rem;
    color: #00c4cc;
}

.service-logo-notion {
    font-family: serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #000;
}

.service-logo-fallback {
    font-size: 1.2rem;
    color: #dc2626;
}

.service-block-info {
    flex: 1;
    min-width: 0;
}

.service-block-title {
    font-size: 1.15rem;
    font-weight: 750;
    line-height: 1.3;
    margin: 0 0 6px;
}

.service-block-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.15s ease;
}

.service-block-title a:hover {
    color: #dc2626;
}

.service-block-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
}

.service-block-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    flex: 1;
}

.service-tag-pill {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4b5563;
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
}

.service-block-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.service-price-wrap {
    font-size: 0.86rem;
    color: #6b7280;
}

.service-price-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: #dc2626;
    margin: 0 2px;
}

.service-price-freq {
    font-size: 0.84rem;
    color: #9ca3af;
}

.service-action-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.service-action-link:hover {
    color: #dc2626;
    transform: translateX(2px);
}

/* Trust Strip */
.services-trust-strip {
    background: #ffffff;
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    padding: 32px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    margin-bottom: 72px;
}

.trust-pillar-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trust-pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-pillar-text h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 750;
    color: #111827;
}

.trust-pillar-text p {
    margin: 0;
    font-size: 0.84rem;
    color: #6b7280;
    line-height: 1.45;
}

/* FAQ & Support Section */
.services-faq-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 72px;
}

.services-faq-heading {
    font-size: 1.85rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}

.text-accent-red {
    color: #dc2626;
}

.services-faq-sub {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 28px;
}

.services-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.services-faq-item {
    background: #ffffff;
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.services-faq-item[open] {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.services-faq-question {
    padding: 18px 24px;
    font-weight: 650;
    font-size: 0.95rem;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

.services-faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 1.1rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.services-faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.services-faq-answer {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.65;
}

.services-faq-answer p {
    margin: 0;
}

/* Support Box */
.services-support-card {
    background: #fdf2f2;
    border: 1px solid #fee2e2;
    border-radius: 20px;
    padding: 36px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.support-card-illustration {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.1);
}

.support-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
}

.support-card-desc {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0 0 24px;
    max-width: 260px;
    line-height: 1.5;
}

.support-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 12px 28px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.support-card-cta:hover {
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

/* Services Responsive */
@media (max-width: 1024px) {
    .services-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .services-trust-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 28px;
    }
    .services-faq-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .services-card-grid {
        grid-template-columns: 1fr;
    }
    .services-trust-strip {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .services-filter-pills {
        gap: 8px;
    }
    .service-pill-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   PRICING / MEMBERSHIP PAGE
/* ==========================================================================
   PRICING / MEMBERSHIP PAGE (MOCKUP #1)
   ========================================================================== */

.pricing-hero-wrap {
    padding: 64px 0 40px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(254, 226, 226, 0.45) 0%, transparent 70%);
}

.pricing-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.pricing-main-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: #111827;
    margin: 0 0 16px;
}

.pricing-sub-title {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4b5563;
    max-width: 660px;
    margin: 0 auto 36px;
}

/* Billing Switch */
.pricing-billing-switch {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.billing-opt-btn {
    border: none;
    background: transparent;
    padding: 10px 24px;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #4b5563;
    transition: all 0.15s ease;
}

.billing-opt-btn.is-active {
    background: #f3f4f6;
    color: #111827;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.billing-opt-title {
    font-weight: 700;
}

.billing-opt-sub {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

.billing-badge-saving {
    font-size: 0.76rem;
    font-weight: 750;
    color: #ffffff;
    background: #dc2626;
    padding: 3px 10px;
    border-radius: 9999px;
}

/* Pricing Cards */
.pricing-cards-section {
    padding: 32px 0 80px;
}

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

.pricing-tier-card {
    background: #ffffff;
    border: 1px solid var(--sf-border);
    border-radius: 18px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.pricing-tier-card.tier-card-featured {
    border: 2px solid #dc2626;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.08);
}

.tier-featured-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tier-card-head {
    margin-bottom: 20px;
}

.tier-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px;
}

.tier-subtitle {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0;
}

.tier-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.tier-price-number {
    font-size: 2.3rem;
    font-weight: 850;
    color: #111827;
    letter-spacing: -0.04em;
}

.tier-summary-text {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 24px;
    min-height: 42px;
}

.tier-saving-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    min-height: 28px;
}

.tier-plan-duration-note {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.tier-saving-chip {
    font-size: 0.74rem;
    font-weight: 750;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 2px 8px;
    border-radius: 9999px;
}

.tier-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.tier-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.45;
}

.tier-action-wrap {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tier-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tier-btn-outline:hover {
    border-color: #111827;
    background: #f9fafb;
}

.tier-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: none;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
    transition: all 0.15s ease;
}

.tier-btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.tier-btn-primary.is-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.pricing-login-link {
    text-align: center;
    font-size: 0.84rem;
    color: #6b7280;
    text-decoration: none;
    margin-top: 4px;
}

.pricing-login-link:hover {
    color: #111827;
    text-decoration: underline;
}

/* Trust Strip */
.pricing-trust-strip {
    background: #ffffff;
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    padding: 28px 36px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    margin: 64px 0;
}

.pricing-trust-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.trust-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-content h3 {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 750;
    color: #111827;
}

.trust-content p {
    margin: 0;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.45;
}

/* FAQ & Comparison Grid */
.pricing-faq-compare-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 64px;
}

.pricing-faq-accordions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-accordion-item {
    background: #ffffff;
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.pricing-accordion-item[open] {
    border-color: #d1d5db;
}

.accordion-header {
    padding: 16px 20px;
    font-weight: 650;
    font-size: 0.92rem;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-indicator {
    font-size: 1.2rem;
    color: #9ca3af;
    line-height: 1;
}

.pricing-accordion-item[open] .accordion-indicator {
    content: "−";
}

.accordion-body {
    padding: 0 20px 16px;
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.6;
}

.accordion-body p {
    margin: 0;
}

/* Comparison Table */
.pricing-table-wrapper {
    background: #ffffff;
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.pricing-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.pricing-comparison-table th,
.pricing-comparison-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-comparison-table th:first-child,
.pricing-comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #374151;
}

.pricing-comparison-table th.col-pro,
.pricing-comparison-table td.col-pro {
    background: #fff5f5;
    color: #dc2626;
    font-weight: 700;
}

/* Payment Methods */
.pricing-payment-section {
    margin-bottom: 72px;
}

.pricing-payment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.payment-method-card {
    background: #ffffff;
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.payment-method-icon {
    font-size: 1.6rem;
}

.payment-method-text strong {
    display: block;
    font-size: 0.92rem;
    color: #111827;
}

.payment-method-text small {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Pricing Responsive */
@media (max-width: 1024px) {
    .pricing-cards-container {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 0 auto;
    }
    .pricing-trust-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-faq-compare-grid {
        grid-template-columns: 1fr;
    }
    .pricing-payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-trust-strip {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .pricing-payment-grid {
        grid-template-columns: 1fr;
    }
    .pricing-billing-switch {
        flex-direction: column;
        border-radius: 16px;
        width: 100%;
    }
    .billing-opt-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

/* ==========================================================================
   FOOTER — MASTER 5-COLUMN GRID
   ========================================================================== */

.storefront-footer {
    border-top: 1px solid var(--sf-border);
    background: #ffffff;
    margin-top: auto;
    padding: 56px 0 24px;
}

.storefront-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid #f1f3f5;
}

.storefront-footer-brand-col {
    max-width: 320px;
}

.storefront-footer-tagline {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 14px 0 18px;
}

.storefront-footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: grid;
    place-items: center;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.15s ease;
}

.footer-social-btn:hover {
    background: var(--sf-red);
    border-color: var(--sf-red);
    color: #ffffff;
    transform: translateY(-1px);
}

.storefront-footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
}

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

.storefront-footer-col li a {
    font-size: 0.84rem;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.15s ease;
}

.storefront-footer-col li a:hover {
    color: var(--sf-red);
}

.footer-contact-info {
    font-size: 0.84rem;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.footer-contact-info a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.footer-badge-makers {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 500;
}

.storefront-footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.storefront-copyright {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

/* ==========================================================================
   AUTH & ACCOUNT PAGES
   ========================================================================== */

.auth-section {
    min-height: calc(100vh - 220px);
    display: grid;
    align-items: center;
    padding: 60px 0 90px;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 0.7fr);
    align-items: center;
    gap: 72px;
}

.auth-shell-centered {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

.auth-intro h1,
.account-heading h1 {
    margin: 16px 0;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    line-height: 0.98;
    font-weight: 850;
    letter-spacing: -0.06em;
}

.auth-intro p,
.account-heading p {
    color: var(--sf-text-muted);
    font-size: 1.05rem;
}

.auth-card {
    min-width: 0;
    padding: 36px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-large);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-lg);
}

.auth-card h2 {
    margin: 0 0 24px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-field {
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-field input {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-field);
    color: var(--sf-text-primary);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-field input:focus {
    border-color: var(--sf-accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 212, 146, 0.18);
}

.password-control {
    position: relative;
    display: flex;
}

.password-control input {
    padding-right: 76px;
}

.password-control button {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 54px;
    height: 36px;
    border: 0;
    border-radius: var(--sf-radius-small);
    background: var(--sf-surface-elevated);
    cursor: pointer;
    color: var(--sf-text-secondary);
    font-size: 0.78rem;
    font-weight: 750;
}

.auth-alert {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: var(--sf-radius-medium);
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-alert-error {
    border: 1px solid rgba(255, 77, 79, 0.35);
    background: var(--sf-danger-bg);
    color: var(--sf-danger-ink);
}

.auth-alert-success {
    border: 1px solid rgba(0, 212, 146, 0.35);
    background: var(--sf-success-bg);
    color: var(--sf-success-ink);
}

.auth-alert-info {
    border: 1px solid rgba(79, 117, 255, 0.35);
    background: var(--sf-info-bg);
    color: var(--sf-info-ink);
}

/* ==========================================================================
   SPLIT CARD AUTH (MOCKUP #5)
   ========================================================================== */

.auth-page-section {
    padding: 60px 0 96px;
    min-height: calc(100vh - 360px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 30%, rgba(254, 226, 226, 0.35) 0%, transparent 70%);
}

.auth-shell-wrapper {
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
}

.auth-split-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: #ffffff;
    border: 1px solid var(--sf-border);
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.auth-brand-panel {
    background: linear-gradient(150deg, #fdf8f5 0%, #f7efe8 100%);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #f0e6dc;
}

.auth-brand-art {
    position: relative;
    height: 170px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-art-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.brand-art-icon-card {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transform: rotate(-5deg);
}

.brand-art-folder {
    width: 76px;
    height: 56px;
    border-radius: 10px;
    background: #eedccf;
    position: absolute;
    right: 36px;
    top: 18px;
    transform: rotate(12deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.folder-tab {
    width: 30px;
    height: 8px;
    background: #eedccf;
    border-radius: 4px 4px 0 0;
    position: absolute;
    top: -7px;
    left: 8px;
}

.folder-body {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-doc {
    width: 44px;
    height: 28px;
    background: #ffffff;
    border-radius: 4px;
    opacity: 0.85;
}

.brand-art-waveform {
    position: absolute;
    bottom: 8px;
    left: 32px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    padding: 12px 20px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    transform: rotate(-4deg);
    z-index: 3;
}

.wave-bar {
    width: 4px;
    background: #dc2626;
    border-radius: 3px;
}

.auth-brand-title {
    font-size: 1.85rem;
    font-weight: 850;
    color: #111827;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}

.auth-brand-desc {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0 0 32px;
}

.auth-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-benefit-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.benefit-icon-wrap {
    font-size: 1.4rem;
    line-height: 1;
    margin-top: 1px;
}

.benefit-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 750;
    color: #111827;
    margin-bottom: 2px;
}

.benefit-text span {
    display: block;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Right: Form Panel */
.auth-form-panel {
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    margin-bottom: 28px;
    text-align: center;
}

.auth-form-title {
    font-size: 1.85rem;
    font-weight: 850;
    color: #111827;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
}

.auth-form-sub {
    font-size: 0.92rem;
    color: #6b7280;
    margin: 0;
}

.auth-social-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 0.86rem;
    font-weight: 650;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.social-auth-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.auth-divider-line {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0 0 24px;
    color: #9ca3af;
    font-size: 0.82rem;
}

.auth-divider-line::before,
.auth-divider-line::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider-line span {
    padding: 0 12px;
}

.auth-credentials-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.auth-input-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 650;
    color: #374151;
    margin-bottom: 6px;
}

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

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1.05rem;
    color: #9ca3af;
    pointer-events: none;
    line-height: 1;
}

.input-with-icon input {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 0 44px 0 42px;
    font-size: 0.92rem;
    color: #111827;
    background: #fdfdfd;
    transition: all 0.15s ease;
}

.input-with-icon input:focus {
    border-color: #dc2626;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: #ffffff;
}

.btn-pwd-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
}

.auth-row-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

.auth-link-red {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
}

.auth-link-red:hover {
    text-decoration: underline;
}

.auth-btn-submit {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: none;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn-submit:hover {
    background: #b91c1c;
}

.auth-switch-prompt {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 24px;
}

.auth-link-red-bold {
    color: #dc2626;
    font-weight: 750;
    text-decoration: none;
    margin-left: 4px;
}

.auth-legal-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.5;
}

.auth-legal-link {
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 900px) {
    .auth-split-card {
        grid-template-columns: 1fr;
    }
    .auth-brand-panel {
        display: none;
    }
    .auth-form-panel {
        padding: 36px 24px;
    }
}

/* ==========================================================================
   ACCOUNT DASHBOARD (MOCKUP #2 MASTER SPECIFICATION)
   ========================================================================== */

.account-section {
    min-height: calc(100vh - 200px);
    background: #f8f9fa;
    padding: 32px 0 64px;
}

.account-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

/* --- Left Sidebar --- */
.account-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-nav-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 10px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.account-nav-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.account-nav-item.is-active {
    background: #fef2f2;
    color: #dc2626;
    font-weight: 700;
}

.account-nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
}

.account-nav-item.is-active .account-nav-icon {
    color: #dc2626;
}

.account-nav-logout-form {
    margin: 0;
    padding: 0;
}

.account-nav-logout-btn {
    color: #64748b;
}

.account-nav-logout-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}

.account-support-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.account-support-card h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.account-support-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 16px;
}

.account-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.account-support-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
}

/* --- Right Main Area --- */
.account-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

/* Greeting Header */
.account-greeting-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 4px 0 10px;
}

.account-greeting-copy .account-kicker {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.account-greeting-copy h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
    line-height: 1.2;
}

.account-greeting-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    max-width: 540px;
}

.account-greeting-illustration {
    width: 140px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Membership Status Card */
.account-ms-card {
    background: #ffffff;
    border: 1px solid #fee2e2;
    border-radius: 16px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.03);
}

.account-ms-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-ms-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.account-ms-texts .ms-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 2px;
}

.account-ms-texts h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.account-ms-status {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-ms-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.account-ms-status .dot.is-inactive {
    background: #94a3b8;
}

.account-ms-remaining {
    padding: 0 28px;
    border-left: 1px solid #f1f5f9;
}

.account-ms-remaining .ms-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 2px;
}

.account-ms-remaining .ms-val {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 2px;
}

.account-ms-remaining .ms-exp {
    font-size: 12px;
    color: #94a3b8;
}

.account-ms-action .storefront-button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 4 Key Metric Cards */
.account-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.account-metric-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.metric-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon-wrap.is-red {
    background: #fef2f2;
    color: #dc2626;
}

.metric-icon-wrap.is-amber {
    background: #fffbeb;
    color: #d97706;
}

.metric-icon-wrap.is-blue {
    background: #eff6ff;
    color: #2563eb;
}

.metric-icon-wrap.is-purple {
    background: #faf5ff;
    color: #9333ea;
}

.metric-body .metric-title {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}

.metric-body .metric-val {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 2px;
}

.metric-body .metric-sub {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

/* 2-Column Split Activity Section */
.account-activity-split {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px;
    align-items: start;
}

.account-activity-panel {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header-link {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.panel-header-link:hover {
    text-decoration: underline;
}

/* Downloaded items list */
.account-download-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-download-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.account-download-row:hover {
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.download-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #0f172a;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-info .cat-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
}

.download-software-chips {
    display: flex;
    align-items: center;
    gap: 4px;
}

.download-soft-pill {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 4px;
}

.download-date {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
    margin: 0 6px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.download-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
}

/* Right side stack: Wallet & Orders */
.account-side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-wallet-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.wallet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.wallet-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.wallet-topup-btn {
    font-size: 11px;
    font-weight: 600;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 9999px;
    padding: 3px 12px;
    background: #fef2f2;
    text-decoration: none;
    transition: all 0.2s;
}

.wallet-topup-btn:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.wallet-balance-box {
    margin-bottom: 16px;
}

.wallet-balance-box .wb-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.wallet-balance-box .wb-val {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2px;
}

.wallet-tx-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.wallet-tx-subhead h5 {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

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

.wallet-tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.tx-meta .tx-desc {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}

.tx-meta .tx-time {
    font-size: 11px;
    color: #94a3b8;
}

.tx-amount {
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}

.tx-amount.is-in {
    color: #16a34a;
}

.tx-amount.is-out {
    color: #0f172a;
}

/* Orders Card */
.account-orders-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.orders-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

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

.order-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.order-ref-date .order-ref {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.order-ref-date .order-date {
    font-size: 11px;
    color: #94a3b8;
}

.order-amount {
    font-weight: 600;
    color: #0f172a;
}

.order-status-chip {
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 6px;
}

/* 3 Quick Actions */
.account-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 6px;
}

.account-quick-action-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 26px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.qa-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.qa-icon-wrap.is-gold {
    background: #fffbeb;
    color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
}

.qa-icon-wrap.is-blue {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.qa-icon-wrap.is-red {
    background: #fef2f2;
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

.account-quick-action-card h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.account-quick-action-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 18px;
    flex: 1;
}

.account-quick-action-card .storefront-button {
    width: 100%;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
}

/* Full Tab Panels (for Resources, Payments, Security, etc.) */
.account-tab-panel {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.account-tab-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.account-tab-panel-heading h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.account-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: #ffffff;
    border-radius: 12px;
}

.account-empty-state .empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8fafc;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.account-empty-state h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.account-empty-state p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
}

/* Responsive Rules for Account */
@media (max-width: 1024px) {
    .account-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    .account-sidebar {
        position: static;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    .account-main {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    .account-nav-card {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap;
        gap: 6px;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        padding: 8px;
    }
    .account-nav-item {
        white-space: nowrap;
        padding: 8px 14px;
        width: auto;
        flex-shrink: 0;
    }
    .account-nav-card::-webkit-scrollbar {
        display: none;
    }
    .account-support-card {
        display: none;
    }
    .account-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        min-width: 0;
        width: 100%;
    }
    .account-activity-split {
        grid-template-columns: minmax(0, 1fr);
        min-width: 0;
        width: 100%;
    }
    .account-quick-actions-grid {
        grid-template-columns: 1fr;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .account-section {
        padding: 20px 0 48px;
        overflow-x: hidden;
    }
    .account-greeting-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
        min-width: 0;
    }
    .account-greeting-illustration {
        display: none;
    }
    .account-greeting-copy {
        width: 100%;
        min-width: 0;
    }
    .account-greeting-copy h1 {
        font-size: 26px;
        word-break: break-word;
    }
    .account-ms-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .account-ms-info {
        width: 100%;
        min-width: 0;
    }
    .account-ms-texts {
        min-width: 0;
        flex: 1;
    }
    .account-ms-texts h2 {
        word-break: break-word;
    }
    .account-ms-remaining {
        border-left: 0;
        padding: 0;
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
        width: 100%;
        min-width: 0;
    }
    .account-ms-action {
        width: 100%;
        min-width: 0;
    }
    .account-ms-action .storefront-button {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        color: #ffffff !important;
        box-sizing: border-box;
    }
    .account-metrics-grid {
        grid-template-columns: 1fr;
        min-width: 0;
        width: 100%;
    }
    .account-metric-card {
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    .account-activity-panel {
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
        padding: 18px 16px;
    }
    .account-download-row {
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    .download-info {
        min-width: 0;
        flex: 1;
    }
    .download-info h4 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 190px;
    }
    .download-date {
        margin: 0;
        width: 100%;
    }
    .account-quick-action-card {
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
}

/* ==========================================================================
   DIALOG / MODAL
   ========================================================================== */

.storefront-dialog {
    width: min(92vw, 520px);
    max-width: 520px;
    padding: 0;
    border: 0;
    border-radius: var(--sf-radius-large);
    background: transparent;
    color: var(--sf-text-primary);
}

.storefront-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.storefront-dialog-card {
    padding: 34px;
    border: 1px solid var(--sf-border-strong);
    border-radius: var(--sf-radius-large);
    background: var(--sf-surface);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    position: relative;
}

.dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--sf-border);
    border-radius: 50%;
    background: var(--sf-surface-elevated);
    color: var(--sf-text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s ease;
}

.dialog-close:hover {
    color: var(--sf-text-primary);
    border-color: var(--sf-border-strong);
}

.storefront-dialog-card h2 {
    margin: 8px 0 10px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.storefront-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.storefront-dialog-actions .storefront-button {
    width: 100%;
}

/* ==========================================================================
   VIDEO WATCH & DEMO PLAYER
   ========================================================================== */

.video-watch {
    padding: 38px 0 100px;
}

.video-watch-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.video-watch-player {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-large);
    background: #000;
    box-shadow: var(--sf-shadow-lg);
}

.video-watch-player iframe,
.video-watch-player video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
    object-fit: contain;
}

.video-watch-copy {
    max-width: 840px;
    padding-top: 30px;
}

.video-watch-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 4.2vw, 3.2rem);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.video-watch-copy p {
    color: var(--sf-text-secondary);
    line-height: 1.75;
}

.video-watch-product-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--sf-accent);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.resource-demo-player {
    width: 100%;
    height: 100%;
}

.resource-demo-player iframe,
.resource-demo-player video {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
    background: #000;
    object-fit: contain;
}

.resource-video-watch-link {
    margin: -8px 0 22px;
    color: var(--sf-text-muted);
    font-size: 0.86rem;
}

.resource-video-watch-link a {
    color: var(--sf-accent);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   REPORT & LINK ISSUES
   ========================================================================== */

.resource-report-button,
.resource-link-report {
    flex: 1 1 240px;
    min-width: 220px;
}

.resource-link-report summary {
    width: 100%;
    list-style: none;
    cursor: pointer;
}

.resource-link-report summary::-webkit-details-marker {
    display: none;
}

.resource-link-report[open] {
    flex: 1 0 100%;
}

.resource-link-report[open] summary {
    width: fit-content;
}

.resource-link-report form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface-elevated);
}

.resource-link-report label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--sf-text-muted);
    font-size: 0.8rem;
    font-weight: 750;
}

.resource-link-report select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-small);
    background: var(--sf-field);
    color: var(--sf-text-primary);
}

.resource-access-note {
    margin-top: 28px;
    padding: 18px 20px;
    border-left: 4px solid var(--sf-accent-coral);
    border-radius: 0 var(--sf-radius-small) var(--sf-radius-small) 0;
    background: var(--sf-danger-bg);
}

.resource-access-note p {
    margin: 4px 0 0;
    color: var(--sf-danger-ink);
    font-size: 0.9rem;
}

/* ==========================================================================
   MEMBERSHIP PAYMENT & CHECKOUT
   ========================================================================== */

.membership-payment-page {
    padding: 54px 0 96px;
}

.membership-payment-shell {
    max-width: 980px;
}

.membership-payment-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 24px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-large);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

.membership-payment-status-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid !important;
    place-items: center;
    margin: 0 !important;
    border: 2px solid currentColor;
    border-radius: var(--sf-radius-small);
    color: var(--sf-text-primary) !important;
    font-size: 1.2rem;
    font-weight: 900;
}

.membership-payment-banner.is-pending {
    border-style: dashed;
    background: var(--sf-warning-bg);
    border-color: var(--sf-warning);
}

.membership-payment-banner.is-processing {
    border-left: 6px solid var(--sf-blue);
    background: var(--sf-info-bg);
}

.membership-payment-banner.is-success {
    border-left: 6px solid var(--sf-success);
    background: var(--sf-success-bg);
}

.membership-payment-banner.is-failed {
    border-left: 6px solid var(--sf-error);
    background: var(--sf-danger-bg);
}

.service-payment-success-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid rgba(0, 212, 146, 0.35);
    border-radius: var(--sf-radius-large);
    background: var(--sf-success-bg);
}

.service-payment-success-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--sf-accent);
    color: #071500;
    font-size: 1.3rem;
    font-weight: 900;
}

.service-payment-success-copy > strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
}

.service-payment-success-copy p {
    margin: 6px 0 10px;
    color: var(--sf-success-ink);
}

.membership-payment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.membership-payment-card {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-large);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-md);
}

.membership-payment-card > header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
}

.membership-payment-card > header strong {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.membership-payment-card dl {
    margin: 0;
}

.membership-payment-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid var(--sf-border);
}

.membership-payment-card dt {
    color: var(--sf-text-muted);
}

.membership-payment-card dd {
    margin: 0;
    font-weight: 750;
    text-align: right;
}

.membership-payment-instructions code {
    display: block;
    margin: 14px 0 22px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    padding: 18px;
    border: 1px dashed var(--sf-accent);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface-elevated);
    font: 700 0.85rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--sf-text-primary);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.membership-payment-qr {
    display: block;
    width: min(100%, 420px);
    height: auto;
    margin: 14px auto 22px;
    border-radius: 18px;
}

.qr-white {
    width: min(100%, 444px);
    margin: 14px auto 22px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
}

.qr-white .membership-payment-qr {
    margin: 0 auto;
}

.membership-transfer-content {
    display: block;
    padding: 14px;
    border: 1px solid var(--sf-accent);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-success-bg);
    color: var(--sf-accent);
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-align: center;
}

.membership-manual-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    margin-bottom: 24px;
}

.membership-manual-details dl div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid var(--sf-border);
}

.membership-manual-details dt {
    color: var(--sf-text-muted);
}

.membership-manual-details dd {
    max-width: 65%;
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.membership-included-courses {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--sf-border);
}

.membership-included-courses h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
}

.membership-included-courses-intro {
    max-width: 760px;
    margin: 0 0 18px;
    color: var(--sf-text-muted);
    line-height: 1.55;
}

.membership-included-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.membership-included-course {
    min-width: 0;
    min-height: 80px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface-elevated);
}

.membership-included-course-media {
    width: 82px;
    height: 54px;
    overflow: hidden;
    border-radius: var(--sf-radius-small);
    background: var(--sf-gradient-placeholder);
}

.membership-included-course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.membership-included-course-copy h3,
.membership-included-course-copy h5 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   GROWTH & REFERRALS
   ========================================================================== */

.growth-referral-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 18px;
}

.growth-referral-grid > div {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-large);
    background: var(--sf-surface-elevated);
}

.growth-referral-grid h3 {
    margin: 0 0 8px;
    font-weight: 800;
}

.growth-referral-grid p {
    color: var(--sf-text-muted);
    font-size: 0.86rem;
}

.growth-copy-field {
    display: grid;
    gap: 8px;
    color: var(--sf-text-muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.growth-copy-field input {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-small);
    background: var(--sf-field);
    color: var(--sf-text-primary);
    font-size: 0.82rem;
}

.growth-preferences {
    display: grid;
    gap: 12px;
}

.growth-preferences > label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface-elevated);
}

.growth-preferences input {
    margin-top: 4px;
    accent-color: var(--sf-accent);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 1024px) {
    .resource-grid,
    .catalog-section-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .catalog-filter-bar {
        grid-template-columns: auto minmax(200px, 1fr) minmax(140px, 0.4fr) auto;
    }
}

@media (max-width: 900px) {
    .resource-grid,
    .catalog-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .resource-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .auth-shell {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .account-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .catalog-filter-bar {
        grid-template-columns: 1fr 1fr;
    }
    .catalog-filter-bar .access-tabs {
        grid-column: 1 / -1;
    }
    .catalog-filter-bar .catalog-search {
        grid-column: 1 / -1;
    }
    .storefront-footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .storefront-footer-links {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .storefront-shell {
        width: min(100% - 24px, 1380px);
    }
    .storefront-header-inner {
        min-height: 58px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding-block: 8px;
        position: relative;
    }
    .storefront-nav {
        display: none;
    }
    .storefront-nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: -12px;
        right: -12px;
        background: #ffffff;
        padding: 16px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--sf-border);
        border-top: 1px solid var(--sf-border-subtle);
        z-index: 100;
        gap: 6px;
    }
    .storefront-nav.is-open a {
        padding: 10px 14px;
        border-radius: 8px;
        width: 100%;
        font-size: 0.95rem;
    }
    .storefront-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border: 1px solid var(--sf-border);
        border-radius: 8px;
        padding: 6px 8px;
        cursor: pointer;
        color: #111827;
        line-height: 1;
    }
    .header-btn-login {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .header-btn-membership {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
    .header-btn-membership span {
        display: none;
    }
    .header-btn-membership::after {
        content: "VIP";
        font-weight: 700;
    }
}

@media (max-width: 640px) {
    .storefront-home-banner {
        padding: 16px 0 8px;
    }
    .storefront-banner-frame {
        border-radius: 14px;
    }
    .catalog-first {
        padding: 12px 0 68px;
    }
    .catalog-intro {
        flex-direction: column;
        gap: 6px;
    }
    .catalog-filter-bar {
        grid-template-columns: 1fr;
        padding: 8px;
        border-radius: 20px;
        gap: 8px;
        margin-bottom: 18px;
    }
    .storefront-software-tags {
        justify-content: flex-start;
        padding-inline: 2px;
        margin: 0 0 32px;
        gap: 8px;
    }
    .software-tag-pill {
        padding: 6px 12px;
        font-size: 0.76rem;
        gap: 6px;
    }
    .software-icon {
        width: 17px;
        height: 17px;
    }
    .access-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .access-tabs a {
        padding: 6px 4px;
        font-size: 0.78rem;
    }
    .catalog-home-sections {
        gap: 48px;
        margin-top: 32px;
    }
    .catalog-section-heading,
    .catalog-result-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .resource-grid,
    .catalog-section-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card {
        min-height: auto;
        padding: 24px;
    }
    .account-grid {
        grid-template-columns: 1fr;
    }
    .account-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .account-list-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }
    .resource-copyright-notice {
        grid-template-columns: 1fr;
    }
    .storefront-footer-inner {
        padding-block: 40px 48px;
    }
    .software-showcase-grid,
    .categories-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .collections-grid,
    .services-showcase-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hero-discovery-title {
        font-size: 1.95rem;
    }
    .hero-stat-strip {
        flex-direction: column;
        gap: 10px;
        border-radius: 16px;
        width: 100%;
        padding: 14px 20px;
    }
    .hero-stat-divider {
        display: none;
    }
    .hero-software-pills {
        gap: 6px;
    }
    .software-pill {
        padding: 5px 12px;
        font-size: 0.78rem;
    }
    .membership-promo-banner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
    }
    .membership-banner-checklist {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .software-showcase-grid,
    .categories-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .membership-promo-banner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px;
    }
    .membership-banner-checklist {
        grid-template-columns: 1fr 1fr;
    }
    .storefront-footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================================================
   STOREFRONT MASTER SURFACE — shared by every public page
   ============================================================================ */

:root {
    --sf-page-bg: #fff9fa;
    --sf-surface: #ffffff;
    --sf-surface-elevated: #fff3f5;
    --sf-surface-soft: #fffafb;
    --sf-surface-glass: rgba(255, 255, 255, .92);
    --sf-border: #eadfe2;
    --sf-border-subtle: #f5eaed;
    --sf-border-strong: #d9c5ca;
    --sf-text-primary: #271d22;
    --sf-text-secondary: #654f57;
    --sf-text-muted: #927c84;
    --sf-ink: var(--sf-text-primary);
    --sf-muted: var(--sf-text-muted);
    --sf-line: var(--sf-border);
    --sf-inverse: #ffffff;
    --sf-accent: #d84761;
    --sf-accent-hover: #bd304b;
    --sf-accent-dark: #98243d;
    --sf-accent-coral: #ef7180;
    --sf-red: var(--sf-accent);
    --sf-red-hover: var(--sf-accent-hover);
    --sf-red-subtle: #fff0f2;
    --sf-green: #15866a;
    --sf-success-bg: #edf9f4;
    --sf-success-ink: #126249;
    --sf-warning-bg: #fff8e9;
    --sf-warning-ink: #8d5f0e;
    --sf-danger-bg: #fff0f2;
    --sf-danger-ink: #9f2940;
    --sf-info-bg: #eff6ff;
    --sf-info-ink: #24558a;
    --sf-field: #ffffff;
    --sf-panel-soft: #fffafb;
    --sf-disabled: #eee4e6;
    --sf-radius-small: 10px;
    --sf-radius-medium: 16px;
    --sf-radius-large: 24px;
    --sf-radius-pill: 999px;
    --sf-radius: var(--sf-radius-medium);
    --sf-shadow-sm: 0 1px 2px rgba(75, 37, 48, .04);
    --sf-shadow-md: 0 8px 24px rgba(102, 48, 62, .08);
    --sf-shadow-lg: 0 20px 55px rgba(102, 48, 62, .12);
    --sf-shadow-cta: 0 8px 20px rgba(216, 71, 97, .22);
    --sf-shadow: var(--sf-shadow-sm);
    --sf-gradient-hero-glow: radial-gradient(80% 100% at 50% 0%, #fff0f3 0%, #fff9fa 68%, #fff9fa 100%);
    --sf-gradient-membership: linear-gradient(135deg, #8f263b 0%, #d84761 100%);
    color-scheme: light;
}

html[data-theme="dark"] {
    --sf-page-bg: #191316;
    --sf-surface: #241b1f;
    --sf-surface-elevated: #302126;
    --sf-surface-soft: #21191d;
    --sf-surface-glass: rgba(36, 27, 31, .94);
    --sf-border: #49343b;
    --sf-border-subtle: #34262c;
    --sf-border-strong: #674850;
    --sf-text-primary: #fff4f5;
    --sf-text-secondary: #e3cbd0;
    --sf-text-muted: #b79ca5;
    --sf-ink: var(--sf-text-primary);
    --sf-muted: var(--sf-text-muted);
    --sf-line: var(--sf-border);
    --sf-inverse: #20171b;
    --sf-accent: #f06b7e;
    --sf-accent-hover: #ff8797;
    --sf-accent-dark: #ff9aaa;
    --sf-accent-coral: #f7919f;
    --sf-red: var(--sf-accent);
    --sf-red-hover: var(--sf-accent-hover);
    --sf-red-subtle: #3b2029;
    --sf-green: #6bd5b3;
    --sf-success-bg: #17392f;
    --sf-success-ink: #a5efd5;
    --sf-warning-bg: #41331c;
    --sf-warning-ink: #ffdd8a;
    --sf-danger-bg: #43212b;
    --sf-danger-ink: #ffb0bc;
    --sf-info-bg: #1d3248;
    --sf-info-ink: #b9d9ff;
    --sf-field: #1d171a;
    --sf-panel-soft: #21191d;
    --sf-disabled: #47363b;
    --sf-shadow-sm: 0 1px 2px rgba(0, 0, 0, .2);
    --sf-shadow-md: 0 10px 28px rgba(0, 0, 0, .25);
    --sf-shadow-lg: 0 22px 60px rgba(0, 0, 0, .35);
    --sf-shadow-cta: 0 8px 22px rgba(240, 107, 126, .2);
    --sf-gradient-hero-glow: radial-gradient(80% 100% at 50% 0%, #382027 0%, #191316 72%, #191316 100%);
    --sf-gradient-membership: linear-gradient(135deg, #632033 0%, #b53e59 100%);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        --sf-page-bg: #191316;
        --sf-surface: #241b1f;
        --sf-surface-elevated: #302126;
        --sf-surface-soft: #21191d;
        --sf-surface-glass: rgba(36, 27, 31, .94);
        --sf-border: #49343b;
        --sf-border-subtle: #34262c;
        --sf-border-strong: #674850;
        --sf-text-primary: #fff4f5;
        --sf-text-secondary: #e3cbd0;
        --sf-text-muted: #b79ca5;
        --sf-accent: #f06b7e;
        --sf-accent-hover: #ff8797;
        --sf-accent-dark: #ff9aaa;
        --sf-red: var(--sf-accent);
        --sf-red-hover: var(--sf-accent-hover);
        --sf-red-subtle: #3b2029;
        --sf-field: #1d171a;
        --sf-panel-soft: #21191d;
        --sf-disabled: #47363b;
        --sf-success-bg: #17392f;
        --sf-success-ink: #a5efd5;
        --sf-warning-bg: #41331c;
        --sf-warning-ink: #ffdd8a;
        --sf-danger-bg: #43212b;
        --sf-danger-ink: #ffb0bc;
        --sf-info-bg: #1d3248;
        --sf-info-ink: #b9d9ff;
        --sf-shadow-md: 0 10px 28px rgba(0, 0, 0, .25);
        --sf-shadow-lg: 0 22px 60px rgba(0, 0, 0, .35);
        --sf-gradient-hero-glow: radial-gradient(80% 100% at 50% 0%, #382027 0%, #191316 72%, #191316 100%);
        --sf-gradient-membership: linear-gradient(135deg, #632033 0%, #b53e59 100%);
        color-scheme: dark;
    }
}

html,
body {
    background: var(--sf-page-bg);
    color: var(--sf-text-primary);
    overflow-x: hidden;
    overflow-x: clip;
}

body,
button,
input,
select,
textarea {
    font-family: "Lexend", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
    color: var(--sf-text-primary);
}

.storefront-shell {
    width: min(1380px, calc(100% - 40px));
    min-width: 0;
}

.storefront-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: var(--sf-surface-glass);
    border-bottom: 1px solid var(--sf-border);
    backdrop-filter: blur(18px);
}

.storefront-header-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    position: relative;
}

.storefront-brand {
    flex: 0 0 auto;
    min-width: 0;
    gap: 10px;
    justify-self: start;
}

.storefront-brand__mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}

.storefront-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.storefront-brand__lockup {
    display: block;
    width: 126px;
    height: 40px;
    flex: 0 0 126px;
    object-fit: cover;
    object-position: center;
}

.storefront-brand__copy {
    min-width: 0;
}

.storefront-brand__name {
    color: var(--sf-accent);
    font-size: 1.15rem;
    letter-spacing: -.04em;
}

.storefront-brand__tagline {
    color: var(--sf-text-muted);
    font-size: .64rem;
    white-space: nowrap;
}

.storefront-nav {
    position: absolute;
    inset-block: 0;
    left: 50%;
    display: flex;
    align-items: center;
    min-width: 0;
    transform: translateX(-50%);
}

.storefront-nav-primary,
.storefront-nav-secondary {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 0;
    align-items: center;
    gap: 4px;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
}

.storefront-header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.storefront-nav a:not(.storefront-nav-cta),
.locale-link,
.theme-toggle {
    color: var(--sf-text-secondary);
}

.storefront-nav a:not(.storefront-nav-cta) {
    padding: 9px 10px;
    border-radius: 10px;
    font-size: .82rem;
    white-space: nowrap;
}

.storefront-nav a:not(.storefront-nav-cta):hover,
.storefront-nav a[aria-current="page"] {
    color: var(--sf-accent);
    background: var(--sf-red-subtle);
}

.storefront-nav-divider {
    width: 1px;
    height: 22px;
    margin-inline: 4px;
    background: var(--sf-border);
}

.storefront-nav-cta {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 11px;
    color: #fff !important;
    background: var(--sf-accent);
    box-shadow: var(--sf-shadow-cta);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.storefront-nav-cta:hover {
    background: var(--sf-accent-hover);
    transform: translateY(-1px);
}

.storefront-nav-tools {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
}

.theme-toggle,
.locale-link {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    background: var(--sf-surface);
    font-size: .72rem;
    font-weight: 700;
}

.theme-toggle {
    cursor: pointer;
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.storefront-mobile-toggle,
.storefront-nav-backdrop {
    display: none;
}

.storefront-button,
.resource-btn-primary,
.resource-btn-outline,
.filter-mobile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
}

.storefront-button-primary,
.resource-btn-primary {
    color: #fff !important;
    background: var(--sf-accent);
    border-color: var(--sf-accent);
    box-shadow: var(--sf-shadow-cta);
}

.storefront-button-primary:hover,
.resource-btn-primary:hover {
    background: var(--sf-accent-hover);
    border-color: var(--sf-accent-hover);
    transform: translateY(-1px);
}

.storefront-button-secondary,
.resource-btn-outline,
.filter-mobile-trigger {
    color: var(--sf-text-primary);
    background: var(--sf-surface);
    border-color: var(--sf-border-strong);
}

.storefront-button-secondary:hover,
.resource-btn-outline:hover,
.filter-mobile-trigger:hover {
    color: var(--sf-accent);
    border-color: var(--sf-accent);
    background: var(--sf-red-subtle);
}

.storefront-button.is-disabled,
.resource-btn-primary.is-disabled {
    color: var(--sf-text-muted) !important;
    background: var(--sf-disabled);
    border-color: var(--sf-disabled);
    box-shadow: none;
    cursor: not-allowed;
}

.eyebrow,
.account-eyebrow,
.auth-eyebrow {
    margin: 0 0 8px;
    color: var(--sf-accent);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section-title,
.services-hero-title,
.pricing-main-title,
.resource-panel-title,
.account-page-heading h1,
.auth-form-header h1 {
    color: var(--sf-text-primary);
    letter-spacing: -.045em;
}

.section-heading-row {
    align-items: end;
    gap: 16px;
}

.section-title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.15;
}

.section-view-all {
    color: var(--sf-accent);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.storefront-discovery-hero {
    min-height: 0;
    padding: 66px 0 48px;
    background: var(--sf-gradient-hero-glow);
    border-bottom: 1px solid var(--sf-border-subtle);
}

.discovery-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.discovery-hero-inner h1 {
    max-width: 780px;
    margin: 0;
    color: var(--sf-text-primary);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    letter-spacing: -.075em;
    line-height: 1.02;
}

.discovery-hero-inner h1 span {
    color: var(--sf-accent);
}

.discovery-search,
.catalog-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: min(720px, 100%);
    min-height: 56px;
    margin-top: 28px;
    padding: 5px;
    border: 1px solid var(--sf-border-strong);
    border-radius: 15px;
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-md);
}

.search-leading {
    flex: 0 0 auto;
    padding-inline: 14px 6px;
    color: var(--sf-text-muted);
    font-size: 1.5rem;
    line-height: 1;
}

.discovery-search input,
.catalog-search-form input {
    min-width: 0;
    flex: 1;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--sf-text-primary);
    font-size: .9rem;
}

.discovery-search input::placeholder,
.catalog-search-form input::placeholder {
    color: var(--sf-text-muted);
}

.software-pill-list,
.hero-software-pills,
.catalog-software-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 18px;
}

.software-pill,
.rc-soft-chip,
.compat-chip {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
}

.software-pill {
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-pill);
    background: var(--sf-surface);
    color: var(--sf-text-secondary);
    font-size: .74rem;
    font-weight: 700;
}

.software-pill:hover,
.software-pill.is-active {
    color: var(--sf-accent);
    border-color: var(--sf-accent);
    background: var(--sf-red-subtle);
}

.software-logo {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
    vertical-align: middle;
}

.software-pill-logo {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.hero-stat-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: min(720px, 100%);
    margin-top: 28px;
    padding: 14px 18px;
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    background: var(--sf-surface-glass);
    color: var(--sf-text-muted);
    font-size: .76rem;
}

.hero-stat-strip span + span {
    padding-left: 20px;
    border-left: 1px solid var(--sf-border);
}

.hero-stat-strip strong {
    color: var(--sf-accent);
    font-size: 1rem;
}

.storefront-home-main {
    padding-block: 10px 78px;
}

.home-section {
    margin-top: 68px;
}

.home-categories {
    margin-top: 44px;
}

.categories-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.category-showcase-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 178px;
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: #35252c;
    color: #fff;
    box-shadow: var(--sf-shadow-sm);
    isolation: isolate;
}

.category-showcase-card:hover {
    border-color: var(--sf-accent);
    box-shadow: var(--sf-shadow-md);
    transform: translateY(-2px);
}

.category-card-art {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    opacity: .98;
}

.category-card-art::before,
.category-card-art::after,
.category-card-art span {
    position: absolute;
    display: block;
    content: "";
}

.category-card-art::after {
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 10, 15, .03), rgba(18, 10, 15, .82));
}

.category-art-sound .category-card-art { background: linear-gradient(135deg, #47213a, #d94f6c); }
.category-art-sound .category-card-art::before { left: 12%; right: 12%; bottom: 35%; height: 28%; background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.8) 8px 12px, transparent 12px 20px); transform: skewY(-10deg); opacity: .7; }
.category-art-visual .category-card-art { background: linear-gradient(135deg, #201b4e, #8b4fb9 50%, #ee6e87); }
.category-art-visual .category-card-art::before { width: 150px; height: 150px; top: -45px; right: -18px; border: 24px solid rgba(255,255,255,.22); border-radius: 50%; }
.category-art-visual .category-card-art span:first-child { width: 100px; height: 100px; left: 18%; top: 20%; border: 18px solid rgba(255,255,255,.17); border-radius: 50%; }
.category-art-luts .category-card-art { background: linear-gradient(135deg, #183f48, #3d9a9a); }
.category-art-luts .category-card-art::before { inset: 20% 12%; background: linear-gradient(120deg, rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px); background-size: 22px 22px; transform: perspective(180px) rotateX(22deg) rotateZ(-8deg); }
.category-art-plugins .category-card-art { background: linear-gradient(135deg, #3a274e, #bd4f79); }
.category-art-plugins .category-card-art::before { width: 118px; height: 82px; top: 26%; right: 14%; border: 2px solid rgba(255,255,255,.6); border-radius: 10px; box-shadow: -20px 17px 0 -2px rgba(255,255,255,.18), -20px 17px 0 0 rgba(255,255,255,.42); transform: rotate(-8deg); }
.category-art-templates .category-card-art { background: linear-gradient(135deg, #78502f, #de8a55); }
.category-art-templates .category-card-art::before { width: 112px; height: 138px; top: 12%; right: 16%; border-radius: 5px; background: rgba(255,255,255,.74); transform: rotate(8deg); box-shadow: -16px 12px 0 rgba(255,255,255,.18); }
.category-art-templates .category-card-art span:first-child { width: 65px; height: 4px; top: 40%; right: 27%; background: #c16656; box-shadow: 0 14px #c16656, 0 28px #c16656; opacity: .7; z-index: 1; }
.category-art-bundles .category-card-art { background: linear-gradient(135deg, #213b42, #b04766); }
.category-art-bundles .category-card-art::before { width: 90px; height: 90px; top: 23%; right: 20%; border: 2px solid rgba(255,255,255,.75); transform: rotate(18deg); box-shadow: -18px 16px 0 -2px rgba(255,255,255,.25), 18px -14px 0 -2px rgba(255,255,255,.25); }

.category-card-copy {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    padding: 18px;
    text-align: center;
}

.category-card-copy strong {
    font-size: 1rem;
    line-height: 1.2;
}

.category-card-copy small {
    color: rgba(255,255,255,.78);
    font-size: .7rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.resource-card,
.digital-service-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

.resource-card:hover,
.digital-service-card:hover {
    border-color: var(--sf-border-strong);
    box-shadow: var(--sf-shadow-md);
    transform: translateY(-2px);
}

.resource-card-media-wrap,
.resource-card > .resource-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #322229;
}

.resource-card-media,
.resource-card-media-wrap > .resource-card-media {
    display: block;
}

.resource-card-media img,
.resource-card-media-wrap img,
.resource-card-media video,
.resource-card-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-card-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    background: linear-gradient(135deg, #39232c, #bb405b);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.resource-card-floating-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.rc-badge,
.access-badge,
.account-status-chip,
.tier-saving-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: .64rem;
    font-weight: 800;
    line-height: 1.2;
}

.rc-badge-free,
.access-free {
    color: #087050;
    background: #dff7ec;
}

.rc-badge-membership,
.access-membership {
    color: var(--sf-danger-ink);
    background: var(--sf-danger-bg);
}

.access-service {
    color: #6f3d9b;
    background: #f0e7fb;
}

html[data-theme="dark"] .rc-badge-free,
html[data-theme="dark"] .access-free { color: #b8f3dd; background: #164538; }
html[data-theme="dark"] .access-service { color: #e5c8ff; background: #452b57; }

.resource-card-body {
    display: flex;
    min-width: 0;
    min-height: 154px;
    flex-direction: column;
    padding: 15px;
}

.resource-card-title,
.resource-card-body h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--sf-text-primary);
    font-size: .94rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: calc(1.35em * 2);
    white-space: normal;
    text-overflow: ellipsis;
}

.resource-card-title a,
.resource-card-link {
    overflow-wrap: anywhere;
}

.resource-card-title a:hover,
.resource-card-link:hover {
    color: var(--sf-accent);
}

.resource-card-category {
    margin: 7px 0 0;
    overflow: hidden;
    color: var(--sf-text-muted);
    font-size: .7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-card-footer-row {
    align-items: end;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
}

.resource-software-chips {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-wrap: wrap;
    gap: 4px;
}

.rc-soft-chip {
    gap: 4px;
    max-width: 100%;
    padding: 3px 5px;
    border: 1px solid var(--sf-border-subtle);
    border-radius: 6px;
    color: var(--sf-text-secondary);
    font-size: .58rem;
    font-weight: 700;
}

.resource-card-software-logo {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
}

.resource-download-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    color: var(--sf-text-muted);
    font-size: .64rem;
    white-space: nowrap;
}

.rc-dl-icon {
    stroke: currentColor;
}

.software-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.software-showcase-card {
    display: flex;
    min-width: 0;
    min-height: 118px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface);
}

.software-showcase-card:hover {
    border-color: var(--sf-accent);
    box-shadow: var(--sf-shadow-md);
}

.software-card-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
}

.software-card-info {
    display: flex;
    min-width: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    white-space: nowrap;
}

.software-card-info strong {
    max-width: 100%;
    overflow: hidden;
    color: var(--sf-text-primary);
    font-size: .78rem;
    text-overflow: ellipsis;
}

.software-card-info small {
    color: var(--sf-text-muted);
    font-size: .64rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.collection-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--sf-radius-medium);
    background: #36252c;
    color: #fff;
}

.collection-card img,
.collection-card-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-card-overlay { background: linear-gradient(180deg, rgba(20,10,15,.05), rgba(20,10,15,.88)); }
.collection-card-content { position: absolute; right: 16px; bottom: 15px; left: 16px; display: flex; flex-direction: column; gap: 4px; }
.collection-card-content strong { font-size: .92rem; }
.collection-card-content small { color: rgba(255,255,255,.78); font-size: .66rem; line-height: 1.45; }
.collection-card-content em { margin-top: 5px; color: #ffdbe0; font-size: .68rem; font-style: normal; font-weight: 800; }
.collection-card:hover { box-shadow: var(--sf-shadow-md); transform: translateY(-2px); }

.membership-promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--sf-radius-large);
    background: var(--sf-gradient-membership);
    color: #fff;
    box-shadow: var(--sf-shadow-lg);
}

.membership-promo-banner .eyebrow { color: #ffd8de; }
.membership-promo-banner h2 { margin: 0; color: #fff; font-size: clamp(1.3rem, 2.5vw, 2rem); letter-spacing: -.05em; }
.membership-promo-banner p:not(.eyebrow) { max-width: 650px; margin: 8px 0 0; color: rgba(255,255,255,.78); font-size: .78rem; }
.membership-promo-banner .storefront-button-primary { color: var(--sf-accent-dark) !important; background: #fff; border-color: #fff; box-shadow: none; white-space: nowrap; }
.membership-promo-banner .storefront-button-primary:hover { background: #ffe9ed; border-color: #ffe9ed; }

.services-hero-section,
.pricing-hero-wrap {
    padding: 52px 0 42px;
    background: var(--sf-gradient-hero-glow);
    border-bottom: 1px solid var(--sf-border-subtle);
}

.services-hero-inner,
.pricing-hero-inner {
    max-width: 760px;
}

.services-hero-title,
.pricing-main-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.06;
}

.services-hero-desc,
.pricing-sub-title {
    max-width: 670px;
    margin: 13px 0 0;
    color: var(--sf-text-secondary);
    font-size: .86rem;
    line-height: 1.7;
}

.catalog-search-form {
    width: min(760px, 100%);
    margin-top: 22px;
}

.catalog-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    display: grid;
    gap: 3px;
    max-height: min(360px, 50vh);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--sf-border-strong);
    border-radius: 12px;
    background: var(--sf-surface-elevated);
    box-shadow: var(--sf-shadow-lg);
}

.catalog-search-suggestion {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--sf-text-primary);
    background: transparent;
    font-size: .78rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
}

.catalog-search-suggestion::after {
    flex: 0 0 auto;
    color: var(--sf-text-muted);
    content: "›";
    font-size: 1rem;
    font-weight: 500;
}

.catalog-search-suggestion:hover,
.catalog-search-suggestion:focus-visible {
    color: var(--sf-accent);
    outline: 0;
    background: var(--sf-red-subtle);
}

.catalog-applied-section {
    margin-bottom: 0;
    border-bottom: 1px solid var(--sf-border-subtle);
    background: var(--sf-surface);
}

.catalog-breadcrumb-strip {
    padding-top: 16px;
    padding-bottom: 10px;
}

.catalog-applied-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
}

.active-filter-list {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.catalog-applied-label,
.active-filter-none,
.catalog-result-count {
    color: var(--sf-text-muted);
    font-size: .72rem;
}

.active-filter-chip {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    max-width: 230px;
    padding: 6px 9px;
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-pill);
    color: var(--sf-text-secondary);
    background: var(--sf-surface-soft);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-filter-clear { color: var(--sf-accent); font-size: .68rem; font-weight: 700; }
.catalog-result-tools { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.catalog-result-count strong { color: var(--sf-text-primary); }
.filter-mobile-trigger { display: none; min-height: 34px; padding: 7px 10px; font-size: .7rem; }

.catalog-body-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    align-items: start;
    gap: 26px;
    padding-top: 30px;
    padding-bottom: 80px;
}

.catalog-sidebar {
    position: sticky;
    top: 104px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface);
}

.catalog-sidebar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--sf-text-primary); font-size: .82rem; }
.catalog-sidebar-header button { display: none; border: 0; background: transparent; color: var(--sf-text-muted); font-size: 1.4rem; cursor: pointer; }
.catalog-filter-apply { display: none; width: 100%; margin-top: 22px; }
.filter-group + .filter-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--sf-border-subtle); }
.filter-group-header { margin-bottom: 9px; color: var(--sf-text-primary); font-size: .76rem; font-weight: 800; }
.filter-group-list { display: grid; gap: 2px; }
.filter-item { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 4px; color: var(--sf-text-secondary); font-size: .74rem; font-weight: 600; line-height: 1.35; }
.filter-item:hover, .filter-item.is-active { color: var(--sf-accent); }
.filter-item-left { display: inline-flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 7px; overflow-wrap: anywhere; white-space: normal; }
.filter-item-count { flex: 0 0 auto; color: var(--sf-text-muted); font-size: .62rem; font-weight: 500; line-height: 1.2; }
.filter-radio { width: 13px; height: 13px; flex: 0 0 13px; border: 1px solid var(--sf-border-strong); border-radius: 50%; }
.filter-radio.is-checked { border: 4px solid var(--sf-accent); }
.filter-software-logo { width: 18px; height: 18px; flex-basis: 18px; }
.filter-software-name { min-width: 0; overflow: hidden; flex: 1 1 auto; text-overflow: ellipsis; white-space: nowrap; }
.filter-sort-form select { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--sf-border); border-radius: 9px; background: var(--sf-field); color: var(--sf-text-primary); font-size: .7rem; }
.catalog-main-content { min-width: 0; }
.catalog-resource-grid { margin-top: 0; }
.catalog-pagination,
.account-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.catalog-pagination a, .catalog-pagination span, .account-pagination a { display: grid; min-width: 34px; height: 34px; place-items: center; padding-inline: 8px; border: 1px solid var(--sf-border); border-radius: 9px; color: var(--sf-text-secondary); background: var(--sf-surface); font-size: .7rem; }
.catalog-pagination a:hover, .catalog-pagination a[aria-current="page"], .account-pagination a:hover, .account-pagination a[aria-current="page"] { color: #fff; border-color: var(--sf-accent); background: var(--sf-accent); }

.resource-detail-section { padding: 28px 0 80px; }
.storefront-breadcrumb { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--sf-text-muted); font-size: .68rem; }
.storefront-breadcrumb a:hover { color: var(--sf-accent); }
.resource-detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); align-items: start; gap: 32px; margin-top: 24px; }
.resource-main-preview { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-large); background: #302027; box-shadow: var(--sf-shadow-lg); }
.resource-main-preview > img, .resource-main-preview > video, .resource-demo-player, .resource-demo-player iframe, .resource-demo-player video { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.resource-summary-panel { min-width: 0; padding: 24px; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-large); background: var(--sf-surface); box-shadow: var(--sf-shadow-md); }
.resource-panel-badges { margin-bottom: 13px; }
.resource-panel-title { margin: 0; overflow-wrap: anywhere; font-size: clamp(1.5rem, 3vw, 2.45rem); line-height: 1.08; }
.resource-panel-category { margin: 10px 0 0; color: var(--sf-text-muted); font-size: .78rem; }
.resource-compat-block { margin-top: 22px; }
.compat-label, .resource-facts dt { display: block; margin-bottom: 8px; color: var(--sf-text-muted); font-size: .68rem; font-weight: 700; }
.compat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.compat-chip { gap: 6px; padding: 6px 8px; border: 1px solid var(--sf-border); border-radius: 8px; color: var(--sf-text-secondary); background: var(--sf-surface-soft); font-size: .68rem; font-weight: 700; }
.compat-logo { width: 18px; height: 18px; flex-basis: 18px; }
.resource-facts { display: flex; gap: 12px; margin: 22px 0 0; }
.resource-facts div { padding: 10px 13px; border: 1px solid var(--sf-border); border-radius: 10px; background: var(--sf-surface-soft); }
.resource-facts dt { margin-bottom: 2px; }
.resource-facts dd { margin: 0; color: var(--sf-text-primary); font-size: .86rem; font-weight: 800; }
.resource-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 28px; }
.resource-panel-actions form { margin: 0; }
.resource-report-wrap { width: 100%; margin-top: 3px; }
.resource-report-link { color: var(--sf-text-muted); font-size: .68rem; text-decoration: underline; }
.resource-report-link:hover { color: var(--sf-accent); }
.resource-description-section { max-width: 850px; margin-top: 46px; padding-top: 36px; border-top: 1px solid var(--sf-border); }
.resource-description-section h2 { margin: 0; color: var(--sf-text-primary); font-size: 1.4rem; letter-spacing: -.04em; }
.resource-rendered-desc { margin-top: 16px; color: var(--sf-text-secondary); font-size: .84rem; line-height: 1.8; }
.resource-rendered-desc img { height: auto; }
.related-resources-section { margin-top: 58px; }
.detail-membership-banner { margin-top: 58px; }
.resource-video-watch-link { display: inline-block; margin-top: 9px; color: var(--sf-accent); font-size: .7rem; font-weight: 700; }

.services-listing-section { padding: 42px 0 64px; }
.services-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-block-card { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(0, 1.2fr); overflow: hidden; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-medium); background: var(--sf-surface); box-shadow: var(--sf-shadow-sm); }
.service-block-card:hover { border-color: var(--sf-border-strong); box-shadow: var(--sf-shadow-md); }
.service-block-media { min-height: 100%; background: #302027; }
.service-block-media img, .service-block-media .resource-card-placeholder { width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.service-block-content { display: flex; min-width: 0; flex-direction: column; padding: 20px; }
.service-block-title { margin: 0; overflow-wrap: anywhere; color: var(--sf-text-primary); font-size: 1.05rem; line-height: 1.25; }
.service-block-title a:hover { color: var(--sf-accent); }
.service-block-desc { display: -webkit-box; margin: 9px 0 0; overflow: hidden; color: var(--sf-text-secondary); font-size: .72rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.service-block-features { display: grid; gap: 5px; margin: 14px 0 0; padding: 0; color: var(--sf-text-muted); font-size: .68rem; list-style: none; }
.service-block-features li::before { margin-right: 5px; color: var(--sf-accent); content: "•"; }
.service-block-foot { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; }
.service-block-foot span { display: flex; flex-direction: column; gap: 3px; }
.service-block-foot small { color: var(--sf-text-muted); font-size: .62rem; }
.service-block-foot strong { color: var(--sf-accent); font-size: .95rem; }
.services-support-section { padding: 0 0 48px; }
.support-inline-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 25px; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-medium); background: var(--sf-surface); }
.support-inline-card h2 { margin: 0; color: var(--sf-text-primary); font-size: 1.1rem; }
.support-inline-links { display: flex; flex-wrap: wrap; gap: 8px; }
.support-inline-links a, .support-inline-links button { min-height: 36px; padding: 8px 12px; border: 1px solid var(--sf-border); border-radius: 9px; color: var(--sf-accent); background: var(--sf-surface-soft); font-size: .7rem; font-weight: 700; cursor: pointer; }
.pricing-cards-section { padding: 42px 0 64px; }
.pricing-cards-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px; }
.pricing-tier-card { position: relative; display: flex; min-width: 0; flex-direction: column; align-self: start; padding: 32px 28px 28px; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-medium); background: var(--sf-surface); box-shadow: var(--sf-shadow-sm); }
.pricing-tier-card:hover { border-color: var(--sf-accent); box-shadow: var(--sf-shadow-md); }
.pricing-tier-card.tier-card-featured { border: 1px solid rgba(255, 104, 71, .4); border-color: color-mix(in srgb, var(--sf-accent) 38%, var(--sf-border)); background: var(--sf-surface); box-shadow: var(--sf-shadow-sm); }
.pricing-tier-card.tier-card-current { background: var(--sf-surface); }
.tier-card-head { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; text-align: center; }
.tier-featured-tag { position: absolute; top: 16px; right: 16px; left: auto; transform: none; margin: 0; padding: 4px 8px; border: 1px solid rgba(255, 104, 71, .18); border-radius: 999px; color: var(--sf-accent); background: rgba(255, 104, 71, .1); font-size: .61rem; font-weight: 750; letter-spacing: .035em; line-height: 1.2; text-transform: uppercase; }
.tier-plan-icon { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; color: var(--sf-text-muted); }
.tier-plan-icon svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tier-card-featured .tier-plan-icon { color: var(--sf-accent); }
.tier-plan-icon[data-plan-icon="crown"] { color: #b88924; }
.tier-name { margin: 0; color: var(--sf-text-primary); font-size: 1.15rem; font-weight: 750; line-height: 1.3; text-align: center; }
.tier-subtitle { min-height: 43px; margin: 7px 0 0; color: var(--sf-text-muted); font-size: .7rem; line-height: 1.5; }
.tier-price-block { margin-top: 16px; text-align: center; }
.tier-price-row { display: flex; align-items: baseline; justify-content: center; gap: 5px; margin: 0; text-align: center; }
.tier-price-number { color: var(--sf-accent); font-size: 2rem; letter-spacing: -.06em; line-height: 1.15; }
.tier-price-usd { margin-top: 4px; color: var(--sf-text-secondary); font-size: .72rem; font-weight: 700; text-align: center; }
.tier-saving-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; min-height: 0; margin: 9px 0 0; color: var(--sf-text-muted); font-size: .68rem; line-height: 1.3; text-align: center; }
.tier-saving-row del { color: var(--sf-text-muted); font-size: .69rem; text-decoration-thickness: 1px; opacity: .82; }
.tier-old-price-usd { color: var(--sf-text-muted); }
.tier-saving-chip { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid transparent; border-radius: 999px; color: var(--sf-green); background: var(--sf-success-bg); font-size: .62rem; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.tier-download-label { margin: 16px 0 0; color: var(--sf-text-secondary); font-size: .7rem; font-weight: 700; }
.tier-card-divider { width: 100%; margin: 22px 0 20px; border: 0; border-top: 1px solid var(--sf-border); }
.tier-features-list { display: grid; width: 100%; max-width: 330px; flex: none; align-self: center; gap: 12px; margin: 0 auto; padding: 0; color: var(--sf-text-secondary); font-size: .78rem; line-height: 1.6; list-style: none; text-align: left; }
.tier-features-list li { display: grid; min-width: 0; grid-template-columns: 16px minmax(0, 1fr); align-items: start; column-gap: 9px; color: var(--sf-text-secondary); line-height: 1.6; text-align: left; overflow-wrap: normal; }
.tier-features-list li span { display: block; min-width: 0; }
.tier-features-list .tier-benefit-check { display: grid; width: 16px; height: 16px; margin-top: 3px; place-items: center; border-radius: 50%; color: var(--sf-accent); background: color-mix(in srgb, var(--sf-accent) 13%, transparent); }
.tier-features-list .tier-benefit-check svg { display: block; width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tier-features-list .tier-benefit-copy { text-align: left; }
.tier-action-wrap { display: flex; width: 100%; margin-top: 32px; padding-top: 0; }
.tier-action-wrap > * { width: 100%; }
.tier-action-wrap .pricing-tier-cta { min-height: 48px; justify-content: center; text-align: center; }
.tier-action-wrap .storefront-button::after { content: none !important; }
.pricing-sub-title { max-width: 48rem; margin-inline: auto; text-align: center; }
@media (max-width: 1024px) {
    .pricing-cards-container { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
}
.pricing-payment-section { padding: 0 0 62px; }
.pricing-payment-section h2 { margin: 0; color: var(--sf-text-primary); font-size: 1.25rem; }
.payment-method-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.payment-method-card { display: flex; min-width: 150px; flex-direction: column; gap: 3px; padding: 13px 15px; border: 1px solid var(--sf-border); border-radius: 11px; background: var(--sf-surface); }
.payment-method-card strong { color: var(--sf-text-primary); font-size: .75rem; }
.payment-method-card small { color: var(--sf-text-muted); font-size: .62rem; }

.auth-page-section { padding: 54px 0 74px; }
.auth-shell-wrapper { display: flex; justify-content: center; }
.auth-split-card { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(340px, 1.1fr); width: min(880px, 100%); overflow: hidden; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-large); background: var(--sf-surface); box-shadow: var(--sf-shadow-lg); }
.auth-brand-panel { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 44px 34px; background: var(--sf-gradient-membership); color: #fff; }
.auth-brand-visual { width: min(210px, 100%); height: 64px; margin-bottom: 36px; object-fit: cover; object-position: center; }
.auth-brand-panel .auth-eyebrow { color: #ffd9df; }
.auth-brand-panel h2 { margin: 0; color: #fff; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.06em; line-height: 1.08; }
.auth-brand-panel > p:not(.auth-eyebrow) { margin: 13px 0 0; color: rgba(255,255,255,.8); font-size: .78rem; line-height: 1.7; }
.auth-form-panel { min-width: 0; padding: 44px 42px; background: var(--sf-surface); }
.auth-form-header h1 { margin: 0; font-size: 1.9rem; line-height: 1.1; }
.auth-form-header > p:not(.auth-eyebrow) { margin: 8px 0 0; color: var(--sf-text-muted); font-size: .76rem; }
.auth-divider, .auth-divider-line { display: flex; align-items: center; gap: 12px; margin: 24px 0 17px; color: var(--sf-text-muted); font-size: .68rem; text-align: center; }
.auth-divider::before, .auth-divider::after, .auth-divider-line::before, .auth-divider-line::after { height: 1px; flex: 1; background: var(--sf-border); content: ""; }
.google-auth-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid var(--sf-border); border-radius: 10px; color: var(--sf-text-primary); background: var(--sf-surface); font-size: .76rem; font-weight: 700; }
.google-auth-button:hover { border-color: var(--sf-accent); background: var(--sf-red-subtle); }
.google-auth-button > span { color: #4285f4; font-size: 1.05rem; font-weight: 900; }
.auth-credentials-form { display: grid; gap: 16px; }
.auth-input-group { display: grid; gap: 7px; }
.auth-input-group label, .auth-form label > span, .account-form label > span { color: var(--sf-text-secondary); font-size: .7rem; font-weight: 700; }
.auth-input-group input, .auth-form input, .auth-form select, .auth-form textarea, .account-form input, .account-form select, .account-form textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--sf-border); border-radius: 9px; outline: 0; background: var(--sf-field); color: var(--sf-text-primary); font-size: .78rem; }
.auth-input-group input:focus, .auth-form input:focus, .account-form input:focus { border-color: var(--sf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-accent) 16%, transparent); }
.input-with-icon, .password-control { position: relative; display: flex; align-items: center; }
.input-with-icon input, .password-control input { padding-right: 60px; }
.btn-pwd-toggle, .password-control button { position: absolute; right: 7px; min-width: 38px; min-height: 29px; padding: 4px 7px; border: 0; border-radius: 7px; color: var(--sf-accent); background: var(--sf-red-subtle); font-size: .64rem; font-weight: 800; cursor: pointer; }
.auth-row-options { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.auth-checkbox-label { display: inline-flex; align-items: flex-start; gap: 7px; color: var(--sf-text-secondary); font-size: .68rem; line-height: 1.45; }
.auth-checkbox-label input { width: 15px; height: 15px; min-height: 15px; flex: 0 0 15px; accent-color: var(--sf-accent); }
.auth-link-red, .auth-link-red-bold, .auth-legal-link { color: var(--sf-accent); }
.auth-link-red, .auth-link-red-bold { font-size: .68rem; font-weight: 700; }
.auth-legal-footer { margin: 18px 0 0; color: var(--sf-text-muted); font-size: .63rem; line-height: 1.7; text-align: center; }
.auth-switch-prompt { margin: 20px 0 0; color: var(--sf-text-muted); font-size: .7rem; text-align: center; }
.field-hint { color: var(--sf-text-muted); font-size: .63rem; }
.field-error { color: var(--sf-danger-ink); font-size: .65rem; }
.auth-alert { margin: 0 0 15px; padding: 11px 13px; border: 1px solid transparent; border-radius: 9px; font-size: .7rem; line-height: 1.5; }
.auth-alert-success { color: var(--sf-success-ink); border-color: color-mix(in srgb, var(--sf-success-ink) 25%, transparent); background: var(--sf-success-bg); }
.auth-alert-warning { color: var(--sf-warning-ink); border-color: color-mix(in srgb, var(--sf-warning-ink) 25%, transparent); background: var(--sf-warning-bg); }
.auth-alert-error { color: var(--sf-danger-ink); border-color: color-mix(in srgb, var(--sf-danger-ink) 25%, transparent); background: var(--sf-danger-bg); }

.account-section { padding: 42px 0 84px; }
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 28px; }
.account-sidebar { position: sticky; top: 104px; min-width: 0; }
.account-sidebar-head { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; }
.account-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; color: #fff; background: var(--sf-accent); font-size: .9rem; font-weight: 800; }
.account-sidebar-head div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.account-sidebar-head strong { overflow: hidden; color: var(--sf-text-primary); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.account-sidebar-head span { overflow: hidden; color: var(--sf-text-muted); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.account-nav-card { display: grid; gap: 3px; padding: 8px; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-medium); background: var(--sf-surface); }
.account-nav-item { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 39px; padding: 9px 10px; border: 0; border-radius: 9px; color: var(--sf-text-secondary); background: transparent; font-size: .7rem; text-align: left; cursor: pointer; }
.account-nav-item svg { width: 16px; height: 16px; flex: 0 0 16px; }
.account-nav-item:hover, .account-nav-item.is-active { color: var(--sf-accent); background: var(--sf-red-subtle); }
.account-logout-form { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--sf-border-subtle); }
.account-nav-logout-btn { color: var(--sf-text-muted); }
.account-main { min-width: 0; }
.account-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.account-page-heading h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.08; }
.account-page-heading p:not(.account-eyebrow) { margin: 8px 0 0; color: var(--sf-text-muted); font-size: .75rem; }
.account-page-heading-compact { margin-bottom: 20px; }
.account-membership-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 22px; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-medium); background: var(--sf-surface); }
.account-membership-card.is-active { border-color: color-mix(in srgb, var(--sf-accent) 38%, var(--sf-border)); background: var(--sf-surface-elevated); }
.account-card-kicker, .account-membership-meta span, .account-metric-label, .account-detail-grid span { display: block; color: var(--sf-text-muted); font-size: .65rem; font-weight: 700; }
.account-membership-card h2 { margin: 5px 0 0; color: var(--sf-text-primary); font-size: 1.15rem; }
.account-membership-card p { margin: 6px 0 0; color: var(--sf-text-secondary); font-size: .7rem; }
.account-membership-meta { display: flex; min-width: 100px; flex-direction: column; gap: 4px; }
.account-membership-meta strong { color: var(--sf-text-primary); font-size: .78rem; }
.account-metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.account-metric-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; min-width: 0; gap: 6px 10px; padding: 17px; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-medium); background: var(--sf-surface); }
.account-metric-card strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: block; margin-top: 0; overflow-wrap: normal; color: var(--sf-text-primary); font-size: 1.25rem; letter-spacing: -.04em; white-space: nowrap; }
.account-metric-card small { grid-column: 1; display: block; margin-top: 0; color: var(--sf-text-muted); font-size: .61rem; line-height: 1.35; }
.account-content-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); gap: 16px; margin-top: 16px; }
.account-panel { min-width: 0; padding: 21px; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-medium); background: var(--sf-surface); }
.account-panel-spaced { margin-top: 16px; }
.account-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.account-panel-heading h2, .account-setting-block h2, .account-linked-block h2 { margin: 0; color: var(--sf-text-primary); font-size: .98rem; }
.account-panel-heading a { color: var(--sf-accent); font-size: .68rem; font-weight: 700; }
.account-compact-list, .account-quick-links, .account-claim-list, .account-payment-list, .account-wallet-list { display: grid; gap: 8px; }
.account-compact-row { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--sf-border-subtle); }
.account-compact-row:last-child { border-bottom: 0; }
.account-compact-row > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.account-compact-row strong { overflow: hidden; color: var(--sf-text-primary); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.account-compact-row small { color: var(--sf-text-muted); font-size: .61rem; }
.account-compact-row > a { color: var(--sf-accent); font-size: 1rem; }
.account-compact-mark, .account-claim-mark { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 9px; color: var(--sf-accent); background: var(--sf-red-subtle); }
.account-compact-mark svg, .account-claim-mark svg { width: 16px; height: 16px; }
.account-quick-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--sf-border-subtle); color: var(--sf-text-secondary); font-size: .72rem; }
.account-quick-links a:last-child { border-bottom: 0; }
.account-quick-links a:hover { color: var(--sf-accent); }
.account-quick-links b { color: var(--sf-accent); }
.account-empty-state { padding: 25px 10px; color: var(--sf-text-muted); text-align: center; }
.account-empty-state h3 { margin: 0; color: var(--sf-text-primary); font-size: .85rem; }
.account-empty-state p { margin: 7px 0 0; font-size: .7rem; }
.account-empty-state .storefront-button { margin-top: 16px; }
.account-claim-row, .account-payment-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--sf-border-subtle); }
.account-claim-row:last-child, .account-payment-row:last-child { border-bottom: 0; }
.account-claim-main, .account-payment-row > div { min-width: 0; }
.account-claim-main h2, .account-payment-row h2 { margin: 0; overflow-wrap: anywhere; color: var(--sf-text-primary); font-size: .78rem; }
.account-claim-main p, .account-claim-main small, .account-payment-row p { display: block; margin: 4px 0 0; color: var(--sf-text-muted); font-size: .63rem; line-height: 1.5; }
.account-claim-main small strong { color: var(--sf-text-secondary); }
.account-claim-action { justify-self: end; }
.account-claim-action form { margin: 0; }
.account-claim-action .storefront-button { min-height: 35px; padding: 8px 10px; font-size: .63rem; }
.account-muted { color: var(--sf-text-muted); font-size: .7rem; }
.account-payment-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.account-payment-row > strong { color: var(--sf-text-primary); font-size: .76rem; white-space: nowrap; }
.account-status-chip { color: var(--sf-green); background: var(--sf-success-bg); white-space: nowrap; }
.account-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.account-detail-grid > div { min-width: 0; padding: 14px; border: 1px solid var(--sf-border); border-radius: 10px; background: var(--sf-surface-soft); }
.account-detail-grid strong { display: block; margin-top: 5px; overflow-wrap: anywhere; color: var(--sf-text-primary); font-size: .8rem; }
.account-inline-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px; border: 1px solid color-mix(in srgb, var(--sf-accent) 25%, var(--sf-border)); border-radius: 11px; background: var(--sf-red-subtle); }
.account-inline-notice strong { color: var(--sf-text-primary); font-size: .72rem; }
.account-inline-notice span { flex: 1; color: var(--sf-text-secondary); font-size: .65rem; }
.account-inline-notice .storefront-button { min-height: 34px; padding: 8px 10px; font-size: .64rem; white-space: nowrap; }
.account-wallet-balance { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 22px; border-radius: var(--sf-radius-medium); background: var(--sf-gradient-membership); color: #fff; }
.account-wallet-balance span { color: rgba(255,255,255,.75); font-size: .7rem; }
.account-wallet-balance strong { font-size: 1.6rem; letter-spacing: -.05em; }
.account-wallet-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--sf-border-subtle); }
.account-wallet-list article:last-child { border-bottom: 0; }
.account-wallet-list article > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.account-wallet-list article strong { overflow-wrap: anywhere; color: var(--sf-text-primary); font-size: .7rem; }
.account-wallet-list article small { color: var(--sf-text-muted); font-size: .61rem; }
.account-wallet-list article > strong.is-credit { color: var(--sf-green); white-space: nowrap; }
.account-wallet-list article > strong.is-debit { color: var(--sf-danger-ink); white-space: nowrap; }
.affiliate-panel { max-width: 920px; }
.affiliate-copy { margin: 0 0 16px; color: var(--sf-text-secondary); font-size: .72rem; line-height: 1.6; }
.affiliate-link-row { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.affiliate-link-row input { min-width: 0; flex: 1; height: 38px; padding: 8px 10px; border: 1px solid var(--sf-border); border-radius: 9px; color: var(--sf-text-secondary); background: var(--sf-surface-soft); font: inherit; font-size: .68rem; }
.affiliate-link-row .storefront-button { flex: 0 0 auto; min-height: 38px; padding: 9px 12px; }
.affiliate-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.affiliate-recent-list { display: grid; gap: 0; }
.affiliate-recent-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sf-border-subtle); }
.affiliate-recent-list article:last-child { border-bottom: 0; }
.affiliate-recent-list article > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.affiliate-recent-list article strong { overflow-wrap: anywhere; color: var(--sf-text-primary); font-size: .72rem; }
.affiliate-recent-list article small { color: var(--sf-text-muted); font-size: .61rem; }
.affiliate-recent-list article > span { color: var(--sf-text-secondary); font-size: .67rem; white-space: nowrap; }
.affiliate-recent-list article > strong.is-credit { color: var(--sf-green); white-space: nowrap; }
.account-profile-panel { max-width: 780px; }
.account-linked-block, .account-setting-block { margin-top: 25px; padding-top: 24px; border-top: 1px solid var(--sf-border-subtle); }
.account-linked-block h2 { margin-bottom: 13px; }
.account-link-statuses { display: flex; flex-wrap: wrap; gap: 8px; }
.account-link-statuses span { padding: 7px 9px; border: 1px solid var(--sf-border); border-radius: 8px; color: var(--sf-text-muted); font-size: .66rem; }
.account-link-statuses span.is-linked { color: var(--sf-green); border-color: color-mix(in srgb, var(--sf-green) 30%, var(--sf-border)); background: var(--sf-success-bg); }
.account-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.account-course-card { min-width: 0; overflow: hidden; border: 1px solid var(--sf-border); border-radius: 11px; background: var(--sf-surface); }
.account-course-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.account-course-card h2, .account-course-card p { margin-inline: 13px; }
.account-course-card h2 { margin-top: 13px; margin-bottom: 0; overflow-wrap: anywhere; color: var(--sf-text-primary); font-size: .75rem; }
.account-course-card p { margin-top: 5px; color: var(--sf-text-muted); font-size: .62rem; }
.account-course-card form { margin: 13px; }
.account-course-card .storefront-button { width: 100%; min-height: 35px; padding: 8px; font-size: .63rem; }
.account-form { display: grid; max-width: 460px; gap: 13px; margin-top: 14px; }
.account-form label { display: grid; gap: 7px; }
.account-setting-block > p { margin: 8px 0 0; color: var(--sf-text-muted); font-size: .7rem; line-height: 1.6; }
.growth-preferences { display: grid; max-width: 560px; gap: 11px; margin-top: 14px; }
.growth-preferences label { display: flex; align-items: flex-start; gap: 8px; color: var(--sf-text-secondary); font-size: .7rem; line-height: 1.5; }
.growth-preferences input { width: 15px; height: 15px; flex: 0 0 15px; accent-color: var(--sf-accent); }

.storefront-footer { margin-top: auto; border-top: 1px solid var(--sf-border); background: var(--sf-surface); color: var(--sf-text-secondary); }
.storefront-footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 52px; padding-block: 44px; }
.storefront-footer-brand { min-width: 0; }
.storefront-footer-brand-lockup { width: 148px; height: 48px; overflow: hidden; }
.storefront-footer-brand-logo { width: 148px; height: 148px; object-fit: contain; object-position: center; transform: translateY(-50px); }
.storefront-footer-description { max-width: 570px; margin: 17px 0 0; color: var(--sf-text-muted); font-size: .7rem; line-height: 1.75; }
.storefront-footer-links { min-width: 0; }
.storefront-footer-links-title { display: block; margin-bottom: 14px; color: var(--sf-text-primary); font-size: .76rem; }
.storefront-footer-contact-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.storefront-social-link { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 10px; border: 1px solid var(--sf-border); border-radius: 9px; color: var(--sf-text-secondary); background: var(--sf-surface-soft); font-size: .67rem; font-weight: 700; }
.storefront-social-link:hover { color: var(--sf-accent); border-color: var(--sf-accent); background: var(--sf-red-subtle); }
.storefront-social-icon { display: inline-flex; width: 15px; height: 15px; }
.storefront-social-icon svg { width: 100%; height: 100%; fill: currentColor; }
.storefront-footer-legal { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.storefront-footer-legal a { color: var(--sf-text-muted); font-size: .68rem; }
.storefront-footer-legal a:hover, .storefront-footer-bottom-nav a:hover { color: var(--sf-accent); }
.storefront-footer-bottom { border-top: 1px solid var(--sf-border-subtle); }
.storefront-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; }
.storefront-footer-copyright { margin: 0; color: var(--sf-text-muted); font-size: .64rem; }
.storefront-footer-bottom-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.storefront-footer-bottom-nav a { color: var(--sf-text-muted); font-size: .64rem; }

.storefront-state { padding: 44px 20px; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-medium); background: var(--sf-surface); color: var(--sf-text-muted); text-align: center; }
.storefront-state h1, .storefront-state h2 { margin: 10px 0 0; color: var(--sf-text-primary); font-size: 1.2rem; }
.storefront-state p { font-size: .75rem; }
.storefront-dialog::backdrop { background: rgba(20, 8, 13, .58); backdrop-filter: blur(4px); }
.storefront-dialog-card { position: relative; width: min(520px, calc(100vw - 32px)); padding: 26px; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-medium); background: var(--sf-surface); color: var(--sf-text-primary); box-shadow: var(--sf-shadow-lg); }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: var(--sf-text-muted); font-size: 1.4rem; cursor: pointer; }
.storefront-dialog-card h2 { margin: 8px 0 0; font-size: 1.25rem; }
.storefront-dialog-card p { color: var(--sf-text-secondary); font-size: .75rem; line-height: 1.6; }
.storefront-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.storefront-dialog-actions .storefront-button { flex: 1; }
.membership-payment-methods { display: grid; gap: 7px; margin-top: 16px; padding: 0; border: 0; }
.membership-payment-methods legend { margin-bottom: 8px; color: var(--sf-text-secondary); font-size: .7rem; font-weight: 700; }
.membership-payment-method-option { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--sf-border); border-radius: 9px; font-size: .7rem; }

@media (max-width: 1199px) {
    .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .software-showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1025px) and (max-width: 1400px) {
    .storefront-nav-secondary > a:not(.storefront-nav-cta) { padding-inline: 6px; }
}

@media (max-width: 1024px) {
    .storefront-header-inner { display: flex; gap: 16px; }
    .storefront-header-actions { display: block; margin-left: auto; }
    .storefront-mobile-toggle { display: grid; width: 40px; height: 40px; place-items: center; gap: 4px; padding: 10px; border: 1px solid var(--sf-border); border-radius: 10px; background: var(--sf-surface); cursor: pointer; }
    .storefront-mobile-toggle span { display: block; width: 17px; height: 2px; background: var(--sf-text-primary); }
    .storefront-nav { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; left: auto; display: none; width: min(350px, 88vw); min-height: 100vh; margin: 0; padding: 92px 22px 24px; flex-direction: column; align-items: stretch; gap: 4px; overflow-y: auto; border-left: 1px solid var(--sf-border); background: var(--sf-surface); box-shadow: var(--sf-shadow-lg); transform: translateX(105%); transition: transform .2s ease; }
    .storefront-nav.is-open { display: flex; transform: translateX(0); }
    .storefront-nav-primary, .storefront-nav-secondary { display: contents; }
    .storefront-nav-backdrop:not([hidden]) { position: fixed; z-index: 90; inset: 0; display: block; background: rgba(25, 12, 17, .5); }
    .storefront-nav a:not(.storefront-nav-cta) { padding: 12px; font-size: .86rem; }
    .storefront-nav-divider { width: auto; height: 1px; margin: 12px 0; }
    .storefront-nav-cta { margin-top: 10px; text-align: center; }
    .storefront-nav-tools { margin-top: auto; padding-top: 20px; justify-content: flex-start; }
    html.storefront-menu-open { overflow: hidden; }
    .filter-mobile-trigger { display: inline-flex; }
    .catalog-body-layout { display: block; }
    .catalog-sidebar { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); padding: 24px 20px; overflow-y: auto; border: 0; border-left: 1px solid var(--sf-border); border-radius: 0; box-shadow: var(--sf-shadow-lg); transform: translateX(105%); transition: transform .2s ease; }
    .catalog-sidebar.is-open { transform: translateX(0); }
    .catalog-sidebar-header button { display: block; }
    .catalog-filter-apply { display: flex; justify-content: center; }
    .catalog-filter-backdrop:not([hidden]) { position: fixed; z-index: 90; inset: 0; display: block; background: rgba(25, 12, 17, .5); }
    .catalog-sidebar[aria-hidden="true"] { visibility: visible; }
    .catalog-main-content { margin-top: 24px; }
}

@media (max-width: 760px) {
    .storefront-shell { width: min(100% - 28px, 1240px); }
    .storefront-brand__tagline { display: none; }
    .storefront-discovery-hero::before, .storefront-discovery-hero::after { display: none; }
    .storefront-discovery-hero { padding: 46px 0 34px; }
    .discovery-hero-inner h1 { font-size: clamp(2rem, 11vw, 3.1rem); }
    .discovery-search, .catalog-search-form { min-height: 50px; }
    .discovery-search .storefront-button, .catalog-search-form .storefront-button { min-height: 38px; padding-inline: 12px; }
    .hero-stat-strip { align-items: stretch; flex-direction: column; gap: 9px; width: 100%; padding: 13px 16px; }
    .hero-stat-strip span + span { padding: 9px 0 0; border-top: 1px solid var(--sf-border); border-left: 0; }
    .categories-showcase-grid, .resource-grid, .software-showcase-grid, .collections-grid, .services-card-grid, .account-content-grid { grid-template-columns: 1fr; }
    .categories-showcase-grid { gap: 10px; }
    .category-showcase-card { min-height: 150px; }
    .home-section { margin-top: 52px; }
    .resource-grid { gap: 13px; }
    .resource-card-body { min-height: 145px; }
    .software-showcase-grid { gap: 10px; }
    .software-showcase-card { min-height: 100px; }
    .collection-card { min-height: 175px; }
    .membership-promo-banner, .support-inline-card { align-items: flex-start; flex-direction: column; padding: 22px; }
    .membership-promo-banner .storefront-button, .support-inline-links { width: 100%; }
    .support-inline-links a, .support-inline-links button { flex: 1; text-align: center; }
    .catalog-applied-inner { align-items: flex-start; flex-direction: column; padding-block: 13px; }
    .catalog-result-tools { width: 100%; justify-content: space-between; }
    .resource-detail-section { padding-top: 20px; }
    .resource-detail-grid { grid-template-columns: 1fr; gap: 16px; }
    .resource-summary-panel { padding: 20px; }
    .resource-panel-actions > .resource-btn-primary, .resource-panel-actions > form, .resource-panel-actions > form .resource-btn-primary { flex: 1; }
    .resource-panel-actions > .resource-btn-outline { flex: 1; }
    .resource-description-section { margin-top: 35px; padding-top: 26px; }
    .service-block-card { grid-template-columns: 1fr; }
    .service-block-media { min-height: 180px; }
    .service-block-media img, .service-block-media .resource-card-placeholder { min-height: 180px; }
    .service-block-foot { align-items: stretch; flex-direction: column; }
    .service-block-foot .storefront-button { width: 100%; }
    .pricing-cards-section { padding-top: 30px; }
    .pricing-cards-container { grid-template-columns: 1fr; }
    .auth-page-section { padding: 28px 0 52px; }
    .auth-split-card { grid-template-columns: 1fr; }
    .auth-brand-panel { padding: 30px 25px; }
    .auth-brand-visual { width: 155px; height: 48px; margin-bottom: 25px; }
    .auth-form-panel { padding: 30px 25px; }
    .account-section { padding-top: 26px; }
    .account-layout { grid-template-columns: 1fr; gap: 18px; }
    .account-sidebar { position: static; }
    .account-sidebar-head { padding-inline: 0; }
    .account-nav-card { display: flex; flex-wrap: wrap; gap: 4px; }
    .account-nav-item { width: auto; flex: 1 1 calc(50% - 4px); }
    .account-logout-form { width: 100%; margin-top: 3px; }
    .account-logout-form .account-nav-item { width: 100%; }
    .account-page-heading { align-items: stretch; flex-direction: column; }
    .account-page-heading > .storefront-button { width: 100%; }
    .account-membership-card { grid-template-columns: 1fr; gap: 13px; }
    .account-membership-meta { min-width: 0; }
    .account-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-claim-row, .account-payment-row { grid-template-columns: auto minmax(0, 1fr); }
    .account-claim-action, .account-payment-row > strong, .account-payment-row > .account-status-chip { grid-column: 2; justify-self: start; }
    .account-payment-row > strong { grid-row: 2; }
    .account-payment-row > .account-status-chip { grid-row: 3; }
    .account-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .affiliate-link-row { align-items: stretch; flex-direction: column; }
    .affiliate-link-row .storefront-button { width: 100%; }
    .affiliate-recent-list article { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
    .affiliate-recent-list article > span,
    .affiliate-recent-list article > strong,
    .affiliate-recent-list article > small { grid-column: 2; justify-self: end; }
    .affiliate-recent-list article > strong { grid-row: 1; }
    .affiliate-recent-list article > span { grid-row: 2; }
    .affiliate-recent-list article > small { grid-row: 3; }
    .account-inline-notice { align-items: flex-start; flex-direction: column; }
    .account-inline-notice .storefront-button { width: 100%; }
    .account-course-grid { grid-template-columns: 1fr; }
    .storefront-footer-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 34px; }
    .storefront-footer-bottom-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 14px; }
}

@media (max-width: 420px) {
    .discovery-search { flex-wrap: wrap; padding: 7px; }
    .discovery-search input { flex-basis: calc(100% - 34px); }
    .discovery-search .storefront-button { width: 100%; }
    .auth-row-options { align-items: flex-start; flex-direction: column; }
    .account-metrics-grid { gap: 8px; }
    .account-metric-card { padding: 13px; }
    .account-metric-card strong { font-size: 1.03rem; }
    .account-nav-item { flex-basis: 100%; }
}

/* ============================================================================
   STOREFRONT FOLLOW-UP POLISH — semantic artwork, readable controls, and
   presentation-only catalog mapping refinements.
   ============================================================================ */

.storefront-brand {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.storefront-brand__lockup {
    width: 126px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
    object-position: center;
}

.storefront-brand__copy {
    display: block;
    width: 126px;
    line-height: 1;
    text-align: center;
}

.storefront-brand__tagline {
    display: block;
    margin-top: 2px;
    font-size: .58rem;
    line-height: 1.2;
}

.software-logo-capcut {
    filter: brightness(0) saturate(100%);
}

html[data-theme="dark"] .software-logo-capcut {
    filter: none;
}

.hero-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
}

.hero-stat-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 4px 16px;
    text-align: left;
}

.hero-stat-strip > .hero-stat-item + .hero-stat-item {
    padding-left: 16px;
    border-left: 1px solid var(--sf-border);
}

.hero-stat-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--sf-accent) 24%, var(--sf-border));
    border-radius: 9px;
    color: var(--sf-accent);
    background: var(--sf-red-subtle);
}

.hero-stat-icon svg {
    width: 17px;
    height: 17px;
}

.hero-stat-copy {
    min-width: 0;
    color: var(--sf-text-secondary);
    line-height: 1.3;
}

.hero-stat-copy strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--sf-text-secondary);
    font-size: .7rem;
}

.hero-stat-strip .hero-stat-item span + span {
    padding: 0;
    border: 0;
}

.category-card-art {
    z-index: 0;
    background: #35252c;
}

.category-card-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
}

.category-card-art::before,
.category-card-art > span {
    display: none !important;
}

.category-card-art::after {
    z-index: 1;
    background: linear-gradient(180deg, rgba(18, 10, 15, .04), rgba(18, 10, 15, .86));
}

.category-card-copy {
    z-index: 2;
}

.services-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.service-block-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    padding: 0;
}

.service-block-media {
    display: block;
    width: 100%;
    min-height: 0;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.service-block-media img,
.service-block-media .resource-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.service-block-media .resource-card-placeholder,
.digital-service-card > .resource-card-media .resource-card-placeholder,
.digital-service-visual .digital-service-placeholder {
    display: grid;
    place-items: center;
    padding: 20px;
    text-align: center;
}

.digital-service-card > .resource-card-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
}

.digital-service-card > .resource-card-media img,
.digital-service-card > .resource-card-media .resource-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.service-block-title a {
    display: block;
    color: var(--sf-text-primary);
}

.service-block-price-old {
    color: var(--sf-text-muted);
    font-size: .65rem;
    text-decoration: line-through;
}

.service-catalog-note {
    margin: 17px 0 0;
    color: var(--sf-text-secondary);
    font-size: .72rem;
    line-height: 1.6;
}

.digital-service-detail {
    padding: 28px 0 80px;
}

.digital-service-detail-aside,
.digital-service-visual,
.resource-detail-copy {
    min-width: 0;
}

.digital-service-visual {
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-large);
    background: var(--sf-surface-soft);
    box-shadow: var(--sf-shadow-lg);
}

.digital-service-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.digital-service-visual .digital-service-placeholder {
    width: 100%;
    height: auto;
    min-height: 280px;
    aspect-ratio: 16 / 10;
}

.resource-detail-copy {
    padding: 24px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-large);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-md);
}

.resource-detail-copy h1 {
    margin: 14px 0 0;
    overflow-wrap: anywhere;
    color: var(--sf-text-primary);
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.digital-service-description {
    margin: 11px 0 0;
    color: var(--sf-text-secondary);
    font-size: .78rem;
    line-height: 1.7;
}

.digital-service-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0 0;
}

.digital-service-price del,
.digital-service-card-price del {
    color: var(--sf-text-muted);
    font-size: .75em;
    text-decoration-thickness: 1px;
}

.digital-service-price strong,
.digital-service-card-price strong {
    color: var(--sf-accent);
}

.digital-service-price strong {
    font-size: 1.35rem;
}

.digital-service-benefits {
    display: grid;
    gap: 9px;
    margin: 21px 0 0;
    padding: 0;
    color: var(--sf-text-secondary);
    font-size: .74rem;
    line-height: 1.5;
    list-style: none;
}

.digital-service-benefits li {
    display: flex;
    gap: 8px;
}

.digital-service-benefits li::before {
    flex: 0 0 auto;
    color: var(--sf-accent);
    content: "✓";
    font-weight: 800;
}

.digital-service-safety {
    margin: 19px 0 0;
    color: var(--sf-text-muted);
    font-size: .68rem;
    line-height: 1.6;
}

.service-contact-block {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--sf-border-subtle);
    color: var(--sf-text-secondary);
    font-size: .72rem;
}

.service-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-contact-actions .storefront-social-link {
    flex: 0 1 auto;
}

.digital-service-detail-cta,
.resource-detail-copy > form,
.resource-detail-copy > .storefront-button {
    margin-top: 22px;
}

.resource-detail-copy > form .storefront-button,
.digital-service-detail-cta {
    width: 100%;
}

.digital-service-usage-guide {
    margin-top: 16px;
    padding: 19px 21px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface);
}

.digital-service-usage-guide h2 {
    margin: 0;
    color: var(--sf-text-primary);
    font-size: .9rem;
}

.digital-service-usage-guide ol {
    display: grid;
    gap: 8px;
    margin: 13px 0 0;
    padding-left: 21px;
    color: var(--sf-text-secondary);
    font-size: .7rem;
    line-height: 1.55;
}

.pricing-cards-container {
    grid-auto-rows: auto;
}

.pricing-tier-card {
    height: auto;
}

.tier-price-number {
    white-space: nowrap;
}

.pricing-heading-line {
    display: block;
}

.pricing-hero-inner {
    max-width: 1160px;
}

.google-auth-button {
    width: 100%;
}

.google-auth-button > span {
    display: inline-grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border: 1px solid var(--sf-border);
    border-radius: 50%;
    background: var(--sf-surface-soft);
    font-size: .88rem;
    line-height: 1;
}

.google-auth-button-disabled {
    cursor: not-allowed;
    opacity: .78;
}

.storefront-social-link {
    min-width: 0;
}

.storefront-social-icon {
    flex: 0 0 15px;
}

.storefront-social-zalo .storefront-social-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    color: #0b75d1;
}

.storefront-social-zalo .storefront-social-label {
    display: inline;
}

.storefront-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.storefront-footer-contact-grid,
.storefront-footer-legal {
    justify-content: center;
}

html[data-theme="dark"] {
    --sf-text-secondary: #ead9dd;
    --sf-text-muted: #c4adb5;
    --sf-border: #5a4049;
    --sf-border-subtle: #403038;
    --sf-border-strong: #795762;
    --sf-surface-soft: #2a1f24;
    --sf-panel-soft: #2a1f24;
    --sf-field: #1d171a;
}

html[data-theme="dark"] .service-block-title a,
html[data-theme="dark"] .pricing-tier-card .tier-name,
html[data-theme="dark"] .pricing-tier-card .tier-features-list,
html[data-theme="dark"] .auth-form-header > p:not(.auth-eyebrow),
html[data-theme="dark"] .storefront-footer-description,
html[data-theme="dark"] .storefront-footer-legal a,
html[data-theme="dark"] .storefront-footer-bottom-nav a,
html[data-theme="dark"] .storefront-footer-copyright {
    color: var(--sf-text-secondary);
}

html[data-theme="dark"] .service-block-card,
html[data-theme="dark"] .pricing-tier-card,
html[data-theme="dark"] .auth-split-card,
html[data-theme="dark"] .auth-form-panel,
html[data-theme="dark"] .storefront-footer {
    border-color: var(--sf-border);
}

html[data-theme="dark"] .pricing-tier-card {
    background: #2b2025;
}

html[data-theme="dark"] .tier-saving-row,
html[data-theme="dark"] .tier-subtitle,
html[data-theme="dark"] .tier-download-label,
html[data-theme="dark"] .service-block-foot small {
    color: #cfb9c0;
}

html[data-theme="dark"] .tier-saving-row del,
html[data-theme="dark"] .service-block-price-old {
    color: #d9bcc4;
}

html[data-theme="dark"] .storefront-social-zalo {
    color: #78bdff;
}

html[data-theme="dark"] .storefront-social-zalo .storefront-social-icon {
    color: #78bdff;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        --sf-text-secondary: #ead9dd;
        --sf-text-muted: #c4adb5;
        --sf-border: #5a4049;
        --sf-border-subtle: #403038;
        --sf-border-strong: #795762;
        --sf-surface-soft: #2a1f24;
        --sf-panel-soft: #2a1f24;
        --sf-field: #1d171a;
    }

    html[data-theme="system"] .software-logo-capcut {
        filter: none;
    }

    html[data-theme="system"] .service-block-title a,
    html[data-theme="system"] .pricing-tier-card .tier-name,
    html[data-theme="system"] .pricing-tier-card .tier-features-list,
    html[data-theme="system"] .auth-form-header > p:not(.auth-eyebrow),
    html[data-theme="system"] .storefront-footer-description,
    html[data-theme="system"] .storefront-footer-legal a,
    html[data-theme="system"] .storefront-footer-bottom-nav a,
    html[data-theme="system"] .storefront-footer-copyright {
        color: var(--sf-text-secondary);
    }

    html[data-theme="system"] .pricing-tier-card {
        background: #2b2025;
    }

    html[data-theme="system"] .tier-saving-row,
    html[data-theme="system"] .tier-subtitle,
    html[data-theme="system"] .tier-download-label,
    html[data-theme="system"] .service-block-foot small {
        color: #cfb9c0;
    }

    html[data-theme="system"] .tier-saving-row del,
    html[data-theme="system"] .service-block-price-old {
        color: #d9bcc4;
    }

    html[data-theme="system"] .storefront-social-zalo .storefront-social-icon {
        color: #78bdff;
    }
}

@media (max-width: 760px) {
    .storefront-brand__tagline {
        display: block;
    }

    .hero-stat-strip {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-stat-item {
        justify-content: flex-start;
        padding: 8px 0;
    }

    .hero-stat-strip > .hero-stat-item + .hero-stat-item {
        padding: 8px 0 0;
        border-top: 1px solid var(--sf-border);
        border-left: 0;
    }

    .service-block-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .service-block-media img,
    .service-block-media .resource-card-placeholder {
        min-height: 0;
        height: 100%;
    }

    .services-card-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .pricing-heading-line {
        display: inline;
    }

    .digital-service-detail {
        padding: 20px 0 60px;
    }

    .resource-detail-copy {
        padding: 20px;
    }

    .digital-service-visual .digital-service-placeholder {
        min-height: 220px;
    }
}

@media (min-width: 761px) and (max-width: 1100px) {
    .services-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

html[data-theme="dark"] .digital-service-description,
html[data-theme="dark"] .digital-service-benefits,
html[data-theme="dark"] .service-contact-block,
html[data-theme="dark"] .digital-service-usage-guide ol {
    color: var(--sf-text-secondary);
}

html[data-theme="dark"] .digital-service-price del,
html[data-theme="dark"] .digital-service-card-price del {
    color: #d9bcc4;
}

/* Keep shared catalog cards readable when the master dark surface is active. */
.resource-card-body {
    background: var(--sf-surface);
}

.resource-card-title a,
.resource-card-body h2 a {
    color: var(--sf-text-primary);
}

.tier-features-list li {
    color: var(--sf-text-secondary);
}

html[data-theme="dark"] .resource-card,
html[data-theme="dark"] .digital-service-card,
html[data-theme="dark"] .resource-card-body,
html[data-theme="dark"] .digital-service-card .resource-card-body {
    background: var(--sf-surface);
}

html[data-theme="dark"] .resource-card-title a,
html[data-theme="dark"] .resource-card-body h2 a,
html[data-theme="dark"] .resource-card-title,
html[data-theme="dark"] .resource-card-body h2 {
    color: var(--sf-text-primary);
}

html[data-theme="dark"] .resource-card-category,
html[data-theme="dark"] .resource-download-count,
html[data-theme="dark"] .digital-service-card-description {
    color: var(--sf-text-secondary);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .digital-service-description,
    html[data-theme="system"] .digital-service-benefits,
    html[data-theme="system"] .service-contact-block,
    html[data-theme="system"] .digital-service-usage-guide ol {
        color: var(--sf-text-secondary);
    }

    html[data-theme="system"] .digital-service-price del,
    html[data-theme="system"] .digital-service-card-price del {
        color: #d9bcc4;
    }

    html[data-theme="system"] .resource-card,
    html[data-theme="system"] .digital-service-card,
    html[data-theme="system"] .resource-card-body,
    html[data-theme="system"] .digital-service-card .resource-card-body {
        background: var(--sf-surface);
    }

    html[data-theme="system"] .resource-card-title a,
    html[data-theme="system"] .resource-card-body h2 a,
    html[data-theme="system"] .resource-card-title,
    html[data-theme="system"] .resource-card-body h2 {
        color: var(--sf-text-primary);
    }

    html[data-theme="system"] .resource-card-category,
    html[data-theme="system"] .resource-download-count,
html[data-theme="system"] .digital-service-card-description {
        color: var(--sf-text-secondary);
    }
}

/* Discovery additions stay within the existing storefront tokens. */
.storefront-home-main .categories-showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.storefront-home-main .category-card-copy strong { font-size: 1.08rem; }
.storefront-home-main .category-card-copy small { font-size: .78rem; }
.service-google-mark { display: grid; width: 100%; height: 100%; place-items: center; background: #f8f9fc; }
.service-block-media .service-google-mark img { width: 100px; height: 100px; object-fit: contain; }
.discovery-supplement { margin-top: 36px; margin-bottom: 52px; }
.discovery-supplement h2 { color: var(--sf-text-primary); font-size: clamp(1.25rem, 2.5vw, 1.8rem); line-height: 1.3; }
.discovery-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.discovery-benefit { display: flex; align-items: center; gap: 14px; padding: 24px 16px; text-align: left; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-medium); background: var(--sf-surface); }
.discovery-benefit-copy { display: grid; gap: 5px; min-width: 0; }
.discovery-benefit-icon { flex-shrink: 0; }
.discovery-benefit-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--sf-accent); background: var(--sf-red-subtle); border-radius: 12px; }
.discovery-benefit-icon svg { width: 25px; height: 25px; }
.discovery-benefit strong { color: var(--sf-text-primary); font-size: .87rem; line-height: 1.5; }
.discovery-benefit small { color: var(--sf-text-secondary); font-size: .76rem; }
.service-faq-support { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: stretch; gap: 32px; }
.discovery-faq { min-width: 0; }
.discovery-faq details { border-bottom: 1px solid var(--sf-border); padding: 18px 0; color: var(--sf-text-primary); }
.discovery-faq summary { cursor: pointer; font-weight: 600; font-size: .9rem; line-height: 1.6; }
.discovery-faq details p { color: var(--sf-text-secondary); font-size: .85rem; line-height: 1.8; margin: 12px 0 0; }
.discovery-support { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; height: 100%; box-sizing: border-box; padding: 24px; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-medium); background: var(--sf-surface); text-align: center; }
.discovery-support-icon { flex: 0 0 auto; color: var(--sf-accent); }
.discovery-support-icon svg { display: block; width: 64px; height: 64px; }
.discovery-support-copy { display: grid; justify-items: center; gap: 12px; width: 100%; min-width: 0; }
.discovery-support-copy p { margin: 0; color: var(--sf-text-secondary); font-size: .85rem; line-height: 1.6; }
.discovery-support .service-contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 12px; }
.discovery-support .service-contact-actions .storefront-social-link { width: 100%; min-width: 0; justify-content: center; }
.discovery-support .storefront-social-zalo,
.discovery-support .storefront-social-zalo:hover,
html[data-theme="dark"] .discovery-support .storefront-social-zalo,
html[data-theme="dark"] .discovery-support .storefront-social-zalo:hover,
html[data-theme="system"] .discovery-support .storefront-social-zalo,
html[data-theme="system"] .discovery-support .storefront-social-zalo:hover {
    color: #fff;
    background: #0068ff;
    border-color: #0068ff;
}
.discovery-support .storefront-social-zalo:hover { background: #0058d7; border-color: #0058d7; }
.discovery-support h2 { margin: 0; }
.membership-comparison-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-medium); }
.membership-comparison { width: 100%; min-width: 660px; border-collapse: collapse; background: var(--sf-surface); color: var(--sf-text-secondary); font-size: .85rem; }
.membership-comparison th, .membership-comparison td { padding: 20px 16px; text-align: center; border-bottom: 1px solid var(--sf-border); line-height: 1.6; }
.membership-comparison thead { background: var(--sf-surface-soft); color: var(--sf-text-primary); }
.membership-comparison tbody th { text-align: left; color: var(--sf-text-primary); }
.membership-comparison thead th:first-child, .membership-comparison tbody th { position: sticky; left: 0; z-index: 1; }
.membership-comparison thead th:first-child { background: var(--sf-surface-soft); z-index: 2; }
.membership-comparison tbody th { background: var(--sf-surface); box-shadow: 2px 0 5px rgba(0, 0, 0, .06); }
.membership-comparison tr:last-child > * { border-bottom: 0; }
.membership-comparison-scroll-hint { display: none; margin: 8px 0 0; color: var(--sf-text-secondary); font-size: .78rem; text-align: right; }
.payment-methods-display { text-align: center; }
.payment-brand-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.payment-brand { display: flex; align-items: center; height: 100%; gap: 18px; min-width: 0; padding: 22px 16px; border: 1px solid var(--sf-border); border-radius: 14px; background: var(--sf-surface); text-align: left; color: var(--sf-text-primary); }
.payment-brand-logo { display: grid; place-items: center; flex: 0 0 80px; width: 80px; height: 48px; box-sizing: border-box; overflow: visible; padding: 4px; border-radius: 8px; background: #fff; color: #152d61; }
.payment-brand-logo img { display: block; width: 72px; height: 40px; max-width: 100%; max-height: 100%; object-fit: contain; }
.payment-brand-logo svg { width: 32px; height: 32px; }
.payment-brand-copy { display: grid; gap: 5px; min-width: 0; }
.payment-brand-copy strong { font-size: .9rem; }
.payment-brand-copy small { font-size: .76rem; color: var(--sf-text-secondary); }
html[data-theme="dark"] .storefront-footer .storefront-social-zalo { color: #fff; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .storefront-footer .storefront-social-zalo { color: #fff; } }
@media (max-width: 1100px) {
    .storefront-home-main .categories-showcase-grid, .discovery-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-faq-support { grid-template-columns: 1fr; grid-auto-rows: 1fr; }
    .payment-brand-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .storefront-home-main .categories-showcase-grid { grid-template-columns: 1fr; }
    .discovery-benefits { gap: 10px; grid-template-columns: 1fr; }
    .payment-brand-list { grid-template-columns: 1fr; }
    .discovery-support { padding: 18px; gap: 14px; }
    .discovery-support-icon { flex-basis: 48px; }
    .discovery-support-icon svg { width: 48px; height: 48px; }
    .discovery-benefit { padding: 16px 10px; }
    .discovery-benefit strong { font-size: .78rem; }
    .membership-comparison-scroll-hint { display: block; }
}

/* Scoped follow-up: keep discovery copy on one visual axis and make support
   contact marks legible in both themes without changing contact behavior. */
.category-card-copy strong,
.category-card-copy small {
    text-align: center;
}

.software-card-info strong {
    white-space: nowrap;
}

.service-contact-actions .storefront-social-icon,
.storefront-footer .storefront-social-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
}

.service-contact-actions .storefront-social-icon svg,
.storefront-footer .storefront-social-icon svg {
    width: 26px;
    height: 26px;
}

.service-contact-actions .storefront-social-telegram .storefront-social-icon,
.storefront-footer .storefront-social-telegram .storefront-social-icon {
    color: #fff;
    background: #229ed9;
}

.service-contact-actions .storefront-social-zalo .storefront-social-icon,
.storefront-footer .storefront-social-zalo .storefront-social-icon {
    color: #fff;
    background: #0068ff;
}

.storefront-footer .storefront-social-email .storefront-social-icon {
    color: #fff;
    background: var(--sf-accent);
}

html[data-theme="dark"] .service-contact-actions .storefront-social-zalo .storefront-social-icon,
html[data-theme="dark"] .storefront-footer .storefront-social-zalo .storefront-social-icon {
    color: #fff;
}

@media (max-width: 760px) {
    .category-card-copy {
        padding: 16px;
    }

    .storefront-footer .storefront-social-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

/* Homepage services keep the compact catalog presentation without changing
   the already-approved Services listing component. */
.homepage-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    margin-top: 20px;
}

.homepage-service-card {
    display: flex;
    min-width: 0;
    min-height: 236px;
    height: 100%;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

.homepage-service-card:hover {
    border-color: var(--sf-border-strong);
    box-shadow: var(--sf-shadow-md);
    transform: translateY(-2px);
}

.homepage-service-top {
    display: grid;
    min-width: 0;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.homepage-service-media {
    display: grid;
    width: 72px;
    height: 72px;
    min-height: 72px;
    aspect-ratio: 1;
    overflow: hidden;
    place-items: center;
    border-radius: 11px;
    background: #302027;
}

.homepage-service-media img,
.homepage-service-media .resource-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.homepage-service-media .resource-card-placeholder {
    display: grid;
    place-items: center;
    padding: 9px;
    color: #fff;
    font-size: .58rem;
    text-align: center;
}

.homepage-service-google {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: inherit;
    background: #f8f9fc;
}

.homepage-service-media .homepage-service-google img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.homepage-service-content {
    display: flex;
    min-width: 0;
    min-height: 72px;
    padding-top: 2px;
    flex-direction: column;
}

.homepage-service-title {
    margin: 0;
    overflow: hidden;
    color: var(--sf-text-primary);
    font-size: .96rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.homepage-service-title a {
    display: block;
    color: var(--sf-text-primary);
}

.homepage-service-desc {
    display: -webkit-box;
    margin: 7px 0 0;
    overflow: hidden;
    color: var(--sf-text-secondary);
    font-size: .68rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.homepage-service-tags {
    display: flex;
    min-width: 0;
    margin-top: 16px;
    overflow: hidden;
    gap: 6px;
}

.homepage-service-tag {
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
    padding: 5px 7px;
    border: 1px solid var(--sf-border-subtle);
    border-radius: 999px;
    color: var(--sf-text-muted);
    background: var(--sf-surface-soft);
    font-size: .58rem;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.homepage-service-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--sf-border-subtle);
}

.homepage-service-price {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.homepage-service-price del {
    color: var(--sf-text-muted);
    font-size: .59rem;
    text-decoration-thickness: 1px;
    white-space: nowrap;
}

.homepage-service-price strong {
    color: var(--sf-accent);
    font-size: .86rem;
    white-space: nowrap;
}

.homepage-service-cta {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: .64rem;
    white-space: nowrap;
}

html[data-theme="dark"] .catalog-software-pills .software-pill {
    color: var(--sf-text-primary);
    border-color: var(--sf-border);
    background: var(--sf-surface);
}

html[data-theme="dark"] .catalog-software-pills .software-pill:hover,
html[data-theme="dark"] .catalog-software-pills .software-pill.is-active {
    border-color: var(--sf-accent);
    background: var(--sf-red-subtle);
    color: var(--sf-accent);
}

html[data-theme="dark"] .catalog-software-pills .software-logo-capcut,
html[data-theme="dark"] .catalog-sidebar .software-logo-capcut {
    filter: brightness(0) saturate(100%) invert(1);
}

html[data-theme="dark"] .catalog-sidebar .filter-software-name {
    color: var(--sf-text-primary);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .catalog-software-pills .software-pill {
        color: var(--sf-text-primary);
        border-color: var(--sf-border);
        background: var(--sf-surface);
    }

    html[data-theme="system"] .catalog-software-pills .software-pill:hover,
    html[data-theme="system"] .catalog-software-pills .software-pill.is-active {
        border-color: var(--sf-accent);
        background: var(--sf-red-subtle);
        color: var(--sf-accent);
    }

    html[data-theme="system"] .catalog-software-pills .software-logo-capcut,
    html[data-theme="system"] .catalog-sidebar .software-logo-capcut {
        filter: brightness(0) saturate(100%) invert(1);
    }

    html[data-theme="system"] .catalog-sidebar .filter-software-name {
        color: var(--sf-text-primary);
    }
}

@media (max-width: 1100px) {
    .homepage-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .homepage-service-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage value proposition: a light, centered 3+2 section between the
   resource discovery blocks and featured services. */
.why-choose-heading {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
    text-align: center;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.why-choose-item {
    display: flex;
    min-width: 0;
    min-height: 208px;
    grid-column: span 2;
    align-items: center;
    padding: 24px 22px 26px;
    flex-direction: column;
    border: 1px solid var(--sf-border-subtle);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface);
    text-align: center;
}

.why-choose-item:nth-child(4) {
    grid-column: 2 / span 2;
}

.why-choose-item:nth-child(5) {
    grid-column: 4 / span 2;
}

.why-choose-item:hover {
    border-color: var(--sf-border-strong);
}

.why-choose-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--sf-accent) 28%, var(--sf-border));
    border-radius: 11px;
    color: var(--sf-accent);
    background: var(--sf-red-subtle);
}

.why-choose-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.why-choose-item h3 {
    margin: 16px 0 0;
    color: var(--sf-text-primary);
    font-size: .96rem;
    line-height: 1.35;
}

.why-choose-item p {
    max-width: 34rem;
    margin: 9px 0 0;
    color: var(--sf-text-secondary);
    font-size: .76rem;
    line-height: 1.65;
}

@media (max-width: 1100px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-choose-item,
    .why-choose-item:nth-child(4),
    .why-choose-item:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .why-choose-heading {
        margin-bottom: 18px;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .why-choose-item,
    .why-choose-item:nth-child(4),
    .why-choose-item:nth-child(5) {
        min-height: 0;
        padding: 20px 18px 22px;
        grid-column: auto;
    }
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .service-contact-actions .storefront-social-zalo .storefront-social-icon,
    html[data-theme="system"] .storefront-footer .storefront-social-zalo .storefront-social-icon {
        color: #fff;
    }
}

/* Remaining scoped UI polish: locale control, compact service listing and
   balanced support contact actions. */
.locale-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
    text-align: center;
}

.storefront-nav .locale-link {
    padding: 0;
    border-radius: 50%;
    line-height: 1;
}

.storefront-nav.is-open .locale-link {
    width: 34px;
    height: 34px;
    min-width: 34px;
    flex: 0 0 34px;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
}

.services-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.service-block-card {
    display: flex;
    min-height: 236px;
    height: 100%;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
}

.service-block-top {
    display: grid;
    min-width: 0;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.service-block-media {
    display: grid;
    width: 72px;
    height: 72px;
    min-height: 72px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 11px;
    background: #302027;
}

.service-block-media img,
.service-block-media .resource-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.service-google-mark {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: inherit;
    background: #f8f9fc;
}

.service-block-media .service-google-mark img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.service-block-content {
    display: flex;
    min-width: 0;
    min-height: 72px;
    padding: 2px 0 0;
    flex-direction: column;
}

.service-block-title {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--sf-text-primary);
    font-size: .96rem;
    line-height: 1.3;
}

.service-block-title a {
    display: block;
    color: var(--sf-text-primary);
}

.service-block-desc {
    display: -webkit-box;
    margin: 7px 0 0;
    overflow: hidden;
    color: var(--sf-text-secondary);
    font-size: .68rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.service-block-tags {
    display: flex;
    min-width: 0;
    margin-top: 16px;
    overflow: hidden;
    gap: 6px;
}

.service-block-tag {
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
    padding: 5px 7px;
    border: 1px solid var(--sf-border-subtle);
    border-radius: 999px;
    color: var(--sf-text-muted);
    background: var(--sf-surface-soft);
    font-size: .58rem;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-block-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--sf-border-subtle);
}

.service-block-price {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.service-block-price small {
    color: var(--sf-text-muted);
    font-size: .59rem;
}

.service-block-price strong {
    color: var(--sf-accent);
    font-size: .86rem;
    white-space: nowrap;
}

.service-block-price-old {
    color: var(--sf-text-muted);
    font-size: .59rem;
    text-decoration: line-through;
    white-space: nowrap;
}

.service-block-foot > .storefront-button {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: .64rem;
    white-space: nowrap;
}

.discovery-support {
    gap: 12px;
    padding: 20px;
}

.discovery-support-icon svg {
    width: 48px;
    height: 48px;
}

.discovery-support-copy {
    gap: 10px;
}

.discovery-support h2 {
    font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.discovery-support-copy p {
    font-size: .74rem;
}

.discovery-support .service-contact-actions {
    gap: 8px;
}

.discovery-support .service-contact-actions .storefront-social-link,
.discovery-support .service-contact-actions .storefront-social-link:hover,
.discovery-support .service-contact-actions .storefront-social-zalo,
.discovery-support .service-contact-actions .storefront-social-zalo:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 5px 8px;
    gap: 6px;
    border: 1px solid var(--sf-border);
    border-radius: 9px;
    color: var(--sf-text-muted);
    background: var(--sf-surface-soft);
    font-size: .64rem;
}

.discovery-support .service-contact-actions .storefront-social-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 5px;
}

.discovery-support .service-contact-actions .storefront-social-icon svg {
    width: 17px;
    height: 17px;
}

.digital-service-detail .service-contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.digital-service-detail .service-contact-actions .storefront-social-link,
.digital-service-detail .service-contact-actions .storefront-social-link:hover,
.digital-service-detail .service-contact-actions .storefront-social-zalo,
.digital-service-detail .service-contact-actions .storefront-social-zalo:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 6px 10px;
    gap: 8px;
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    color: var(--sf-text-muted);
    background: var(--sf-surface-soft);
    font-size: .68rem;
}

.digital-service-detail .service-contact-actions .storefront-social-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 6px;
}

.digital-service-detail .service-contact-actions .storefront-social-icon svg {
    width: 20px;
    height: 20px;
}

html[data-theme="dark"] .discovery-support .service-contact-actions .storefront-social-zalo,
html[data-theme="dark"] .discovery-support .service-contact-actions .storefront-social-zalo:hover,
html[data-theme="dark"] .digital-service-detail .service-contact-actions .storefront-social-zalo,
html[data-theme="dark"] .digital-service-detail .service-contact-actions .storefront-social-zalo:hover {
    color: #fff;
    background: var(--sf-surface-soft);
    border-color: var(--sf-border);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .discovery-support .service-contact-actions .storefront-social-zalo,
    html[data-theme="system"] .discovery-support .service-contact-actions .storefront-social-zalo:hover,
    html[data-theme="system"] .digital-service-detail .service-contact-actions .storefront-social-zalo,
    html[data-theme="system"] .digital-service-detail .service-contact-actions .storefront-social-zalo:hover {
        color: #fff;
        background: var(--sf-surface-soft);
        border-color: var(--sf-border);
    }
}

@media (max-width: 1100px) {
    .services-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .services-card-grid {
        grid-template-columns: 1fr;
    }

    .service-block-card {
        min-height: 236px;
    }

    .service-block-foot {
        align-items: flex-end;
        flex-direction: row;
    }

    .service-block-foot > .storefront-button {
        width: auto;
        flex: 0 0 auto;
    }
}

/* ========================================================================
   LEGACY STOREFRONT MARKUP COMPATIBILITY
   The current production PHP release still uses these presentation hooks.
   Keep the rules scoped so the current component markup keeps its layout.
   ======================================================================== */

/* Pricing cards */
.pricing-section .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    margin-top: 0;
}

.pricing-section .pricing-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 520px;
    height: 100%;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--sf-border);
    border-radius: 20px;
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

.pricing-section .pricing-card-featured {
    border: 2px solid var(--sf-accent);
}

.pricing-section .pricing-card-current {
    border-color: var(--sf-success);
    box-shadow: 0 0 0 1px var(--sf-success);
}

.pricing-section .pricing-card-heading {
    display: flex;
    min-height: 31px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pricing-section .pricing-code {
    color: var(--sf-accent-dark);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
}

.pricing-section .pricing-saving,
.pricing-section .pricing-current-label {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: var(--sf-radius-pill);
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.pricing-section .pricing-saving {
    background: var(--sf-lime);
    color: #283000;
}

.pricing-section .pricing-current-label {
    background: var(--sf-success-bg);
    color: var(--sf-success-ink);
}

.pricing-section .pricing-card-badge {
    position: static;
    display: inline-flex;
    align-self: flex-start;
    margin: 14px 0 0;
    padding: 5px 10px;
    border-radius: var(--sf-radius-pill);
    background: var(--sf-accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.2;
}

.pricing-section .pricing-card h2 {
    min-height: 2.5rem;
    margin: 18px 0 10px;
    color: var(--sf-text-primary);
    font-size: 1.65rem;
    line-height: 1.2;
    letter-spacing: -.045em;
}

.pricing-section .pricing-prices {
    display: flex;
    min-height: 3.25rem;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.pricing-section .pricing-price {
    color: var(--sf-text-primary);
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.pricing-section .pricing-price-secondary,
.pricing-section .pricing-old-price {
    color: var(--sf-text-muted);
}

.pricing-section .pricing-price-secondary {
    font-size: .72rem;
    font-weight: 650;
}

.pricing-section .pricing-old-price {
    font-size: .78rem;
    font-weight: 650;
}

.pricing-section .pricing-benefits {
    display: grid;
    flex: 1 1 auto;
    gap: 9px;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: var(--sf-text-secondary);
    font-size: .76rem;
    line-height: 1.5;
    list-style: none;
}

.pricing-section .pricing-benefits li {
    position: relative;
    margin: 0;
    padding-left: 22px;
}

.pricing-section .pricing-benefits li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--sf-accent);
    content: "✓";
    font-weight: 900;
}

.pricing-section .pricing-card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 54px;
    margin-top: auto;
    padding-top: 20px;
}

.pricing-section .pricing-card-actions .storefront-button {
    width: 100%;
    min-width: 0;
}

.pricing-section .pricing-login-link {
    display: block;
    width: 100%;
    margin: 0;
    color: var(--sf-accent-dark);
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
}

/* Account dashboard cards and tab container */
section.account-section:has(.account-summary-grid) {
    min-height: calc(100vh - 226px);
    padding: 58px 0 86px;
}

section.account-section:has(.account-summary-grid) .account-heading {
    max-width: 820px;
    margin-bottom: 34px;
}

section.account-section:has(.account-summary-grid) .account-heading h1 {
    margin: 14px 0 8px;
    overflow-wrap: anywhere;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.055em;
}

section.account-section:has(.account-summary-grid) .account-heading > p:not(.eyebrow) {
    margin: 0;
    color: var(--sf-text-muted);
    font-size: .82rem;
}

section.account-section:has(.account-summary-grid) .account-tabs {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    min-width: 0;
    margin-bottom: 24px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    background: var(--sf-surface);
}

section.account-section:has(.account-summary-grid) .account-tab {
    display: grid;
    min-width: 0;
    min-height: 42px;
    place-items: center;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--sf-text-muted);
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

section.account-section:has(.account-summary-grid) .account-tab:hover {
    border-color: var(--sf-border);
    color: var(--sf-text-primary);
}

section.account-section:has(.account-summary-grid) .account-tab[aria-current="page"] {
    border-color: var(--sf-control-selected-bg);
    background: var(--sf-control-selected-bg);
    color: var(--sf-control-selected-ink);
}

section.account-section:has(.account-summary-grid) .account-grid {
    display: grid;
    min-width: 0;
    gap: 20px;
}

section.account-section:has(.account-summary-grid) .account-summary-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

section.account-section:has(.account-summary-grid) .account-card {
    min-width: 0;
    min-height: 285px;
    padding: 28px;
    border: 1px solid var(--sf-border);
    border-radius: 20px;
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

section.account-section:has(.account-summary-grid) .account-card.account-membership {
    background: var(--sf-gradient-membership);
    color: var(--sf-gradient-text);
}

section.account-section:has(.account-summary-grid) .account-card-number {
    color: inherit;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
}

section.account-section:has(.account-summary-grid) .account-card h2 {
    margin: 46px 0 18px;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: -.035em;
}

section.account-section:has(.account-summary-grid) .account-card p {
    color: var(--sf-muted);
    overflow-wrap: anywhere;
}

section.account-section:has(.account-summary-grid) .account-card dl,
section.account-section:has(.account-summary-grid) .account-list-item dl {
    min-width: 0;
    margin: 0;
}

section.account-section:has(.account-summary-grid) .account-card dl div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-top: 1px solid var(--sf-border);
}

section.account-section:has(.account-summary-grid) .account-card dt,
section.account-section:has(.account-summary-grid) .account-list-item dt {
    color: var(--sf-muted);
}

section.account-section:has(.account-summary-grid) .account-card dd,
section.account-section:has(.account-summary-grid) .account-list-item dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 750;
    text-align: right;
}

section.account-section:has(.account-summary-grid) .account-membership > .storefront-button {
    width: 100%;
    margin-top: 18px;
}

section.account-section:has(.account-summary-grid) .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border: 1px solid currentColor;
    border-radius: var(--sf-radius-pill);
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
}

section.account-section:has(.account-summary-grid) .status-pill::before {
    content: "•";
}

section.account-section:has(.account-summary-grid) .status-ok,
section.account-section:has(.account-summary-grid) .status-active,
section.account-section:has(.account-summary-grid) .status-succeeded,
section.account-section:has(.account-summary-grid) .status-paid,
section.account-section:has(.account-summary-grid) .status-completed {
    background: var(--sf-success-bg);
    color: var(--sf-success-ink);
}

section.account-section:has(.account-summary-grid) .account-panel {
    min-width: 0;
    margin-top: 26px;
    padding: 26px;
    border: 1px solid var(--sf-border);
    border-radius: 20px;
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

section.account-section:has(.account-summary-grid) .account-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

section.account-section:has(.account-summary-grid) .account-panel-heading h2 {
    margin: 7px 0 0;
    color: var(--sf-text-primary);
    font-size: clamp(1.2rem, 2.6vw, 1.8rem);
    letter-spacing: -.045em;
}

section.account-section:has(.account-summary-grid) .account-panel-heading > span {
    color: var(--sf-text-muted);
    font-size: .72rem;
    text-align: right;
}

section.account-section:has(.account-summary-grid) .account-empty {
    padding: 24px;
    border: 1px dashed var(--sf-border);
    border-radius: 14px;
    background: var(--sf-panel-soft);
    color: var(--sf-text-muted);
    text-align: center;
}

section.account-section:has(.account-summary-grid) .account-list {
    display: grid;
    gap: 10px;
}

section.account-section:has(.account-summary-grid) .account-list-item {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1fr) auto;
    align-items: center;
    min-width: 0;
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    background: var(--sf-panel-soft);
}

section.account-section:has(.account-summary-grid) .account-list-main {
    min-width: 0;
}

section.account-section:has(.account-summary-grid) .account-list-main h3 {
    margin: 5px 0 3px;
    overflow-wrap: anywhere;
    font-size: .9rem;
}

section.account-section:has(.account-summary-grid) .account-list-main p {
    margin: 0;
    color: var(--sf-text-muted);
    font-size: .72rem;
}

section.account-section:has(.account-summary-grid) .account-type-label {
    color: var(--sf-accent-dark);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

section.account-section:has(.account-summary-grid) .account-list-item dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
}

section.account-section:has(.account-summary-grid) .account-list-item dt,
section.account-section:has(.account-summary-grid) .account-list-item dd {
    font-size: .72rem;
}

section.account-section:has(.account-summary-grid) .account-list-action {
    min-width: 118px;
    text-align: right;
}

section.account-section:has(.account-summary-grid) .account-list-action .storefront-button {
    width: 100%;
}

section.account-section:has(.account-summary-grid) .account-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

section.account-section:has(.account-summary-grid) .account-course-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    background: var(--sf-panel-soft);
}

section.account-section:has(.account-summary-grid) .account-course-media {
    position: relative;
    display: grid;
    aspect-ratio: 16 / 10;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--sf-border);
    background: var(--sf-disabled);
}

section.account-section:has(.account-summary-grid) .account-course-media img,
section.account-section:has(.account-summary-grid) .account-course-media .resource-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

section.account-section:has(.account-summary-grid) .account-course-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

section.account-section:has(.account-summary-grid) .account-course-copy h3 {
    margin: 6px 0 4px;
    overflow-wrap: anywhere;
    font-size: .88rem;
    line-height: 1.35;
}

section.account-section:has(.account-summary-grid) .account-course-copy > p {
    margin: 0;
    color: var(--sf-text-muted);
    font-size: .7rem;
}

section.account-section:has(.account-summary-grid) .account-course-copy form {
    margin-top: auto;
}

section.account-section:has(.account-summary-grid) .account-course-copy .storefront-button {
    width: 100%;
}

section.account-section:has(.account-summary-grid) .account-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

section.account-section:has(.account-summary-grid) .account-pagination a {
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--sf-border);
    border-radius: 9px;
    color: var(--sf-text-secondary);
}

section.account-section:has(.account-summary-grid) .account-pagination a[aria-current="page"] {
    border-color: var(--sf-control-selected-bg);
    background: var(--sf-control-selected-bg);
    color: var(--sf-control-selected-ink);
}

section.account-section:has(.account-summary-grid) .account-logout {
    margin-top: 24px;
}

/* Resource detail legacy presentation */
.resource-detail:not(.resource-detail-section) {
    padding: 36px 0 88px;
}

.resource-detail:not(.resource-detail-section) .storefront-breadcrumb {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    margin-bottom: 26px;
    color: var(--sf-text-muted);
    font-size: .72rem;
    white-space: nowrap;
}

.resource-detail:not(.resource-detail-section) .storefront-breadcrumb span:last-child {
    min-width: 0;
    overflow: hidden;
    color: var(--sf-text-primary);
    text-overflow: ellipsis;
}

.resource-detail:not(.resource-detail-section) .resource-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: start;
    gap: 42px;
}

.resource-detail:not(.resource-detail-section) .resource-detail-media {
    display: grid;
    min-width: 0;
    aspect-ratio: 16 / 10;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-large);
    background: var(--sf-surface-soft);
    box-shadow: var(--sf-shadow-lg);
}

.resource-detail:not(.resource-detail-section) .resource-detail-media.resource-detail-video {
    aspect-ratio: 16 / 9;
    background: #111;
}

.resource-detail:not(.resource-detail-section) .resource-detail-media > img,
.resource-detail:not(.resource-detail-section) .resource-detail-media > video,
.resource-detail:not(.resource-detail-section) .resource-demo-player,
.resource-detail:not(.resource-detail-section) .resource-demo-player iframe,
.resource-detail:not(.resource-detail-section) .resource-demo-player video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
}

.resource-detail:not(.resource-detail-section) .resource-detail-media > img {
    object-fit: contain;
    object-position: center;
}

.resource-detail:not(.resource-detail-section) .resource-detail-media > .resource-card-placeholder {
    width: 100%;
    height: 100%;
}

.resource-detail:not(.resource-detail-section) .resource-detail-copy {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-large);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-md);
}

.resource-detail:not(.resource-detail-section) .resource-detail-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.resource-detail:not(.resource-detail-section) .resource-detail-copy h1 {
    margin: 16px 0 20px;
    overflow-wrap: anywhere;
    color: var(--sf-text-primary);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -.05em;
}

.resource-detail:not(.resource-detail-section) .resource-facts {
    min-width: 0;
    margin: 0 0 24px;
}

.resource-detail:not(.resource-detail-section) .resource-facts div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid var(--sf-border);
    border-bottom: 1px solid var(--sf-border);
}

.resource-detail:not(.resource-detail-section) .resource-facts dt,
.resource-detail:not(.resource-detail-section) .resource-metadata-grid dt {
    color: var(--sf-text-muted);
    font-size: .72rem;
    font-weight: 700;
}

.resource-detail:not(.resource-detail-section) .resource-facts dd {
    margin: 0;
    color: var(--sf-text-primary);
    font-size: .78rem;
    font-weight: 800;
    text-align: right;
}

.resource-detail:not(.resource-detail-section) .resource-metadata {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--sf-border);
}

.resource-detail:not(.resource-detail-section) .resource-metadata-heading h2 {
    margin: 7px 0 0;
    color: var(--sf-text-primary);
    font-size: 1.05rem;
    letter-spacing: -.03em;
}

.resource-detail:not(.resource-detail-section) .resource-metadata-grid {
    display: grid;
    min-width: 0;
    margin: 14px 0 0;
}

.resource-detail:not(.resource-detail-section) .resource-metadata-grid > div {
    display: grid;
    grid-template-columns: minmax(110px, .72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 14px;
    min-width: 0;
    padding: 10px 0;
    border-top: 1px solid var(--sf-border-subtle);
}

.resource-detail:not(.resource-detail-section) .resource-metadata-grid dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--sf-text-primary);
    font-size: .75rem;
    font-weight: 700;
    text-align: right;
}

.resource-detail:not(.resource-detail-section) .resource-metadata-value-placeholder {
    color: var(--sf-text-muted) !important;
    font-weight: 600 !important;
}

.resource-detail:not(.resource-detail-section) .resource-discovery-links {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--sf-border);
}

.resource-detail:not(.resource-detail-section) .resource-discovery-links-list {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
}

.resource-detail:not(.resource-detail-section) .resource-discovery-links-list a {
    max-width: 100%;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-pill);
    color: var(--sf-text-secondary);
    background: var(--sf-surface-soft);
    font-size: .66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-detail:not(.resource-detail-section) .storefront-actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.resource-detail:not(.resource-detail-section) .storefront-actions > form:not(.favorite-control),
.resource-detail:not(.resource-detail-section) .storefront-actions > a,
.resource-detail:not(.resource-detail-section) .storefront-actions > button,
.resource-detail:not(.resource-detail-section) .storefront-actions > .favorite-control {
    min-width: 0;
    flex: 1 1 210px;
}

.resource-detail:not(.resource-detail-section) .storefront-actions > form:not(.favorite-control) {
    margin: 0;
}

.resource-detail:not(.resource-detail-section) .storefront-actions > form .storefront-button,
.resource-detail:not(.resource-detail-section) .storefront-actions > form .resource-btn-primary,
.resource-detail:not(.resource-detail-section) .storefront-actions > form .resource-btn-outline,
.resource-detail:not(.resource-detail-section) .storefront-actions > a.resource-btn-primary,
.resource-detail:not(.resource-detail-section) .storefront-actions > a.resource-btn-outline,
.resource-detail:not(.resource-detail-section) .storefront-actions > button {
    width: 100%;
}

.resource-detail:not(.resource-detail-section) .favorite-control {
    width: auto;
    margin: 0;
}

.resource-detail:not(.resource-detail-section) .favorite-button {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-field);
    color: var(--sf-text-primary);
    font-family: inherit;
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
}

.resource-detail:not(.resource-detail-section) .resource-report-wrap {
    width: 100%;
    margin-top: 0;
    text-align: left;
}

.resource-detail:not(.resource-detail-section) .resource-report-link {
    color: var(--sf-text-muted);
    font-size: .68rem;
    text-decoration: underline;
}

.resource-detail:not(.resource-detail-section) .resource-description {
    margin-top: 42px;
    padding: 28px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-large);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

.resource-detail:not(.resource-detail-section) .resource-description h2 {
    margin: 8px 0 14px;
    color: var(--sf-text-primary);
    font-size: 1.3rem;
    letter-spacing: -.04em;
}

.resource-detail:not(.resource-detail-section) .resource-description > p {
    max-width: 980px;
    margin: 0;
    color: var(--sf-text-secondary);
    font-size: .8rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.resource-detail:not(.resource-detail-section) .resource-description a {
    color: var(--sf-accent-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.resource-detail:not(.resource-detail-section) .resource-copyright-notice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--sf-border);
}

.resource-detail:not(.resource-detail-section) .resource-copyright-notice h3 {
    margin: 0 0 7px;
    color: var(--sf-text-primary);
    font-size: .82rem;
    line-height: 1.4;
}

.resource-detail:not(.resource-detail-section) .resource-copyright-notice p {
    margin: 0;
    color: var(--sf-text-muted);
    font-size: .72rem;
    line-height: 1.65;
}

/* Filter rows and resource-card media keep content inside their frames. */
.catalog-sidebar .filter-group-list {
    min-width: 0;
}

.catalog-sidebar .filter-item {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.catalog-sidebar .filter-item-left {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-sidebar .filter-item-count {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
}

.resource-card-media-wrap,
.resource-card-media-shell,
.resource-card.resource-card > .resource-card-media,
.resource-card-media.resource-product-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--sf-surface-soft);
}

.resource-card-media-wrap > .resource-card-media,
.resource-card-media-shell > .resource-card-media,
.resource-card-media.resource-product-card-media,
.resource-card-media.resource-product-card-media > img,
.resource-card-media.resource-product-card-media > video,
.resource-card-media.resource-product-card-media > iframe,
.resource-card-media-shell img,
.resource-card-media-shell video,
.resource-card-media-shell iframe,
.resource-card-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.resource-card-media-shell > .resource-card-media {
    position: relative;
}

.resource-card-media-shell .resource-card-preview {
    position: absolute;
    inset: 0;
}

@media (max-width: 1024px) {
    .pricing-section .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-detail:not(.resource-detail-section) .resource-detail-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    section.account-section:has(.account-summary-grid) .account-list-item {
        grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto;
    }

    section.account-section:has(.account-summary-grid) .account-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .pricing-section .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pricing-section .pricing-card {
        min-height: 0;
        padding: 24px 20px;
    }

    section.account-section:has(.account-summary-grid) {
        padding: 34px 0 64px;
    }

    section.account-section:has(.account-summary-grid) .account-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        overflow: visible !important;
    }

    section.account-section:has(.account-summary-grid) .account-tab {
        min-width: 0 !important;
        min-height: 40px;
        padding: 8px 6px;
        font-size: .66rem;
        white-space: normal;
    }

    section.account-section:has(.account-summary-grid) .account-card,
    section.account-section:has(.account-summary-grid) .account-panel {
        padding: 20px;
    }

    section.account-section:has(.account-summary-grid) .account-card h2 {
        margin-top: 34px;
    }

    section.account-section:has(.account-summary-grid) .account-list-item,
    section.account-section:has(.account-summary-grid) .account-course-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    section.account-section:has(.account-summary-grid) .account-list-action {
        width: 100%;
        text-align: left;
    }

    section.account-section:has(.account-summary-grid) .account-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    section.account-section:has(.account-summary-grid) .account-panel-heading > span {
        text-align: left;
    }

    .resource-detail:not(.resource-detail-section) {
        padding: 24px 0 64px;
    }

    .resource-detail:not(.resource-detail-section) .resource-detail-media {
        aspect-ratio: 16 / 9;
        border-radius: var(--sf-radius-medium);
    }

    .resource-detail:not(.resource-detail-section) .resource-detail-copy {
        padding: 20px;
    }

    .resource-detail:not(.resource-detail-section) .resource-metadata-grid > div {
        grid-template-columns: minmax(92px, .68fr) minmax(0, 1.32fr);
        gap: 10px;
    }

    .resource-detail:not(.resource-detail-section) .resource-copyright-notice {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .resource-detail:not(.resource-detail-section) .storefront-actions > form:not(.favorite-control),
    .resource-detail:not(.resource-detail-section) .storefront-actions > a,
    .resource-detail:not(.resource-detail-section) .storefront-actions > button,
    .resource-detail:not(.resource-detail-section) .storefront-actions > .favorite-control {
        flex-basis: 100%;
    }

    .resource-detail:not(.resource-detail-section) .resource-report-wrap {
        text-align: left;
    }
}

/* Resource card thumbnails use the complete source image; previews keep the same frame. */
.resource-card-media-wrap,
.resource-card-media.resource-product-card-media {
    background: var(--sf-surface-soft);
}

.resource-card-media-wrap img[data-resource-card-thumbnail],
.resource-card-media.resource-product-card-media > img[data-resource-card-thumbnail] {
    background: var(--sf-surface-soft);
    object-fit: contain;
    object-position: center;
}

.resource-card:hover .resource-card-media-wrap img[data-resource-card-thumbnail],
.resource-card:hover .resource-card-media.resource-product-card-media > img[data-resource-card-thumbnail] {
    transform: none;
}

.resource-card-media-wrap .resource-card-preview,
.resource-card-media.resource-product-card-media .resource-card-preview {
    object-fit: cover;
    object-position: center;
}

/* Checkout fallback styles apply on staging; production checkout CSS may extend them. */
.membership-checkout-dialog {
    width: min(94vw, 860px);
    max-height: min(90vh, 760px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
    overflow: auto;
}

.membership-checkout-dialog::backdrop {
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(4px);
}

.membership-checkout-card {
    box-sizing: border-box;
    width: 100%;
    padding: 26px;
}

.membership-checkout-heading h2 {
    margin: 8px 0 22px;
}

.membership-checkout-form,
.membership-checkout-step,
.membership-coupon {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.membership-checkout-step {
    padding: 18px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-panel-soft);
}

.membership-checkout-step[hidden],
[data-membership-coupon-breakdown][hidden] {
    display: none;
}

.membership-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.membership-step-title > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--sf-accent);
    color: #fff;
    font-weight: 800;
}

.membership-step-title h3 {
    margin: 0;
    color: var(--sf-text-primary);
    font-size: .95rem;
}

.membership-payment-method-option {
    min-width: 0;
}

.membership-payment-method-option > span {
    min-width: 0;
}

.membership-payment-method-copy {
    min-width: 0;
}

.membership-payment-method-copy small,
.membership-payment-method-message,
.membership-plan-summary > span:first-child,
.membership-coupon [data-membership-coupon-message] {
    color: var(--sf-text-secondary);
}

.membership-payment-method-copy strong,
.membership-plan-summary strong,
.membership-plan-summary [data-confirm-price-output] {
    color: var(--sf-text-primary);
}

.membership-payment-method-copy small {
    overflow-wrap: anywhere;
}

.membership-legal-consent,
.storefront-legal-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    color: var(--sf-text-secondary);
    font-size: .72rem;
    line-height: 1.6;
}

.storefront-legal-consent > input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 2px 0 0;
    accent-color: var(--sf-accent);
}

.storefront-legal-consent > span {
    min-width: 0;
}

.storefront-legal-consent a {
    color: var(--sf-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.membership-coupon .auth-field,
.membership-coupon .auth-field input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.membership-coupon-actions,
.membership-checkout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.membership-coupon-actions .storefront-button,
.membership-checkout-actions .storefront-button {
    width: auto;
    min-width: 120px;
}

.membership-checkout-actions {
    justify-content: flex-end;
}

/* Dark theme contrast for the active auth, pricing, checkout and catalog surfaces. */
html[data-theme="dark"] .auth-form-panel,
html[data-theme="dark"] .pricing-tier-card,
html[data-theme="dark"] .pricing-payment-section .payment-method-card,
html[data-theme="dark"] .storefront-dialog-card,
html[data-theme="dark"] .membership-checkout-card,
html[data-theme="dark"] .resource-card {
    color: var(--sf-text-primary);
}

html[data-theme="dark"] .auth-form-header > p:not(.auth-eyebrow),
html[data-theme="dark"] .auth-field > span,
html[data-theme="dark"] .auth-checkbox-label,
html[data-theme="dark"] .auth-switch-prompt,
html[data-theme="dark"] .auth-legal-footer,
html[data-theme="dark"] .pricing-sub-title,
html[data-theme="dark"] .tier-price-usd,
html[data-theme="dark"] .tier-features-list,
html[data-theme="dark"] .tier-saving-row,
html[data-theme="dark"] .payment-method-card small,
html[data-theme="dark"] .resource-card-category,
html[data-theme="dark"] .resource-download-count,
html[data-theme="dark"] .rc-soft-chip,
html[data-theme="dark"] .membership-payment-method-copy small,
html[data-theme="dark"] .membership-payment-method-message,
html[data-theme="dark"] .membership-plan-summary > span:first-child,
html[data-theme="dark"] .membership-coupon [data-membership-coupon-message],
html[data-theme="dark"] .storefront-legal-consent {
    color: var(--sf-text-secondary);
}

html[data-theme="dark"] .auth-field input,
html[data-theme="dark"] .auth-field input::placeholder,
html[data-theme="dark"] .membership-coupon input,
html[data-theme="dark"] .membership-coupon input::placeholder {
    color: var(--sf-text-primary);
}

html[data-theme="dark"] .auth-field input::placeholder,
html[data-theme="dark"] .membership-coupon input::placeholder {
    opacity: 1;
    color: var(--sf-text-muted);
}

html[data-theme="dark"] .storefront-dialog-card h2,
html[data-theme="dark"] .membership-step-title h3,
html[data-theme="dark"] .membership-payment-method-copy strong,
html[data-theme="dark"] .membership-plan-summary strong,
html[data-theme="dark"] .membership-plan-summary [data-confirm-price-output],
html[data-theme="dark"] .pricing-payment-section h2,
html[data-theme="dark"] .resource-card-title,
html[data-theme="dark"] .resource-card-body h2 {
    color: var(--sf-text-primary);
}

html[data-theme="dark"] .storefront-button-disabled,
html[data-theme="dark"] .storefront-button:disabled {
    color: var(--sf-text-secondary);
}

html[data-theme="dark"] .storefront-legal-consent a,
html[data-theme="dark"] .auth-checkbox-label a,
html[data-theme="dark"] .auth-legal-footer a {
    color: var(--sf-accent-coral);
}

@media (max-width: 760px) {
    .membership-checkout-card {
        padding: 20px;
    }

    .membership-checkout-actions .storefront-button,
    .membership-coupon-actions .storefront-button {
        flex: 1 1 140px;
    }
}

/* Resource detail keeps the baseline layout while allowing the full hero image to fit safely. */
.resource-detail-section .resource-main-preview {
    background: var(--sf-surface-soft);
}

.resource-detail-section .resource-main-preview > img.resource-main-img {
    object-fit: contain;
    object-position: center;
    background: var(--sf-surface-soft);
}

/* Resource cards keep software chips in one compact footer row. */
.resource-card .resource-card-footer-row {
    align-items: center;
}

.resource-card .resource-software-chips {
    min-width: 0;
    overflow: hidden;
    flex-wrap: nowrap;
}

.resource-card .rc-soft-chip {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    flex: 0 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.resource-card .rc-soft-chip > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-card .rc-soft-more {
    flex: 0 0 auto;
}

/* Scoped resource detail metadata and action alignment. */
.resource-detail-section .resource-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 22px 0 0;
}

.resource-detail-section .resource-facts > div {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 13px;
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    background: var(--sf-surface-soft);
}

.resource-detail-section .resource-facts dt {
    margin: 0;
    color: var(--sf-text-muted);
}

.resource-detail-section .resource-facts dd {
    flex: 0 0 auto;
    margin: 0;
    color: var(--sf-text-primary);
    font-size: .86rem;
    font-weight: 850;
    text-align: right;
}

.resource-detail-section .resource-metadata {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--sf-border-subtle);
}

.resource-detail-section .resource-metadata-heading h2 {
    margin: 4px 0 0;
    color: var(--sf-text-primary);
    font-size: .92rem;
}

.resource-detail-section .resource-metadata-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 13px 0 0;
}

.resource-detail-section .resource-metadata-grid > div {
    display: grid;
    min-width: 0;
    gap: 5px;
    padding: 10px 12px;
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    background: var(--sf-surface-soft);
}

.resource-detail-section .resource-metadata-link {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
}

.resource-detail-section .resource-metadata-link:hover,
.resource-detail-section .resource-metadata-link:focus-visible {
    color: var(--sf-accent);
    text-decoration: underline;
}

.resource-detail-section .resource-metadata-grid dt {
    color: var(--sf-text-muted);
    font-size: .64rem;
    font-weight: 750;
}

.resource-detail-section .resource-metadata-grid dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--sf-text-primary);
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.45;
}

.resource-detail-section .resource-compat-block {
    margin-top: 18px;
}

.resource-detail-section .compat-chips {
    align-items: center;
}

.resource-detail-section .compat-chip {
    min-height: 32px;
}

.resource-detail-section .resource-panel-actions {
    align-items: stretch;
}

.resource-detail-section .resource-panel-actions > .resource-btn-primary,
.resource-detail-section .resource-panel-actions > .resource-btn-outline,
.resource-detail-section .resource-panel-actions > form {
    flex: 1 1 0;
    min-width: 0;
}

.resource-detail-section .resource-panel-actions > .resource-btn-primary,
.resource-detail-section .resource-panel-actions > .resource-btn-outline {
    width: auto;
    min-height: 42px;
    justify-content: center;
}

.resource-detail-section .resource-panel-actions > form .resource-btn-primary,
.resource-detail-section .resource-panel-actions > form .resource-btn-outline {
    width: 100%;
    min-height: 42px;
}

/* Payment request emphasis, support actions, and separated final actions. */
.membership-payment-instructions > label {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    color: var(--sf-text-secondary);
    font-size: .76rem;
    font-weight: 800;
}

.membership-payment-instructions > label .membership-transfer-content {
    margin: 0;
    border-color: var(--sf-accent);
    background: var(--sf-red-subtle);
    color: var(--sf-text-primary);
    font-size: 1.08rem;
}

.membership-payment-support {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-large);
    background: var(--sf-surface);
    text-align: center;
}

.membership-payment-support h2 {
    margin: 0;
    color: var(--sf-text-primary);
    font-size: 1rem;
}

.membership-payment-support p {
    margin: 7px auto 0;
    max-width: 680px;
    color: var(--sf-text-secondary);
    font-size: .72rem;
    line-height: 1.6;
}

.membership-payment-support-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.membership-payment-support-links .storefront-social-link {
    display: inline-flex;
    width: 132px;
    min-width: 132px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    color: var(--sf-text-secondary);
    background: var(--sf-surface-soft);
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}

.membership-payment-support-links .storefront-social-link:hover,
.membership-payment-support-links .storefront-social-link:focus-visible {
    color: var(--sf-accent);
    border-color: var(--sf-accent);
    background: var(--sf-red-subtle);
}

.membership-payment-support-links .storefront-social-icon {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 6px;
    color: #fff;
}

.membership-payment-support-links .storefront-social-icon svg {
    width: 15px;
    height: 15px;
}

.membership-payment-support-links .storefront-social-telegram .storefront-social-icon { background: #229ed9; }
.membership-payment-support-links .storefront-social-zalo .storefront-social-icon { background: #0068ff; color: #fff; }
.membership-payment-support-links .storefront-social-email .storefront-social-icon { background: var(--sf-accent); }

.membership-payment-final-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.membership-payment-final-actions .membership-payment-success-actions {
    display: flex;
}

.membership-payment-final-actions .membership-payment-success-actions[hidden] {
    display: none !important;
}

.membership-payment-final-actions .membership-payment-cancel {
    margin: 0;
}

.membership-payment-final-actions .storefront-button {
    min-height: 42px;
}

/* Account dark surfaces keep the existing layout while restoring hierarchy. */
html[data-theme="dark"] .account-section {
    background: var(--sf-page-bg);
    color: var(--sf-text-primary);
}

html[data-theme="dark"] .account-section .account-empty-state {
    background: var(--sf-surface-soft);
}

html[data-theme="dark"] .account-section .account-sidebar-head strong,
html[data-theme="dark"] .account-section .account-page-heading h1,
html[data-theme="dark"] .account-section .account-membership-card h2,
html[data-theme="dark"] .account-section .account-metric-card strong,
html[data-theme="dark"] .account-section .account-panel-heading h2,
html[data-theme="dark"] .account-section .account-claim-main h2,
html[data-theme="dark"] .account-section .account-payment-row h2,
html[data-theme="dark"] .account-section .account-payment-row > strong,
html[data-theme="dark"] .account-section .account-detail-grid strong,
html[data-theme="dark"] .account-section .account-empty-state h3,
html[data-theme="dark"] .account-section .account-wallet-list article strong,
html[data-theme="dark"] .account-section .account-course-card h2,
html[data-theme="dark"] .account-section .account-setting-block h2,
html[data-theme="dark"] .account-section .account-linked-block h2,
html[data-theme="dark"] .account-section .account-inline-notice strong {
    color: var(--sf-text-primary);
}

html[data-theme="dark"] .account-section .account-sidebar-head span,
html[data-theme="dark"] .account-section .account-page-heading p:not(.account-eyebrow),
html[data-theme="dark"] .account-section .account-membership-card p,
html[data-theme="dark"] .account-section .account-card-kicker,
html[data-theme="dark"] .account-section .account-membership-meta span,
html[data-theme="dark"] .account-section .account-metric-label,
html[data-theme="dark"] .account-section .account-metric-card small,
html[data-theme="dark"] .account-section .account-detail-grid span,
html[data-theme="dark"] .account-section .account-claim-main p,
html[data-theme="dark"] .account-section .account-claim-main small,
html[data-theme="dark"] .account-section .account-payment-row p,
html[data-theme="dark"] .account-section .account-muted,
html[data-theme="dark"] .account-section .account-empty-state,
html[data-theme="dark"] .account-section .account-course-card p,
html[data-theme="dark"] .account-section .account-setting-block > p,
html[data-theme="dark"] .account-section .account-inline-notice span,
html[data-theme="dark"] .account-section .account-wallet-list article small,
html[data-theme="dark"] .account-section .account-quick-links a,
html[data-theme="dark"] .account-section .growth-preferences label {
    color: var(--sf-text-secondary);
}

html[data-theme="dark"] .account-section .account-nav-item {
    color: var(--sf-text-secondary);
}

html[data-theme="dark"] .account-section .account-nav-item:hover,
html[data-theme="dark"] .account-section .account-nav-item:focus-visible {
    color: var(--sf-accent-coral);
    background: var(--sf-red-subtle);
    outline: 2px solid color-mix(in srgb, var(--sf-accent) 45%, transparent);
    outline-offset: -2px;
}

html[data-theme="dark"] .account-section .account-nav-item.is-active {
    color: #fff;
    background: var(--sf-accent);
}

html[data-theme="dark"] .account-section .account-nav-item.is-active:hover,
html[data-theme="dark"] .account-section .account-nav-item.is-active:focus-visible {
    color: #fff;
    background: var(--sf-accent-hover);
}

/* Homepage dark contrast: retain the established palette and improve separation. */
html[data-theme="dark"] .storefront-discovery-hero,
html[data-theme="dark"] .storefront-home-main {
    color: var(--sf-text-primary);
}

html[data-theme="dark"] .storefront-discovery-hero .eyebrow,
html[data-theme="dark"] .storefront-home-main .eyebrow {
    color: var(--sf-accent-coral);
}

html[data-theme="dark"] .storefront-discovery-hero h1,
html[data-theme="dark"] .storefront-home-main .section-title,
html[data-theme="dark"] .storefront-home-main .discovery-benefit strong,
html[data-theme="dark"] .storefront-home-main .software-card-info strong {
    color: var(--sf-text-primary);
}

html[data-theme="dark"] .storefront-discovery-hero .discovery-search {
    border-color: var(--sf-border-strong);
    background: var(--sf-surface);
}

html[data-theme="dark"] .storefront-discovery-hero .discovery-search input {
    color: var(--sf-text-primary);
}

html[data-theme="dark"] .storefront-discovery-hero .discovery-search input::placeholder {
    opacity: 1;
    color: var(--sf-text-muted);
}

html[data-theme="dark"] .storefront-discovery-hero .search-leading,
html[data-theme="dark"] .storefront-discovery-hero .hero-stat-icon {
    color: var(--sf-accent-coral);
}

html[data-theme="dark"] .storefront-discovery-hero .software-pill {
    color: var(--sf-text-secondary);
    border-color: var(--sf-border);
    background: var(--sf-surface);
}

html[data-theme="dark"] .storefront-discovery-hero .software-pill:hover,
html[data-theme="dark"] .storefront-discovery-hero .software-pill.is-active {
    color: #fff;
    border-color: var(--sf-accent);
    background: var(--sf-accent);
}

html[data-theme="dark"] .storefront-discovery-hero .hero-stat-strip,
html[data-theme="dark"] .storefront-home-main .discovery-benefit {
    color: var(--sf-text-secondary);
    border-color: var(--sf-border);
    background: var(--sf-surface);
}

html[data-theme="dark"] .storefront-discovery-hero .hero-stat-copy strong,
html[data-theme="dark"] .storefront-home-main .discovery-benefit small,
html[data-theme="dark"] .storefront-home-main .software-card-info small {
    color: var(--sf-text-secondary);
}

html[data-theme="dark"] .section-view-all {
    color: #fff;
    font-weight: 800;
}

html[data-theme="dark"] .section-view-all:hover,
html[data-theme="dark"] .section-view-all:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

html[data-theme="dark"] .storefront-home-main .category-showcase-card {
    border-color: var(--sf-border-strong);
    background: #3a272e;
}

html[data-theme="dark"] .storefront-home-main .category-card-art img {
    filter: brightness(1.14) saturate(1.08) contrast(1.04);
}

html[data-theme="dark"] .storefront-home-main .category-card-art::after {
    background: linear-gradient(180deg, rgba(18, 10, 15, .02), rgba(18, 10, 15, .64));
}

html[data-theme="dark"] .storefront-home-main .category-card-copy strong,
html[data-theme="dark"] .storefront-home-main .category-card-copy small {
    color: #fff;
    text-shadow: 0 2px 12px rgba(18, 10, 15, .72);
}

/* Resource navigation stays visibly pink on dark surfaces. */
html[data-theme="dark"] .storefront-nav a[aria-current="page"] {
    color: var(--sf-accent-coral);
    background: color-mix(in srgb, var(--sf-accent) 28%, var(--sf-surface));
    font-weight: 800;
}

html[data-theme="dark"] .storefront-nav a[aria-current="page"]:hover,
html[data-theme="dark"] .storefront-nav a[aria-current="page"]:focus-visible {
    color: #fff;
    background: var(--sf-accent);
}

@media (max-width: 560px) {
    .membership-payment-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .membership-payment-card {
        padding: 20px;
    }

    .membership-payment-card > header strong {
        flex-basis: 100%;
        text-align: left;
    }

    .membership-payment-instructions > label,
    .membership-payment-instructions > label .membership-transfer-content {
        min-width: 0;
    }

    .membership-payment-instructions > label .membership-transfer-content {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .resource-detail-section .resource-metadata-grid {
        grid-template-columns: 1fr;
    }

    .membership-payment-support-links .storefront-social-link {
        flex: 1 1 105px;
        min-width: 0;
    }

    .membership-payment-final-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .membership-payment-final-actions > *,
    .membership-payment-final-actions .membership-payment-success-actions,
    .membership-payment-final-actions .storefront-button {
        width: 100%;
    }

    .membership-payment-final-actions .storefront-button {
        justify-content: center;
    }
}

/* Storefront UI pass: keep resource cards compact without changing data. */
.resource-card .resource-card-footer-row {
    min-width: 0;
    align-items: center;
    min-height: 28px;
}

.resource-card .resource-card-category,
.resource-card .resource-download-count {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid var(--sf-border);
    border-radius: 7px;
    background: var(--sf-surface-soft);
    color: var(--sf-text-secondary);
    font-size: .64rem;
    font-weight: 750;
    line-height: 1.2;
}

.resource-card .resource-card-category {
    min-width: 0;
    flex: 0 1 32%;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-card .resource-software-chips {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    flex-wrap: nowrap;
}

.resource-card .resource-download-count {
    flex: 0 0 auto;
    gap: 5px;
    margin-left: auto;
    font-size: .68rem;
}

.resource-card .rc-dl-icon {
    width: 14px;
    height: 14px;
}

.resource-card-floating-badge {
    z-index: 3;
}

.resource-card .rc-badge {
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 8px;
    font-size: .68rem;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

/* Homepage cards use the category and download stat as the only footer data. */
.storefront-home-main .resource-card .resource-software-chips {
    display: none;
}

.storefront-home-main .resource-card .resource-card-category {
    flex: 0 1 auto;
    width: fit-content;
}

/* Desktop catalog: three readable cards beside a wider filter panel. */
@media (min-width: 1025px) {
    .catalog-body-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 32px;
    }

    .catalog-sidebar {
        width: 280px;
    }

    .catalog-resource-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .catalog-sidebar .filter-item {
        padding-inline: 8px;
    }
}

@media (max-width: 1024px) {
    .catalog-sidebar .filter-item {
        padding-inline: 8px;
    }
}

/* Resource detail: one six-row metadata contract and a full-width notice. */
.resource-detail-section .resource-metadata-grid {
    grid-template-columns: 1fr;
}

.resource-detail-section .resource-metadata-grid > div {
    grid-template-columns: minmax(112px, .55fr) minmax(0, 1.45fr);
    align-items: center;
    min-height: 44px;
}

.resource-detail-section .resource-description-section {
    max-width: none;
    margin-top: 26px;
    padding-top: 26px;
}

.resource-detail-section .resource-copyright-notice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 20px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface-soft);
}

.resource-detail-section .resource-copyright-notice h3 {
    margin: 0 0 7px;
    color: var(--sf-text-primary);
    font-size: .82rem;
    line-height: 1.4;
}

.resource-detail-section .resource-copyright-notice p {
    margin: 0;
    color: var(--sf-text-secondary);
    font-size: .72rem;
    line-height: 1.65;
}

.resource-detail-section .resource-panel-actions > .resource-report-wrap {
    display: flex;
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    align-items: stretch;
    margin-top: 0;
}

.resource-detail-section .resource-report-dropdown,
.resource-detail-section .resource-report-wrap > .resource-report-link {
    width: 100%;
}

.resource-detail-section .resource-report-dropdown {
    margin: 0;
}

.resource-detail-section .resource-report-wrap > .resource-report-link,
.resource-detail-section .resource-report-dropdown > .resource-report-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid var(--sf-border);
    border-radius: 11px;
    color: var(--sf-text-secondary);
    background: var(--sf-surface-soft);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.resource-detail-section .resource-report-wrap > .resource-report-link:hover,
.resource-detail-section .resource-report-wrap > .resource-report-link:focus-visible,
.resource-detail-section .resource-report-dropdown > .resource-report-link:hover,
.resource-detail-section .resource-report-dropdown > .resource-report-link:focus-visible {
    color: var(--sf-accent);
    border-color: var(--sf-accent);
    background: var(--sf-red-subtle);
}

/* Account uses the same accent/surface system in both themes. */
.account-section .account-nav-item {
    color: var(--sf-text-secondary);
    background: transparent;
}

.account-section .account-nav-item:hover,
.account-section .account-nav-item:focus-visible {
    color: var(--sf-accent);
    background: var(--sf-red-subtle);
}

.account-section .account-nav-item.is-active,
.account-section .account-nav-item.is-active:hover,
.account-section .account-nav-item.is-active:focus-visible {
    color: #fff;
    background: var(--sf-accent-dark);
}

html[data-theme="dark"] .account-section .account-nav-item.is-active,
html[data-theme="dark"] .account-section .account-nav-item.is-active:hover,
html[data-theme="dark"] .account-section .account-nav-item.is-active:focus-visible {
    background: #b53e59;
}

.account-section .account-membership-card.is-active {
    background: var(--sf-surface);
}

.account-section .account-link-statuses {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-section .account-link-statuses span {
    display: flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 10px;
    color: var(--sf-text-secondary);
    background: var(--sf-surface-soft);
}

.account-section .account-link-statuses span.is-linked {
    color: var(--sf-green);
    background: var(--sf-success-bg);
}

/* Header active state and locale control remain readable before hover. */
html[data-theme="dark"] .locale-link {
    color: var(--sf-text-primary);
    border-color: var(--sf-border-strong);
    background: var(--sf-surface);
}

html[data-theme="dark"] .locale-link:hover,
html[data-theme="dark"] .locale-link:focus-visible {
    color: #fff;
    border-color: var(--sf-accent);
    background: var(--sf-accent);
}

html[data-theme="dark"] .storefront-nav a[aria-current="page"],
html[data-theme="dark"] .storefront-nav a[aria-current="page"]:hover,
html[data-theme="dark"] .storefront-nav a[aria-current="page"]:focus-visible {
    color: #fff;
    background: var(--sf-accent);
}

/* Scoped contrast lift for the featured category artwork. */
html[data-theme="dark"] .storefront-home-main .category-card-art img {
    filter: brightness(1.22) saturate(1.1) contrast(1.05);
}

html[data-theme="dark"] .storefront-home-main .category-card-art::after {
    background: linear-gradient(180deg, rgba(18, 10, 15, .01), rgba(18, 10, 15, .54));
}

/* Service consent stays legible and separated from its submit action. */
.digital-service-detail .storefront-legal-consent {
    margin-bottom: 18px;
}

/* Checkout support labels inherit the same readable dark-theme text treatment. */
html[data-theme="dark"] .membership-payment-support-links .storefront-social-zalo,
html[data-theme="dark"] .membership-payment-support-links .storefront-social-zalo:hover,
html[data-theme="dark"] .membership-payment-support-links .storefront-social-zalo:focus-visible {
    color: #fff;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .locale-link {
        color: var(--sf-text-primary);
        border-color: var(--sf-border-strong);
        background: var(--sf-surface);
    }

    html[data-theme="system"] .storefront-nav a[aria-current="page"],
    html[data-theme="system"] .storefront-nav a[aria-current="page"]:hover,
    html[data-theme="system"] .storefront-nav a[aria-current="page"]:focus-visible {
        color: #fff;
        background: var(--sf-accent);
    }

    html[data-theme="system"] .storefront-home-main .category-card-art img {
        filter: brightness(1.22) saturate(1.1) contrast(1.05);
    }

    html[data-theme="system"] .storefront-home-main .category-card-art::after {
        background: linear-gradient(180deg, rgba(18, 10, 15, .01), rgba(18, 10, 15, .54));
    }

    html[data-theme="system"] .membership-payment-support-links .storefront-social-zalo,
    html[data-theme="system"] .membership-payment-support-links .storefront-social-zalo:hover,
    html[data-theme="system"] .membership-payment-support-links .storefront-social-zalo:focus-visible {
        color: #fff;
    }
}

@media (max-width: 760px) {
    .resource-detail-section .resource-copyright-notice {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .resource-detail-section .resource-metadata-grid > div {
        grid-template-columns: minmax(98px, .7fr) minmax(0, 1.3fr);
    }

    .account-section .account-link-statuses {
        grid-template-columns: 1fr;
    }
}

/* Account feature paths restored from the canonical data-backed contracts. */
.account-sync-panel,
.software-preference-panel {
    min-width: 0;
}

.account-membership-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.account-sync-card {
    display: flex;
    min-width: 0;
    min-height: 238px;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    background: var(--sf-surface-soft);
}

.account-sync-card h3 {
    margin: 0;
    color: var(--sf-text-primary);
    font-size: .92rem;
}

.account-sync-card p {
    min-height: 42px;
    margin: 0;
    color: var(--sf-text-secondary);
    font-size: .68rem;
    line-height: 1.55;
}

.account-sync-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    color: var(--sf-text-muted);
    font-size: .68rem;
    font-weight: 800;
}

.account-sync-status::before {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

.account-sync-status.status-ok {
    color: var(--sf-success-ink);
}

.account-sync-meta {
    margin-top: auto;
    overflow-wrap: anywhere;
    color: var(--sf-text-muted);
    font-size: .66rem;
}

.account-sync-card form {
    margin: 0;
}

.account-sync-card .storefront-button {
    width: 100%;
    min-height: 36px;
    justify-content: center;
    padding: 8px 10px;
    font-size: .66rem;
}

.software-preference-copy {
    max-width: 680px;
    margin: 0 0 16px;
    color: var(--sf-text-secondary);
    font-size: .72rem;
    line-height: 1.6;
}

.software-preference-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.software-preference-options legend {
    width: 100%;
    margin-bottom: 10px;
    color: var(--sf-text-primary);
    font-size: .74rem;
    font-weight: 800;
}

.software-preference-option {
    display: flex;
    min-width: 0;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    background: var(--sf-surface-soft);
    color: var(--sf-text-secondary);
    cursor: pointer;
}

.software-preference-option:hover,
.software-preference-option:focus-within {
    border-color: var(--sf-accent);
    background: var(--sf-red-subtle);
}

.software-preference-option input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    accent-color: var(--sf-accent);
}

.software-preference-option__text {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.software-preference-option__text strong,
.software-preference-option__text small {
    overflow-wrap: anywhere;
}

.software-preference-option__text strong {
    color: var(--sf-text-primary);
    font-size: .72rem;
    line-height: 1.25;
}

.software-preference-option__text small {
    color: var(--sf-text-muted);
    font-size: .62rem;
    line-height: 1.25;
}

.software-preference-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.software-preference-actions .storefront-button {
    min-width: 132px;
    min-height: 38px;
    justify-content: center;
}

@media (max-width: 1024px) {
    .account-sync-grid,
    .software-preference-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-membership-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .account-sync-grid,
    .software-preference-options {
        grid-template-columns: 1fr;
    }

    .account-membership-details {
        grid-template-columns: 1fr;
    }

    .account-sync-card {
        min-height: 164px;
    }

    .account-sync-card p {
        min-height: 0;
    }

    .software-preference-actions {
        flex-direction: column;
    }

    .software-preference-actions .storefront-button {
        width: 100%;
    }
}

/* Scoped storefront card/detail fixes. Keep the existing preview behavior intact. */
@media (max-width: 1024px) {
    .storefront-header-actions {
        position: relative;
        z-index: 120;
    }

    .storefront-mobile-toggle {
        position: relative;
        z-index: 121;
    }

    .storefront-nav-backdrop:not([hidden]) {
        position: absolute;
        top: 100%;
        right: auto;
        bottom: auto;
        left: 0;
        width: 100vw;
        height: calc(100vh - 78px);
    }
}

.resource-card .resource-card-category,
.storefront-home-main .resource-card .resource-card-category {
    flex: 0 1 auto;
    width: fit-content;
    max-width: calc(100% - 58px);
    min-width: 0;
}

.resource-card .resource-download-count {
    flex: 0 0 auto;
    font-size: .72rem;
}

.resource-card .rc-badge-free {
    border-color: #52e0ad;
    background: #087050;
    color: #fff;
}

.resource-card .rc-badge-membership {
    border-color: #f08aa2;
    background: #9f2949;
    color: #fff;
}

html[data-theme="dark"] .resource-card .rc-badge-free {
    border-color: #52e0ad;
    background: #075844;
    color: #fff;
}

html[data-theme="dark"] .resource-card .rc-badge-membership {
    border-color: #ff9ab0;
    background: #9f2949;
    color: #fff;
}

.resource-card .rc-badge {
    box-shadow: 0 2px 7px rgba(20, 8, 13, .3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .24);
}

/* Homepage header/hero refinement: scoped so catalog cards and other routes stay unchanged. */
.storefront-header-search {
    position: relative;
    min-width: 0;
}

.storefront-header-search label {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.storefront-header-search label > svg,
.storefront-header-search-toggle svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.storefront-header-search label > svg {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--sf-text-muted);
    pointer-events: none;
}

.storefront-header-search input {
    width: 100%;
    height: 38px;
    min-width: 0;
    padding: 7px 13px 7px 36px;
    border: 1px solid var(--sf-border);
    border-radius: 999px;
    outline: 0;
    background: var(--sf-surface);
    color: var(--sf-text-primary);
    font: inherit;
    font-size: .76rem;
}

.storefront-header-search input::placeholder {
    color: var(--sf-text-muted);
}

.storefront-header-search input:focus-visible {
    border-color: var(--sf-accent);
    box-shadow: 0 0 0 3px rgba(216, 71, 97, .16);
}

.storefront-header-search .catalog-search-suggestions {
    position: absolute;
    z-index: 130;
    top: calc(100% + 8px);
    left: 0;
    width: min(360px, 72vw);
    max-height: min(420px, 60vh);
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-md);
}

.storefront-header-search .catalog-search-suggestions__group h3,
.storefront-header-search .catalog-search-suggestions__message {
    padding: 5px 8px;
    color: var(--sf-text-muted);
    font-size: .72rem;
}

.storefront-header-search .catalog-search-suggestion {
    display: grid;
    gap: 1px;
    padding: 8px;
    border-radius: 9px;
    color: var(--sf-text-primary);
}

.storefront-header-search .catalog-search-suggestion:hover,
.storefront-header-search .catalog-search-suggestion.is-active {
    background: var(--sf-surface-soft);
}

.storefront-header-search .catalog-search-suggestion span {
    color: var(--sf-text-muted);
    font-size: .72rem;
}

.storefront-header-search-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 10px;
    place-items: center;
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    background: var(--sf-surface);
    color: var(--sf-text-secondary);
    cursor: pointer;
}

.storefront-header-search-toggle svg {
    width: 18px;
    height: 18px;
}

.storefront-header-search-toggle:hover,
.storefront-header-search-toggle:focus-visible {
    border-color: var(--sf-accent);
    color: var(--sf-accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(216, 71, 97, .16);
}

@media (min-width: 1025px) {
    .storefront-header--homepage .storefront-header-inner {
        display: flex;
        gap: clamp(10px, 1vw, 18px);
    }

    .storefront-header--homepage .storefront-brand,
    .storefront-header--homepage .storefront-nav-primary,
    .storefront-header--homepage .storefront-nav-secondary,
    .storefront-header--homepage .storefront-nav a,
    .storefront-header--homepage .storefront-nav-tools {
        flex-shrink: 0;
    }

    .storefront-header--homepage .storefront-nav {
        position: static;
        display: flex;
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        gap: clamp(6px, .7vw, 12px);
        transform: none;
    }

    .storefront-header--homepage .storefront-header-actions {
        display: none;
    }

    .storefront-header--homepage .storefront-nav-primary,
    .storefront-header--homepage .storefront-nav-secondary {
        min-width: max-content;
        gap: 2px;
    }

    .storefront-header--homepage .storefront-nav-secondary {
        margin-left: auto;
    }

    .storefront-header--homepage .storefront-nav a {
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    .storefront-header--homepage .storefront-nav a:not(.storefront-nav-cta) {
        padding-inline: clamp(6px, .55vw, 10px);
    }

    .storefront-header--homepage .storefront-header-search {
        width: clamp(136px, 15vw, 280px);
        min-width: 136px;
        max-width: 280px;
        flex: 1 1 240px;
    }
}

.storefront-home-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--sf-border-subtle);
    background:
        radial-gradient(circle at 17% 34%, rgba(216, 71, 97, .075), transparent 29%),
        radial-gradient(circle at 84% 23%, rgba(42, 153, 143, .08), transparent 31%),
        linear-gradient(135deg, #fffaf9 0%, #f8fbfa 58%, #fbf9fa 100%);
}

.storefront-home-hero__inner {
    display: grid;
    grid-template-columns: minmax(150px, .72fr) minmax(0, 1.9fr) minmax(150px, .72fr);
    align-items: center;
    gap: clamp(20px, 3vw, 52px);
    min-height: 328px;
    padding-block: clamp(36px, 4.5vw, 56px);
}

.storefront-home-hero__content {
    min-width: 0;
    text-align: center;
}

.storefront-home-hero__eyebrow {
    margin: 0;
    color: var(--sf-accent);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.storefront-home-hero h1 {
    max-width: 760px;
    margin: 11px auto 0;
    color: var(--sf-text-primary);
    font-size: clamp(2.2rem, 4.1vw, 3.9rem);
    letter-spacing: -.065em;
    line-height: 1.04;
}

.storefront-home-hero h1 span {
    color: var(--sf-accent);
}

.storefront-home-hero__subtitle {
    max-width: 560px;
    margin: 14px auto 0;
    color: var(--sf-text-secondary);
    font-size: clamp(.84rem, 1.3vw, .96rem);
    line-height: 1.55;
}

.storefront-home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(650px, 100%);
    margin: 25px auto 0;
    padding: 14px 4px;
    border: 1px solid var(--sf-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, .64);
    box-shadow: 0 10px 30px rgba(83, 58, 64, .045);
    backdrop-filter: blur(8px);
}

.storefront-home-stat {
    display: grid;
    min-width: 0;
    gap: 3px;
    padding-inline: 14px;
    text-align: center;
}

.storefront-home-stat + .storefront-home-stat {
    border-left: 1px solid var(--sf-border);
}

.storefront-home-stat__value {
    min-height: 1.25em;
    color: var(--sf-accent);
    font-size: clamp(1.4rem, 2.3vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.storefront-home-stat__label {
    color: var(--sf-text-muted);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
}

.storefront-home-hero__art {
    position: relative;
    min-height: 208px;
}

.storefront-home-art-card {
    position: absolute;
    display: grid;
    align-content: end;
    width: clamp(116px, 10.5vw, 162px);
    aspect-ratio: 1.12;
    padding: 15px;
    overflow: hidden;
    border: 1px solid rgba(80, 62, 66, .09);
    border-radius: 21px;
    box-shadow: 0 16px 36px rgba(65, 47, 52, .095);
    color: #42383a;
    transform: rotate(-7deg);
}

.storefront-home-art-card::before,
.storefront-home-art-card::after {
    position: absolute;
    border-radius: 50%;
    content: '';
}

.storefront-home-art-card::before {
    top: -34px;
    right: -25px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, .42);
}

.storefront-home-art-card::after {
    right: 16px;
    bottom: 38px;
    width: 36px;
    height: 36px;
    border: 8px solid rgba(66, 56, 58, .1);
}

.storefront-home-art-card strong,
.storefront-home-art-card small {
    position: relative;
    z-index: 1;
}

.storefront-home-art-card strong {
    max-width: 92%;
    font-size: clamp(.7rem, .95vw, .88rem);
    line-height: 1.15;
}

.storefront-home-art-card small {
    margin-top: 5px;
    font-size: .54rem;
    font-weight: 750;
    letter-spacing: .12em;
    opacity: .62;
}

.storefront-home-art-card--templates {
    top: 8px;
    left: 4%;
    background: #ece5dd;
}

.storefront-home-art-card--luts {
    right: 1%;
    bottom: 2px;
    background: #dbece8;
    transform: rotate(7deg);
}

.storefront-home-art-card--sound {
    top: 1px;
    right: 3%;
    background: #f0dfdc;
    transform: rotate(7deg);
}

.storefront-home-art-card--vfx {
    bottom: 4px;
    left: 2%;
    background: #e7e4eb;
    transform: rotate(-7deg);
}

.storefront-home-main {
    padding-block: 0 78px;
}

.storefront-home-main .home-section--first {
    margin-top: clamp(34px, 4vw, 48px);
}

html[data-theme="dark"] .storefront-home-hero {
    background:
        radial-gradient(circle at 17% 34%, rgba(216, 71, 97, .12), transparent 29%),
        radial-gradient(circle at 84% 23%, rgba(42, 153, 143, .1), transparent 31%),
        var(--sf-page-bg);
}

html[data-theme="dark"] .storefront-home-stats {
    background: rgba(36, 27, 31, .72);
}

html[data-theme="dark"] .storefront-home-art-card {
    border-color: rgba(255, 255, 255, .1);
    color: #f7eff1;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .storefront-home-art-card--templates { background: #4b403c; }
html[data-theme="dark"] .storefront-home-art-card--luts { background: #294b47; }
html[data-theme="dark"] .storefront-home-art-card--sound { background: #593f42; }
html[data-theme="dark"] .storefront-home-art-card--vfx { background: #444151; }

@media (max-width: 1024px) {
    .storefront-header--homepage .storefront-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .storefront-header--homepage .storefront-header-search-toggle {
        display: grid;
    }

    .storefront-header--homepage .storefront-nav:not(.is-search-open) .storefront-header-search {
        display: none;
    }

    .storefront-header--homepage .storefront-nav.is-search-open {
        position: fixed;
        z-index: 110;
        top: 78px;
        right: 14px;
        bottom: auto;
        left: 14px;
        display: flex;
        width: auto;
        min-height: 0;
        padding: 12px;
        overflow: visible;
        border: 1px solid var(--sf-border);
        border-radius: 13px;
        background: var(--sf-surface);
        box-shadow: var(--sf-shadow-md);
        transform: none;
    }

    .storefront-header--homepage .storefront-nav.is-search-open .storefront-nav-primary,
    .storefront-header--homepage .storefront-nav.is-search-open .storefront-nav-secondary {
        display: none;
    }

    .storefront-header--homepage .storefront-nav.is-search-open .storefront-header-search {
        display: block;
        width: 100%;
    }

    .storefront-header--homepage .storefront-nav.is-search-open .catalog-search-suggestions {
        width: 100%;
    }

    .storefront-home-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding-block: 44px;
    }

    .storefront-home-hero__art {
        display: none;
    }
}

@media (max-width: 640px) {
    .storefront-home-hero__inner {
        padding-block: 31px 34px;
    }

    .storefront-home-hero h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
        letter-spacing: -.055em;
    }

    .storefront-home-hero__subtitle {
        margin-top: 12px;
        font-size: .82rem;
    }

    .storefront-home-stats {
        grid-template-columns: 1fr;
        margin-top: 21px;
        padding: 2px 14px;
    }

    .storefront-home-stat {
        grid-template-columns: 82px minmax(0, 1fr);
        align-items: baseline;
        padding: 12px 0;
        text-align: left;
    }

    .storefront-home-stat + .storefront-home-stat {
        border-top: 1px solid var(--sf-border);
        border-left: 0;
    }

    .storefront-home-main .home-section--first {
        margin-top: 31px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .storefront-home-hero *,
    .storefront-header-search input {
        transition: none !important;
    }
}

/* Detail description stays with the media while the legal notice spans the shell. */
.resource-detail-section .resource-detail-description {
    max-width: none;
    margin-top: 18px;
    padding: 22px 24px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

.resource-detail-section .resource-detail-description .resource-rendered-desc {
    margin-top: 12px;
}

.resource-detail-section .resource-detail-meta-block {
    margin-top: 14px;
    padding: 17px 24px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

.resource-detail-section .resource-detail-meta-block h3 {
    margin: 0 0 10px;
    color: var(--sf-text-primary);
    font-size: .88rem;
    letter-spacing: -.01em;
}

.resource-detail-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.resource-detail-tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid var(--sf-border);
    border-radius: 999px;
    background: var(--sf-surface-elevated);
    color: var(--sf-text-secondary);
    font-size: .78rem;
    font-weight: 650;
}

.resource-detail-source-link {
    color: var(--sf-accent);
    font-size: .86rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.resource-detail-section .resource-detail-source {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 4px;
}

.resource-detail-section .resource-detail-source h3 {
    flex: 0 0 auto;
    margin: 0;
}

.resource-detail-section .resource-detail-source-link {
    min-width: 0;
}

.resource-community-cta {
    margin-top: 14px;
    padding: 17px 24px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-medium);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}

.resource-community-cta h2 {
    margin: 0;
    color: var(--sf-text-primary);
    font-size: .98rem;
    letter-spacing: -.01em;
}

.resource-community-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 11px;
}

.resource-community-cta-link {
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    background: var(--sf-surface-elevated);
    color: var(--sf-text-primary);
    font-size: .8rem;
    font-weight: 750;
    text-align: center;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.resource-community-cta-link:hover {
    border-color: var(--sf-accent);
    color: var(--sf-accent);
    transform: translateY(-1px);
}

.resource-community-cta-link > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.resource-community-cta-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
}

.resource-community-cta-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.resource-detail-section .resource-copyright-section {
    max-width: none;
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--sf-border);
}

.resource-detail-section .resource-copyright-section .resource-copyright-notice {
    margin-top: 0;
}

/* Give the Membership action a clear separation from its detail grid. */
.account-section .account-membership-details ~ .storefront-button.storefront-button-primary {
    margin-top: 22px;
}

.resource-detail-section .resource-metadata-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-detail-section .resource-panel-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 9px;
}

.resource-detail-section .resource-panel-actions > .resource-btn-primary,
.resource-detail-section .resource-panel-actions > form,
.resource-detail-section .resource-panel-actions > .resource-report-wrap {
    width: auto;
    min-width: 0;
    margin: 0;
    flex: none;
}

.resource-detail-section .resource-panel-actions > form,
.resource-detail-section .resource-panel-actions > .resource-report-wrap {
    display: flex;
}

.resource-detail-section .resource-panel-actions > .auth-alert {
    grid-column: 1 / -1;
}

.resource-detail-section .resource-panel-actions > form > .resource-btn-primary,
.resource-detail-section .resource-panel-actions > .resource-report-wrap > .resource-report-link,
.resource-detail-section .resource-panel-actions > .resource-report-wrap .resource-report-dropdown > .resource-report-link {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.resource-detail-section .resource-panel-actions > .resource-btn-primary,
.resource-detail-section .resource-panel-actions > form > .resource-btn-primary,
.resource-detail-section .resource-panel-actions > .resource-report-wrap > .resource-report-link,
.resource-detail-section .resource-panel-actions > .resource-report-wrap .resource-report-dropdown > .resource-report-link {
    min-height: 48px;
}

@media (max-width: 760px) {
    .resource-detail-section .resource-detail-description {
        margin-top: 16px;
        padding: 16px;
    }

    .resource-detail-section .resource-copyright-section {
        margin-top: 24px;
        padding-top: 20px;
    }

    .resource-detail-section .resource-metadata-grid {
        grid-template-columns: 1fr;
    }

    .resource-community-cta {
        padding: 16px;
    }

    .resource-community-cta-grid {
        grid-template-columns: 1fr;
    }

    .resource-detail-section .resource-panel-actions {
        grid-template-columns: 1fr;
    }

    .resource-detail-section .resource-panel-actions > .resource-btn-primary,
    .resource-detail-section .resource-panel-actions > form,
    .resource-detail-section .resource-panel-actions > .resource-report-wrap {
        width: 100%;
        flex-basis: auto;
    }

    .resource-detail-section .resource-panel-actions > .auth-alert {
        grid-column: auto;
    }
}

/* Resource detail breadcrumb stays hierarchical and readable in dark mode. */
html[data-theme="dark"] .resource-detail-section .detail-breadcrumb a {
    color: var(--sf-text-secondary);
}

html[data-theme="dark"] .resource-detail-section .detail-breadcrumb > span[aria-hidden="true"] {
    color: var(--sf-text-muted);
}

html[data-theme="dark"] .resource-detail-section .detail-breadcrumb > span[aria-current="page"] {
    color: var(--sf-text-primary);
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .resource-detail-section .detail-breadcrumb a {
        color: var(--sf-text-secondary);
    }

    html[data-theme="system"] .resource-detail-section .detail-breadcrumb > span[aria-hidden="true"] {
        color: var(--sf-text-muted);
    }

    html[data-theme="system"] .resource-detail-section .detail-breadcrumb > span[aria-current="page"] {
        color: var(--sf-text-primary);
        font-weight: 600;
    }
}

/* Card view totals share the existing compact download-stat treatment. */
.resource-card .resource-card-stats {
    display: inline-flex;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.resource-card .resource-view-count,
.resource-card .resource-download-count {
    display: inline-flex;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    margin-left: 0;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid var(--sf-border);
    border-radius: 7px;
    background: var(--sf-surface-elevated);
    color: var(--sf-text-secondary);
    font-size: .64rem;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

.resource-card .resource-view-count { color: var(--sf-text-muted); }
.resource-card .rc-view-icon { stroke: currentColor; }

@media (max-width: 620px) {
    .resource-card .resource-card-stats { gap: 4px; }
}

/* Independent community surfaces on Resource Detail. */
.resource-community-surfaces {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.resource-detail-section .resource-community-surface {
    min-width: 0;
    margin-top: 0;
    padding: 20px;
    border-radius: var(--sf-radius-medium);
}

.resource-detail-section .resource-community-surface h2 {
    font-size: 1rem;
}

.resource-detail-section .resource-community-surface .resource-community-cta-grid {
    gap: 10px;
    margin-top: 13px;
}

.resource-detail-section .resource-community-surface .resource-community-cta-link {
    min-height: 58px;
}

.resource-detail-section .resource-community-cta-icon-telegram {
    color: #229ed9;
}

.resource-detail-section .resource-community-cta-icon-discord {
    color: #5865f2;
}

.resource-detail-section .resource-community-cta-icon-telegram-bot {
    color: #0b79bb;
}

.resource-detail-section .resource-community-cta-icon-zalo {
    color: #0068ff;
}

.resource-detail-section .resource-community-cta-icon-zalo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.resource-detail-section .resource-community-cta-icon-batday img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* EditBox community stays intentionally quieter than the branded deal surface. */
.resource-detail-section .resource-community-surface-editbox {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 22px 20px;
    border-color: rgba(56, 112, 170, .14);
    background:
        radial-gradient(circle at 15% 0%, rgba(34, 158, 217, .065), transparent 31%),
        radial-gradient(circle at 86% 100%, rgba(88, 101, 242, .055), transparent 34%),
        var(--sf-surface);
    box-shadow: 0 8px 22px rgba(31, 57, 82, .055);
}

.resource-detail-section .resource-community-surface-editbox::before,
.resource-detail-section .resource-community-surface-editbox::after {
    position: absolute;
    z-index: -1;
    width: 24px;
    height: 17px;
    border: 1px solid rgba(34, 158, 217, .13);
    border-radius: 9px 9px 9px 3px;
    content: "";
}

.resource-detail-section .resource-community-surface-editbox::before {
    top: 18px;
    left: 12%;
    transform: rotate(-8deg);
}

.resource-detail-section .resource-community-surface-editbox::after {
    top: 21px;
    right: 12%;
    width: 18px;
    height: 13px;
    border-color: rgba(88, 101, 242, .11);
    border-radius: 7px 7px 3px 7px;
    transform: rotate(8deg);
}

.resource-detail-section .resource-community-surface-editbox h2 {
    position: relative;
    z-index: 1;
    text-align: center;
}

.resource-detail-section .resource-community-surface-editbox .resource-community-cta-grid {
    position: relative;
    z-index: 1;
    gap: 10px;
    margin-top: 17px;
}

.resource-detail-section .resource-community-surface-editbox .resource-community-cta-link {
    min-height: 70px;
    gap: 10px;
    padding: 10px;
    border-color: rgba(54, 83, 111, .11);
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 4px 12px rgba(31, 57, 82, .035);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.resource-detail-section .resource-community-surface-editbox .resource-community-cta-link:hover {
    border-color: rgba(34, 158, 217, .34);
    box-shadow: 0 8px 18px rgba(31, 77, 115, .08);
}

.resource-detail-section .resource-community-surface-editbox .resource-community-cta-icon {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 12px;
    background: rgba(34, 158, 217, .1);
}

.resource-detail-section .resource-community-surface-editbox .resource-community-cta-link-telegram-bot .resource-community-cta-icon {
    color: #137fbd;
    background: linear-gradient(145deg, rgba(34, 158, 217, .13), rgba(88, 101, 242, .12));
}

.resource-detail-section .resource-community-surface-editbox .resource-community-cta-link-discord .resource-community-cta-icon {
    background: rgba(88, 101, 242, .11);
}

/* Branded Bắt Đáy community preview; scoped to the final right-column surface. */
.resource-detail-section .batday-community {
    overflow: hidden;
    padding: 0;
    border-color: rgba(241, 112, 68, .24);
    background:
        radial-gradient(circle at 88% 2%, rgba(255, 193, 108, .22), transparent 31%),
        linear-gradient(145deg, #fffdf9 0%, #fff8f3 52%, #f8fbff 100%);
}

.batday-community-header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 15px;
    border-bottom: 1px solid rgba(241, 112, 68, .15);
}

.batday-community-logo {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.batday-community-heading {
    min-width: 0;
}

.resource-detail-section .batday-community-heading h2 {
    margin: 0;
    color: #17395b;
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: -.025em;
}

.batday-community-heading p {
    margin: 4px 0 0;
    color: #65778a;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.45;
}

.batday-community-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid rgba(14, 153, 110, .2);
    border-radius: 999px;
    background: rgba(220, 250, 239, .76);
    color: #087b59;
    font-size: .64rem;
    font-weight: 800;
    white-space: nowrap;
}

.batday-community-live > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #13ad7d;
    box-shadow: 0 0 0 3px rgba(19, 173, 125, .12);
}

.batday-community-hero {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(230px, 252px);
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
}

.batday-community-pitch {
    display: flex;
    min-width: 0;
    min-height: 420px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 4px 18px 6px;
}

.batday-community-kicker {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 112, 72, .1);
    color: #df5b35;
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.batday-community-pitch h3 {
    margin: 13px 0 0;
    color: #17395b;
    font-size: clamp(1.5rem, 1.75vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.batday-community-pitch h3 > span {
    display: block;
    white-space: nowrap;
}

.batday-community-pitch p {
    margin: 12px 0 0;
    color: #718092;
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.5;
}

.batday-platform-visual {
    position: relative;
    width: min(100%, 258px);
    min-height: 220px;
    margin: 0 auto;
    background:
        radial-gradient(ellipse 54px 40px at 26% 53%, rgba(255, 143, 104, .11) 0 98%, transparent 100%),
        radial-gradient(ellipse 62px 43px at 73% 43%, rgba(111, 91, 225, .08) 0 98%, transparent 100%);
    isolation: isolate;
    transform: none;
}

.batday-platform-visual::before,
.batday-platform-visual::after {
    position: absolute;
    z-index: -1;
    content: "";
}

.batday-platform-visual::before {
    inset: 17px 4px 16px 3px;
    border: 1.5px solid rgba(244, 118, 77, .2);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(244, 118, 77, .025), 0 0 18px rgba(244, 118, 77, .065);
    transform: rotate(-8deg);
}

.batday-platform-visual::after {
    right: 11px;
    bottom: 15px;
    width: 166px;
    height: 62px;
    border-bottom: 1.5px solid rgba(37, 197, 206, .19);
    border-radius: 0 0 58% 52%;
    filter: drop-shadow(0 0 8px rgba(37, 197, 206, .065));
    transform: rotate(-6deg);
}

.batday-platform-mark {
    position: absolute;
    display: block;
    overflow: visible;
    border: 0;
    background: none;
    box-shadow: none;
}

.batday-platform-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(30, 53, 75, .12));
}

.batday-platform-mark-shopee {
    top: 40px;
    left: 14px;
    z-index: 1;
    width: 106px;
    height: 110px;
    transform: rotate(-7deg);
}

.batday-platform-mark-lazada {
    top: 13px;
    right: 43px;
    z-index: 2;
    width: 92px;
    height: 92px;
    transform: rotate(5deg);
}

.batday-platform-mark-tiktok {
    bottom: 13px;
    left: 121px;
    z-index: 3;
    width: 98px;
    height: 98px;
    transform: rotate(4deg);
}

.batday-platform-mark-tiktok img {
    filter: drop-shadow(5px 8px 11px rgba(13, 27, 39, .14));
}

.batday-platform-mark-shopee img {
    width: 100%;
    height: 100%;
}

.batday-sale-spark {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
}

.batday-sale-spark-percent {
    top: -3px;
    right: 0;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #ff724f;
    box-shadow: 0 7px 13px rgba(230, 87, 64, .13);
    font-size: .72rem;
    transform: rotate(9deg);
}

.batday-sale-spark-star {
    right: 5px;
    bottom: 45px;
    color: #f7a522;
    font-size: 1.18rem;
}

.batday-sale-spark-star::before {
    position: absolute;
    top: -131px;
    left: -226px;
    color: rgba(238, 104, 132, .62);
    content: "✦";
    font-size: .52rem;
}

.batday-sale-spark-heart {
    bottom: 36px;
    left: 4px;
    color: #fd6b86;
    font-size: .82rem;
    filter: drop-shadow(0 5px 8px rgba(253, 107, 134, .16));
    transform: rotate(-12deg);
}

.batday-sale-tag {
    position: absolute;
    top: 89px;
    right: -8px;
    z-index: 4;
    padding: 4px 7px 4px 9px;
    border-radius: 5px 7px 7px 5px;
    background: linear-gradient(135deg, #ff805f, #f35c55);
    box-shadow: 0 7px 14px rgba(222, 78, 70, .2);
    color: #fff;
    font-size: .48rem;
    font-weight: 950;
    letter-spacing: .08em;
    transform: rotate(8deg);
}

.batday-sale-tag-off {
    top: -1px;
    left: -12px;
    right: auto;
    background: linear-gradient(135deg, #ffbf48, #ff7d5f);
    box-shadow: 0 7px 14px rgba(232, 127, 61, .18);
    transform: rotate(-8deg);
}

.batday-sale-tag-hot {
    top: auto;
    right: auto;
    bottom: 3px;
    left: 31px;
    background: linear-gradient(135deg, #ee5a87, #bd48a5);
    box-shadow: 0 7px 14px rgba(189, 72, 165, .16);
    transform: rotate(-6deg);
}

.batday-sale-tag::before {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
    content: "";
    transform: translateY(-50%);
}

.batday-phone {
    width: min(100%, 252px);
    min-height: 438px;
    margin: 0 auto;
    padding: 8px 8px 10px;
    border: 6px solid #263749;
    border-radius: 30px;
    background: #f1f5f8;
    box-shadow: 0 20px 38px rgba(30, 54, 77, .2);
}

.batday-phone-status {
    display: flex;
    min-height: 22px;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px;
    color: #273a4e;
    font-size: .57rem;
    font-weight: 850;
}

.batday-phone-channel {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 47px;
    padding: 6px 7px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(45, 71, 96, .08);
}

.batday-phone-channel > img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.batday-phone-channel > strong {
    min-width: 0;
    color: #1d3e5f;
    font-size: .66rem;
    font-weight: 850;
    line-height: 1.18;
}

.batday-phone-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #229ed9;
}

.batday-phone-actions svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.batday-phone-actions b {
    color: #738395;
    font-size: 1rem;
    line-height: 1;
}

.batday-phone-feed {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.batday-deal-card {
    display: grid;
    min-height: 104px;
    grid-template-columns: minmax(0, 1fr) 79px;
    gap: 7px;
    padding: 9px;
    border: 1px solid rgba(37, 61, 84, .08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 12px rgba(43, 69, 93, .07);
}

.batday-deal-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.batday-deal-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.batday-deal-brand img {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 5px;
}

.batday-deal-brand strong {
    color: #263f59;
    font-size: .65rem;
    font-weight: 850;
}

.batday-deal-copy > b {
    color: #172f48;
    font-size: .64rem;
    line-height: 1.25;
}

.batday-deal-copy > span:not(.batday-deal-action) {
    margin-top: 2px;
    color: #748293;
    font-size: .56rem;
    font-weight: 600;
    line-height: 1.25;
}

.batday-deal-action {
    margin-top: auto;
    color: #e8613f;
    font-size: .57rem;
    font-weight: 850;
}

.batday-deal-voucher {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 7px 6px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    text-align: center;
    box-shadow: 0 7px 13px rgba(41, 58, 74, .12);
}

.batday-deal-voucher::before,
.batday-deal-voucher::after {
    position: absolute;
    top: 48%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transform: translateY(-50%);
}

.batday-deal-voucher::before {
    left: -5px;
}

.batday-deal-voucher::after {
    right: -5px;
}

.batday-deal-voucher span {
    width: 100%;
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(255, 255, 255, .5);
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .05em;
}

.batday-deal-voucher strong {
    margin-top: 3px;
    font-size: .64rem;
    font-weight: 950;
    line-height: 1.1;
}

.batday-deal-voucher small {
    margin-top: 3px;
    font-size: .47rem;
    font-weight: 750;
    line-height: 1.15;
}

.batday-deal-voucher-shopee {
    background: linear-gradient(145deg, #ff7142, #ee4d2d 56%, #df3527);
}

.batday-deal-voucher-shopee .batday-voucher-brand {
    letter-spacing: .11em;
}

.batday-deal-voucher-lazada {
    background: linear-gradient(145deg, #ff2e88, #d31373 48%, #7f2eb5);
}

.batday-deal-voucher-lazada .batday-voucher-value {
    font-size: .82rem;
}

.batday-deal-voucher-tiktok {
    background:
        linear-gradient(90deg, #25f4ee 0 3px, transparent 3px calc(100% - 3px), #fe2c55 calc(100% - 3px)),
        linear-gradient(145deg, #15171b, #050608);
    box-shadow: 4px 4px 0 rgba(37, 244, 238, .14), -3px -3px 0 rgba(254, 44, 85, .1);
}

.batday-deal-voucher-tiktok .batday-voucher-brand {
    color: #fff;
    text-transform: none;
}

.batday-deal-voucher-tiktok .batday-voucher-value {
    color: #fff;
    font-size: .57rem;
}

.resource-detail-section .batday-community-cta-grid {
    gap: 9px;
    margin: 0;
    padding: 0 18px 18px;
}

.resource-detail-section .batday-community-cta-grid .resource-community-cta-link {
    min-height: 72px;
    justify-content: center;
    gap: 10px;
    padding: 11px 10px;
    border-color: rgba(38, 70, 99, .1);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 5px 14px rgba(31, 57, 82, .045);
    transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

.resource-detail-section .batday-community-cta-grid .resource-community-cta-link:hover,
.resource-detail-section .batday-community-cta-grid .resource-community-cta-link:focus-visible {
    border-color: rgba(241, 112, 68, .46);
    box-shadow: 0 10px 22px rgba(31, 57, 82, .1), 0 0 0 3px rgba(241, 112, 68, .08);
    transform: translateY(-2px);
}

.resource-detail-section .batday-community-cta-grid .resource-community-cta-icon {
    width: 34px;
    height: 34px;
    padding: 7px;
    box-sizing: border-box;
    border-radius: 11px;
    background: rgba(34, 158, 217, .1);
}

.resource-detail-section .batday-community-cta-grid .resource-community-cta-icon-batday img {
    width: 31px;
    height: 31px;
}

.resource-detail-section .batday-community-cta-grid .resource-community-cta-icon-zalo {
    background: rgba(0, 104, 255, .1);
}

.resource-detail-section .batday-community-cta-grid .resource-community-cta-icon-batday {
    background: rgba(241, 112, 68, .1);
}

.batday-community-cta-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.batday-community-cta-copy strong {
    color: #29445f;
    font-size: .75rem;
    font-weight: 850;
    line-height: 1.2;
}

.batday-community-cta-copy small {
    color: #758496;
    font-size: .58rem;
    font-weight: 600;
    line-height: 1.2;
}

html[data-theme="dark"] .resource-detail-section .batday-community {
    border-color: rgba(255, 142, 91, .24);
    background:
        radial-gradient(circle at 88% 2%, rgba(255, 154, 76, .13), transparent 31%),
        linear-gradient(145deg, #1d2732 0%, #202a35 55%, #192834 100%);
}

html[data-theme="dark"] .batday-community-header {
    border-bottom-color: rgba(255, 160, 110, .14);
}

html[data-theme="dark"] .resource-detail-section .batday-community-heading h2,
html[data-theme="dark"] .batday-community-pitch h3 {
    color: #f7fafc;
}

html[data-theme="dark"] .batday-community-heading p,
html[data-theme="dark"] .batday-community-pitch p {
    color: #aebbc8;
}

html[data-theme="dark"] .batday-community-live {
    border-color: rgba(50, 210, 158, .2);
    background: rgba(18, 127, 94, .2);
    color: #7be0bd;
}

html[data-theme="dark"] .resource-detail-section .batday-community-cta-grid .resource-community-cta-link {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(26, 37, 48, .78);
}

html[data-theme="dark"] .resource-detail-section .batday-community-cta-grid .resource-community-cta-link:hover,
html[data-theme="dark"] .resource-detail-section .batday-community-cta-grid .resource-community-cta-link:focus-visible {
    border-color: rgba(255, 160, 110, .52);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24), 0 0 0 3px rgba(255, 160, 110, .1);
}

html[data-theme="dark"] .resource-detail-section .batday-community-cta-grid .resource-community-cta-link-deals-telegram-channel:hover,
html[data-theme="dark"] .resource-detail-section .batday-community-cta-grid .resource-community-cta-link-deals-telegram-channel:focus-visible {
    border-color: rgba(34, 158, 217, .62);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24), 0 0 0 3px rgba(34, 158, 217, .12);
}

html[data-theme="dark"] .resource-detail-section .batday-community-cta-grid .resource-community-cta-link-deals-zalo-group:hover,
html[data-theme="dark"] .resource-detail-section .batday-community-cta-grid .resource-community-cta-link-deals-zalo-group:focus-visible {
    border-color: rgba(0, 104, 255, .62);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24), 0 0 0 3px rgba(0, 104, 255, .12);
}

html[data-theme="dark"] .resource-detail-section .resource-community-surface-editbox {
    border-color: rgba(126, 174, 216, .13);
    background:
        radial-gradient(circle at 15% 0%, rgba(34, 158, 217, .08), transparent 31%),
        radial-gradient(circle at 86% 100%, rgba(88, 101, 242, .07), transparent 34%),
        var(--sf-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

html[data-theme="dark"] .resource-detail-section .resource-community-surface-editbox .resource-community-cta-link {
    border-color: rgba(255, 255, 255, .075);
    background: rgba(255, 255, 255, .025);
}

html[data-theme="dark"] .batday-community-cta-copy strong {
    color: #f1f5f8;
}

html[data-theme="dark"] .batday-community-cta-copy small {
    color: #aab7c4;
}

@media (max-width: 1220px) and (min-width: 1025px) {
    .batday-community-header {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .batday-community-logo {
        width: 48px;
        height: 48px;
    }

    .batday-community-live {
        grid-column: 2;
        justify-self: start;
    }

    .batday-community-hero {
        grid-template-columns: 1fr;
    }

    .batday-community-pitch {
        min-height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 170px;
        align-items: center;
        padding: 4px 8px 8px;
    }

    .batday-platform-visual {
        width: 170px;
        min-height: 184px;
    }

    .batday-platform-mark-shopee {
        top: 34px;
        left: 7px;
        width: 84px;
        height: 88px;
    }

    .batday-platform-mark-lazada {
        top: 10px;
        right: 14px;
        width: 76px;
        height: 76px;
    }

    .batday-platform-mark-tiktok {
        bottom: 13px;
        left: 83px;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 600px) {
    .batday-community-header {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        padding: 16px;
    }

    .batday-community-logo {
        width: 48px;
        height: 48px;
    }

    .batday-community-live {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .batday-community-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px 16px;
    }

    .batday-community-pitch {
        min-height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 132px;
        align-items: center;
        gap: 10px;
        padding: 2px 0 4px;
    }

    .batday-community-pitch h3 {
        font-size: 1.35rem;
    }

    .batday-community-pitch h3 > span {
        white-space: normal;
    }

    .batday-platform-visual {
        width: 158px;
        min-height: 164px;
    }

    .batday-platform-mark-shopee {
        top: 29px;
        left: 5px;
        width: 74px;
        height: 78px;
        transform: rotate(-7deg);
    }

    .batday-platform-mark-lazada {
        top: 10px;
        right: 14px;
        width: 64px;
        height: 64px;
        transform: rotate(6deg);
    }

    .batday-platform-mark-tiktok {
        bottom: 15px;
        left: 76px;
        width: 72px;
        height: 72px;
        transform: rotate(4deg);
    }

    .batday-platform-mark img {
        width: 100%;
        height: 100%;
    }

    .batday-sale-tag-sale {
        top: auto;
        right: -2px;
        bottom: -17px;
    }

    .batday-sale-tag-off {
        top: -12px;
        left: -8px;
        right: auto;
    }

    .batday-sale-tag-hot {
        top: auto;
        right: auto;
        bottom: 0;
        left: 6px;
    }

    .batday-sale-spark-heart {
        bottom: 30px;
        left: 0;
    }

    .batday-phone {
        width: min(100%, 274px);
        min-height: 446px;
    }

    .resource-detail-section .batday-community-cta-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 16px;
    }

    .resource-detail-section .batday-community-cta-grid .resource-community-cta-link {
        min-height: 66px;
    }
}

@media (max-width: 760px) {
    .resource-community-surfaces {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 16px;
    }

    .resource-detail-section .resource-community-surface {
        padding: 16px;
    }
}

/* Resource Detail right-column hierarchy: information first, communities after it. */
.resource-detail-section .resource-detail-right-column {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 18px;
}

.resource-detail-section .resource-detail-right-column > .resource-summary-panel {
    min-width: 0;
}

.resource-detail-section .resource-detail-right-column > .resource-community-surfaces {
    width: 100%;
    margin-top: 0;
}

@media (max-width: 1024px) {
    .resource-detail-section .resource-detail-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .resource-detail-section .resource-detail-grid > .resource-detail-media-col,
    .resource-detail-section .resource-detail-grid > .resource-detail-right-column {
        display: contents;
    }

    .resource-detail-section .resource-detail-media-col > .resource-main-preview,
    .resource-detail-section .resource-detail-media-col > .resource-video-watch-link {
        order: 1;
    }

    .resource-detail-section .resource-detail-right-column > .resource-summary-panel {
        order: 2;
    }

    .resource-detail-section .resource-detail-media-col > .resource-detail-description {
        order: 3;
    }

    .resource-detail-section .resource-detail-media-col > .resource-detail-tags {
        order: 4;
    }

    .resource-detail-section .resource-detail-media-col > .resource-detail-source {
        order: 5;
    }

    .resource-detail-section .resource-detail-right-column > .resource-community-surfaces {
        order: 6;
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .resource-detail-section .resource-detail-right-column > .resource-community-surfaces {
        gap: 14px;
    }
}

.account-report-unread {margin-left:auto;min-width:22px;padding:2px 6px;border-radius:12px;background:var(--sf-accent);color:var(--sf-surface);font-size:12px;text-align:center;}

/* Existing report-reply notifications in the Website header. */
.storefront-report-notifications { position: relative; }
.storefront-report-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--sf-text-primary);
    list-style: none;
}
.storefront-report-bell::-webkit-details-marker { display: none; }
.storefront-report-bell:hover { background: var(--sf-surface-elevated); }
.storefront-report-bell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.storefront-report-notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--sf-red);
    color: var(--sf-inverse);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}
.storefront-report-notification-badge[hidden] { display: none; }
.storefront-report-notification-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;
    width: min(340px, calc(100vw - 24px));
    max-height: 65vh;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    background: var(--sf-surface);
    box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
    color: var(--sf-text-primary);
}
.storefront-report-notification-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sf-border);
    color: var(--sf-text-primary);
    text-decoration: none;
    overflow-wrap: anywhere;
    font-size: 13px;
}
.storefront-report-notification-item:hover { color: var(--sf-red); }
.storefront-report-notification-message,
.storefront-report-notification-empty { color: var(--sf-text-secondary); }
.storefront-report-notification-all { display: block; padding-top: 12px; font-size: 13px; color: var(--sf-red); }
.account-report-item[id] { scroll-margin-top: 100px; }

.account-report-unread[hidden], .storefront-report-notification-empty[hidden] { display: none; }

/* Unified inbox shares the existing header/account surfaces. */
.storefront-report-notification-item.is-unread { border-left: 3px solid var(--sf-red); padding-left: 10px; }
.storefront-report-notification-item time { font-size: 12px; color: var(--sf-text-secondary); }
.notification-error { font-size: 13px; color: var(--sf-red); }
.notification-error[hidden], [data-notification-empty][hidden] { display: none; }
.account-notification-list { display: flex; flex-direction: column; gap: 12px; }
.account-notification-row { display: flex; align-items: flex-start; gap: 16px; scroll-margin-top: 100px; }
.account-notification-row.is-unread { border-left: 3px solid var(--sf-red); }
.account-notification-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.account-notification-content h2 { margin: 0; font-size: 16px; }
.account-notification-content p { white-space: pre-wrap; color: var(--sf-text-secondary); }
.account-notification-content time { font-size: 12px; color: var(--sf-text-secondary); }
.account-notification-row form { flex-shrink: 0; }
@media (max-width: 640px) { .account-notification-row { flex-direction: column; } }

@media (min-width: 1280px) {
    .storefront-header:has([data-report-notifications]) .storefront-nav-actions { padding-right: 48px; }
    .storefront-header:has([data-report-notifications]) .storefront-header-actions {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Product image viewer: contained original image, native modal top layer. */
.resource-image-trigger { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.resource-image-trigger .resource-main-img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: filter 150ms ease; }
.resource-image-trigger:hover .resource-main-img { filter: brightness(.94); }
.resource-image-trigger:focus-visible { outline: 2px solid var(--sf-text-primary); outline-offset: -4px; }
.resource-image-lightbox { position: fixed; inset: 0; box-sizing: border-box; width: min(1200px, calc(100vw - 32px)); height: min(850px, calc(100dvh - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--sf-border); border-radius: 12px; color: var(--sf-text-primary); background: var(--sf-surface); box-shadow: var(--sf-shadow-lg); }
.resource-image-lightbox[open] { display: flex; flex-direction: column; }
.resource-image-lightbox::backdrop { background: rgb(0 0 0 / 72%); }
.resource-image-tools { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 8px; padding: 8px; border-bottom: 1px solid var(--sf-border); background: var(--sf-surface); }
.resource-image-tools button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--sf-border); border-radius: 8px; color: var(--sf-text-primary); background: var(--sf-surface-soft); cursor: pointer; }
.resource-image-tools button:hover:not(:disabled) { background: var(--sf-surface-elevated); }
.resource-image-tools button:disabled { opacity: .45; cursor: default; }
.resource-image-viewport { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: none; }
.resource-image-viewport img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.resource-image-viewport.is-zoomed { cursor: grab; }
.resource-image-viewport.is-dragging { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .resource-image-trigger .resource-main-img { transition: none; } }
/* Inactive video surfaces must never cover the product thumbnail. */
.resource-card-media.resource-product-card-media > img[data-resource-card-thumbnail],
.resource-card-media.resource-product-card-media > .resource-card-placeholder {
    z-index: 1;
}

.resource-card-media.resource-product-card-media > .resource-card-preview {
    z-index: 2;
    visibility: hidden;
    opacity: 0;
}

.resource-card-media.resource-product-card-media.is-previewing > .resource-card-preview {
    visibility: visible;
    opacity: 1;
}

/* Service listing cards: resource-card framing with each service's configured media. */
.services-listing-section .services-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.services-listing-section .service-block-card { padding: 0; overflow: hidden; min-height: 100%; }
.services-listing-section .service-block-top { display: flex; flex-direction: column; gap: 0; }
.services-listing-section .service-block-media { display: grid; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; border-radius: 0; place-items: center; background: var(--sf-surface-soft); }
.services-listing-section .service-block-media img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.services-listing-section .service-block-content { padding: 18px 18px 0; min-height: 0; }
.services-listing-section .service-block-desc { font-size: .75rem; line-height: 1.6; }
.services-listing-section .service-block-tags { margin: 16px 18px; flex-wrap: wrap; overflow: visible; }
.services-listing-section .service-block-tag { flex: 0 1 auto; white-space: normal; overflow-wrap: anywhere; font-size: .65rem; }
.services-listing-section .service-block-foot { margin: auto 18px 18px; padding-top: 14px; }
.services-listing-section .service-block-price strong { font-size: 1rem; }
.services-listing-section .service-block-foot > .storefront-button { min-height: 40px; font-size: .75rem; }
@media (max-width: 1100px) { .services-listing-section .services-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services-listing-section .services-card-grid { grid-template-columns: minmax(0, 1fr); } }

.services-listing-section .service-block-media .digital-service-placeholder,
.homepage-service-media .digital-service-placeholder,
.digital-service-card > .resource-card-media .digital-service-placeholder {
    background: var(--sf-surface-soft); color: var(--sf-text-muted);
}
