      /* Nordic Investigator - Premium editorial aesthetic */
      /* Fonts loaded in index.html for better performance */

      /* Light theme (default) */
      :root {
        --background: #FDFCFA;
        --foreground: #1A1814;
        --card: rgba(255, 255, 255, 0.9);
        --card-solid: #FFFFFF;
        --card-foreground: #1A1814;
        --popover: rgba(255, 255, 255, 0.98);
        --popover-foreground: #1A1814;
        --primary: #F97316;
        --primary-dark: #EA580C;
        --primary-light: #FB923C;
        --primary-foreground: #FFFFFF;
        --secondary: rgba(0, 0, 0, 0.04);
        --secondary-foreground: #1A1814;
        --muted: rgba(0, 0, 0, 0.05);
        --muted-foreground: #6B635A;
        --accent: rgba(249, 115, 22, 0.1);
        --warning: #F97316;
        --warning-bg: rgba(249, 115, 22, 0.1);
        --warning-text: #EA580C;
        --accent-foreground: #1A1814;
        --destructive: #DC4444;
        --destructive-foreground: #FFFFFF;
        --border: rgba(0, 0, 0, 0.08);
        --border-strong: rgba(0, 0, 0, 0.12);
        --input: rgba(0, 0, 0, 0.04);
        --ring: #F97316;
        --success: #2D9D5E;
        --info: #3B82C4;
        --glow: rgba(249, 115, 22, 0.12);
        --font-display: "Plus Jakarta Sans", -apple-system, sans-serif;
        --font-serif: "Plus Jakarta Sans", -apple-system, sans-serif;
        --radius: 16px;
        --radius-sm: 10px;
        --radius-lg: 24px;
        --radius-xl: 32px;
        --transition: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
        --transition-slow: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
        --shadow-glow: 0 0 60px -12px rgba(249, 115, 22, 0.2);
        --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
        --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
      }

      [data-theme="dark"] {
        --background: #0D0F11;
        --foreground: #F5F2ED;
        --card: rgba(18, 19, 21, 0.8);
        --card-solid: #121315;
        --card-foreground: #F5F2ED;
        --popover: rgba(18, 19, 21, 0.95);
        --popover-foreground: #F5F2ED;
        --primary: #F97316;
        --primary-dark: #EA580C;
        --primary-light: #FB923C;
        --primary-foreground: #FFFFFF;
        --secondary: rgba(255, 255, 255, 0.04);
        --secondary-foreground: #F5F2ED;
        --muted: rgba(255, 255, 255, 0.06);
        --muted-foreground: #9CA3AF;
        --accent: rgba(249, 115, 22, 0.08);
        --warning: #FB923C;
        --warning-bg: rgba(249, 115, 22, 0.1);
        --warning-text: #FB923C;
        --accent-foreground: #F5F2ED;
        --destructive: #E45A5A;
        --destructive-foreground: #fafafa;
        --border: rgba(255, 255, 255, 0.08);
        --border-strong: rgba(255, 255, 255, 0.12);
        --input: rgba(255, 255, 255, 0.06);
        --ring: #F97316;
        --success: #5AB88C;
        --info: #6BA3D4;
      }

      *,
      *::before,
      *::after {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html {
        font-size: 16px;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }

      body {
        font-family: var(--font-display);
        background: var(--background);
        color: var(--foreground);
        min-height: 100vh;
        min-height: 100dvh;
        line-height: 1.6;
        overflow-x: hidden;
        transition:
          background-color var(--transition),
          color var(--transition);
      }

      /* Sophisticated ambient lighting - light theme */
      body::before {
        content: "";
        position: fixed;
        inset: 0;
        background:
          radial-gradient(
            ellipse 100% 80% at 50% -30%,
            rgba(249, 115, 22, 0.06) 0%,
            transparent 60%
          ),
          radial-gradient(
            ellipse 80% 60% at -20% 50%,
            rgba(249, 115, 22, 0.03) 0%,
            transparent 50%
          ),
          radial-gradient(
            ellipse 60% 50% at 110% 80%,
            rgba(249, 115, 22, 0.02) 0%,
            transparent 50%
          );
        pointer-events: none;
        z-index: 0;
      }

      /* Subtle noise texture overlay */
      body::after {
        content: "";
        position: fixed;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        opacity: 0.02;
        pointer-events: none;
        z-index: 0;
      }

      [data-theme="dark"] body::before {
        background:
          radial-gradient(
            ellipse 100% 80% at 50% -30%,
            rgba(249, 115, 22, 0.08) 0%,
            transparent 60%
          ),
          radial-gradient(
            ellipse 80% 60% at -20% 50%,
            rgba(249, 115, 22, 0.04) 0%,
            transparent 50%
          ),
          radial-gradient(
            ellipse 60% 50% at 110% 80%,
            rgba(249, 115, 22, 0.03) 0%,
            transparent 50%
          );
      }

      [data-theme="dark"] body::after {
        opacity: 0.015;
      }

      /* Header - glass morphism */
      header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(253, 252, 250, 0.8);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--border);
        padding-top: env(safe-area-inset-top);
        transition: all var(--transition);
      }

      [data-theme="dark"] header {
        background: rgba(8, 9, 10, 0.7);
      }

      .header-content {
        max-width: 780px;
        margin: 0 auto;
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
      }

      .logo-icon {
        width: 36px;
        height: 36px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      @keyframes logoSpin {
        from {
          transform: rotate(0deg);
        }
        to {
          transform: rotate(360deg);
        }
      }

      .logo-icon::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        border-radius: var(--radius-sm);
        animation: logoSpin 30s linear infinite;
        box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
      }

      .logo-icon::after {
        content: "";
        width: 14px;
        height: 14px;
        background: var(--background);
        border-radius: 3px;
        position: relative;
        z-index: 1;
        transform: rotate(45deg);
      }

      .logo-text {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--foreground);
        letter-spacing: -0.03em;
        transition: color var(--transition);
      }

      .logo-text span {
        font-weight: 700;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      .beta-badge {
        background: var(--primary);
        color: var(--primary-foreground);
        font-size: 0.625rem;
        font-weight: 600;
        padding: 0.15rem 0.4rem;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-left: 0.5rem;
        vertical-align: middle;
      }

      /* Beta Modal */
      .beta-modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 9999;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
      }

      .beta-modal-overlay.active {
        display: flex;
        animation: overlayFade 0.3s ease-out;
      }

      @keyframes overlayFade {
        from { opacity: 0; }
        to { opacity: 1; }
      }

      .beta-modal {
        background: var(--card-solid);
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-xl);
        max-width: 480px;
        width: 100%;
        padding: 2.5rem;
        text-align: center;
        box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), var(--shadow-glow);
        animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      }

      @keyframes modalPop {
        from {
          opacity: 0;
          transform: scale(0.9) translateY(20px);
        }
        to {
          opacity: 1;
          transform: scale(1) translateY(0);
        }
      }

      .beta-modal-icon {
        font-size: 3.5rem;
        margin-bottom: 1.25rem;
        filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.3));
      }

      .beta-modal h2 {
        color: var(--primary);
        margin: 0 0 0.75rem;
        font-size: 1.625rem;
        font-weight: 600;
        letter-spacing: -0.02em;
      }

      .beta-modal-intro {
        color: var(--foreground);
        margin-bottom: 1rem;
      }

      .beta-modal-details {
        background: var(--secondary);
        border-radius: var(--radius-sm);
        padding: 1rem;
        text-align: left;
        margin-bottom: 1.5rem;
        font-size: 0.875rem;
        color: var(--muted-foreground);
      }

      .beta-modal-details p {
        margin: 0 0 0.75rem;
      }

      .beta-modal-details ul {
        margin: 0.5rem 0;
        padding-left: 1.25rem;
      }

      .beta-modal-details li {
        margin-bottom: 0.25rem;
      }

      .beta-modal-details strong {
        color: var(--foreground);
      }

      .beta-modal-btn {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: var(--background);
        border: none;
        padding: 0.875rem 2.5rem;
        border-radius: var(--radius);
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition);
        box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
      }

      .beta-modal-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
      }

      .beta-modal-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
      }

      .header-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      /* Theme toggle */
      .theme-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--secondary);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        color: var(--muted-foreground);
        cursor: pointer;
        transition: all var(--transition);
      }

      .theme-toggle:hover {
        background: var(--accent);
        color: var(--primary);
        border-color: rgba(249, 115, 22, 0.3);
        transform: rotate(15deg) scale(1.05);
        box-shadow: 0 4px 16px rgba(249, 115, 22, 0.15);
      }

      .theme-toggle svg {
        width: 18px;
        height: 18px;
        transition: transform var(--transition);
      }

      .theme-toggle:hover svg {
        transform: scale(1.1);
      }

      .theme-toggle .sun-icon {
        display: block;
      }
      .theme-toggle .moon-icon {
        display: none;
      }
      [data-theme="dark"] .theme-toggle .sun-icon {
        display: none;
      }
      [data-theme="dark"] .theme-toggle .moon-icon {
        display: block;
      }

      /* Prefs button */
      .prefs-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--secondary);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        color: var(--muted-foreground);
        cursor: pointer;
        transition: all var(--transition);
      }

      .prefs-btn:hover {
        background: var(--accent);
        color: var(--primary);
        border-color: rgba(249, 115, 22, 0.3);
        box-shadow: 0 4px 16px rgba(249, 115, 22, 0.15);
      }

      .prefs-btn svg {
        width: 18px;
        height: 18px;
        transition: transform var(--transition-slow);
      }

      .prefs-btn:hover svg {
        transform: rotate(90deg);
      }

      .lang-selector {
        position: relative;
        display: flex;
        align-items: center;
      }

      .lang-btn {
        background: var(--secondary);
        border: 1px solid var(--border);
        color: var(--foreground);
        padding: 0.5rem 0.875rem;
        border-radius: var(--radius-sm);
        font-family: var(--font-display);
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: all var(--transition);
      }

      .lang-btn:hover {
        background: var(--accent);
        border-color: rgba(249, 115, 22, 0.2);
      }

      .lang-btn:focus {
        outline: none;
        box-shadow:
          0 0 0 2px var(--background),
          0 0 0 4px rgba(249, 115, 22, 0.3);
      }

      .lang-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 8px;
        background: var(--popover);
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        border: 1px solid var(--border-strong);
        border-radius: var(--radius);
        min-width: 160px;
        max-height: 320px;
        overflow-y: auto;
        z-index: 1000;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        animation: dropdownReveal 0.2s ease-out;
      }

      @keyframes dropdownReveal {
        from {
          opacity: 0;
          transform: translateY(-8px) scale(0.96);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      .lang-dropdown.active {
        display: block;
      }

      .lang-option {
        padding: 0.625rem 1rem;
        cursor: pointer;
        font-size: 0.875rem;
        transition: all var(--transition);
      }

      .lang-option img.emoji,
      .lang-btn img.emoji {
        height: 1.75em;
        width: 1.75em;
      }

      .lang-option:hover {
        background: var(--accent);
      }

      .lang-separator {
        height: 1px;
        background: var(--border);
        margin: 0.25rem 0;
      }

      /* Main content */
      main {
        position: relative;
        z-index: 1;
        max-width: 780px;
        margin: 0 auto;
        padding: 3rem 1.5rem 5rem;
      }

      /* Hero section */
      .hero {
        text-align: center;
        margin-bottom: 2.5rem;
        animation: heroReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
      }

      @keyframes heroReveal {
        from {
          opacity: 0;
          transform: translateY(30px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      @keyframes fadeUp {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .hero h1 {
        font-family: var(--font-serif);
        font-size: clamp(2.25rem, 6vw, 3.5rem);
        font-weight: 400;
        font-style: italic;
        color: var(--foreground);
        letter-spacing: -0.02em;
        margin-bottom: 1rem;
        line-height: 1.1;
        transition: color var(--transition);
      }

      .hero h1 .accent {
        font-style: normal;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      .hero p {
        font-size: 1.125rem;
        color: var(--muted-foreground);
        max-width: 440px;
        margin: 0 auto;
        line-height: 1.7;
        letter-spacing: 0.01em;
        transition: color var(--transition);
      }

      /* Error message */
      .error-toast {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: var(--destructive);
        color: var(--destructive-foreground);
        padding: 0.875rem 1.25rem;
        border-radius: var(--radius);
        font-size: 0.875rem;
        font-weight: 500;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 200;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
        max-width: calc(100vw - 2rem);
      }

      .error-toast.active {
        opacity: 1;
        pointer-events: auto;
      }

      /* Input card - glass morphism */
      .input-card {
        background: var(--card);
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 1.75rem;
        margin-bottom: 2rem;
        box-shadow: var(--shadow-card);
        transition: all var(--transition-slow);
        position: relative;
        z-index: 1;
        animation: cardReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
      }

      @keyframes cardReveal {
        from {
          opacity: 0;
          transform: translateY(24px) scale(0.98);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      .input-card:hover {
        box-shadow: var(--shadow-card), var(--shadow-glow);
        border-color: var(--border-strong);
        transform: translateY(-2px);
      }

      .input-card:focus-within {
        box-shadow: var(--shadow-card), 0 0 0 2px rgba(249, 115, 22, 0.2), var(--shadow-glow);
        border-color: rgba(249, 115, 22, 0.4);
      }

      #textInput {
        width: 100%;
        background: transparent;
        border: none;
        color: var(--foreground);
        font-family: var(--font-display);
        font-size: 1.0625rem;
        font-weight: 500;
        outline: none;
        line-height: 1.6;
        padding: 0.5rem 0;
        letter-spacing: -0.01em;
        transition: color var(--transition);
      }

      #textInput::placeholder {
        color: var(--muted-foreground);
        font-weight: 400;
      }

      /* Autocomplete dropdown */
      .autocomplete-wrapper {
        position: relative;
      }

      .autocomplete-dropdown {
        position: absolute;
        top: 100%;
        left: -1.25rem;
        right: -1.25rem;
        background: var(--popover);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-top: 0.5rem;
        max-height: 280px;
        overflow-y: auto;
        z-index: 100;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        display: none;
        transition:
          background-color var(--transition),
          border-color var(--transition);
      }

      [data-theme="dark"] .autocomplete-dropdown {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
      }

      .autocomplete-dropdown.active {
        display: block;
      }

      .autocomplete-group {
        padding: 0.25rem 0;
      }

      .autocomplete-group:not(:last-child) {
        border-bottom: 1px solid var(--border);
      }

      .autocomplete-group-title {
        font-size: 0.6875rem;
        font-weight: 500;
        color: var(--muted-foreground);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 0.5rem 0.875rem 0.375rem;
      }

      .autocomplete-item {
        padding: 0.5rem 0.875rem;
        cursor: pointer;
        transition: background-color var(--transition);
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .autocomplete-item:hover,
      .autocomplete-item.selected {
        background: var(--accent);
      }

      .autocomplete-item-name {
        font-weight: 500;
        font-size: 0.875rem;
        color: var(--popover-foreground);
        transition: color var(--transition);
      }

      .autocomplete-item-flag {
        font-size: 0.75rem;
        color: var(--muted-foreground);
        transition: all var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
      }

      /* Confirm modal */
      .confirm-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        align-items: center;
        justify-content: center;
      }

      [data-theme="dark"] .confirm-modal {
        background: rgba(0, 0, 0, 0.7);
      }

      .confirm-modal.active {
        display: flex;
      }

      .confirm-content {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 1.5rem;
        max-width: 340px;
        text-align: center;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        transition:
          background-color var(--transition),
          border-color var(--transition);
      }

      [data-theme="dark"] .confirm-content {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
      }

      .confirm-content p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        color: var(--card-foreground);
        transition: color var(--transition);
      }

      .confirm-content strong {
        font-weight: 600;
      }

      .confirm-buttons {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
      }

      .confirm-yes {
        background: var(--primary);
        color: var(--primary-foreground);
        border: none;
        padding: 0.625rem 1.25rem;
        border-radius: var(--radius-sm);
        font-family: var(--font-display);
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: opacity var(--transition);
      }

      .confirm-yes:hover {
        opacity: 0.9;
      }

      .confirm-no {
        background: var(--secondary);
        color: var(--secondary-foreground);
        border: 1px solid var(--border);
        padding: 0.625rem 1rem;
        border-radius: var(--radius-sm);
        font-family: var(--font-display);
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: background-color var(--transition);
      }

      .confirm-no:hover {
        background: var(--accent);
      }

      /* Image preview */
      .preview {
        margin-top: 1rem;
        display: none;
      }

      .preview.active {
        display: flex;
        align-items: flex-end;
        gap: 0.75rem;
      }

      .preview-img-wrapper {
        position: relative;
        border-radius: var(--radius-sm);
        overflow: hidden;
        border: 1px solid var(--border);
        transition: border-color var(--transition);
      }

      .preview img {
        display: block;
        max-width: 160px;
        max-height: 120px;
        object-fit: cover;
      }

      .clear-btn {
        background: var(--secondary);
        border: 1px solid var(--border);
        color: var(--destructive);
        padding: 0.5rem 0.875rem;
        border-radius: var(--radius-sm);
        font-family: var(--font-display);
        font-size: 0.8125rem;
        font-weight: 500;
        cursor: pointer;
        transition: background-color var(--transition);
      }

      .clear-btn:hover {
        background: var(--accent);
      }

      /* Input footer */
      .input-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
        flex-wrap: wrap;
        gap: 0.75rem;
        transition: border-color var(--transition);
      }

      .file-upload {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
      }

      .file-btn {
        background: var(--secondary);
        border: 1px solid var(--border);
        color: var(--foreground);
        padding: 0.625rem 1rem;
        border-radius: var(--radius-sm);
        font-family: var(--font-display);
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all var(--transition);
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .file-btn:hover:not(.disabled) {
        background: var(--accent);
        border-color: rgba(249, 115, 22, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      }

      .file-btn.disabled {
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
      }

      .file-btn:hover svg {
        transform: scale(1.15);
        color: var(--primary);
      }

      .file-btn svg {
        transition: all var(--transition);
        width: 18px;
        height: 18px;
        color: var(--muted-foreground);
      }

      .file-name {
        color: var(--muted-foreground);
        font-size: 0.75rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        transition: color var(--transition);
      }

      input[type="file"] {
        display: none;
      }

      /* Submit button */
      .submit-btn {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: var(--background);
        border: none;
        padding: 0.875rem 2rem;
        border-radius: var(--radius-sm);
        font-family: var(--font-display);
        font-size: 0.9375rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        cursor: pointer;
        transition: all var(--transition);
        box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        position: relative;
        overflow: hidden;
      }

      .submit-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
        transform: translateX(-100%);
        transition: transform 0.5s ease;
      }

      .submit-btn:hover:not(:disabled)::before {
        transform: translateX(100%);
      }

      .submit-btn:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 8px 28px rgba(249, 115, 22, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
      }

      .submit-btn:active:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
      }

      .submit-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        box-shadow: none;
      }

      /* Loading state */
      .loading-state {
        display: none;
        text-align: center;
        padding: 3rem 1.5rem;
      }

      .loading-state.active {
        display: block;
        animation: fadeUp 0.4s ease-out;
      }

      .spinner-ring {
        width: 52px;
        height: 52px;
        border: 2px solid var(--border);
        border-top-color: var(--primary);
        border-right-color: var(--primary);
        border-radius: 50%;
        animation: spin 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
        margin: 0 auto 1.25rem;
        box-shadow: 0 0 24px rgba(249, 115, 22, 0.2);
        transition: border-color var(--transition);
      }

      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

      .loading-state p {
        color: var(--muted-foreground);
        font-size: 0.9375rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        transition: color var(--transition);
      }

      /* Result overlay */
      .result-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        z-index: 200;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 1.25rem;
      }

      [data-theme="dark"] .result-overlay {
        background: rgba(0, 0, 0, 0.7);
      }

      .result-overlay.active {
        display: flex;
      }

      /* Result card */
      .result-card {
        background: var(--card);
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-xl);
        overflow: hidden;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
        width: 100%;
        max-width: 420px;
        max-height: 90vh;
        overflow-y: auto;
        transition: all var(--transition);
        animation: resultReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
      }

      @keyframes resultReveal {
        from {
          opacity: 0;
          transform: scale(0.92) translateY(30px);
        }
        60% {
          transform: scale(1.02) translateY(-5px);
        }
        to {
          opacity: 1;
          transform: scale(1) translateY(0);
        }
      }

      @keyframes cardPop {
        from {
          opacity: 0;
          transform: scale(0.9) translateY(20px);
        }
        to {
          opacity: 1;
          transform: scale(1) translateY(0);
        }
      }

      [data-theme="dark"] .result-card {
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), var(--shadow-glow);
      }

      .result-header {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        padding: 1.25rem 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.625rem;
        position: relative;
        overflow: hidden;
      }

      .result-header::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
        animation: shimmer 2s ease-in-out infinite;
      }

      @keyframes shimmer {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
      }

      .result-header svg,
      .result-header h2 {
        color: var(--background) !important;
        position: relative;
        z-index: 1;
      }

      .result-header svg {
        width: 22px;
        height: 22px;
        transition: color var(--transition);
      }

      .result-header h2 {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        transition: color var(--transition);
      }

      .result-body {
        padding: 1.5rem;
      }

      .result-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        transition: all var(--transition);
      }

      .result-row:hover {
        background: var(--secondary);
        margin: 0 -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
      }

      .result-row:last-of-type {
        border-bottom: none;
      }

      .result-label {
        font-size: 0.875rem;
        color: var(--muted-foreground);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 500;
        transition: color var(--transition);
      }

      .result-label svg {
        width: 18px;
        height: 18px;
        opacity: 0.7;
      }

      .result-value {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 600;
        color: var(--card-foreground);
        text-align: right;
        transition: color var(--transition);
      }

      .homeland-flag {
        font-size: 1.25rem;
        vertical-align: middle;
        margin-right: 0.25rem;
      }

      .homeland-flag img.emoji {
        height: 1.75em;
        width: 1.75em;
      }

      .country-ok {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.5em;
        height: 1.5em;
        background: #22c55e;
        color: white;
        border-radius: 50%;
        font-size: 0.875rem;
        font-weight: bold;
        margin-left: 0.5rem;
        vertical-align: middle;
      }

      /* Confidence badges */
      .confidence-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem 0.625rem;
        border-radius: var(--radius-sm);
        font-size: 0.75rem;
        font-weight: 500;
      }

      .confidence-badge::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
      }

      .confidence-high {
        background: rgba(34, 197, 94, 0.1);
        color: var(--success);
      }

      .confidence-high::before {
        background: var(--success);
      }

      .confidence-medium {
        background: rgba(234, 179, 8, 0.1);
        color: var(--warning);
      }

      .confidence-medium::before {
        background: var(--warning);
      }

      .confidence-low {
        background: rgba(239, 68, 68, 0.1);
        color: var(--destructive);
      }

      .confidence-low::before {
        background: var(--destructive);
      }

      /* AI disclaimer */
      .ai-disclaimer {
        text-align: center;
        font-size: 0.8125rem;
        color: var(--muted-foreground);
        margin-top: 2rem;
        line-height: 1.7;
        white-space: pre-line;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        padding: 1rem 1.5rem;
        background: var(--secondary);
        border-radius: var(--radius);
        border: 1px solid var(--border);
        animation: fadeUp 0.6s ease-out 0.3s both;
        transition: color var(--transition);
      }

      /* Ad blocker warning */
      .adblock-warning {
        text-align: center;
        font-size: 0.8125rem;
        color: var(--warning);
        background: rgba(217, 119, 6, 0.1);
        border: 1px solid var(--warning);
        border-radius: var(--radius);
        padding: 0.75rem 1rem;
        margin: 0 auto;
        max-width: 320px;
        display: none;
      }

      .adblock-warning.active {
        display: block;
      }

      /* Ad banner */
      .ad-banner {
        width: 100%;
        max-width: 728px;
        margin: 1.5rem auto 1rem;
        padding: 0 1rem;
        box-sizing: border-box;
      }

      .ad-container {
        background: var(--muted);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        min-height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition:
          background-color var(--transition),
          border-color var(--transition);
      }

      .ad-placeholder {
        color: var(--muted-foreground);
        font-size: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: color var(--transition);
      }

      /* Mobile ad - responsive */
      @media (max-width: 768px) {
        .ad-banner {
          max-width: 320px;
        }
        .ad-container {
          min-height: 50px;
        }
      }

      /* Unverified warning */
      .unverified-warning {
        margin-top: 1rem;
        padding: 0.75rem;
        background: rgba(234, 179, 8, 0.15);
        border: 1px solid rgba(234, 179, 8, 0.4);
        border-radius: 8px;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        color: #b45309;
      }
      .dark .unverified-warning {
        background: rgba(234, 179, 8, 0.1);
        color: #fbbf24;
      }
      .unverified-warning svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        margin-top: 2px;
      }
      .unverified-warning strong {
        display: block;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
      }
      .unverified-warning p {
        margin: 0.25rem 0 0 0;
        font-size: 0.8rem;
        opacity: 0.9;
      }

      /* Web search verified note (subtle green) */
      .unverified-warning.verified-note {
        background: rgba(34, 197, 94, 0.1);
        border-color: rgba(34, 197, 94, 0.3);
        color: #15803d;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
      }
      .dark .unverified-warning.verified-note {
        background: rgba(34, 197, 94, 0.08);
        color: #4ade80;
        border-color: rgba(34, 197, 94, 0.2);
      }

      /* Response time */
      .response-time {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.75rem;
        color: var(--muted-foreground);
        flex-shrink: 0;
        transition:
          border-color var(--transition),
          color var(--transition);
      }

      .response-time svg {
        width: 14px;
        height: 14px;
      }

      /* Scan again button */
      .scan-again-btn {
        width: 100%;
        margin-top: 1.25rem;
        background: var(--secondary);
        border: 1px solid var(--border);
        color: var(--foreground);
        padding: 0.875rem 1.25rem;
        border-radius: var(--radius-sm);
        font-family: var(--font-display);
        font-size: 0.9375rem;
        font-weight: 500;
        cursor: pointer;
        transition: all var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.625rem;
      }

      .scan-again-btn:hover {
        background: var(--accent);
        border-color: rgba(249, 115, 22, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
      }

      .scan-again-btn:hover svg {
        transform: rotate(-180deg);
        color: var(--primary);
      }

      .scan-again-btn svg {
        width: 20px;
        height: 20px;
        transition: all var(--transition-slow);
      }

      .result-meta-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: nowrap;
      }

      .report-link {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.75rem;
        flex-shrink: 0;
        color: var(--muted-foreground);
        text-decoration: none;
        opacity: 0.7;
        transition: opacity 0.2s;
      }
      .report-link:hover { opacity: 1; }
      .report-link svg { flex-shrink: 0; }
      .report-link.reported {
        color: #ef4444 !important;
        opacity: 1 !important;
      }
      .report-link.reported svg {
        stroke: #ef4444 !important;
        fill: rgba(239, 68, 68, 0.2);
      }

      /* Dispute warning */
      .dispute-warning {
        background: rgba(239, 68, 68, 0.1) !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
        color: #fca5a5;
      }
      .dispute-warning svg { color: #ef4444; }
      .dispute-warning strong { color: #ef4444; }

      /* Install prompt */
      .install-prompt {
        position: fixed;
        bottom: 1.25rem;
        left: 50%;
        transform: translateX(-50%) translateY(150%);
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 1.25rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        z-index: 150;
        opacity: 0;
        transition:
          all var(--transition),
          background-color var(--transition),
          border-color var(--transition);
        max-width: calc(100vw - 2rem);
        width: 300px;
      }

      [data-theme="dark"] .install-prompt {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
      }

      .install-prompt.active {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }

      .install-prompt h3 {
        font-family: var(--font-display);
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--card-foreground);
        margin-bottom: 0.625rem;
        transition: color var(--transition);
      }

      .install-steps {
        list-style: none;
        counter-reset: step;
        margin: 0 0 1rem 0;
        padding: 0;
      }

      .install-steps li {
        counter-increment: step;
        font-size: 0.8125rem;
        color: var(--muted-foreground);
        padding: 0.25rem 0;
        padding-left: 1.75rem;
        position: relative;
        line-height: 1.4;
        transition: color var(--transition);
      }

      .install-steps li::before {
        content: counter(step);
        position: absolute;
        left: 0;
        top: 0.25rem;
        width: 1.125rem;
        height: 1.125rem;
        background: var(--primary);
        color: var(--primary-foreground);
        border-radius: 50%;
        font-size: 0.625rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        transition:
          background-color var(--transition),
          color var(--transition);
      }

      .install-btn {
        background: var(--primary);
        color: var(--primary-foreground);
        border: none;
        padding: 0.625rem 1rem;
        border-radius: var(--radius-sm);
        font-family: var(--font-display);
        font-size: 0.8125rem;
        font-weight: 500;
        cursor: pointer;
        width: 100%;
        transition: opacity var(--transition);
      }

      .install-btn:hover {
        opacity: 0.9;
      }

      .dismiss-btn {
        position: absolute;
        top: 0.625rem;
        right: 0.625rem;
        background: transparent;
        border: none;
        color: var(--muted-foreground);
        padding: 0.25rem;
        cursor: pointer;
        border-radius: var(--radius-sm);
        transition:
          color var(--transition),
          background-color var(--transition);
      }

      .dismiss-btn:hover {
        color: var(--foreground);
        background: var(--accent);
      }

      /* Responsive */
      @media (max-width: 600px) {
        .header-content {
          padding: 0.75rem 1rem;
        }

        .logo-text {
          font-size: 0.9375rem;
        }

        main {
          padding: 1.5rem 1rem 2.5rem;
        }

        .hero h1 {
          font-size: 1.5rem;
        }

        .input-card {
          padding: 1rem;
          border-radius: var(--radius);
        }

        .input-footer {
          flex-direction: column;
          align-items: stretch;
        }

        .file-upload {
          justify-content: center;
        }

        .submit-btn {
          width: 100%;
        }

        .result-card {
          border-radius: var(--radius);
        }

        .result-header {
          padding: 0.875rem 1rem;
        }

        .result-body {
          padding: 1rem;
        }

        .result-row {
          flex-direction: column;
          align-items: flex-start;
          gap: 0.375rem;
        }

        .result-value {
          text-align: left;
        }
      }

      /* Print styles */
      @media print {
        body::before,
        body::after,
        header,
        .input-card,
        .loading-state,
        .error-toast,
        .install-prompt {
          display: none !important;
        }

        .result-card {
          display: block !important;
          box-shadow: none;
          border: 1px solid #ccc;
        }
      }

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

      /* Visually hidden (for screen readers) */
      .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      /* Focus visible */
      :focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }

      button:focus-visible,
      a:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }

      /* Webcam modal */
      .webcam-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 300;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 1.25rem;
      }

      [data-theme="dark"] .webcam-overlay {
        background: rgba(0, 0, 0, 0.7);
      }

      .webcam-overlay.active {
        display: flex;
      }

      .webcam-modal {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        width: 100%;
        max-width: 560px;
        transition:
          background-color var(--transition),
          border-color var(--transition);
      }

      [data-theme="dark"] .webcam-modal {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
      }

      .webcam-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.875rem 1rem;
        border-bottom: 1px solid var(--border);
        transition: border-color var(--transition);
      }

      .webcam-header h3 {
        font-family: var(--font-display);
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--card-foreground);
        margin: 0;
        transition: color var(--transition);
      }

      .webcam-close {
        background: var(--secondary);
        border: 1px solid var(--border);
        color: var(--muted-foreground);
        cursor: pointer;
        padding: 0.375rem;
        border-radius: var(--radius-sm);
        transition:
          background-color var(--transition),
          color var(--transition),
          border-color var(--transition);
      }

      .webcam-close:hover {
        color: var(--foreground);
        background: var(--accent);
      }

      .webcam-body {
        position: relative;
        background: #000;
      }

      .webcam-body video {
        display: block;
        width: 100%;
        max-height: 400px;
        object-fit: cover;
      }

      .webcam-footer {
        display: flex;
        justify-content: center;
        padding: 1rem;
        border-top: 1px solid var(--border);
        transition: border-color var(--transition);
      }

      .webcam-capture-btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--primary);
        border: 3px solid var(--card);
        box-shadow: 0 0 0 2px var(--primary);
        color: var(--primary-foreground);
        cursor: pointer;
        transition: opacity var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .webcam-capture-btn:hover {
        opacity: 0.9;
      }

      .webcam-capture-btn:active {
        transform: scale(0.95);
      }

      /* Preferences modal */
      .prefs-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition:
          opacity 0.2s ease,
          visibility 0.2s ease;
        padding: 1rem;
      }

      .prefs-overlay.active {
        opacity: 1;
        visibility: visible;
      }

      .prefs-modal {
        background: var(--card);
        border-radius: var(--radius);
        border: 1px solid var(--border);
        max-width: 400px;
        width: 100%;
        max-height: 80vh;
        display: flex;
        flex-direction: column;
        transform: scale(0.95);
        transition: transform 0.2s ease;
      }

      .prefs-overlay.active .prefs-modal {
        transform: scale(1);
      }

      .prefs-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border);
      }

      .prefs-header h2 {
        margin: 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--foreground);
      }

      .prefs-close-btn {
        background: transparent;
        border: 1px solid var(--border);
        color: var(--muted-foreground);
        cursor: pointer;
        padding: 0.375rem;
        border-radius: var(--radius-sm);
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .prefs-close-btn:hover {
        color: var(--foreground);
        background: var(--accent);
      }

      .prefs-close-btn svg {
        width: 20px;
        height: 20px;
      }

      .prefs-description {
        padding: 0.75rem 1.25rem;
        margin: 0;
        color: var(--muted-foreground);
        font-size: 0.875rem;
      }

      .prefs-search {
        padding: 0.5rem 1.25rem 0.75rem;
        border-bottom: 1px solid var(--border);
      }

      .prefs-search input {
        width: 100%;
        padding: 0.625rem 0.875rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--background);
        color: var(--foreground);
        font-size: 0.875rem;
        outline: none;
        transition: border-color 0.2s ease;
      }

      .prefs-search input:focus {
        border-color: var(--primary);
      }

      .prefs-search input::placeholder {
        color: var(--muted-foreground);
      }

      .country-list {
        flex: 1;
        overflow-y: auto;
        padding: 0.5rem 0;
      }

      .country-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1.25rem;
        cursor: pointer;
        transition: background 0.15s ease;
      }

      .country-item:hover {
        background: var(--accent);
      }

      .country-toggle {
        position: relative;
        display: inline-block;
        width: 44px;
        height: 24px;
        flex-shrink: 0;
      }

      .country-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
      }

      .toggle-track {
        position: absolute;
        cursor: pointer;
        inset: 0;
        background: var(--muted);
        border-radius: 24px;
        transition: background 0.2s ease;
      }

      .toggle-track::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background: var(--background);
        border-radius: 50%;
        transition: transform 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
      }

      .country-toggle input:checked + .toggle-track {
        background: var(--warning);
      }

      .country-toggle input:checked + .toggle-track::before {
        transform: translateX(20px);
      }

      .country-flag {
        font-size: 1.5rem;
        line-height: 1;
      }

      .country-name {
        flex: 1;
        color: var(--foreground);
        font-size: 0.9375rem;
      }

      /* Country alert in result */
      .country-alert {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 1rem 1.25rem;
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        border: 2px solid #991b1b;
        border-radius: var(--radius);
        margin-bottom: 1rem;
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
      }

      .country-alert.active {
        display: flex;
        animation: alertPulse 0.5s ease-out;
      }

      @keyframes alertPulse {
        0% {
          transform: scale(0.95);
          opacity: 0;
        }
        50% {
          transform: scale(1.02);
        }
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }

      .country-alert .alert-icon {
        font-size: 2.5rem;
        line-height: 1;
      }

      .country-alert-ok {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        border-color: #15803d;
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
      }

      .country-alert-ok .alert-country {
        color: #bbf7d0;
      }

      .alert-icon-ok {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        background: white;
        color: #22c55e;
        border-radius: 50%;
        font-size: 1.5rem;
        font-weight: bold;
      }

      .country-alert .alert-text {
        color: #ffffff;
        font-weight: 600;
        font-size: 1rem;
        text-align: center;
      }

      .country-alert .alert-country {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #fecaca;
        font-size: 0.875rem;
        font-weight: 500;
      }

      .country-alert .alert-country .flag {
        font-size: 1.25rem;
      }

      .country-alert .alert-country .flag img.emoji {
        height: 1.75em;
        width: 1.75em;
      }

      /* Focus visible */
      :focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }

      /* Twemoji */
      img.emoji {
        height: 1.4em;
        width: 1.4em;
        margin: 0 0.15em;
        vertical-align: -0.25em;
      }

      /* Pulsing border for watched countries */
      @keyframes pulse-border {
        0%,
        100% {
          box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
        }
        50% {
          box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
        }
      }

      .result-card.country-watched {
        border: 2px solid #dc2626;
        animation: pulse-border 2s ease-in-out infinite;
      }

      .autocomplete-item-flag.flag-watched {
        background: rgba(220, 38, 38, 0.15);
        animation: pulse-flag 2s ease-in-out infinite;
      }

      @keyframes pulse-flag {
        0%,
        100% {
          background: rgba(220, 38, 38, 0.15);
          box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
        }
        50% {
          background: rgba(220, 38, 38, 0.3);
          box-shadow: 0 0 8px 2px rgba(220, 38, 38, 0.3);
        }
      }

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