/* ============================================
   DIPEX 2026 – Ultra Premium Design System
   Theme: Saffron Gold & Deep Charcoal
   ============================================ */

:root {
    --primary: #E8850C;
    --primary-light: #F5A623;
    --primary-dark: #C96D00;
    --primary-glow: rgba(232, 133, 12, 0.25);
    --accent: #FFD200;
    --accent-light: #FFE066;
    --secondary: #0D7377;
    --secondary-light: #14A3A8;
    --bg-primary: #0A0A14;
    --bg-secondary: #111122;
    --bg-card: rgba(18, 18, 35, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #F5F5F7;
    --text-secondary: #A1A1AA;
    --text-muted: #6B6B7B;
    --border: rgba(255, 255, 255, 0.07);
    --border-active: rgba(232, 133, 12, 0.4);
    --gradient-primary: linear-gradient(135deg, #E8850C 0%, #FFD200 100%);
    --gradient-hero: linear-gradient(160deg, #0A0A14 0%, #1a1328 40%, #0A0A14 100%);
    --shadow-glow: 0 0 40px rgba(232, 133, 12, 0.15);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 99px;
}

/* ===== KEYFRAMES ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(232, 133, 12, 0.4);
    }

    50% {
        opacity: .7;
        transform: scale(1.4);
        box-shadow: 0 0 0 8px rgba(232, 133, 12, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: .3;
        transform: scale(1);
    }

    50% {
        opacity: .6;
        transform: scale(1.1);
    }
}

@keyframes rotateLoader {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(232, 133, 12, 0.2);
        box-shadow: 0 0 20px rgba(232, 133, 12, 0.05);
    }

    50% {
        border-color: rgba(232, 133, 12, 0.5);
        box-shadow: 0 0 40px rgba(232, 133, 12, 0.15);
    }
}

@keyframes countPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(232, 133, 12, 0.3);
    }

    50% {
        text-shadow: 0 0 40px rgba(232, 133, 12, 0.6), 0 0 80px rgba(255, 210, 0, 0.2);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.1);
    }

    66% {
        transform: translate(-15px, 15px) scale(0.95);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-25px, 20px) scale(0.9);
    }

    66% {
        transform: translate(20px, -10px) scale(1.05);
    }
}

@keyframes detailSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

@keyframes revealLine {
    from {
        width: 0;
    }

    to {
        width: 60px;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.slide-up {
    opacity: 0;
    animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fade-in-logo {
    opacity: 0;
    animation: fadeInLogo 0.7s ease forwards;
}

/* ===== PARTICLE CANVAS ===== */
#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ===== CONFETTI CONTAINER ===== */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    border-radius: 2px;
    animation: confettiFall 3s ease-in forwards;
}

/* ===== TOP BAR ===== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
}

.top-bar.scrolled {
    background: rgba(10, 10, 20, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.logo-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 14px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.logo-item img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-item:hover img {
    transform: scale(1.12) translateY(-2px);
    filter: drop-shadow(0 6px 20px rgba(232, 133, 12, 0.3));
}

.dipex-main-logo img {
    height: 58px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: var(--gradient-hero);
    overflow: hidden;
    z-index: 1;
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 133, 12, 0.12) 0%, transparent 70%);
    top: 5%;
    left: -8%;
    animation: orbFloat1 12s ease-in-out infinite;
}

.hero-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 210, 0, 0.08) 0%, transparent 70%);
    bottom: 10%;
    right: -3%;
    animation: orbFloat2 15s ease-in-out infinite;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(13, 115, 119, 0.08) 0%, transparent 70%);
    top: 40%;
    right: 20%;
    animation: orbFloat1 18s ease-in-out infinite reverse;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(232, 133, 12, 0.08);
    border: 1px solid rgba(232, 133, 12, 0.2);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    font-family: var(--font-body);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: borderGlow 3s ease-in-out infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

.live-text {
    color: #4caf50;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 9vw, 7rem);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 8px;
    animation: textGlow 4s ease-in-out infinite;
}

.highlight {
    background: linear-gradient(135deg, #E8850C, #FFD200, #E8850C, #FFD200);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-region {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 36px;
}

.hero-region svg {
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
}

.meta-chip:hover {
    border-color: var(--border-active);
    background: rgba(232, 133, 12, 0.06);
    color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(232, 133, 12, 0.1);
}

.meta-chip svg {
    color: var(--primary);
    flex-shrink: 0;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
}

.hero-scroll-indicator:hover {
    color: var(--primary-light);
    transform: translateX(-50%) translateY(-3px);
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    animation: bounceDown 2s ease-in-out infinite;
    color: var(--primary);
}

/* ===== SEARCH SECTION ===== */
.search-section {
    position: relative;
    z-index: 2;
    padding: 96px 0 64px;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 99px;
    margin: 16px auto 0;
    animation: revealLine 1s ease forwards;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px 6px 6px 22px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.search-input-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(232, 133, 12, 0.3), rgba(255, 210, 0, 0.1), rgba(232, 133, 12, 0.3));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232, 133, 12, 0.1), 0 8px 32px rgba(232, 133, 12, 0.15);
}

.search-input-wrapper:focus-within::before {
    opacity: 1;
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--primary);
    transform: scale(1.1);
}

#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 18px 14px;
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

#searchInput::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: #0A0A14;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.search-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.search-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 25px rgba(232, 133, 12, 0.45);
}

.search-btn:hover::after {
    transform: translateX(100%);
}

.search-btn:active {
    transform: scale(0.97);
}

.search-hint {
    text-align: center;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.search-hint strong {
    color: var(--primary-light);
}

/* ===== LOADING ===== */
.loading-state {
    text-align: center;
    padding: 40px 0;
    animation: fadeInScale 0.3s ease;
}

.loading-state p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-weight: 500;
}

.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loader-ring {
    width: 16px;
    height: 16px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: rotateLoader 0.8s linear infinite;
}

.loader-ring:nth-child(2) {
    animation-delay: 0.15s;
    border-top-color: var(--accent);
}

.loader-ring:nth-child(3) {
    animation-delay: 0.3s;
    border-top-color: var(--secondary-light);
}

/* ===== RESULT SECTION ===== */
.result-section {
    position: relative;
    z-index: 2;
    padding: 0 0 64px;
}

.result-card-wrapper {
    animation: cardReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.result-main-card {
    background: var(--bg-card);
    border: 1px solid rgba(232, 133, 12, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 60px rgba(232, 133, 12, 0.05);
    backdrop-filter: blur(20px);
    position: relative;
}

.result-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}

.result-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.result-check-icon {
    width: 52px;
    height: 52px;
    background: rgba(76, 175, 80, 0.12);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50;
    flex-shrink: 0;
    animation: successPulse 2s ease-in-out infinite;
}

.result-check-icon svg {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: checkDraw 0.6s 0.3s ease forwards;
}

.result-header-text h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
}

.result-header-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.dipex-id-badge {
    padding: 12px 24px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: #0A0A14;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(232, 133, 12, 0.3);
}

/* Key info */
.result-key-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 28px;
}

.key-info-card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.key-info-card:hover {
    transform: translateY(-4px);
}

.classroom-card {
    background: linear-gradient(145deg, rgba(232, 133, 12, 0.1) 0%, rgba(255, 210, 0, 0.04) 100%);
    border: 1px solid rgba(232, 133, 12, 0.15);
}

.sequence-card {
    background: linear-gradient(145deg, rgba(13, 115, 119, 0.1) 0%, rgba(20, 163, 168, 0.04) 100%);
    border: 1px solid rgba(13, 115, 119, 0.15);
}

.key-info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.classroom-card .key-info-icon {
    background: rgba(232, 133, 12, 0.12);
    color: var(--primary-light);
}

.sequence-card .key-info-icon {
    background: rgba(13, 115, 119, 0.12);
    color: var(--secondary-light);
}

.key-info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.key-info-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
}

.classroom-card .key-info-value {
    color: var(--primary-light);
}

.sequence-card .key-info-value {
    color: var(--secondary-light);
}

.key-info-value.animate-count {
    animation: countPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.key-info-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Detail rows */
.result-details {
    padding: 0 32px 28px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    opacity: 0;
    animation: detailSlideIn 0.5s ease forwards;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row:nth-child(1) {
    animation-delay: 0.2s;
}

.detail-row:nth-child(2) {
    animation-delay: 0.35s;
}

.detail-row:nth-child(3) {
    animation-delay: 0.5s;
}

.detail-row:nth-child(4) {
    animation-delay: 0.65s;
}

.detail-row:nth-child(5) {
    animation-delay: 0.8s;
}

.detail-icon {
    width: 42px;
    height: 42px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    transition: all 0.3s;
}

.detail-row:hover .detail-icon {
    background: rgba(232, 133, 12, 0.1);
    border-color: var(--border-active);
    transform: scale(1.08);
}

.detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
}

.theme-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
}

.result-actions {
    display: flex;
    gap: 14px;
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.result-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.result-action-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-active);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.result-action-btn.primary-btn {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #0A0A14;
}

.result-action-btn.primary-btn:hover {
    box-shadow: 0 6px 25px rgba(232, 133, 12, 0.35);
}

/* ===== NOT FOUND ===== */
.not-found-section {
    position: relative;
    z-index: 2;
    padding: 0 0 64px;
}

.not-found-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    animation: cardReveal 0.5s ease forwards;
}

.not-found-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef5350;
}

.not-found-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.not-found-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.try-again-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: #0A0A14;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.try-again-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(232, 133, 12, 0.4);
}

/* ===== STATS ===== */
.stats-section {
    position: relative;
    z-index: 2;
    padding: 96px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card-1::before {
    background: linear-gradient(90deg, #E8850C, #F5A623);
}

.stat-card-2::before {
    background: linear-gradient(90deg, #FFD200, #FFE066);
}

.stat-card-3::before {
    background: linear-gradient(90deg, #0D7377, #14A3A8);
}

.stat-card-4::before {
    background: linear-gradient(90deg, #E8850C, #FFD200);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-active);
    box-shadow: 0 16px 40px rgba(232, 133, 12, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-1 .stat-icon {
    background: rgba(232, 133, 12, 0.1);
    color: var(--primary-light);
}

.stat-card-2 .stat-icon {
    background: rgba(255, 210, 0, 0.1);
    color: var(--accent);
}

.stat-card-3 .stat-icon {
    background: rgba(13, 115, 119, 0.1);
    color: var(--secondary-light);
}

.stat-card-4 .stat-icon {
    background: rgba(232, 133, 12, 0.1);
    color: var(--primary-light);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== THEMES ===== */
.themes-section {
    position: relative;
    z-index: 2;
    padding: 64px 0 96px;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.theme-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-color, var(--gradient-primary));
    opacity: 0.6;
    transition: all 0.3s;
}

.theme-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-active);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.theme-card:hover::before {
    height: 4px;
    opacity: 1;
}

.theme-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.theme-emoji {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.theme-card:hover .theme-emoji {
    transform: scale(1.1) rotate(5deg);
}

.theme-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.theme-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.theme-count-badge {
    padding: 5px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-weight: 700;
    color: var(--primary-light);
    font-family: var(--font-display);
}

/* ===== ORGANIZED BY ===== */
.organized-section {
    position: relative;
    z-index: 2;
    padding: 64px 0 96px;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.org-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.org-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

.org-card img {
    height: 72px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.4s;
}

.org-card:hover img {
    transform: scale(1.08);
}

.org-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.org-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.assoc-card {
    border-color: rgba(232, 133, 12, 0.2);
    background: linear-gradient(145deg, rgba(232, 133, 12, 0.05) 0%, var(--bg-card) 100%);
}

.assoc-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 18px;
    background: var(--gradient-primary);
    color: #0A0A14;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-brand strong {
    color: var(--text-secondary);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(6px);
}

.footer-links a svg {
    color: var(--primary);
}

.footer-contact p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== SCROLL ANIMATIONS ===== */
.observe-animate {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.observe-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PRINT ===== */
@media print {

    .top-bar,
    .hero,
    .search-section,
    .stats-section,
    .themes-section,
    .organized-section,
    .footer,
    #particleCanvas,
    .result-actions,
    .confetti-container {
        display: none !important;
    }

    .result-section {
        display: block !important;
        padding: 0;
    }

    body {
        background: white;
        color: #111;
    }
}

/* ===== RESPONSIVE ===== */

/* --- TABLET (max 1024px) --- */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .org-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-links a {
        justify-content: center;
    }

    .hero {
        padding: 110px 20px 70px;
    }

    .search-section {
        padding: 72px 0 48px;
    }

    .stats-section {
        padding: 72px 0;
    }

    .themes-section {
        padding: 48px 0 72px;
    }

    .organized-section {
        padding: 48px 0 72px;
    }

    .hero-orb-1 {
        width: 350px;
        height: 350px;
    }

    .hero-orb-2 {
        width: 250px;
        height: 250px;
    }

    .hero-orb-3 {
        width: 180px;
        height: 180px;
    }
}

/* --- MOBILE LANDSCAPE / SMALL TABLET (max 768px) --- */
@media (max-width: 768px) {

    /* Top bar */
    .logo-strip {
        gap: 12px;
        padding: 10px 12px;
    }

    .logo-item img {
        height: 32px;
    }

    .dipex-main-logo img {
        height: 40px;
    }

    /* Hero */
    .hero {
        padding: 90px 16px 50px;
        min-height: auto;
    }

    .hero-title {
        letter-spacing: -2px;
        margin-bottom: 4px;
    }

    .hero-subtitle {
        margin-bottom: 8px;
    }

    .hero-region {
        font-size: 0.92rem;
        margin-bottom: 24px;
    }

    .badge {
        padding: 8px 16px;
        font-size: 0.78rem;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .meta-chip {
        padding: 10px 16px;
        font-size: 0.82rem;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-scroll-indicator {
        bottom: 24px;
    }

    /* Search */
    .search-section {
        padding: 48px 0 36px;
    }

    .search-header {
        margin-bottom: 24px;
    }

    .section-title {
        text-align: center;
    }

    .section-desc {
        font-size: 0.88rem;
        line-height: 1.6;
        text-align: center;
    }

    .search-input-wrapper {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
        border-radius: var(--radius-md);
    }

    .search-icon {
        display: none;
    }

    #searchInput {
        padding: 14px 12px;
        font-size: 1rem;
        text-align: center;
        width: 100%;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 0.88rem;
        border-radius: var(--radius-sm);
        min-height: 44px;
    }

    .search-hint {
        font-size: 0.78rem;
    }

    /* Result Card */
    .result-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 12px;
    }

    .result-header-left {
        flex-direction: column;
        align-items: center;
    }

    .result-check-icon {
        width: 38px;
        height: 38px;
    }

    .result-header-text h3 {
        font-size: 1rem;
    }

    .result-header-text p {
        font-size: 0.78rem;
    }

    .dipex-id-badge {
        padding: 8px 16px;
        font-size: 0.88rem;
        letter-spacing: 1px;
        word-break: break-all;
    }

    .result-key-info {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .key-info-card {
        padding: 22px 18px;
    }

    .key-info-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 10px;
    }

    .key-info-value {
        font-size: 1.2rem;
        word-break: break-all;
    }

    .key-info-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .key-info-sub {
        font-size: 0.72rem;
    }

    .result-details {
        padding: 0 16px 20px;
    }

    .detail-row {
        padding: 12px 0;
        gap: 12px;
    }

    .detail-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .detail-label {
        font-size: 0.62rem;
    }

    .detail-value {
        font-size: 0.82rem;
        word-break: break-word;
    }

    .theme-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .result-actions {
        padding: 14px;
        flex-direction: column;
        gap: 8px;
    }

    .result-action-btn {
        width: 100%;
        justify-content: center;
        min-height: 42px;
        padding: 10px 16px;
        font-size: 0.82rem;
    }

    /* Stats */
    .stats-section {
        padding: 56px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 28px;
    }

    .stat-card {
        padding: 22px 14px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    /* Themes */
    .themes-section {
        padding: 48px 0 64px;
    }

    .themes-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 28px;
    }

    .theme-card {
        padding: 22px;
    }

    .theme-emoji {
        font-size: 1.6rem;
        width: 48px;
        height: 48px;
    }

    .theme-card h3 {
        font-size: 1rem;
    }

    /* Organized By */
    .organized-section {
        padding: 48px 0 64px;
    }

    .org-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
        gap: 16px;
    }

    .org-card {
        padding: 24px;
    }

    .org-card img {
        height: 56px;
    }

    .org-card h4 {
        font-size: 0.95rem;
    }

    .assoc-badge {
        font-size: 0.65rem;
        padding: 4px 14px;
    }

    /* Not Found */
    .not-found-card {
        padding: 32px 20px;
    }

    .not-found-icon {
        width: 80px;
        height: 80px;
    }

    .not-found-icon svg {
        width: 48px;
        height: 48px;
    }

    .not-found-card h3 {
        font-size: 1.25rem;
    }

    .not-found-card p {
        font-size: 0.9rem;
    }

    .try-again-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    /* Footer */
    .footer {
        padding: 48px 0 0;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-content {
        padding-bottom: 28px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-bottom p {
        font-size: 0.72rem;
    }
}

/* --- MOBILE PORTRAIT (max 480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    /* Top bar */
    .logo-strip {
        gap: 8px;
        padding: 8px 10px;
    }

    .logo-item img {
        height: 26px;
    }

    .dipex-main-logo img {
        height: 34px;
    }

    /* Hero */
    .hero {
        padding: 80px 14px 40px;
    }

    .hero-title {
        letter-spacing: -1.5px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }

    .hero-region {
        font-size: 0.85rem;
        gap: 6px;
    }

    .badge {
        font-size: 0.72rem;
        padding: 7px 14px;
        margin-bottom: 16px;
    }

    .live-text {
        font-size: 0.65rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-orb {
        display: none;
    }

    /* Search */
    .search-section {
        padding: 40px 0 32px;
    }

    .search-header {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: -0.5px;
    }

    .section-title::after {
        width: 40px;
        height: 2px;
        margin-top: 12px;
    }

    .section-desc {
        font-size: 0.85rem;
    }

    #searchInput {
        padding: 12px 10px;
        font-size: 0.95rem;
    }

    .search-btn {
        padding: 14px;
        font-size: 0.95rem;
    }

    .search-hint {
        font-size: 0.72rem;
        margin-top: 12px;
    }

    /* Result */
    .result-section {
        padding: 0 0 40px;
    }

    .result-main-card {
        border-radius: var(--radius-lg);
    }

    .result-header {
        padding: 16px;
        gap: 10px;
    }

    .result-check-icon {
        width: 40px;
        height: 40px;
    }

    .result-check-icon svg {
        width: 18px;
        height: 18px;
    }

    .result-header-text h3 {
        font-size: 1.05rem;
    }

    .result-header-text p {
        font-size: 0.78rem;
    }

    .dipex-id-badge {
        padding: 8px 16px;
        font-size: 0.88rem;
    }

    .result-key-info {
        padding: 12px;
        gap: 10px;
    }

    .key-info-card {
        padding: 18px 14px;
    }

    .key-info-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }

    .key-info-icon svg {
        width: 22px;
        height: 22px;
    }

    .key-info-value {
        font-size: 1.25rem;
    }

    .key-info-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .key-info-sub {
        font-size: 0.72rem;
    }

    .result-details {
        padding: 0 12px 14px;
    }

    .detail-row {
        padding: 10px 0;
        gap: 10px;
    }

    .detail-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 6px;
    }

    .detail-icon svg {
        width: 14px;
        height: 14px;
    }

    .detail-label {
        font-size: 0.62rem;
        letter-spacing: 1px;
        margin-bottom: 2px;
    }

    .detail-value {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .theme-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .result-actions {
        padding: 12px;
        gap: 8px;
    }

    .result-action-btn {
        padding: 12px 16px;
        font-size: 0.82rem;
        min-height: 44px;
    }

    /* Stats */
    .stats-section {
        padding: 40px 0;
    }

    .stats-grid {
        gap: 8px;
        margin-top: 20px;
    }

    .stat-card {
        padding: 18px 10px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Themes */
    .themes-section {
        padding: 32px 0 48px;
    }

    .themes-grid {
        gap: 10px;
        margin-top: 20px;
    }

    .theme-card {
        padding: 18px;
    }

    .theme-card-header {
        gap: 12px;
    }

    .theme-emoji {
        font-size: 1.4rem;
        width: 42px;
        height: 42px;
    }

    .theme-card h3 {
        font-size: 0.92rem;
    }

    .theme-meta {
        font-size: 0.75rem;
        margin-top: 10px;
        padding-top: 10px;
    }

    .theme-count-badge {
        padding: 4px 10px;
        font-size: 0.72rem;
    }

    /* Organized By */
    .organized-section {
        padding: 32px 0 48px;
    }

    .org-grid {
        max-width: 320px;
        gap: 12px;
    }

    .org-card {
        padding: 20px;
    }

    .org-card img {
        height: 48px;
        margin-bottom: 12px;
    }

    .org-card h4 {
        font-size: 0.88rem;
    }

    .org-card p {
        font-size: 0.78rem;
    }

    .assoc-badge {
        font-size: 0.6rem;
    }

    /* Not Found */
    .not-found-card {
        padding: 28px 16px;
        border-radius: var(--radius-lg);
    }

    .not-found-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .not-found-icon svg {
        width: 36px;
        height: 36px;
    }

    .not-found-card h3 {
        font-size: 1.1rem;
    }

    .not-found-card p {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }

    /* Footer */
    .footer {
        padding: 36px 0 0;
    }

    .footer-logo {
        height: 36px;
    }

    .footer-brand p {
        font-size: 0.8rem;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.82rem;
    }

    .footer-contact p {
        font-size: 0.82rem;
    }
}

/* --- VERY SMALL SCREENS (max 360px) --- */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .logo-strip {
        gap: 6px;
        padding: 6px 8px;
    }

    .logo-item img {
        height: 22px;
    }

    .dipex-main-logo img {
        height: 28px;
    }

    .hero {
        padding: 72px 10px 36px;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .badge {
        font-size: 0.65rem;
        padding: 6px 10px;
    }

    .meta-chip {
        font-size: 0.78rem;
        padding: 8px 12px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-desc {
        font-size: 0.8rem;
    }

    #searchInput {
        font-size: 0.88rem;
        padding: 10px 8px;
    }

    .search-btn {
        font-size: 0.88rem;
        padding: 12px;
        min-height: 44px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .result-header-text h3 {
        font-size: 0.95rem;
    }

    .dipex-id-badge {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .key-info-value {
        font-size: 1.1rem;
    }
}

/* --- SAFE AREA for notched phones (iOS) --- */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer-bottom {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .top-bar {
        padding-top: env(safe-area-inset-top);
    }
}

/* --- TOUCH DEVICES: larger tap targets --- */
@media (hover: none) and (pointer: coarse) {
    .meta-chip {
        min-height: 44px;
    }

    .search-btn {
        min-height: 52px;
    }

    .result-action-btn {
        min-height: 48px;
    }

    .try-again-btn {
        min-height: 48px;
    }

    .logo-item img {
        -webkit-tap-highlight-color: transparent;
    }

    .detail-row:hover .detail-icon {
        transform: none;
    }

    .key-info-card:hover {
        transform: none;
    }

    .meta-chip:hover {
        transform: none;
    }

    .stat-card:hover {
        transform: none;
    }

    .theme-card:hover {
        transform: none;
    }

    .org-card:hover {
        transform: none;
    }
}

/* --- LANDSCAPE PHONE --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 24px 40px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-orb {
        display: none;
    }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-orb {
        display: none;
    }

    #particleCanvas {
        display: none;
    }

    .confetti-container {
        display: none;
    }
}