/* ═══════════════════════════════════════════════════════════════
   Ernest PUI 裴俊軒 · 裴‧藝工作室
   Global Stylesheet — "墨霓" Dual-Mode Design System
   Version: 3.0 | Phase 3 Build
   ═══════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────
   1. CSS Variables (Design Tokens)
   ──────────────────────────────────────────── */
:root {
    /* ── Brand Colors ── */
    --ink: #0d0d0d;
    --ink-soft: #1a1a2e;
    --gold: #d4a017;
    --gold-soft: #e6b838;
    --gold-dim: #a07d12;
    --cyan: #00d4ff;
    --cyan-glow: rgba(0, 212, 255, 0.4);
    --magenta: #ff2e7e;
    --magenta-glow: rgba(255, 46, 126, 0.35);
    --rice: #faf8f3;
    --cream: #f5f0e6;
    --sand: #e8e2d4;
    --text-primary: #0d0d0d;
    --text-secondary: #4a4843;
    --text-muted: #6b6557;
    --text-light: #9a948a;
    --border: #d8d2c4;
    --card-bg: #ffffff;
    --overlay-dark: rgba(13, 13, 13, 0.92);
    --overlay-light: rgba(250, 248, 243, 0.95);

    /* ── Desktop Mode Colors (Traditional) ── */
    --bg-primary: var(--rice);
    --bg-secondary: var(--cream);
    --bg-card: var(--card-bg);
    --nav-bg: var(--rice);
    --footer-bg: var(--ink);
    --footer-text: var(--rice);
    --accent-primary: var(--gold);
    --accent-secondary: var(--gold-dim);
    --link-color: var(--gold-dim);
    --link-hover: var(--magenta);

    /* ── Mobile Mode Colors (Tech / App) ── */
    --mobile-bg: var(--ink);
    --mobile-bg-card: #1a1a2e;
    --mobile-text: #f0f0f0;
    --mobile-text-muted: #a0a0b0;
    --mobile-accent: var(--cyan);
    --mobile-accent-2: var(--magenta);
    --mobile-border: rgba(255, 255, 255, 0.1);

    /* ── Typography ── */
    --font-serif: 'Noto Serif SC', 'Playfair Display', Georgia, serif;
    --font-sans: 'Noto Sans SC', 'Inter', -apple-system, sans-serif;
    --font-tech: 'Orbitron', 'Inter', monospace;
    --font-deco: 'LXGW WenKai', 'Noto Serif SC', serif;

    --fs-hero: clamp(2.5rem, 6vw, 4.5rem);
    --fs-h1: clamp(2rem, 4vw, 3rem);
    --fs-h2: clamp(1.5rem, 3vw, 2.2rem);
    --fs-h3: clamp(1.2rem, 2.5vw, 1.6rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-xs: 0.75rem;
    --lh-tight: 1.2;
    --lh-normal: 1.6;
    --lh-relaxed: 1.8;

    /* ── Spacing ── */
    --sp-xs: 0.25rem;
    --sp-sm: 0.5rem;
    --sp-md: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2.5rem;
    --sp-2xl: 4rem;
    --sp-3xl: 6rem;

    /* ── Layout ── */
    --container-max: 1280px;
    --container-pad: clamp(1rem, 4vw, 3rem);
    --header-h: 70px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* ── Effects ── */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-glow-cyan: 0 0 20px var(--cyan-glow);
    --shadow-glow-magenta: 0 0 20px var(--magenta-glow);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Z-Index ── */
    --z-header: 1000;
    --z-mobile-nav: 1100;
    --z-overlay: 1200;
    --z-modal: 1300;
}

/* ────────────────────────────────────────────
   2. Reset & Base
   ──────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

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

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--link-hover);
}

ul, ol {
    list-style: none;
}

/* ────────────────────────────────────────────
   3. Typography Hierarchy
   ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: var(--lh-tight);
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.hero-title {
    font-size: var(--fs-hero);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.kicker {
    font-family: var(--font-tech);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

p {
    margin-bottom: var(--sp-md);
    color: var(--text-secondary);
}

p:last-child { margin-bottom: 0; }

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }

/* ────────────────────────────────────────────
   4. Layout Helpers
   ──────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section {
    padding: var(--sp-2xl) 0;
}

.section-sm {
    padding: var(--sp-xl) 0;
}

.grid {
    display: grid;
    gap: var(--sp-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }

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

/* ────────────────────────────────────────────
   5. Header / Navigation Bar (Desktop)
   ──────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-header);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(250, 248, 243, 0.96);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.1;
}

.logo-text span {
    display: block;
    font-family: var(--font-tech);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 500;
}

/* Desktop Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    padding: var(--sp-xs) 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}

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

.nav-link.active {
    color: var(--accent-primary);
}

/* CTA in header */
.header-cta {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
}

/* Hamburger Button — fixed outside header stacking context */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(13, 13, 13, 0.6);
    border: 1px solid var(--mobile-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 1300; /* Above mobile-nav (1100) and everything else */
    gap: 5px;
    position: fixed;
    top: 10px;
    right: 12px;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--mobile-text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active {
    background: rgba(13, 13, 13, 0.8);
    border-color: var(--cyan);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--cyan);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--cyan);
}

/* ────────────────────────────────────────────
   5a. Hero Section (Homepage)
   ──────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    animation: ken-burns 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.85) 0%, rgba(13, 13, 13, 0.5) 50%, rgba(13, 13, 13, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: var(--header-h);
    max-width: 700px;
}

.hero-content .kicker {
    color: var(--cyan);
    display: block;
    margin-bottom: var(--sp-md);
}

.hero-title {
    font-size: var(--fs-hero);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--rice);
    margin-bottom: var(--sp-md);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-x {
    color: var(--gold);
    font-family: var(--font-tech);
    font-size: 0.7em;
    vertical-align: middle;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(250, 248, 243, 0.85);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--sp-xl);
    text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.hero-cta {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

.hero-cta .btn-secondary {
    color: var(--rice);
    border-color: rgba(250, 248, 243, 0.6);
}

.hero-cta .btn-secondary:hover {
    background: rgba(250, 248, 243, 0.15);
    border-color: var(--rice);
    color: var(--rice);
}

/* CTA Banner */
.cta-banner {
    text-align: center;
    padding: var(--sp-2xl) var(--sp-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.cta-banner h2 {
    margin-bottom: var(--sp-md);
}

.cta-banner .hero-cta {
    justify-content: center;
}

/* CTA Banner buttons — override hero-cta white text (CTA banner has light background) */
.cta-banner .btn-secondary {
    color: var(--ink);
    border-color: var(--ink);
}

.cta-banner .btn-secondary:hover {
    background: var(--ink);
    color: var(--rice);
}

/* ────────────────────────────────────────────
   6. Mobile Navigation (App-Style)
   ──────────────────────────────────────────── */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--mobile-bg);
    z-index: var(--z-mobile-nav);
    transform: translateX(100%);
    transition: var(--transition-slow);
    overflow-y: auto;
    padding: 80px var(--container-pad) 100px;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    background: var(--mobile-bg-card);
    border: 1px solid var(--mobile-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-item:active,
.mobile-nav-item:hover {
    border-color: var(--mobile-accent);
    box-shadow: var(--shadow-glow-cyan);
    transform: scale(1.02);
}

.mobile-nav-item.active {
    border-color: var(--mobile-accent);
    background: rgba(0, 212, 255, 0.05);
}

.mobile-nav-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--cyan);
    font-size: 1.1rem;
}

.mobile-nav-text {
    color: var(--mobile-text);
    font-size: 1rem;
    font-weight: 500;
}

.mobile-nav-text span {
    display: block;
    font-family: var(--font-tech);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--mobile-text-muted);
    text-transform: uppercase;
}

/* Bottom Tab Bar (App-Style) */
.bottom-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--mobile-bg);
    border-top: 1px solid var(--mobile-border);
    z-index: var(--z-header);
    justify-content: space-around;
    align-items: center;
    padding: 0 env(safe-area-inset-left);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--mobile-text-muted);
    font-size: 0.65rem;
    transition: var(--transition);
    flex: 1;
    padding: 8px 0;
}

.tab-item.active {
    color: var(--cyan);
}

.tab-item:active {
    transform: scale(0.92);
}

.tab-icon {
    font-size: 1.2rem;
}

/* ────────────────────────────────────────────
   7. Footer
   ──────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--sp-2xl) 0 var(--sp-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-xl);
    margin-bottom: var(--sp-xl);
}

.footer-brand h3 {
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: var(--sp-sm);
}

.footer-brand p {
    color: rgba(250, 248, 243, 0.7);
    font-size: 0.9rem;
    line-height: var(--lh-relaxed);
}

.footer-col h4 {
    color: var(--gold);
    font-size: 0.85rem;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-md);
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: var(--sp-sm);
}

.footer-col ul li a {
    color: rgba(250, 248, 243, 0.7);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--cyan);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.footer-contact a {
    color: rgba(250, 248, 243, 0.8);
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: var(--sp-md);
    margin-top: var(--sp-md);
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    color: rgba(250,248,243,0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: var(--shadow-glow-cyan);
}

.footer-bottom {
    padding-top: var(--sp-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(250,248,243,0.5);
}

.footer-bottom a {
    color: rgba(250,248,243,0.5);
}

.footer-bottom a:hover {
    color: var(--gold);
}

/* ────────────────────────────────────────────
   8. Buttons
   ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    padding: var(--sp-md) var(--sp-xl);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Primary Button — Gold */
.btn-primary {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-soft);
    border-color: var(--gold-soft);
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.4);
    transform: translateY(-2px);
    color: var(--ink);
}

/* Secondary Button — Outline */
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--rice);
    transform: translateY(-2px);
}

/* Neon Button (Mobile / Tech mode) */
.btn-neon {
    background: transparent;
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.btn-neon:hover {
    background: var(--cyan);
    color: var(--ink);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-2px);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #1DA851;
    border-color: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    color: #fff;
}

.btn-lg { padding: var(--sp-lg) var(--sp-2xl); font-size: 1.05rem; }
.btn-sm { padding: var(--sp-sm) var(--sp-md); font-size: 0.85rem; }

/* ────────────────────────────────────────────
   9. Cards
   ──────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--sand);
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.card-body {
    padding: var(--sp-lg);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: var(--lh-normal);
}

.card-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(212, 160, 23, 0.1);
    color: var(--gold-dim);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-bottom: var(--sp-sm);
}

/* Mobile Card (App-style dark) */
.card-mobile {
    background: var(--mobile-bg-card);
    border: 1px solid var(--mobile-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.card-mobile:active {
    transform: scale(0.98);
    border-color: var(--mobile-accent);
}

.card-mobile .card-body {
    padding: var(--sp-md);
}

.card-mobile .card-title {
    color: var(--mobile-text);
    font-size: 1rem;
}

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

/* ────────────────────────────────────────────
   9b. Timeline (Professional Qualifications)
   ──────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), var(--cyan));
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--sp-xl);
}

.timeline-marker {
    position: absolute;
    left: -2.2rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--cream);
    box-shadow: 0 0 0 2px var(--gold);
    transition: var(--transition);
}

.timeline-marker-cyan {
    background: var(--cyan);
    box-shadow: 0 0 0 2px var(--cyan);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
    box-shadow: 0 0 12px var(--gold), 0 0 0 2px var(--gold);
}

.timeline-item:hover .timeline-marker-cyan {
    box-shadow: 0 0 12px var(--cyan), 0 0 0 2px var(--cyan);
}

.timeline-content {
    padding-left: 0.5rem;
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-xs);
    font-weight: 600;
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
}

/* ────────────────────────────────────────────
   9b-2. Certificate Badges & Gallery (About Page)
   ──────────────────────────────────────────── */
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--sp-sm);
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold-dim);
    background: rgba(212, 160, 23, 0.08);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.cert-badge:hover {
    background: rgba(212, 160, 23, 0.15);
}

.cert-badge-cyan {
    color: #0e7490;
    background: rgba(0, 212, 255, 0.08);
}

.cert-badge-cyan:hover {
    background: rgba(0, 212, 255, 0.15);
}

.timeline-item {
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-md);
    padding: var(--sp-sm);
    margin-left: calc(-1 * var(--sp-sm));
}

.timeline-item:hover {
    background: rgba(212, 160, 23, 0.04);
}

/* Certificate Gallery Grid */
.cert-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--sp-md);
}

.cert-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.cert-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    background: #f0ebe0;
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 4px;
}

.cert-card-title {
    display: block;
    padding: var(--sp-sm) var(--sp-md);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink);
    text-align: center;
}

/* Certificate Lightbox */
.cert-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: var(--sp-lg);
}

.cert-lightbox.active {
    display: flex;
}

.cert-lightbox-content {
    max-width: 900px;
    max-height: 85vh;
    text-align: center;
}

.cert-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cert-lightbox-caption {
    color: #f0f0f0;
    font-size: 0.9rem;
    margin-top: var(--sp-md);
}

.cert-lightbox-counter {
    position: fixed;
    bottom: var(--sp-lg);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-family: var(--font-tech);
}

.cert-lightbox-close,
.cert-lightbox-prev,
.cert-lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10000;
}

.cert-lightbox-close:hover,
.cert-lightbox-prev:hover,
.cert-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cert-lightbox-close {
    top: var(--sp-lg);
    right: var(--sp-lg);
}

.cert-lightbox-prev {
    left: var(--sp-lg);
    top: 50%;
    transform: translateY(-50%);
}

.cert-lightbox-next {
    right: var(--sp-lg);
    top: 50%;
    transform: translateY(-50%);
}

/* ────────────────────────────────────────────
   9c. Expertise Areas (About Page)
   ──────────────────────────────────────────── */
.expertise-list {
    list-style: none;
    padding: 0;
    margin: var(--sp-md) 0 0;
}

.expertise-list li {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--sp-xs);
}

.expertise-list li i {
    color: #16a34a;
    font-size: 0.8rem;
}

.expertise-achievements {
    margin-top: var(--sp-md);
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.expertise-achievements div {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.expertise-achievements i {
    color: var(--gold);
    flex-shrink: 0;
}

/* ────────────────────────────────────────────
   9d. Position Cards (Current Roles)
   ──────────────────────────────────────────── */
.position-card {
    text-decoration: none;
    transition: var(--transition);
}

.position-card:visited {
    text-decoration: none;
}

.position-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--sp-md);
}

.position-card .card-title {
    font-size: 1rem;
    text-decoration: none;
}

.position-card:hover .card-title {
    color: var(--accent-primary);
}

/* ────────────────────────────────────────────
   9e. Testimonials — Featured (Academy)
   ──────────────────────────────────────────── */
.testimonial-feature {
    background: #fff;
    border: 1px solid var(--sand);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.testimonial-feature-header {
    text-align: center;
    padding: var(--sp-xl) var(--sp-lg) var(--sp-md);
    border-bottom: 1px solid var(--sand);
    background: linear-gradient(135deg, rgba(212,160,23,0.04), rgba(0,212,255,0.03));
}

.testimonial-feature-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
}

.testimonial-feature-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.testimonial-photos {
    display: flex;
    flex-direction: column;
    padding: var(--sp-lg);
}

.testimonial-photos img {
    width: 100%;
    border-radius: var(--radius-md);
    display: block;
    object-fit: cover;
}

.testimonial-photos .photo-desktop {
    height: 100%;
    min-height: 500px;
}

.testimonial-photos .photo-mobile {
    display: none;
}

.testimonial-quotes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
    padding: var(--sp-lg);
    align-content: center;
}

.testimonial-quote {
    background: rgba(245, 240, 230, 0.5);
    border-radius: var(--radius-md);
    padding: var(--sp-md);
    border-left: 3px solid var(--gold);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-mark {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: var(--sp-sm);
    opacity: 0.5;
}

.quote-text {
    font-family: var(--font-deco), var(--font-serif);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}

.quote-author {
    font-size: 0.8rem;
    color: var(--ink);
    font-weight: 600;
    margin: 0;
    opacity: 0.75;
}

/* ────────────────────────────────────────────
   10. Section Divider
   ──────────────────────────────────────────── */
.divider {
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    margin: var(--sp-md) 0;
}

.divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* ────────────────────────────────────────────
   11. Animations & Effects
   ──────────────────────────────────────────── */
/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Ken Burns Effect */
@keyframes ken-burns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -2%); }
}

.ken-burns {
    animation: ken-burns 20s ease-in-out infinite alternate;
}

/* Pulse Animation (WhatsApp button) */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.pulse {
    animation: pulse-ring 2s ease-out infinite;
}

/* Neon Glow */
@keyframes neon-glow {
    0%, 100% { box-shadow: 0 0 5px var(--cyan-glow); }
    50% { box-shadow: 0 0 20px var(--cyan-glow), 0 0 40px var(--cyan-glow); }
}

.neon-glow {
    animation: neon-glow 3s ease-in-out infinite;
}

/* Video Embed (YouTube responsive) */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Video Embed inside card — fill the card-img area */
.card-img .video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0;
    border-radius: 0;
}

/* Counter animation target */
.counter {
    font-family: var(--font-tech);
    font-weight: 800;
    color: var(--accent-primary);
}

/* ────────────────────────────────────────────
   12. Page Hero (Common)
   ──────────────────────────────────────────── */
.page-hero {
    padding: calc(var(--header-h) + var(--sp-2xl)) 0 var(--sp-2xl);
    background: var(--bg-secondary);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: var(--sp-sm);
}

.page-hero .kicker {
    margin-bottom: var(--sp-md);
    display: block;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--sp-sm);
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin-top: var(--sp-md);
}

.breadcrumb a {
    color: var(--text-muted);
}

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

/* ────────────────────────────────────────────
   13. Placeholder
   ──────────────────────────────────────────── */
.placeholder {
    background: linear-gradient(135deg, var(--sand) 25%, var(--cream) 25%, var(--cream) 50%, var(--sand) 50%, var(--sand) 75%, var(--cream) 75%);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-muted);
    font-size: var(--fs-small);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.placeholder .placeholder-icon {
    font-size: 2rem;
    margin-bottom: var(--sp-sm);
    opacity: 0.4;
}

.placeholder .placeholder-label {
    font-weight: 500;
    text-align: center;
    padding: 0 var(--sp-md);
}

.placeholder .placeholder-size {
    font-family: var(--font-tech);
    font-size: var(--fs-xs);
    color: var(--text-light);
    margin-top: var(--sp-xs);
}

/* ────────────────────────────────────────────
   14. Responsive Breakpoints
   ──────────────────────────────────────────── */

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-lg);
    }

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

/* Mobile (<= 768px) — Switch to App Mode */
@media (max-width: 768px) {
    :root {
        --bg-primary: var(--mobile-bg);
        --bg-secondary: var(--mobile-bg-card);
        --bg-card: var(--mobile-bg-card);
        --text-primary: var(--mobile-text);
        --text-secondary: var(--mobile-text);
        --text-muted: var(--mobile-text-muted);
        --border: var(--mobile-border);
        --nav-bg: var(--mobile-bg);
        --accent-primary: var(--mobile-accent);
        --link-color: var(--mobile-accent);
    }

    body {
        background: var(--mobile-bg);
        color: var(--mobile-text);
        padding-bottom: 60px; /* space for bottom tab bar */
    }

    /* Show Hamburger, Hide Desktop Nav */
    .hamburger {
        display: flex;
    }

    /* Hide WhatsApp CTA on mobile (already in bottom tab bar) */
    .header-cta .btn {
        display: none;
    }

    /* Fix: Hamburger icon visible on dark mobile background */
    .hamburger span {
        background: var(--mobile-text);
    }

    /* Fix: Buttons visible on dark mobile background */
    .btn-secondary {
        color: var(--mobile-text);
        border-color: var(--mobile-border);
    }

    .btn-secondary:hover {
        background: rgba(0, 212, 255, 0.1);
        border-color: var(--mobile-accent);
        color: var(--mobile-accent);
    }

    /* Card link buttons visible on dark mobile cards */
    .card .btn-secondary {
        color: var(--mobile-accent);
        border-color: var(--mobile-accent);
        background: transparent;
    }

    .card .btn-secondary:hover {
        background: rgba(0, 212, 255, 0.1);
        color: var(--mobile-text);
    }

    /* Fix: Card images on mobile use top alignment to avoid cropping heads */
    .card-img img {
        object-position: center top;
    }

    /* Fix: Section-level headings on bg-cream visible on light background */
    /* Must NOT affect .card-title inside cards (cards have dark bg on mobile) */
    .bg-cream h2:not(.card-title),
    .bg-cream h3:not(.card-title) {
        color: var(--ink);
    }

    /* .bg-cream sections stay LIGHT on mobile — restore dark text-muted */
    /* so .text-muted / .placeholder text is visible on the light cream background */
    .bg-cream {
        --text-muted: #6b6557;
    }

    /* Fix: Timeline text visible on cream background */
    .bg-cream .timeline-title {
        color: var(--ink);
    }

    /* Timeline on mobile */
    .timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -1.8rem;
    }

    /* Position cards on mobile */
    .position-card .card-title {
        color: var(--mobile-text);
        font-size: 0.9rem;
    }

    .position-card:hover .card-title {
        color: var(--mobile-accent);
    }

    /* Certificate badges on mobile (bg-cream stays light) */
    .bg-cream .cert-badge {
        color: var(--gold-dim);
        background: rgba(212, 160, 23, 0.1);
    }

    .bg-cream .cert-badge-cyan {
        color: #0e7490;
        background: rgba(0, 212, 255, 0.1);
    }

    .timeline-item:hover {
        background: rgba(212, 160, 23, 0.06);
    }

    /* Certificate gallery on mobile */
    .cert-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-sm);
    }

    .cert-card {
        background: var(--mobile-bg-card);
        border-color: var(--mobile-border);
    }

    .cert-card:hover {
        border-color: var(--mobile-accent);
    }

    .cert-card img {
        background: rgba(255, 255, 255, 0.05);
        border-bottom-color: var(--mobile-border);
        padding: 4px;
    }

    .cert-card-title {
        color: var(--mobile-text);
    }

    /* Lightbox on mobile */
    .cert-lightbox {
        padding: var(--sp-sm);
    }

    .cert-lightbox-content {
        max-width: 100%;
    }

    .cert-lightbox-content img {
        max-height: 70vh;
    }

    .cert-lightbox-close,
    .cert-lightbox-prev,
    .cert-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cert-lightbox-prev {
        left: var(--sp-sm);
    }

    .cert-lightbox-next {
        right: var(--sp-sm);
    }

    /* Testimonials — Featured on mobile */
    /* .bg-cream stays light on mobile; card must match section (light) */
    .testimonial-feature {
        background: #fff;
        border-color: rgba(0, 0, 0, 0.1);
    }

    .testimonial-feature-header {
        background: linear-gradient(135deg, rgba(212,160,23,0.06), rgba(0,212,255,0.04));
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }

    /* Title: dark on light card (same as desktop) */
    .bg-cream .testimonial-feature .testimonial-feature-title {
        color: var(--ink);
    }

    .bg-cream .testimonial-feature .text-muted {
        color: var(--text-muted);
    }

    .testimonial-feature-body {
        grid-template-columns: 1fr;
    }

    .testimonial-photos {
        padding: var(--sp-md);
    }

    .testimonial-photos .photo-desktop {
        display: none;
    }

    .testimonial-photos .photo-mobile {
        display: block;
        aspect-ratio: 16 / 9;
    }

    .testimonial-quotes {
        grid-template-columns: 1fr;
        gap: var(--sp-sm);
        padding: var(--sp-md);
    }

    .testimonial-quote {
        background: rgba(245, 240, 230, 0.6);
        border-left-color: var(--gold);
    }

    .bg-cream .testimonial-feature .quote-text {
        color: var(--ink);
    }

    .quote-mark {
        color: var(--gold);
    }

    /* Author names: dark on light card (same as desktop) */
    .bg-cream .testimonial-feature .quote-author {
        color: var(--ink);
        opacity: 0.75;
    }

    /* CTA Banner buttons on mobile (dark background) */
    .cta-banner .btn-secondary {
        color: var(--mobile-text);
        border-color: var(--mobile-border);
    }

    .cta-banner .btn-secondary:hover {
        background: rgba(0, 212, 255, 0.1);
        border-color: var(--mobile-accent);
        color: var(--mobile-accent);
    }

    .nav-list {
        display: none;
    }

    .header-inner {
        background: var(--mobile-bg);
        border-bottom: 1px solid var(--mobile-border);
    }

    .logo-text {
        color: var(--mobile-text);
    }

    .logo-text span {
        color: var(--mobile-text-muted);
    }

    .site-header {
        background: var(--mobile-bg);
        border-bottom: 1px solid var(--mobile-border);
    }

    /* Show Bottom Tab Bar */
    .bottom-tab-bar {
        display: flex;
    }

    /* Typography on Mobile */
    h1, h2, h3, h4, h5, h6 {
        color: var(--mobile-text);
    }

    p {
        color: var(--mobile-text-muted);
    }

    .kicker {
        color: var(--cyan);
    }

    /* Grid adjustments */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Celebrity photos — 2 columns on mobile for compact gallery */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-sm);
    }

    /* Celebrity photo cards — square thumbnails on mobile */
    .grid-4 .card-img {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .grid-4 .card-body {
        padding: var(--sp-xs) var(--sp-sm);
    }

    .grid-4 .card-title {
        font-size: 0.85rem !important;
    }

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

    /* Footer on Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--sp-sm);
        text-align: center;
    }

    /* Buttons on Mobile */
    .btn-primary {
        background: var(--cyan);
        color: var(--ink);
        border-color: var(--cyan);
    }

    .btn-primary:hover {
        background: var(--cyan);
        box-shadow: var(--shadow-glow-cyan);
    }

    /* Cards on Mobile */
    .card {
        background: var(--mobile-bg-card);
        border-color: var(--mobile-border);
    }

    .card-title {
        color: var(--mobile-text);
    }

    .card-text {
        color: var(--mobile-text-muted);
    }

    .card-tag {
        color: var(--gold);
        background: rgba(212, 160, 23, 0.15);
    }

    .card:hover {
        border-color: var(--mobile-accent);
    }

    /* Page Hero on Mobile */
    .page-hero {
        background: var(--mobile-bg-card);
        padding: calc(var(--header-h) + var(--sp-xl)) 0 var(--sp-xl);
    }

    .breadcrumb {
        color: var(--mobile-text-muted);
    }

    .breadcrumb a {
        color: var(--mobile-text-muted);
    }

    /* Hide on Mobile */
    .hide-mobile {
        display: none !important;
    }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
    :root {
        --container-pad: 1rem;
    }

    .section {
        padding: var(--sp-xl) 0;
    }

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

    .btn-sm {
        width: auto;
    }
}

/* ────────────────────────────────────────────
   15. Utility Classes
   ──────────────────────────────────────────── */
.hidden { display: none !important; }
.visible { display: block !important; }
.grid.visible { display: grid !important; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }
.pt-xl { padding-top: var(--sp-xl); }
.pb-xl { padding-bottom: var(--sp-xl); }
.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }
.shadow { box-shadow: var(--shadow-md); }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: var(--rice); }
.bg-rice { background: var(--rice); }

/* Print */
@media print {
    .site-header, .site-footer, .bottom-tab-bar, .hamburger, .mobile-nav {
        display: none !important;
    }
    body { background: white; color: black; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ────────────────────────────────────────────
   15. Contact Form
   ──────────────────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
}

.form-label {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-label .req {
    color: #dc2626;
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--sp-md) var(--sp-lg);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
    background: var(--bg-card);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
    font-size: var(--fs-xs);
    color: #dc2626;
    display: none;
}

.form-error.visible {
    display: block;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6557' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Form status messages */
.form-status {
    padding: var(--sp-md) var(--sp-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: var(--sp-sm);
}

.form-status.visible {
    display: flex;
}

.form-status.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.form-status.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.form-status.loading {
    background: var(--cream);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.form-submit-btn {
    width: 100%;
    position: relative;
}

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

.form-submit-btn.loading .btn-text {
    opacity: 0.5;
}

.form-submit-btn .btn-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(13, 13, 13, 0.2);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.form-submit-btn.loading .btn-spinner {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* reCAPTCHA badge — hide default, use custom note */
.grecaptcha-badge {
    bottom: 70px !important;
}

/* Mobile form styles */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-input,
    .form-select,
    .form-textarea {
        background: var(--mobile-bg-card);
        color: var(--mobile-text);
        border-color: var(--mobile-border);
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
        color: var(--mobile-text-muted);
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: var(--mobile-accent);
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
    }

    .form-input.error,
    .form-select.error,
    .form-textarea.error {
        border-color: #ef4444;
    }

    .form-label {
        color: var(--mobile-text);
    }

    .form-select {
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a0b0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    }

    .form-status.success {
        background: rgba(22, 163, 74, 0.1);
        color: #4ade80;
        border-color: rgba(22, 163, 74, 0.3);
    }

    .form-status.error {
        background: rgba(239, 68, 68, 0.1);
        color: #f87171;
        border-color: rgba(239, 68, 68, 0.3);
    }

    .form-status.loading {
        background: var(--mobile-bg-card);
        color: var(--mobile-text-muted);
        border-color: var(--mobile-border);
    }

    .form-submit-btn .btn-spinner {
        border-color: rgba(255, 255, 255, 0.2);
        border-top-color: var(--ink);
    }
}
