@import 'tailwindcss';

/* ── Dark mode: class-based ──────────────────────────────────────────────── */
@custom-variant dark (&:where(.dark, .dark *));

/* ── Plugins ─────────────────────────────────────────────────────────────── */
@plugin "@tailwindcss/forms";
@plugin "@tailwindcss/typography";
@plugin "tailwindcss-animate";

/* ── Content sources ─────────────────────────────────────────────────────── */
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';
@source '../**/*.jsx';
@source '../**/*.tsx';
@source '../**/*.ts';

/* ── Design tokens ───────────────────────────────────────────────────────── */
@theme {
    --font-sans:    'Geist Variable', 'Geist', system-ui, sans-serif;
    --font-display: 'Geist Variable', 'Geist', system-ui, sans-serif;
    --font-mono:    'Geist Mono Variable', 'GeistMono', 'JetBrains Mono', monospace;

    --radius-sm:  calc(var(--radius) - 4px);
    --radius-md:  calc(var(--radius) - 2px);
    --radius-lg:  var(--radius);
    --radius-xl:  calc(var(--radius) + 4px);
    --radius-2xl: calc(var(--radius) + 8px);

    --color-background:             hsl(var(--background));
    --color-foreground:             hsl(var(--foreground));
    --color-card:                   hsl(var(--card));
    --color-card-foreground:        hsl(var(--card-foreground));
    --color-popover:                hsl(var(--popover));
    --color-popover-foreground:     hsl(var(--popover-foreground));
    --color-primary:                hsl(var(--primary));
    --color-primary-foreground:     hsl(var(--primary-foreground));
    --color-secondary:              hsl(var(--secondary));
    --color-secondary-foreground:   hsl(var(--secondary-foreground));
    --color-muted:                  hsl(var(--muted));
    --color-muted-foreground:       hsl(var(--muted-foreground));
    --color-accent:                 hsl(var(--accent));
    --color-accent-foreground:      hsl(var(--accent-foreground));
    --color-destructive:            hsl(var(--destructive));
    --color-destructive-foreground: hsl(var(--destructive-foreground));
    --color-border:                 hsl(var(--border));
    --color-input:                  hsl(var(--input));
    --color-ring:                   hsl(var(--ring));
    --color-panel:                  hsl(var(--panel));
    --color-panel-foreground:       hsl(var(--panel-foreground));

    /*
     * ═══════════════════════════════════════════════════════════════════════
     * CTA / Interactive colour — THE one place to change button & link colour.
     * --lime    = the fill colour used for primary buttons and active links.
     * --lime-fg = the text colour placed on top of a lime-filled element.
     * ═══════════════════════════════════════════════════════════════════════
     */
    --color-lime:            hsl(var(--lime));
    --color-lime-foreground: hsl(var(--lime-fg));
}

/* ── Runtime variables ───────────────────────────────────────────────────── */
@layer base {
    :root {
        --radius: 0.375rem;

        /* ─ Light mode: Clean Slate ─ */
        --background:              0   0% 98%;   /* near-white — crisp neutral */
        --foreground:             15  10%  6%;   /* near-black warm            */
        --card:                    0   0% 100%;  /* pure white — pops off bg   */
        --card-foreground:         15  12%  8%;
        --popover:                  0   0% 100%;
        --popover-foreground:      15  12%  8%;
        --primary:                17  96% 52%;   /* #FA510F — orange brand     */
        --primary-foreground:       0   0% 100%;
        --secondary:               0   0% 40%;   /* neutral grey — last resort */
        --secondary-foreground:     0   0%  98%;
        --muted:                   0   0% 94%;   /* clean neutral muted        */
        --muted-foreground:        0   0% 44%;   /* boosted for contrast       */
        --accent:                 66  68% 55%;   /* lime tint for hover states */
        --accent-foreground:      80  20%  8%;   /* dark on lime               */
        --lime:                   66  72% 44%;   /* CTA lime — change here ↑ @theme */
        --lime-fg:                 0   0% 100%;  /* white on dark lime ~5.5:1 ✓ */
        --destructive:             0  84% 60%;
        --destructive-foreground:  0   0%  98%;
        --border:                  0   0% 87%;   /* clean defined border       */
        --input:                   0   0% 87%;
        --ring:                   17  96% 52%;
        --panel:                  12   5% 12%;   /* dark warm panel            */
        --panel-foreground:       30   8% 88%;   /* warm light text            */

        /* Illustration palette — light mode */
        --il-bg:    220 22% 91%;
        --il-panel: 220 28% 95%;
        --il-deep:  220 18% 84%;
        --il-text:  220 20% 28%;
    }

    .dark {
        /* ─ Dark mode: Midnight Slate ─ */
        --background:            218  22%  5%;   /* #09101A — deep slate-navy */
        --foreground:             30   8% 90%;   /* #EBE6E2 — warm off-white  */
        --card:                  218  20%  8%;   /* #101824 — dark navy card  */
        --card-foreground:        30   8% 90%;
        --popover:               218  20%  9%;
        --popover-foreground:     30   8% 90%;
        --primary:                17  92% 60%;   /* #FB6B2C — bright orange   */
        --primary-foreground:      0   0% 100%;
        --secondary:             218  18% 14%;   /* #1C2535 — slate secondary */
        --secondary-foreground:  218  15% 75%;
        --muted:                 218  18% 12%;   /* #141E2C — slate muted     */
        --muted-foreground:      218  12% 62%;   /* boosted for contrast      */
        --accent:                 66  72% 72%;   /* lime tint for hover states */
        --accent-foreground:      80  20%  8%;   /* dark on lime              */
        --lime:                   66  72% 68%;   /* CTA lime bright on dark bg */
        --lime-fg:                80  20%  8%;   /* dark text on bright lime ✓ */
        --destructive:             0  60% 38%;
        --destructive-foreground:  0   0%  98%;
        --border:                218  15% 16%;   /* #1E2A3A — slate border    */
        --input:                 218  15% 16%;
        --ring:                   17  92% 60%;
        --panel:                 218  22%  6%;
        --panel-foreground:      218  10% 85%;

        /* Illustration palette — dark mode */
        --il-bg:    215 41%  7%;
        --il-panel: 215 44%  9%;
        --il-deep:  215 45%  4%;
        --il-text:  196 48% 91%;
    }

    html { scroll-behavior: smooth; }

    body {
        @apply bg-background text-foreground antialiased;
        font-family: var(--font-sans);
    }

    * { @apply border-border; }

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

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes mist-drift {
    0%,  100% { transform: translate(0px,   0px)  scale(1);    }
    33%       { transform: translate(28px, -18px) scale(1.04); }
    66%       { transform: translate(-18px, 14px) scale(0.97); }
}
@keyframes mist-drift-2 {
    0%,  100% { transform: translate(0px,   0px)  scale(1);    }
    33%       { transform: translate(-22px, 16px) scale(1.03); }
    66%       { transform: translate(16px, -12px) scale(0.98); }
}
@keyframes float-up-down {
    0%,  100% { transform: translateY(0px);   }
    50%       { transform: translateY(-10px); }
}
@keyframes gradient-shift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}
@keyframes shimmer-slide {
    from { transform: translateX(-100%); }
    to   { transform: translateX(200%);  }
}
@keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(2.4); opacity: 0;   }
}
@keyframes water-ripple {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(3.0); opacity: 0;   }
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ── Component utilities ─────────────────────────────────────────────────── */
@layer components {

    /* ── Typography ────────────────────────────────────────────────────── */
    .pf-display {
        font-family: var(--font-display);
        letter-spacing: -0.025em;
        line-height: 1.05;
    }
    .pf-mono {
        font-family: var(--font-mono);
        font-variant-numeric: tabular-nums;
    }

    /* ── Layout ─────────────────────────────────────────────────────────── */
    .pf-section   { @apply py-24 md:py-32; }
    .pf-container { @apply mx-auto w-full max-w-7xl px-6 lg:px-8; }

    /* ── Page background — deep mesh gradient in dark mode ──────────────── */
    .pf-page-bg {
        background-color: hsl(var(--background));
    }
    .dark .pf-page-bg {
        background:
            radial-gradient(ellipse at 15% 12%, rgba(59, 130, 246, 0.13) 0%, transparent 52%),
            radial-gradient(ellipse at 85% 88%, rgba(99, 102, 241, 0.09) 0%, transparent 52%),
            hsl(218 22% 5%);
        background-attachment: fixed;
        background-size: cover;
    }

    /* ── Cards ──────────────────────────────────────────────────────────── */

    /* Standard card */
    .pf-card {
        background-color: hsl(var(--card));
        color: hsl(var(--card-foreground));
        border: 1px solid hsl(var(--border));
        border-radius: 0.625rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        transition: box-shadow 0.25s ease, transform 0.25s ease;
    }
    .dark .pf-card {
        background: hsl(var(--card) / 0.50);
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
        border-color: hsl(var(--border));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            0 8px 32px rgba(0, 0, 0, 0.45),
            0 32px 72px -12px rgba(0, 0, 0, 0.60);
    }

    /* Featured card — orange ring + glow */
    .pf-card-featured {
        background-color: hsl(var(--card));
        color: hsl(var(--card-foreground));
        border: 1.5px solid hsl(var(--primary) / 0.5);
        border-radius: 0.625rem;
        box-shadow:
            0 0 0 3px hsl(var(--primary) / 0.08),
            0 4px 20px -4px hsl(var(--primary) / 0.22);
        transition: box-shadow 0.25s ease, transform 0.25s ease;
    }
    .dark .pf-card-featured {
        background: hsl(var(--card) / 0.55);
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
        border-color: hsl(var(--primary) / 0.42);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 0 0 4px hsl(var(--primary) / 0.10),
            0 8px 48px -8px hsl(var(--primary) / 0.45),
            0 32px 72px -12px rgba(0, 0, 0, 0.65);
    }

    /* Mock UI card */
    .pf-mock {
        background-color: hsl(var(--card));
        color: hsl(var(--card-foreground));
        border: 1px solid hsl(var(--border));
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.04),
            0 4px 16px -4px rgba(0, 0, 0, 0.08);
    }
    .dark .pf-mock {
        background: hsl(var(--card) / 0.55);
        backdrop-filter: blur(32px) saturate(160%);
        -webkit-backdrop-filter: blur(32px) saturate(160%);
        border-color: hsl(var(--border));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 4px 24px rgba(0, 0, 0, 0.50),
            0 40px 100px -24px rgba(0, 0, 0, 0.90);
    }

    /* Glass card — auth pages, modals, standalone panels */
    .pf-glass {
        background-color: hsl(var(--card) / 0.94);
        backdrop-filter: blur(20px) saturate(140%);
        -webkit-backdrop-filter: blur(20px) saturate(140%);
        border: 1px solid hsl(var(--border) / 0.70);
        border-radius: 0.875rem;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.90),
            0 1px 3px rgba(0, 0, 0, 0.04),
            0 4px 16px -4px rgba(0, 0, 0, 0.08);
    }
    .dark .pf-glass {
        background: hsl(var(--card) / 0.55);
        backdrop-filter: blur(32px) saturate(160%);
        -webkit-backdrop-filter: blur(32px) saturate(160%);
        border-color: hsl(var(--border));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            inset 0 -1px 0 rgba(255, 255, 255, 0.02),
            0 8px 40px rgba(0, 0, 0, 0.55);
    }

    /* ── Buttons ────────────────────────────────────────────────────────── */

    .pf-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1.75rem;
        font-size: 0.9375rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: hsl(var(--primary-foreground));
        background: hsl(var(--primary));
        border-radius: 9999px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 8px 24px -8px hsl(var(--primary) / 0.45);
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }
    .dark .pf-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, transparent 55%);
        border-radius: inherit;
        pointer-events: none;
    }
    .pf-btn:hover {
        transform: translateY(-2px) scale(1.01);
        filter: brightness(1.06);
        box-shadow: 0 2px 4px rgba(0,0,0,0.18), 0 16px 40px -8px hsl(var(--primary) / 0.60);
    }
    .pf-btn:active         { transform: translateY(0) scale(0.99); filter: brightness(0.97); }
    .pf-btn:focus-visible  { outline: none; box-shadow: 0 0 0 3px hsl(var(--primary) / 0.45); }

    .dark .pf-btn {
        background: linear-gradient(160deg, hsl(var(--primary)) 0%, hsl(17 88% 56%) 100%);
    }

    /* Ghost button — lime-accented, dark text in light, lime text in dark */
    .pf-btn-ghost {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1.75rem;
        font-size: 0.9375rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: hsl(var(--foreground));
        background: hsl(var(--lime) / 0.07);
        border: 1px solid hsl(var(--lime) / 0.30);
        border-radius: 9999px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        cursor: pointer;
    }
    .pf-btn-ghost:hover {
        background: hsl(var(--lime) / 0.14);
        border-color: hsl(var(--lime) / 0.55);
        transform: translateY(-1px);
        box-shadow: 0 4px 16px -4px hsl(var(--lime) / 0.20);
    }
    .pf-btn-ghost:focus-visible { outline: none; box-shadow: 0 0 0 3px hsl(var(--lime) / 0.35); }

    .dark .pf-btn-ghost {
        color: hsl(var(--lime));
        background: hsl(var(--lime) / 0.10);
        border-color: hsl(var(--lime) / 0.28);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .dark .pf-btn-ghost:hover {
        background: hsl(var(--lime) / 0.18);
        border-color: hsl(var(--lime) / 0.50);
        box-shadow: 0 4px 24px -4px hsl(var(--lime) / 0.25);
    }

    /* ── Inline text link — lime on dark bg, primary on light bg ──────── */
    .pf-link {
        color: hsl(var(--primary));
        text-decoration-line: underline;
        text-underline-offset: 3px;
        font-weight: 500;
        transition: opacity 0.15s;
    }
    .pf-link:hover { opacity: 0.70; }
    /* Inside dark panel sections, flip to lime */
    .pf-section-dark .pf-link,
    [class*="pf-section-dark"] .pf-link {
        color: hsl(var(--lime));
    }

    /* ── Chip / badge ───────────────────────────────────────────────────────
       Quiet metadata tag (article category, job team, press outlet, …).
       Deliberately understated: no border, no accent color, small radius. */
    .pf-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.1875rem 0.5rem;
        font-size: 0.6875rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: hsl(var(--muted-foreground));
        background: hsl(var(--muted) / 0.7);
        border-radius: 0.375rem;
    }
    .dark .pf-chip {
        background: hsl(var(--muted) / 0.5);
    }

    /* ── Gradient text — teal in light, teal→gold in dark ──────────────── */
    .pf-gradient-text {
        background: linear-gradient(135deg,
            hsl(17  96% 48%) 0%,
            hsl(66  68% 55%) 60%,
            hsl(66  65% 48%) 100%);
        background-size: 300% 300%;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradient-shift 5s ease infinite;
    }
    .dark .pf-gradient-text {
        background: linear-gradient(135deg,
            hsl(17  92% 65%) 0%,
            hsl(66  72% 72%) 55%,
            hsl(66  68% 65%) 100%);
        background-size: 300% 300%;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* ── Ambient blob ───────────────────────────────────────────────────── */
    .pf-blob {
        pointer-events: none;
        position: absolute;
        border-radius: 9999px;
        filter: blur(72px);
        will-change: transform;
    }
    .pf-blob-1 { animation: mist-drift    16s ease-in-out infinite; }
    .pf-blob-2 { animation: mist-drift-2  20s ease-in-out infinite; }

    /* ── Float animation ────────────────────────────────────────────────── */
    .pf-float { animation: float-up-down 6s ease-in-out infinite; }

    /* ── Water ripple ───────────────────────────────────────────────────── */
    .pf-ripple {
        position: absolute;
        border-radius: 50%;
        border: 1px solid hsl(var(--primary) / 0.35);
        animation: water-ripple 3.5s ease-out infinite;
        pointer-events: none;
    }

    /* ── Shimmer ────────────────────────────────────────────────────────── */
    .pf-shimmer {
        position: relative;
        overflow: hidden;
    }
    .pf-shimmer::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
        animation: shimmer-slide 3s ease-in-out infinite;
        pointer-events: none;
    }

    /* ── Stat pill ──────────────────────────────────────────────────────── */
    .pf-stat-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.625rem 1.25rem;
        background: hsl(var(--card));
        border: 1px solid hsl(var(--border));
        border-radius: 9999px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
    .dark .pf-stat-pill {
        background: hsl(var(--card) / 0.50);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 1px 4px rgba(0,0,0,0.35);
    }

    /* ── Section backgrounds ─────────────────────────────────────────────── */
    .pf-section-tint {
        background-color: hsl(var(--primary) / 0.045);
    }
    /* Near-transparent in dark so mesh gradient shines through */
    .dark .pf-section-tint {
        background-color: rgba(255, 255, 255, 0.018);
    }

    .pf-section-dark {
        background-color: hsl(var(--panel));
        color: hsl(var(--panel-foreground));
    }
    .dark .pf-section-dark {
        background: hsl(218 22% 6% / 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    /* ── Illustration frames — warm dark in all modes ────────────────────── */
    .pf-illustration-bg {
        background: hsl(15 10% 9%);
        border: 1px solid hsl(var(--primary) / 0.15);
    }
    .dark .pf-illustration-bg {
        background: hsl(218 22% 7%);
        border-color: hsl(218 20% 18%);
    }

    /* ── Glass navbar surface ────────────────────────────────────────────── */
    .pf-nav-glass {
        background: rgba(248, 246, 244, 0.88);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }
    .dark .pf-nav-glass {
        background: rgba(14, 10, 8, 0.72);
        backdrop-filter: blur(28px) saturate(200%);
        -webkit-backdrop-filter: blur(28px) saturate(200%);
        border-color: rgba(250, 81, 15, 0.10) !important;
    }

    /* ── Divider ────────────────────────────────────────────────────────── */
    .pf-divider {
        height: 1px;
        background: linear-gradient(90deg,
            transparent 0%,
            hsl(var(--border)) 25%,
            hsl(var(--border)) 75%,
            transparent 100%);
    }

    /* ── Live dot ───────────────────────────────────────────────────────── */
    .pf-live {
        position: relative;
        display: inline-block;
        width: 8px;
        height: 8px;
        flex-shrink: 0;
    }
    .pf-live::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: hsl(var(--primary));
        box-shadow: 0 0 6px hsl(var(--primary) / 0.7);
    }
    .pf-live::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        border: 1px solid hsl(var(--primary) / 0.45);
        animation: pulse-ring 2s ease-out infinite;
    }

    /* ── Icon accent box ─────────────────────────────────────────────────── */
    .pf-icon-box {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 0.5rem;
        background: hsl(var(--primary) / 0.10);
        color: hsl(var(--primary));
        border: 1px solid hsl(var(--primary) / 0.18);
        flex-shrink: 0;
    }
    .dark .pf-icon-box {
        background: hsl(var(--primary) / 0.14);
        border-color: hsl(var(--primary) / 0.25);
    }

    /* ── Progress bar ───────────────────────────────────────────────────── */
    .pf-progress-track {
        height: 4px;
        border-radius: 9999px;
        background: hsl(var(--primary) / 0.12);
        overflow: hidden;
    }
    .pf-progress-fill {
        height: 100%;
        border-radius: 9999px;
        background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--lime)));
    }

    /* ── Cursor pointer ──────────────────────────────────────────────────── */
    button, a, [role="button"] { cursor: pointer; }
}

/* ── Admin portal scrollbar — themed ────────────────────────────────────── */
    .admin-scrollbar {
        scrollbar-width: thin;
        scrollbar-color: hsl(var(--border)) transparent;
    }
    .admin-scrollbar::-webkit-scrollbar        { width: 4px; }
    .admin-scrollbar::-webkit-scrollbar-track  { background: transparent; }
    .admin-scrollbar::-webkit-scrollbar-thumb  {
        border-radius: 9999px;
        background: hsl(var(--border));
    }
    .admin-scrollbar::-webkit-scrollbar-thumb:hover {
        background: hsl(var(--muted-foreground) / 0.3);
    }

/* ── Phone input ─────────────────────────────────────────────────────────── */

    /* Root flag variables override */
    :root {
        --PhoneInput-color--focus:               hsl(var(--primary));
        --PhoneInputCountryFlag-borderColor:      hsl(var(--border));
        --PhoneInputCountryFlag-borderColor--focus: hsl(var(--primary) / 0.5);
        --PhoneInputCountrySelectArrow-color:     hsl(var(--muted-foreground));
        --PhoneInputCountrySelectArrow-opacity:   0.7;
    }

    /* Flatten library container — our wrapper div owns the box */
    .pf-phone-input.PhoneInput {
        display: flex;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    /* Country selector area */
    .pf-phone-input .PhoneInputCountry {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding-right: 0.5rem;
        margin-right: 0.5rem;
        border-right: 1px solid hsl(var(--border));
        flex-shrink: 0;
    }

    /* Scale up flag slightly */
    .pf-phone-input .PhoneInputCountryIcon {
        --PhoneInputCountryFlag-height: 1.1em;
        border-radius: 2px;
        overflow: hidden;
    }

    /* Dropdown caret colour */
    .pf-phone-input .PhoneInputCountrySelectArrow {
        border-color: hsl(var(--muted-foreground) / 0.5);
        width: 4px;
        height: 4px;
    }

    /* Focus state: caret brightens to primary */
    .pf-phone-input .PhoneInputCountrySelect:focus
        + .PhoneInputCountryIcon
        + .PhoneInputCountrySelectArrow {
        color: hsl(var(--primary));
        opacity: 1;
    }

    /* Cursor on the country selector */
    .pf-phone-input .PhoneInputCountrySelect {
        cursor: pointer;
    }

/* Legacy aliases ──────────────────────────────────────────────────────────── */
@layer components {
    .uf-container { @apply mx-auto w-full max-w-7xl px-6 lg:px-8; }
    .uf-section   { @apply py-24 md:py-32; }
    .uf-display   { font-family: var(--font-display); letter-spacing: -0.025em; }
}
