/* ═══════════════ HARVEST DESIGN SYSTEM ═══════════════ */
:root {
    --bg-primary: #08070e;
    --bg-secondary: #0f0e17;
    --bg-card: rgba(255,255,255,0.04);
    --bg-glass: rgba(255,255,255,0.06);
    --border-glass: rgba(255,255,255,0.08);
    --gold: #D4A574;
    --gold-bright: #E8C99B;
    --gold-dark: #B8860B;
    --amber: #F59E0B;
    --green: #34D399;
    --red: #F87171;
    --text-primary: #F5F0EB;
    --text-secondary: rgba(245,240,235,0.6);
    --text-muted: rgba(245,240,235,0.35);
    --accent-gradient: linear-gradient(135deg, #D4A574, #E8C99B, #B8860B);
    --glow-gold: 0 0 40px rgba(212,165,116,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-display: 'Playfair Display', serif;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-h: 64px;
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ═══════════════ GLASS UTILITIES ═══════════════ */
.glass-nav {
    background: rgba(8,7,14,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.glass-card:hover { border-color: rgba(212,165,116,0.2); box-shadow: var(--glow-gold); }

/* ═══════════════ NAVIGATION ═══════════════ */
#main-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
}
.nav-inner {
    max-width: 1400px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 24px; }
.logo-text {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    background: var(--accent-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 8px; }
.nav-link {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-glass); }
.nav-cta {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: var(--radius-sm);
    background: var(--accent-gradient); color: #0a0a0a;
    font-weight: 600; font-size: 14px; transition: all var(--transition);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,165,116,0.3); }
.mobile-menu-btn {
    display: none; flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-menu-btn span {
    width: 22px; height: 2px; background: var(--text-primary);
    border-radius: 2px; transition: var(--transition);
}

/* ═══════════════ MOBILE DRAWER ═══════════════ */
.mobile-drawer {
    position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: 0;
    transition: opacity var(--transition);
}
.mobile-drawer.open { pointer-events: all; opacity: 1; }
.drawer-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: 280px;
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column; border-radius: 0;
    border-right: none; border-top: none; border-bottom: none;
}
.mobile-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-header {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 24px; border-bottom: 1px solid var(--border-glass);
}
.drawer-close {
    margin-left: auto; font-size: 28px; color: var(--text-secondary);
    line-height: 1;
}
.drawer-links { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.drawer-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 500; color: var(--text-secondary);
    transition: all var(--transition);
}
.drawer-link:hover, .drawer-link.active { color: var(--text-primary); background: var(--bg-glass); }
.dl-icon { font-size: 18px; }
.drawer-cta {
    margin: 16px; padding: 14px; border-radius: var(--radius-md);
    background: var(--accent-gradient); color: #0a0a0a;
    font-weight: 600; font-size: 15px; text-align: center;
}

/* ═══════════════ VIEWS ═══════════════ */
.view { display: none; padding-top: var(--nav-h); min-height: 100vh; }
.view.active { display: block; animation: viewIn 0.4s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.view-container { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }
.view-header { margin-bottom: 40px; }
.view-header h1 {
    font-family: var(--font-heading); font-size: clamp(28px,4vw,42px);
    font-weight: 800; margin-bottom: 8px;
}
.view-header p { color: var(--text-secondary); font-size: 16px; max-width: 500px; }

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px; transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent-gradient); color: #0a0a0a;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(212,165,116,0.35); }
.btn-outline {
    border: 1px solid var(--border-glass); color: var(--text-primary);
    background: transparent;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(212,165,116,0.08); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-glass); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }

/* ═══════════════ HERO ═══════════════ */
.hero {
    min-height: calc(100vh - var(--nav-h)); display: grid;
    grid-template-columns: 1fr 1fr; align-items: center;
    max-width: 1400px; margin: 0 auto; padding: 60px 24px;
    position: relative; gap: 60px;
}
.hero-bg-effects { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
}
.orb-1 { width: 500px; height: 500px; background: rgba(212,165,116,0.15); top: -10%; right: 20%; animation: orbFloat 8s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: rgba(139,92,246,0.1); bottom: 10%; left: 10%; animation: orbFloat 10s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; background: rgba(52,211,153,0.08); top: 40%; right: -5%; animation: orbFloat 12s ease-in-out infinite; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-30px); } }
.hero-grain {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 100px;
    background: rgba(212,165,116,0.1); border: 1px solid rgba(212,165,116,0.2);
    font-size: 13px; font-weight: 500; color: var(--gold-bright);
    margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title {
    font-family: var(--font-heading); font-size: clamp(36px,5vw,64px);
    font-weight: 900; line-height: 1.1; margin-bottom: 24px;
}
.title-line { display: block; }
.title-line.accent {
    background: var(--accent-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
    font-size: clamp(15px,1.5vw,18px); color: var(--text-secondary);
    max-width: 520px; margin-bottom: 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
    display: flex; align-items: center; gap: 24px;
    padding: 20px 0; border-top: 1px solid var(--border-glass);
}
.stat-num {
    font-family: var(--font-heading); font-size: 28px; font-weight: 800;
    background: var(--accent-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    display: block;
}
.stat-label { font-size: 13px; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border-glass); }

/* ═══════════════ HERO VISUAL / POSTCARD PREVIEW ═══════════════ */
.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.postcard-preview-stack { position: relative; width: 420px; height: 300px; perspective: 1000px; }
.preview-card {
    position: absolute; border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); transition: transform 0.5s ease;
    overflow: hidden;
}
.card-front {
    width: 400px; height: 260px; top: 0; left: 10px; z-index: 2;
    transform: rotateY(-5deg) rotateX(3deg);
}
.card-front:hover { transform: rotateY(-2deg) rotateX(1deg) scale(1.02); }
.pc-front-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #0f2027 100%);
}
.pc-front-content {
    position: relative; z-index: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; height: 100%; text-align: center;
    padding: 24px;
}
.pc-church-name { font-family: var(--font-display); font-size: 14px; color: rgba(255,255,255,0.7); letter-spacing: 2px; text-transform: uppercase; }
.pc-event { font-family: var(--font-heading); font-size: 28px; font-weight: 800; color: #fff; margin: 8px 0; }
.pc-date { font-size: 14px; color: var(--gold-bright); font-weight: 500; }
.card-back {
    width: 380px; height: 240px; top: 30px; left: 0; z-index: 1;
    background: #faf8f5; padding: 24px; transform: rotateY(5deg) rotateX(-3deg);
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.pc-stamp { position: absolute; top: 12px; right: 12px; font-size: 20px; }
.pc-address-block { grid-column: 2; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.pc-message-block { grid-column: 1; display: flex; flex-direction: column; gap: 5px; padding-top: 20px; }
.pc-line { height: 6px; border-radius: 3px; background: #ddd; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; }
.w70 { width: 70%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }
.pc-qr {
    position: absolute; bottom: 16px; right: 16px;
    width: 50px; height: 50px; background: #222; border-radius: 4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.qr-dots {
    width: 30px; height: 30px;
    background: repeating-conic-gradient(#fff 0% 25%, #222 0% 50%) 0 0 / 6px 6px;
}
.qr-label { font-size: 5px; color: #fff; margin-top: 2px; font-weight: 700; letter-spacing: 0.5px; }

/* ═══════════════ FEATURES ═══════════════ */
.features-section, .pricing-section {
    max-width: 1200px; margin: 0 auto; padding: 80px 24px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-family: var(--font-heading); font-size: clamp(24px,3.5vw,40px); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 16px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 32px; text-align: center; }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ═══════════════ PRICING ═══════════════ */
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing-card { padding: 32px; text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--gold); box-shadow: var(--glow-gold); transform: scale(1.05); }
.price-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 4px 16px; border-radius: 100px;
    background: var(--accent-gradient); color: #0a0a0a;
    font-size: 12px; font-weight: 700; white-space: nowrap;
}
.price-tier { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--text-secondary); }
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-bottom: 24px; }
.currency { font-size: 24px; font-weight: 600; color: var(--gold); }
.dollars { font-family: var(--font-heading); font-size: 48px; font-weight: 900; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.per { font-size: 14px; color: var(--text-muted); }
.price-features { list-style: none; margin-bottom: 24px; text-align: left; }
.price-features li { padding: 8px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border-glass); }
.price-features li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ═══════════════ TEMPLATE FILTERS ═══════════════ */
.template-filters {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.filter-btn {
    padding: 8px 18px; border-radius: 100px;
    font-size: 13px; font-weight: 600;
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    color: var(--text-secondary); transition: all var(--transition);
}
.filter-btn:hover { color: var(--text-primary); border-color: rgba(212,165,116,0.3); }
.filter-btn.active {
    background: var(--accent-gradient); color: #0a0a0a;
    border-color: transparent;
}

/* ═══════════════ TEMPLATE GRID ═══════════════ */
.templates-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.template-card { overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.template-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.template-preview {
    height: 200px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    position: relative; overflow: hidden;
}
.tmpl-emoji { font-size: 48px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }
.tmpl-text-preview { text-align: center; padding: 0 16px; }
.tmpl-main { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.tmpl-sub { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 4px; }
.template-info {
    padding: 16px; display: flex; align-items: center;
    justify-content: space-between; background: var(--bg-secondary);
}
.tmpl-name { font-weight: 600; font-size: 14px; }
.tmpl-use-btn { white-space: nowrap; }

/* ═══════════════ DESIGNER LAYOUT ═══════════════ */
.designer-layout {
    display: grid;
    grid-template-columns: auto 1fr 280px;
    grid-template-rows: 1fr;
    gap: 0; min-height: calc(100vh - var(--nav-h));
}
.designer-toolbar {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 8px; border-radius: 0;
    border-top: none; border-bottom: none; border-left: none;
    align-items: center;
}
.toolbar-group { display: flex; flex-direction: column; gap: 4px; }
.toolbar-divider { width: 32px; height: 1px; background: var(--border-glass); margin: 8px 0; }
.tool-btn {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all var(--transition);
    position: relative;
}
.tool-btn:hover { color: var(--text-primary); background: var(--bg-glass); }
.tool-btn.active { color: var(--gold); background: rgba(212,165,116,0.12); }
.ai-sparkle { font-size: 18px; }

/* Designer Canvas Area */
.designer-canvas-area {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 24px; gap: 16px;
    background: var(--bg-secondary); position: relative;
    overflow: auto;
}
.card-side-toggle {
    display: flex; gap: 4px; padding: 4px;
    background: var(--bg-glass); border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}
.side-btn {
    padding: 6px 20px; border-radius: 6px;
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    transition: all var(--transition);
}
.side-btn.active { background: var(--accent-gradient); color: #0a0a0a; }
.card-size-selector select {
    padding: 6px 12px; border-radius: var(--radius-sm);
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    color: var(--text-primary); font-size: 13px;
}
.canvas-wrapper {
    display: flex; align-items: center; justify-content: center;
    flex: 1; width: 100%;
}
.postcard-canvas {
    width: 480px; height: 320px; border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transition: width 0.3s ease, height 0.3s ease;
}
.canvas-content {
    width: 100%; height: 100%; position: relative;
    transform-origin: center center;
    transition: transform 0.2s ease;
}
.canvas-placeholder {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 100%; gap: 12px;
    color: rgba(255,255,255,0.4);
}
.placeholder-icon { font-size: 48px; opacity: 0.5; }
.placeholder-text { font-size: 14px; text-align: center; padding: 0 20px; }
.canvas-el { position: absolute; cursor: move; user-select: none; }
.canvas-zoom {
    display: flex; align-items: center; gap: 8px;
}
.zoom-btn {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    color: var(--text-primary); font-size: 16px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.zoom-btn:hover { border-color: var(--gold); background: rgba(212,165,116,0.1); }
.zoom-level { font-size: 13px; font-weight: 600; color: var(--text-secondary); min-width: 40px; text-align: center; }

/* Properties Panel */
.designer-props {
    border-radius: 0; border-top: none; border-bottom: none; border-right: none;
    overflow-y: auto; display: flex; flex-direction: column;
}
.props-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border-glass);
}
.props-header h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.props-toggle {
    width: 28px; height: 28px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all var(--transition);
}
.props-toggle:hover { color: var(--text-primary); background: var(--bg-glass); }
.props-body { padding: 16px 20px; flex: 1; overflow-y: auto; }
.prop-section { margin-bottom: 24px; }
.prop-section h4 {
    font-family: var(--font-heading); font-size: 13px; font-weight: 700;
    color: var(--text-secondary); letter-spacing: 0.5px; text-transform: uppercase;
    margin-bottom: 12px;
}
.prop-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.prop-row label { font-size: 12px; color: var(--text-muted); min-width: 50px; white-space: nowrap; }
.prop-input, .prop-select, .prop-num {
    width: 100%; padding: 8px 12px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06); border: 1px solid var(--border-glass);
    color: var(--text-primary); font-size: 13px;
    transition: border-color var(--transition);
}
.prop-input:focus, .prop-select:focus, .prop-num:focus {
    outline: none; border-color: var(--gold);
}
textarea.prop-input { resize: vertical; min-height: 60px; }
.prop-num { width: 60px; text-align: center; }

/* Font Picker */
.font-picker { font-size: 13px; }
.font-picker optgroup { font-size: 12px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 4px; }
.font-picker option { font-size: 13px; color: var(--text-primary); padding: 4px 8px; }
.font-preview {
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 12px;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: font-family 0.2s;
}

/* Spacing Controls */
.spacing-row { gap: 6px !important; }
.spacing-row label { min-width: 48px !important; font-size: 11px !important; }
.prop-range {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    outline: none;
}
.prop-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: 2px solid rgba(10,10,10,0.4);
}
.prop-range::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: 2px solid rgba(10,10,10,0.4);
}
.range-val {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 32px;
    text-align: right;
    font-family: var(--font-mono, monospace);
}

/* Element Action Buttons */
.element-action-btns {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}
.element-action-btns .btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 8px;
}
.btn-danger {
    background: rgba(220,53,69,0.15) !important;
    border-color: rgba(220,53,69,0.5) !important;
    color: #ff6b7a !important;
}
.btn-danger:hover {
    background: rgba(220,53,69,0.3) !important;
    border-color: rgba(220,53,69,0.7) !important;
}
.prop-select {
    width: 100%;
    padding: 6px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
}

/* Card Quality Selector */
#card-quality {
    margin-left: 8px;
    padding: 6px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
}
.prop-color {
    width: 36px; height: 36px; border: 2px solid var(--border-glass);
    border-radius: var(--radius-sm); cursor: pointer; background: none;
    padding: 2px;
}
.text-style-btns { display: flex; gap: 4px; }
.style-btn {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    font-size: 14px; color: var(--text-secondary);
    transition: all var(--transition);
}
.style-btn:hover, .style-btn.active { color: var(--gold); border-color: var(--gold); background: rgba(212,165,116,0.1); }
.align-btn {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    color: var(--text-secondary); transition: all var(--transition);
}
.align-btn:hover, .align-btn.active { color: var(--gold); border-color: var(--gold); }
.bg-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.preset-swatch {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    border: 2px solid var(--border-glass); cursor: pointer;
    transition: all var(--transition);
}
.preset-swatch:hover { border-color: var(--gold); transform: scale(1.1); }
.qr-tracking-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2);
    font-size: 11px; color: var(--green); margin-top: 12px; line-height: 1.4;
}
.tracking-dot {
    width: 6px; height: 6px; min-width: 6px; border-radius: 50%;
    background: var(--green); animation: pulse 2s infinite;
}

/* Designer Bottom Bar (mobile) */
.designer-bottom-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    padding: 12px 16px; gap: 8px;
    background: rgba(8,7,14,0.95); backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
}
.bottom-action {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px; font-size: 11px; color: var(--text-secondary);
    flex: 1;
}
.bottom-action.primary-action {
    background: var(--accent-gradient); color: #0a0a0a;
    border-radius: var(--radius-md); font-weight: 600;
}

/* ═══════════════ ADDRESS VIEW ═══════════════ */
.address-tabs { display: flex; gap: 4px; margin-bottom: 24px; }
.addr-tab {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    transition: all var(--transition);
}
.addr-tab:hover { color: var(--text-primary); border-color: rgba(212,165,116,0.3); }
.addr-tab.active { background: rgba(212,165,116,0.1); border-color: var(--gold); color: var(--gold-bright); }
.addr-content { display: none; }
.addr-content.active { display: block; animation: viewIn 0.3s ease; }

/* Upload Zone */
.upload-zone {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px;
    padding: 48px 24px; border-radius: var(--radius-lg);
    border: 2px dashed var(--border-glass);
    background: var(--bg-glass); cursor: pointer;
    transition: all var(--transition);
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--gold); background: rgba(212,165,116,0.05);
}
.upload-icon { color: var(--text-muted); }
.upload-zone h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.upload-zone p { font-size: 14px; color: var(--text-muted); }

/* Column Mapping */
.column-mapping { padding: 24px 0; }
.column-mapping h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.column-mapping p { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.mapping-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.map-row { display: flex; align-items: center; gap: 16px; }
.map-label { font-size: 14px; font-weight: 600; min-width: 140px; }
.map-select { flex: 1; }

/* Paste Area */
.paste-area { display: flex; flex-direction: column; gap: 16px; }
.paste-textarea {
    width: 100%; min-height: 200px; padding: 16px;
    border-radius: var(--radius-md); background: var(--bg-glass);
    border: 1px solid var(--border-glass); color: var(--text-primary);
    font-size: 14px; resize: vertical; line-height: 1.8;
}
.paste-textarea:focus { outline: none; border-color: var(--gold); }

/* Manual Form */
.manual-form { max-width: 600px; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row.three-col { display: grid; grid-template-columns: 2fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-input {
    padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    color: var(--text-primary); font-size: 14px;
    transition: border-color var(--transition);
}
.form-input:focus { outline: none; border-color: var(--gold); }
.form-input::placeholder { color: var(--text-muted); }

/* Address List / Table */
.address-list-section { margin-top: 40px; }
.list-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.list-header h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.addr-count {
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    margin-left: 8px;
}
.list-actions { display: flex; gap: 8px; }
.address-table-wrap { overflow-x: auto; }
.address-table {
    width: 100%; border-collapse: collapse;
    font-size: 14px;
}
.address-table th {
    text-align: left; padding: 12px 16px;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
    white-space: nowrap;
}
.address-table td {
    padding: 12px 16px; border-bottom: 1px solid var(--border-glass);
    color: var(--text-secondary); white-space: nowrap;
}
.address-table tbody tr { transition: background var(--transition); }
.address-table tbody tr:hover { background: var(--bg-glass); }
.address-table input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--gold);
}
.status-badge {
    display: inline-flex; padding: 3px 10px;
    border-radius: 100px; font-size: 11px; font-weight: 600;
    text-transform: capitalize;
}
.status-pending { background: rgba(245,158,11,0.12); color: var(--amber); }
.status-queued { background: rgba(96,165,250,0.12); color: #60a5fa; }
.status-verified { background: rgba(52,211,153,0.12); color: var(--green); }
.status-error { background: rgba(248,113,113,0.12); color: var(--red); }
.del-addr-btn { color: var(--text-muted); font-size: 16px; }
.del-addr-btn:hover { color: var(--red); }
.empty-list {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 48px 24px; gap: 12px;
}
.empty-icon { font-size: 48px; opacity: 0.4; }
.empty-list p { color: var(--text-muted); font-size: 14px; }

/* ═══════════════ CAMPAIGNS VIEW ═══════════════ */
.campaigns-list { display: flex; flex-direction: column; gap: 16px; }
.campaign-card {
    padding: 24px; display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center; gap: 24px;
}
.camp-status {
    padding: 5px 14px; border-radius: 100px;
    font-size: 12px; font-weight: 700; text-transform: capitalize;
    white-space: nowrap;
}
.camp-status.sending { background: rgba(96,165,250,0.12); color: #60a5fa; }
.camp-status.delivered { background: rgba(52,211,153,0.12); color: var(--green); }
.camp-status.draft { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.camp-info h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.camp-meta { font-size: 13px; color: var(--text-muted); }
.camp-stats { display: flex; gap: 24px; }
.camp-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cs-num { font-family: var(--font-heading); font-size: 18px; font-weight: 800; }
.cs-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.camp-actions { display: flex; gap: 8px; }

/* ═══════════════ DASHBOARD ═══════════════ */
.dash-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-bottom: 24px;
}
.dash-card {
    padding: 24px; display: flex; align-items: center; gap: 16px;
}
.dash-card-icon { font-size: 32px; }
.dash-card-num {
    font-family: var(--font-heading); font-size: 28px; font-weight: 800;
    background: var(--accent-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    display: block;
}
.dash-card-label { font-size: 13px; color: var(--text-muted); }

/* Dashboard Map */
.dash-map-section { padding: 24px; margin-bottom: 24px; }
.dash-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.dash-section-header h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.live-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 100px;
    background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2);
    font-size: 12px; font-weight: 600; color: var(--green);
}
.live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); animation: pulse 2s infinite;
}
.map-container { height: 300px; border-radius: var(--radius-md); overflow: hidden; }
.map-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0a1628 0%, #0f2027 50%, #122838 100%);
    position: relative;
}
.map-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(212,165,116,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,165,116,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}
.map-pin {
    position: absolute; width: 12px; height: 12px;
    background: var(--gold); border-radius: 50%;
    box-shadow: 0 0 16px rgba(212,165,116,0.5);
    cursor: pointer; z-index: 2;
}
.map-pin.small { width: 9px; height: 9px; opacity: 0.7; }
.map-pin.tiny { width: 6px; height: 6px; opacity: 0.5; }
.pin-pulse {
    position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid var(--gold); opacity: 0;
    animation: pinPulse 2s infinite;
}
@keyframes pinPulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

/* Dashboard Recent Scans */
.dash-recent, .dash-devices { padding: 24px; margin-bottom: 24px; }
.scan-feed { display: flex; flex-direction: column; gap: 2px; }
.scan-item {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 16px; border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.scan-item:hover { background: var(--bg-glass); }
.scan-avatar { font-size: 24px; }
.scan-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.scan-loc { font-size: 14px; font-weight: 600; }
.scan-time { font-size: 12px; color: var(--text-muted); }
.scan-campaign {
    padding: 4px 12px; border-radius: 100px;
    background: rgba(212,165,116,0.1); border: 1px solid rgba(212,165,116,0.15);
    font-size: 12px; font-weight: 600; color: var(--gold-bright);
    white-space: nowrap;
}

/* Device Bars */
.device-bars { display: flex; flex-direction: column; gap: 16px; }
.device-bar { display: flex; flex-direction: column; gap: 6px; }
.device-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; }
.device-label span:last-child { color: var(--text-muted); }
.bar-track {
    height: 8px; background: var(--bg-glass);
    border-radius: 100px; overflow: hidden;
}
.bar-fill {
    height: 100%; border-radius: 100px;
    background: var(--accent-gradient);
    transition: width 1s ease;
}

/* ═══════════════ MODALS ═══════════════ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
    width: 90%; max-width: 560px; max-height: 90vh;
    overflow-y: auto; animation: modalIn 0.3s ease;
}
.modal-lg { max-width: 640px; }
@keyframes modalIn { from { transform: translateY(24px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 28px; border-bottom: 1px solid var(--border-glass);
}
.modal-header h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 800; }
.modal-close {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--text-secondary);
    transition: all var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-glass); }
.modal-body { padding: 28px; }
.modal-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }

/* AI Modal */
.ai-prompt-area { display: flex; flex-direction: column; gap: 16px; }
.ai-textarea {
    width: 100%; min-height: 100px; padding: 16px;
    border-radius: var(--radius-md); background: var(--bg-glass);
    border: 1px solid var(--border-glass); color: var(--text-primary);
    font-size: 14px; resize: vertical; line-height: 1.6;
}
.ai-textarea:focus { outline: none; border-color: var(--gold); }
.ai-style-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 6px 14px; border-radius: 100px;
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
    transition: all var(--transition);
}
.chip:hover { color: var(--text-primary); border-color: rgba(212,165,116,0.3); }
.chip.active { background: rgba(212,165,116,0.12); border-color: var(--gold); color: var(--gold-bright); }
.ai-result { margin-top: 20px; }
.ai-image-preview { margin-bottom: 16px; border-radius: var(--radius-md); overflow: hidden; }
.ai-actions { display: flex; gap: 12px; }
.ai-loading {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 16px; padding: 40px;
}
.ai-spinner {
    width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid var(--border-glass);
    border-top-color: var(--gold);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-loading p { font-size: 14px; color: var(--text-secondary); }

/* ═══════════════ SEND MODAL ═══════════════ */
.send-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 32px;
}
.send-step {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    transition: all var(--transition);
}
.send-step.active { color: var(--gold-bright); background: rgba(212,165,116,0.1); }
.send-step.done { color: var(--green); }
.step-num {
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    font-size: 12px; font-weight: 700;
}
.send-step.active .step-num { background: rgba(212,165,116,0.15); border-color: var(--gold); color: var(--gold); }
.send-step.done .step-num { background: rgba(52,211,153,0.15); border-color: var(--green); color: var(--green); }
.step-line { width: 40px; height: 1px; background: var(--border-glass); }
.step-content { display: none; }
.step-content.active { display: block; animation: viewIn 0.3s ease; }

/* Send Modal - Review */
.review-preview { margin-bottom: 24px; }
.review-card-mini {
    display: flex; gap: 16px; justify-content: center;
}
.mini-front, .mini-back {
    width: 160px; height: 110px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--text-muted);
}
.mini-front { background: linear-gradient(135deg, #1e3c72, #2a5298); color: rgba(255,255,255,0.5); }
.mini-back { background: #faf8f5; color: #999; }
.review-details { display: flex; flex-direction: column; gap: 4px; }
.review-row {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--border-glass);
    font-size: 14px;
}
.review-row span:first-child { color: var(--text-secondary); }

/* Send Modal - Address Summary */
.send-address-summary {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-bottom: 24px;
}
.summary-stat {
    text-align: center; padding: 16px;
    background: var(--bg-glass); border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}
.ss-num {
    font-family: var(--font-heading); font-size: 28px;
    font-weight: 800; display: block;
}
.ss-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.send-addr-actions { text-align: center; margin-bottom: 24px; }

/* Send Modal - Cost Breakdown */
.cost-breakdown { padding: 20px !important; margin-bottom: 20px; }
.cost-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; font-size: 14px; color: var(--text-secondary);
}
.cost-divider { height: 1px; background: var(--border-glass); margin: 8px 0; }
.cost-row.total { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.campaign-name-input { margin-bottom: 20px; }
.campaign-name-input label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
}
.send-disclaimer {
    font-size: 12px; color: var(--text-muted); text-align: center;
    margin-top: 16px; line-height: 1.5;
}

/* ═══════════════ TOAST NOTIFICATIONS ═══════════════ */
.toast-container {
    position: fixed; top: 80px; right: 24px; z-index: 500;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; border-radius: var(--radius-md);
    background: rgba(15,14,23,0.95); backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    font-size: 14px; font-weight: 500; pointer-events: all;
    transform: translateX(120%); opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}
.toast.visible { transform: translateX(0); opacity: 1; }
.toast-success { border-color: rgba(52,211,153,0.3); }
.toast-error { border-color: rgba(248,113,113,0.3); }
.toast-warning { border-color: rgba(245,158,11,0.3); }
.toast-info { border-color: rgba(96,165,250,0.3); }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-msg { flex: 1; }

/* ═══════════════ SCROLLBAR ═══════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
    .designer-layout { grid-template-columns: auto 1fr; }
    .designer-props { display: none; }
    .designer-bottom-bar { display: flex; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-cards { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: none; }
    .dash-grid { grid-template-columns: repeat(2, 1fr); }
    .campaign-card { grid-template-columns: auto 1fr; }
    .camp-stats { grid-column: 1 / -1; }
    .camp-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding: 40px 16px; gap: 40px; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .postcard-preview-stack { width: 320px; height: 240px; transform: scale(0.85); }
    .desktop-only { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-cta .cta-text { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-cards { grid-template-columns: 1fr; }
    .designer-layout { grid-template-columns: 1fr; }
    .designer-toolbar {
        flex-direction: row; overflow-x: auto;
        padding: 8px 12px; border-bottom: 1px solid var(--border-glass);
    }
    .toolbar-group { flex-direction: row; }
    .toolbar-divider { width: 1px; height: 32px; margin: 0 8px; }
    .postcard-canvas { width: 100% !important; max-width: 480px; }
    .templates-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .address-tabs { flex-wrap: wrap; }
    .form-row, .form-row.three-col { grid-template-columns: 1fr; flex-direction: column; }
    .dash-grid { grid-template-columns: 1fr 1fr; }
    .send-address-summary { grid-template-columns: 1fr; }
    .campaign-card {
        grid-template-columns: 1fr; gap: 16px;
    }
    .camp-stats { flex-wrap: wrap; justify-content: center; }
    .camp-actions { justify-content: center; }
    .view-container { padding: 24px 16px 80px; }
}

@media (max-width: 480px) {
    .dash-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .stat-divider { width: 40px; height: 1px; }
    .send-steps { flex-wrap: wrap; gap: 4px; }
    .step-line { display: none; }
    .postcard-preview-stack { width: 280px; transform: scale(0.75); }
    .template-filters { justify-content: center; }
}

/* ═══════════════ LEAFLET MAP OVERRIDES ═══════════════ */
#scan-map {
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 0;
}
#scan-map .leaflet-control-zoom a {
    background: rgba(15,14,23,0.9);
    color: var(--text-primary);
    border-color: var(--border-glass);
}
#scan-map .leaflet-control-zoom a:hover {
    background: rgba(212,165,116,0.2);
    color: var(--gold-bright);
}
#scan-map .leaflet-control-attribution {
    background: rgba(15,14,23,0.7) !important;
    color: var(--text-muted) !important;
    font-size: 10px;
}
#scan-map .leaflet-control-attribution a {
    color: var(--gold) !important;
}

/* Custom Map Markers */
.harvest-map-marker {
    background: none !important;
    border: none !important;
}
.marker-dot {
    width: 16px; height: 16px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(212,165,116,0.6), 0 0 24px rgba(212,165,116,0.2);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.marker-dot:hover {
    transform: scale(1.3);
}
.marker-dot.large {
    width: 20px; height: 20px;
    box-shadow: 0 0 16px rgba(212,165,116,0.7), 0 0 32px rgba(212,165,116,0.3);
}
.marker-pulse {
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0;
    animation: markerPulse 2.5s ease-out infinite;
}
@keyframes markerPulse {
    0% { transform: scale(0.5); opacity: 0.7; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Leaflet popup styling */
.harvest-popup .leaflet-popup-content-wrapper {
    background: rgba(15,14,23,0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    color: var(--text-primary);
}
.harvest-popup .leaflet-popup-tip {
    background: rgba(15,14,23,0.95);
    border: 1px solid var(--border-glass);
}
.harvest-popup .leaflet-popup-close-button {
    color: var(--text-muted);
}
.harvest-popup .leaflet-popup-close-button:hover {
    color: var(--gold);
}

/* Map View Toggle */
.map-controls {
    display: flex; align-items: center; gap: 12px;
}
.map-view-toggle {
    display: flex; gap: 4px;
    padding: 3px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}
.map-view-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px; font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}
.map-view-btn:hover {
    color: var(--text-primary);
}
.map-view-btn.active {
    background: var(--accent-gradient);
    color: #0a0a0a;
}

/* ── Preview Mode Bar ──────────────────────────────────────────────────────── */
.preview-mode-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}
.preview-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}
.preview-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}
.preview-btn:hover {
    color: var(--text-primary);
    background: rgba(212,165,116,0.08);
}
.preview-btn.active {
    background: var(--accent-gradient);
    color: #0a0a0a;
    border-color: transparent;
}

/* ── 3D Mockup Preview ─────────────────────────────────────────────────────── */
.mockup-preview-container {
    margin-top: 16px;
    padding: 40px 20px;
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 50%, #1a1025 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    position: relative;
}
.mockup-preview-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(212,165,116,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.mockup-scene {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 320px;
}
.mockup-card-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}
.mockup-card {
    width: 360px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.06),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transform: rotateY(-12deg) rotateX(5deg) scale(0.92);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    background: #1e3c72;
}
.mockup-card:hover {
    transform: rotateY(0) rotateX(0) scale(1);
}
.mockup-front {
    transform: rotateY(-15deg) rotateX(6deg) scale(0.95);
    z-index: 2;
}
.mockup-back {
    transform: rotateY(10deg) rotateX(-4deg) scale(0.88);
    z-index: 1;
}
.mockup-card canvas,
.mockup-card > div {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.mockup-shadow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.35), transparent 70%);
    filter: blur(8px);
}
.mockup-info {
    text-align: center;
    margin-top: 24px;
    position: relative;
}
.mockup-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-glass);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    letter-spacing: 0.02em;
}
.mockup-card-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

/* ── Send Modal Review Cards ────────────────────────────────────────────── */
.review-card-mini {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.mini-front, .mini-back {
    width: 200px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Designer hidden in preview modes */
.designer-canvas-area.preview-active .canvas-sidebar,
.designer-canvas-area.preview-active .designer-props {
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 768px) {
    .mockup-card-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .mockup-card {
        width: 280px;
        height: 180px;
    }
    .review-card-mini {
        flex-direction: column;
        align-items: center;
    }
}

/* ═══════════════ AUTH SCREEN ═══════════════ */
.auth-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg-primary);
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
}
.auth-container {
    width: 100%;
    max-width: 420px;
}
.auth-card {
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glass);
    background: rgba(15,14,23,0.95);
    backdrop-filter: blur(20px);
}
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}
.auth-logo .logo-icon { font-size: 32px; }
.auth-logo .logo-text { font-size: 28px; font-weight: 700; font-family: var(--font-heading); }
.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 28px;
}
.auth-form-panel h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}
.auth-field {
    margin-bottom: 16px;
}
.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-field input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-body);
    transition: all var(--transition);
    outline: none;
}
.auth-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,165,116,0.15);
}
.auth-field input::placeholder {
    color: var(--text-muted);
}
.auth-error {
    color: var(--red);
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
    text-align: center;
}
.auth-submit {
    width: 100%;
    margin-top: 4px;
    font-size: 15px;
    padding: 13px;
    font-weight: 600;
}
.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
}
.auth-switch a {
    color: var(--gold);
    font-weight: 600;
    cursor: pointer;
}
.auth-switch a:hover {
    text-decoration: underline;
}
.auth-footer {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

/* User Menu */
.user-menu {
    position: relative;
    margin-left: 12px;
}
.user-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: 2px solid rgba(212,165,116,0.3);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.user-avatar-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(212,165,116,0.3);
}
.user-dropdown {
    display: none;
    position: absolute;
    top: 44px;
    right: 0;
    min-width: 200px;
    background: rgba(15,14,23,0.98);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 100;
    padding: 8px 0;
}
.user-dropdown.open { display: block; }
.dropdown-header {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dropdown-header span:first-child {
    font-weight: 600;
    font-size: 14px;
}
.dropdown-divider {
    height: 1px;
    background: var(--border-glass);
    margin: 4px 0;
}
.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--transition);
}
.dropdown-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}
.dropdown-item.text-danger {
    color: var(--red) !important;
}
.dropdown-item.text-danger:hover { background: rgba(248,113,113,0.1); }

/* Auth screen responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }
}
