/* ========================================
   Black Stock Art - Main Stylesheet
   Dark theme inspired by Lumena Productions
   ======================================== */

/* --- Reset & Variables --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-card: #15151f;
    --bg-hover: #1e1e2a;
    --text-primary: #e8e8f0;
    --text-secondary: #9898a8;
    --text-muted: #686878;
    --accent-blue: #4a7cff;
    --accent-purple: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #4a7cff, #8b5cf6);
    --accent-glow: 0 0 20px rgba(74, 124, 255, 0.3);
    --border-color: #2a2a3a;
    --border-subtle: #1e1e2e;
    --danger: #ef4444;
    --success: #22c55e;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --transition: 0.2s ease;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;
    --header-height: 64px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--accent-purple);
}

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

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    white-space: nowrap;
}
.logo:hover { color: var(--text-primary); }
.logo-icon {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.main-nav {
    display: flex;
    gap: 8px;
    flex: 1;
}
.nav-link {
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-hover);
}

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

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent-blue);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ghost {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-ghost:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover {
    box-shadow: var(--accent-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    justify-content: center;
}
.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Search Bar --- */
.search-bar {
    border-top: 1px solid var(--border-subtle);
    padding: 12px 24px;
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.search-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    font-family: var(--font);
}
.search-input::placeholder {
    color: var(--text-muted);
}

.search-filters {
    display: flex;
    gap: 8px;
}

.filter-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
}
.filter-select:focus {
    border-color: var(--accent-blue);
}

.search-close {
    flex-shrink: 0;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 32px;
    right: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    margin-top: 8px;
}

.autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background var(--transition);
}
.autocomplete-item:hover {
    background: var(--bg-hover);
}
.autocomplete-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-blue);
    font-weight: 600;
    letter-spacing: 0.05em;
}
.autocomplete-value {
    color: var(--text-primary);
    font-size: 0.9rem;
}
.autocomplete-count {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: auto;
}

.color-swatches {
    max-width: 1400px;
    margin: 8px auto 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.swatch-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-right: 4px;
}
.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}
.color-swatch:hover, .color-swatch.active {
    transform: scale(1.2);
    border-color: white;
    box-shadow: 0 0 8px rgba(255,255,255,0.3);
}
.color-clear {
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

/* --- Hero --- */
.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(74, 124, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        var(--bg-primary);
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-search {
    display: flex;
    gap: 0;
    max-width: 540px;
    margin: 0 auto 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}
.hero-search:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 124, 255, 0.1);
}
.hero-search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 14px 20px;
    font-size: 1rem;
    outline: none;
    font-family: var(--font);
}
.hero-search-input::placeholder {
    color: var(--text-muted);
}
.hero-search-btn {
    border-radius: 0;
    padding: 14px 28px;
}

.hero-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hero-tags-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.tag-chip {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}
.tag-chip:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* --- Sections --- */
.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-link {
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.page-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px 24px;
    text-align: center;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* --- Category Grid --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.category-grid-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 48px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.category-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.category-card-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}
.category-card-count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Collection Grid --- */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.collection-grid-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.collection-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}
.collection-card:hover {
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.collection-card-cover {
    height: 160px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.collection-card-cover svg {
    opacity: 0.3;
}
.collection-card-info {
    padding: 16px 20px;
}
.collection-card-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.collection-card-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.collection-card-count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Tags Cloud --- */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* --- Lightbox --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(0,0,0,0.8); }

.lightbox-image {
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
.lightbox-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 80vh;
}

.lightbox-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lightbox-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.lightbox-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.lightbox-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lightbox-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lightbox-actions {
    display: flex;
    gap: 10px;
    padding-top: 8px;
}

.lightbox-related h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.related-grid img {
    border-radius: var(--radius-sm);
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    transition: opacity var(--transition);
}
.related-grid img:hover { opacity: 0.8; }

/* --- Auth Modal --- */
.modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: modalIn 0.2s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }

.modal-body {
    padding: 40px;
}

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

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}
.form-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition);
    font-family: var(--font);
}
.form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 124, 255, 0.1);
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.modal-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Cart Drawer --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 300;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.25s ease;
}
@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}
.cart-drawer-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 48px 0;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-tertiary);
}
.cart-item-info {
    flex: 1;
}
.cart-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2px;
}
.cart-item-price {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--danger); }

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 250;
}

/* --- Loading --- */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 48px;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.load-more {
    text-align: center;
    padding: 32px;
}

/* --- Pricing --- */
.pricing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 64px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card-featured {
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(74, 124, 255, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 24px;
}
.pricing-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-amount .price {
    font-size: 2.5rem;
    font-weight: 800;
}
.pricing-amount .period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
}
.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}
.pricing-features li:last-child { border: none; }
.pricing-features strong { color: var(--text-primary); }

.pricing-faq {
    max-width: 700px;
    margin: 0 auto;
}
.pricing-faq h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 32px;
}
.faq-item {
    margin-bottom: 24px;
}
.faq-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Static Pages --- */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 64px;
}
.static-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.prose {
    line-height: 1.8;
    color: var(--text-secondary);
}
.prose h3 {
    color: var(--text-primary);
    margin: 32px 0 12px;
    font-size: 1.2rem;
}
.prose p { margin-bottom: 16px; }
.prose .lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.prose ul {
    margin: 0 0 16px 20px;
}
.prose li {
    margin-bottom: 6px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
}
.contact-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}
.contact-card p {
    margin-bottom: 16px;
}

/* --- Account --- */
.account-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.account-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.tab-content {
    min-height: 200px;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    margin-top: 64px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 48px;
}

.footer-brand .logo-icon { font-size: 1rem; }
.footer-brand .logo-text { font-size: 0.8rem; letter-spacing: 0.15em; font-weight: 700; }
.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 12px;
}
.footer-credit {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Mobile Nav --- */
.mobile-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--bg-secondary);
    z-index: 90;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-nav-link {
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 500;
    transition: background var(--transition);
}
.mobile-nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero { min-height: 400px; padding: 48px 20px; }
    .hero-search { flex-direction: column; }
    .hero-search-btn { border-radius: 0; }

    .lightbox {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .search-filters { display: none; }

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

    .section { padding: 32px 16px; }
}

@media (max-width: 480px) {
    .header-inner { padding: 0 16px; gap: 12px; }
    .hero-title { font-size: 1.8rem; }
    .footer-links { grid-template-columns: 1fr 1fr; gap: 20px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
