/* ============================================
   BURGER HOUSE - Neo Brutalism App
   Mobile First • Modern Design v3.0
   ============================================ */

:root {
    --primary: #FFBE0B;
    --primary-light: #FFD54F;
    --primary-dark: #F5A623;
    --orange: #FB5607;
    --black: #1A1A1A;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-800: #262626;
    
    /* Softer shadows for modern look */
    --shadow: 4px 4px 0 var(--black);
    --shadow-sm: 2px 2px 0 var(--black);
    --shadow-lg: 6px 6px 0 var(--black);
    --shadow-soft: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 20px rgba(255, 190, 11, 0.4);
    --border: 2.5px solid var(--black);
    --border-sm: 2px solid var(--black);
    
    /* Very rounded corners - modern pill-like design */
    --radius: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --radius-xs: 12px;
    --radius-full: 100px;
    
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary);
    color: var(--black);
    line-height: 1.5;
    overflow: hidden;
    height: 100%;
    height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none;
    user-select: none;
}

p, h1, h2, h3, h4, span, li {
    -webkit-user-select: text;
    user-select: text;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    touch-action: manipulation;
}

img {
    max-width: 100%;
    height: auto;
    pointer-events: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   Splash Screen
   ============================================ */
.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    animation: splashBounce 0.8s var(--ease-elastic) infinite alternate;
}

.splash-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.splash-loader {
    width: 140px;
    height: 8px;
    background: rgba(0,0,0,0.15);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar {
    height: 100%;
    background: var(--black);
    border-radius: var(--radius-full);
    width: 0;
    animation: load 1.2s var(--ease) forwards;
}

@keyframes load {
    to { width: 100%; }
}

@keyframes splashBounce {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

/* ============================================
   App Container
   ============================================ */
.app {
    height: 100%;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

.app.visible {
    opacity: 1;
}

/* ============================================
   Screens
   ============================================ */
.screen {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%) scale(0.95);
    transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.screen.exit-left {
    transform: translateX(-15%) scale(0.95);
    opacity: 0.3;
}

.screen-inner {
    min-height: 100%;
    padding: 20px;
    padding-top: max(20px, var(--safe-top));
    padding-bottom: max(40px, calc(var(--safe-bottom) + 40px));
    display: flex;
    flex-direction: column;
}

/* Screen Header */
.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 6px 0;
    background: linear-gradient(to bottom, var(--primary) 80%, transparent);
}

.btn-back {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-bounce);
}

.btn-back:active {
    transform: translate(3px, 3px) scale(0.95);
    box-shadow: none;
}

.btn-back svg {
    width: 22px;
    height: 22px;
}

.screen-step {
    background: var(--black);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Section Elements */
.section-badge {
    display: inline-block;
    background: var(--black);
    color: var(--primary);
    padding: 6px 14px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.screen-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
}

.screen-subtitle {
    font-size: 0.95rem;
    color: var(--black);
    font-weight: 500;
    margin-top: -12px;
    margin-bottom: 20px;
}

.screen-intro {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.screen-intro strong {
    color: var(--black);
    font-weight: 600;
}

.screen-intro.boxed {
    padding: 14px 16px;
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Welcome Screen
   ============================================ */
.welcome-screen {
    justify-content: center;
    text-align: center;
    padding-top: max(60px, var(--safe-top));
    gap: 0;
}

.welcome-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--black);
    opacity: 0.5;
    margin-bottom: 32px;
}

.welcome-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatBounce 3s ease-in-out infinite;
}

.welcome-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

.welcome-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 12px;
}

.welcome-tagline {
    font-size: 0.95rem;
    color: var(--black);
    font-weight: 500;
    margin-bottom: 24px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.welcome-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.welcome-tags span {
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-bounce);
}

.welcome-tags span:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-discover {
    margin: 0 auto 28px;
    max-width: 280px;
}

.swipe-hint {
    opacity: 0;
    animation: fadeIn 0.6s var(--ease) 0.8s forwards;
}

.swipe-icon {
    width: 26px;
    height: 42px;
    border: 2px solid var(--black);
    border-radius: 13px;
    margin: 0 auto 8px;
    position: relative;
    opacity: 0.5;
}

.swipe-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--black);
    border-radius: 2px;
    animation: swipeAnim 1.5s ease-in-out infinite;
}

@keyframes swipeAnim {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.3; }
}

.swipe-hint span {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.5;
}

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

/* ============================================
   Buttons with Bounce Animation
   ============================================ */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 28px;
    background: var(--black);
    color: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s var(--ease-bounce);
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    animation: btnPulse 2s ease-in-out infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        box-shadow: var(--shadow);
    }
    25% { 
        transform: translateY(-6px) scale(1.02); 
        box-shadow: 6px 10px 0 var(--black);
    }
    50% { 
        transform: translateY(-3px) scale(1.01); 
        box-shadow: 5px 8px 0 var(--black);
    }
    75% { 
        transform: translateY(-5px) scale(1.015); 
        box-shadow: 5px 9px 0 var(--black);
    }
}

@keyframes btnShine {
    0% { left: -100%; opacity: 0; }
    20% { opacity: 1; }
    50%, 100% { left: 100%; opacity: 0; }
}

.btn-primary:active {
    transform: translate(5px, 5px) scale(0.98);
    box-shadow: none;
    animation: none;
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--white);
    color: var(--black);
    border: var(--border-sm);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s var(--ease-bounce);
    margin-top: 12px;
}

.btn-secondary:active {
    transform: translate(3px, 3px) scale(0.98);
    box-shadow: none;
}

.btn-cta {
    width: 100%;
    padding: 20px 28px;
    background: var(--primary);
    color: var(--black);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.2s var(--ease-bounce);
    animation: ctaBounce 2s ease-in-out infinite;
}

@keyframes ctaBounce {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.03) translateY(-3px); }
}

.btn-cta:active {
    transform: translate(5px, 5px) scale(0.98);
    box-shadow: none;
    animation: none;
}

.btn-cta.success {
    background: #4CAF50;
    color: var(--white);
    animation: none;
}

/* ============================================
   Menu Grid
   ============================================ */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding-bottom: 10px;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: all 0.25s var(--ease-bounce);
    animation: menuCardWiggle 3s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.15s);
}

.menu-card:nth-child(1) { --card-index: 0; }
.menu-card:nth-child(2) { --card-index: 1; }
.menu-card:nth-child(3) { --card-index: 2; }
.menu-card:nth-child(4) { --card-index: 3; }
.menu-card:nth-child(5) { --card-index: 4; }
.menu-card:nth-child(6) { --card-index: 5; }
.menu-card:nth-child(7) { --card-index: 6; }
.menu-card:nth-child(8) { --card-index: 7; }
.menu-card:nth-child(9) { --card-index: 8; }

@keyframes menuCardWiggle {
    0%, 85%, 100% { transform: translateX(0); }
    88% { transform: translateX(-3px); }
    91% { transform: translateX(3px); }
    94% { transform: translateX(-2px); }
    97% { transform: translateX(1px); }
}

.menu-card:active {
    transform: translate(2px, 2px) scale(0.98) !important;
    box-shadow: none;
    background: var(--gray-100);
}

.menu-icon {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-bounce);
}

.menu-card:hover .menu-icon {
    transform: scale(1.1) rotate(5deg);
}

.menu-text {
    flex: 1;
    min-width: 0;
}

.menu-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.menu-desc {
    display: block;
    font-size: 0.73rem;
    color: var(--gray-800);
    font-weight: 450;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-arrow {
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.4;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-bounce);
}

.menu-card:hover .menu-arrow {
    transform: translateX(4px);
    opacity: 0.8;
}

/* ============================================
   Bento Grid
   ============================================ */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.bento-card {
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    position: relative;
    min-height: 85px;
    transition: all 0.3s var(--ease-bounce);
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.bento-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 5px;
    padding-right: 28px;
    line-height: 1.25;
}

.bento-card p {
    font-size: 0.75rem;
    color: var(--black);
    font-weight: 450;
    line-height: 1.5;
}

.bento-number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 2px solid var(--black);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.bento-featured {
    grid-column: span 2;
    background: var(--primary-light);
    min-height: auto;
}

.bento-dark {
    background: var(--black);
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.bento-stat {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.bento-dark span:not(.bento-stat) {
    font-size: 0.72rem;
    opacity: 0.8;
    margin-top: 6px;
}

.bento-note {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 8px;
    line-height: 1.4;
}

/* ============================================
   Info & Highlight Boxes
   ============================================ */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    transition: all 0.3s var(--ease-bounce);
}

.info-box:hover {
    transform: translateY(-2px);
}

.info-box.dark {
    background: var(--gray-800);
    color: var(--white);
    border-color: var(--gray-800);
}

.info-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.info-box p {
    font-size: 0.82rem;
    line-height: 1.5;
}

.info-content {
    flex: 1;
}

.info-content p {
    margin-bottom: 6px;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-box.dark .info-content p {
    color: var(--white);
    opacity: 0.9;
}

.highlight-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    transition: all 0.3s var(--ease-bounce);
}

.highlight-box:hover {
    transform: translateY(-2px) scale(1.01);
}

.highlight-box.dark {
    background: var(--black);
    color: var(--white);
}

.highlight-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.highlight-box p {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

/* ============================================
   Contract Preview Cards
   ============================================ */
.contract-preview {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s var(--ease-bounce);
}

.contract-preview:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contract-preview:active {
    transform: translateY(0) scale(0.99);
    box-shadow: var(--shadow-sm);
}

.contract-header {
    background: var(--black);
    color: var(--white);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contract-icon {
    font-size: 1.5rem;
}

.contract-title {
    flex: 1;
}

.contract-title h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.contract-title span {
    font-size: 0.7rem;
    opacity: 0.7;
}

.contract-badge {
    background: var(--primary);
    color: var(--black);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
}

.contract-body {
    padding: 16px 18px;
    font-size: 0.75rem;
    line-height: 1.6;
    max-height: 120px;
    overflow: hidden;
    position: relative;
    color: var(--gray-800);
}

.contract-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--white));
}

.contract-footer {
    padding: 12px 18px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contract-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--black);
    font-size: 0.8rem;
    font-weight: 700;
    animation: ctaArrowPulse 1.5s ease-in-out infinite;
}

@keyframes ctaArrowPulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.contract-meta {
    display: flex;
    gap: 8px;
}

.contract-meta span {
    background: var(--gray-200);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
}

/* ============================================
   Card Carousel
   ============================================ */
.card-carousel {
    margin-bottom: 16px;
}

.carousel-track {
    position: relative;
    height: 170px;
    margin-bottom: 16px;
}

.carousel-card {
    position: absolute;
    inset: 0;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    opacity: 0;
    transform: translateX(100%) scale(0.9) rotate(2deg);
    transition: all 0.4s var(--ease-bounce);
    pointer-events: none;
}

.carousel-card.active {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0);
    z-index: 2;
    pointer-events: auto;
}

.carousel-card.prev {
    opacity: 0;
    transform: translateX(-100%) scale(0.9) rotate(-2deg);
}

.card-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    opacity: 0.2;
    position: absolute;
    top: 12px;
    right: 16px;
    line-height: 1;
}

.carousel-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.carousel-card p {
    font-size: 0.82rem;
    color: var(--black);
    font-weight: 450;
    margin-bottom: 5px;
    line-height: 1.45;
}

.carousel-card .big-number {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--black);
    opacity: 1;
    margin: 10px 0;
}

.carousel-card ul {
    padding-left: 0;
    margin-top: 6px;
}

.carousel-card li {
    font-size: 0.82rem;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.carousel-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-dark);
    font-weight: 600;
}

.card-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.card-stats div {
    font-size: 0.82rem;
    color: var(--black);
    font-weight: 500;
}

.card-stats .stat {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    color: var(--primary-dark);
    opacity: 1;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: var(--border-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.2s var(--ease-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:active {
    transform: translate(3px, 3px) scale(0.95);
    box-shadow: none;
}

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

.carousel-dots {
    display: flex;
    gap: 6px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    background: var(--black);
    opacity: 0.2;
    border-radius: 50%;
    transition: all 0.3s var(--ease-bounce);
    cursor: pointer;
}

.carousel-dots .dot.active {
    opacity: 1;
    transform: scale(1.5);
    background: var(--primary-dark);
}

.legal-note {
    text-align: center;
    font-size: 0.72rem;
    opacity: 0.5;
    margin-bottom: 18px;
}

/* Contract Preview Cards */
.contract-preview {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
    transition: all 0.3s var(--ease-bounce);
    cursor: pointer;
    animation: contractFloat 4s ease-in-out infinite;
}

@keyframes contractFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.contract-preview:active {
    transform: translate(3px, 3px) scale(0.98);
    box-shadow: none;
}

.contract-header {
    background: var(--black);
    color: var(--white);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contract-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contract-badge {
    background: var(--primary);
    color: var(--black);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
}

.contract-body {
    padding: 16px 18px;
}

.contract-preview-text {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--gray-800);
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.contract-preview-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, var(--white));
}

.contract-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-top: var(--border-sm);
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { background: var(--primary); }
    50% { background: var(--primary-light); }
}

.contract-cta svg {
    width: 16px;
    height: 16px;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Contract Modal */
.contract-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.contract-modal.active {
    opacity: 1;
    visibility: visible;
}

.contract-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-bounce);
}

.contract-modal.active .contract-modal-content {
    transform: translateY(0);
}

.contract-modal-header {
    background: var(--black);
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.contract-modal-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.modal-close-btn:hover {
    background: var(--primary);
    color: var(--black);
    transform: rotate(90deg);
}

.contract-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.contract-section {
    margin-bottom: 20px;
}

.contract-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contract-section p,
.contract-section li {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.contract-section ul {
    padding-left: 20px;
}

.contract-section li {
    list-style: disc;
    margin-bottom: 6px;
}

.contract-modal-footer {
    padding: 16px 20px;
    background: var(--gray-50);
    border-top: var(--border-sm);
    display: flex;
    gap: 12px;
}

.contract-modal-footer button {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s var(--ease-bounce);
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: var(--border-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--black);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s var(--ease-bounce);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-download:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* ============================================
   International Section - Tabs & Content
   ============================================ */
.zone-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.zone-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.25s var(--ease-bounce);
    white-space: nowrap;
}

.zone-tab.active {
    background: var(--black);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.zone-tab:not(.active):hover {
    background: var(--gray-100);
}

.zone-content {
    display: none;
    animation: fadeSlideIn 0.4s var(--ease-out);
}

.zone-content.active {
    display: block;
}

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

/* Country Hero (Côte d'Ivoire) */
.country-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}

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

.country-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.country-info span {
    font-size: 0.78rem;
    color: var(--gray-800);
    font-weight: 450;
}

.country-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.country-stat {
    background: var(--black);
    color: var(--white);
    padding: 14px 10px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.country-stat .stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.country-stat .stat-txt {
    font-size: 0.68rem;
    opacity: 0.8;
}

.country-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.detail-card {
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.detail-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.detail-card p {
    font-size: 0.78rem;
    color: var(--black);
    font-weight: 450;
    line-height: 1.5;
}

.country-locations {
    background: var(--primary-light);
    border: var(--border-sm);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 14px;
}

.country-locations h4 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.location-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.location-chips span {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-full);
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* OHADA Zone */
.ohada-intro {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.ohada-intro p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.ohada-countries {
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
}

.ohada-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.ohada-row span {
    font-size: 0.82rem;
    font-weight: 500;
}

.ohada-more {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.ohada-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.benefit-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.benefit-item strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.benefit-item p {
    font-size: 0.75rem;
    color: var(--gray-800);
    font-weight: 450;
}

/* Maghreb */
.maghreb-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}

.maghreb-flag {
    font-size: 2.5rem;
}

.maghreb-hero h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.maghreb-hero p {
    font-size: 0.78rem;
    color: var(--gray-800);
    font-weight: 450;
}

.maghreb-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.maghreb-stat {
    background: var(--primary);
    border: var(--border-sm);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
}

.maghreb-stat .stat-big {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.maghreb-stat span:last-child {
    font-size: 0.72rem;
    font-weight: 500;
}

.maghreb-info {
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 14px;
}

.maghreb-info p {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.maghreb-info p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Zone Cards (legacy)
   ============================================ */
.zone-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s var(--ease-bounce);
}

.zone-card:hover {
    transform: translateY(-3px);
}

.zone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.zone-icon {
    font-size: 1.4rem;
}

.zone-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.zone-card > p {
    font-size: 0.82rem;
    color: var(--black);
    font-weight: 450;
    margin-bottom: 12px;
    line-height: 1.45;
}

.country-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.country-chips span {
    background: var(--gray-100);
    border: 1px solid var(--black);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-size: 0.68rem;
    font-weight: 600;
    transition: all 0.2s var(--ease-bounce);
}

.country-chips span:hover {
    transform: scale(1.05);
    background: var(--primary-light);
}

.country-chips .more {
    background: var(--black);
    color: var(--white);
}

.zone-maghreb {
    background: var(--primary-light);
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.stats-row.compact {
    margin-top: 18px;
    margin-bottom: 18px;
}

.stat-box {
    flex: 1;
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 14px 12px;
    text-align: center;
    transition: all 0.3s var(--ease-bounce);
}

.stat-box:hover {
    transform: translateY(-2px) scale(1.02);
}

.stat-box.highlight {
    background: var(--primary);
}

.stat-box.small {
    padding: 12px 10px;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.2;
}

.stat-note {
    display: block;
    font-size: 0.65rem;
    color: var(--gray-800);
    font-weight: 450;
    margin-top: 3px;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
    position: relative;
    margin-bottom: 14px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--black);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s var(--ease-bounce);
}

.timeline-item:hover {
    transform: translateX(4px);
}

.timeline-marker {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary);
    border: var(--border-sm);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 1;
    transition: all 0.3s var(--ease-bounce);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
}

.timeline-content {
    flex: 1;
    padding-top: 6px;
}

.timeline-content h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.2;
}

.timeline-content p {
    font-size: 0.78rem;
    color: var(--black);
    font-weight: 450;
    line-height: 1.4;
}

/* ============================================
   Exclusivité
   ============================================ */
.warning-box {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s var(--ease-bounce);
}

.warning-box:hover {
    transform: scale(1.01);
}

.warning-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: block;
}

.warning-box p {
    font-size: 0.88rem;
    line-height: 1.5;
}

.exclusivity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.excl-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s var(--ease-bounce);
}

.excl-item:hover {
    transform: translateX(4px);
}

.excl-item.featured {
    background: var(--primary);
    border: var(--border);
    box-shadow: var(--shadow);
    margin-top: 6px;
}

.excl-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--black);
    color: var(--primary);
    padding: 4px 10px;
    font-size: 0.58rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.excl-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--primary);
    border: 2px solid var(--black);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.excl-item.featured .excl-num {
    background: var(--white);
}

.excl-content {
    flex: 1;
}

.excl-content h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.2;
}

.excl-content p {
    font-size: 0.78rem;
    color: var(--black);
    font-weight: 450;
    line-height: 1.4;
}

.alert-box {
    background: var(--orange);
    color: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    margin-bottom: 18px;
    transition: all 0.3s var(--ease-bounce);
}

.alert-box:hover {
    transform: scale(1.01);
}

.alert-box h4 {
    font-size: 0.88rem;
    margin-bottom: 5px;
}

.alert-box p {
    font-size: 0.82rem;
    opacity: 0.95;
}

/* ============================================
   Investment Table
   ============================================ */
.investment-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
}

.invest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.82rem;
    transition: background 0.2s;
}

.invest-row:hover {
    background: var(--gray-50);
}

.invest-row:last-child {
    border-bottom: none;
}

.invest-label {
    color: var(--black);
    font-weight: 450;
    flex: 1;
    padding-right: 10px;
}

.invest-value {
    font-weight: 700;
    white-space: nowrap;
}

.invest-row.total {
    background: var(--primary);
    font-size: 0.95rem;
    padding: 14px 16px;
}

.invest-row.total:hover {
    background: var(--primary);
}

.invest-row.total .invest-label,
.invest-row.total .invest-value {
    opacity: 1;
    font-weight: 700;
}

.redevance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.redevance-box {
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 14px;
    text-align: center;
    transition: all 0.3s var(--ease-bounce);
}

.redevance-box:hover {
    transform: translateY(-3px) scale(1.02);
}

.redevance-pct {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-dark);
}

.redevance-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 6px;
}

.objectives-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.obj-box {
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 12px 10px;
    text-align: center;
    transition: all 0.3s var(--ease-bounce);
}

.obj-box:hover {
    transform: translateY(-2px);
}

.obj-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

.obj-label {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-800);
    font-weight: 450;
    margin-top: 3px;
}

/* ============================================
   HACCP Principles
   ============================================ */
.principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.principle-card {
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    position: relative;
    min-height: 75px;
    transition: all 0.3s var(--ease-bounce);
}

.principle-card:hover {
    transform: translateY(-2px);
}

.principle-card.full {
    grid-column: span 2;
    min-height: auto;
}

.principle-num {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
}

.principle-card h4 {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 4px;
    padding-right: 28px;
    line-height: 1.2;
}

.principle-card p {
    font-size: 0.72rem;
    color: var(--black);
    font-weight: 450;
    line-height: 1.4;
}

.certification-badge {
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
    transition: all 0.3s var(--ease-bounce);
}

.certification-badge:hover {
    transform: scale(1.02);
}

.certification-badge span:first-child {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-weight: 700;
    font-size: 0.88rem;
}

/* ============================================
   Team Structure
   ============================================ */
.convention-box {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s var(--ease-bounce);
}

.convention-box:hover {
    transform: translateY(-2px);
}

.convention-box h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.convention-box > p {
    font-size: 0.82rem;
    color: var(--black);
    font-weight: 450;
    margin-bottom: 12px;
}

.convention-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.convention-chips span {
    background: var(--gray-100);
    border: 1px solid var(--black);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-size: 0.68rem;
    font-weight: 600;
    transition: all 0.2s var(--ease-bounce);
}

.convention-chips span:hover {
    transform: scale(1.05);
    background: var(--primary-light);
}

.team-structure {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.team-role {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-bounce);
}

.team-role:hover {
    transform: translateX(4px);
}

.role-count {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary);
    border: var(--border-sm);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
}

.role-info {
    flex: 1;
}

.role-title {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
}

.role-desc {
    display: block;
    font-size: 0.72rem;
    color: var(--gray-800);
    font-weight: 450;
    margin-top: 3px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 22px;
    transition: all 0.3s var(--ease-bounce);
}

.cta-section:hover {
    transform: translateY(-3px);
}

.cta-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    line-height: 1;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-6px) rotate(3deg); }
}

.cta-section h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.cta-section > p {
    font-size: 0.88rem;
    color: var(--black);
    font-weight: 450;
    margin-bottom: 16px;
}

.footer-quote {
    text-align: center;
    font-style: italic;
    margin-bottom: 16px;
    opacity: 0.7;
}

.footer-quote p {
    font-size: 0.88rem;
    line-height: 1.5;
}

.footer-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.68rem;
    opacity: 0.45;
    margin-bottom: 16px;
}

/* ============================================
   Progress Indicator
   ============================================ */
.progress-indicator {
    position: fixed;
    bottom: max(14px, var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0;
    transition: all 0.4s var(--ease-bounce);
    pointer-events: none;
}

.progress-indicator.visible {
    opacity: 1;
}

.progress-dots {
    display: flex;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(26, 26, 26, 0.95);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.progress-dots span {
    width: 6px;
    height: 6px;
    background: var(--white);
    opacity: 0.3;
    border-radius: 50%;
    transition: all 0.3s var(--ease-bounce);
}

.progress-dots span.active {
    opacity: 1;
    transform: scale(1.6);
    background: var(--primary);
}

/* ============================================
   Contract Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

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

.modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius) var(--radius) 0 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-bounce);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--black);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-title {
    flex: 1;
}

.modal-title h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.modal-title span {
    font-size: 0.72rem;
    opacity: 0.7;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.7;
}

.modal-body h4 {
    font-size: 1rem;
    margin: 20px 0 10px;
    color: var(--primary-dark);
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body ul {
    margin-bottom: 12px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 6px;
    position: relative;
}

.modal-body li::before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--primary-dark);
}

.modal-footer {
    padding: 16px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.modal-footer .btn-primary {
    margin-top: 0;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-bounce);
}

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

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }
.reveal-delay-5 { transition-delay: 0.25s; }
.reveal-delay-6 { transition-delay: 0.3s; }
.reveal-delay-7 { transition-delay: 0.35s; }
.reveal-delay-8 { transition-delay: 0.4s; }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-bounce);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-bounce);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-bounce);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.reveal-pop {
    opacity: 0;
    transform: scale(0.7) translateY(15px);
    transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-bounce);
}

.reveal-pop.revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Welcome animations */
.screen[data-index="0"].active .welcome-logo {
    animation: welcomeLogo 0.7s var(--ease-bounce) 0.2s both;
}

.screen[data-index="0"].active .welcome-title {
    animation: welcomeTitle 0.6s var(--ease-out) 0.35s both;
}

.screen[data-index="0"].active .welcome-quote {
    animation: revealUp 0.6s var(--ease-bounce) 0.45s both;
}

.screen[data-index="0"].active .welcome-tags span {
    animation: revealPop 0.5s var(--ease-bounce) both;
}

.screen[data-index="0"].active .welcome-tags span:nth-child(1) { animation-delay: 0.55s; }
.screen[data-index="0"].active .welcome-tags span:nth-child(2) { animation-delay: 0.6s; }
.screen[data-index="0"].active .welcome-tags span:nth-child(3) { animation-delay: 0.65s; }

.screen[data-index="0"].active .btn-discover {
    animation: revealUp 0.6s var(--ease-bounce) 0.75s both;
}

@keyframes welcomeLogo {
    0% {
        opacity: 0;
        transform: scale(0.4) rotate(-15deg);
    }
    60% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes welcomeTitle {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes revealUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.screen.active .section-badge {
    animation: badgeReveal 0.5s var(--ease-bounce) 0.1s both;
}

@keyframes badgeReveal {
    0% {
        opacity: 0;
        transform: translateX(-25px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.screen.active .screen-title {
    animation: titleReveal 0.6s var(--ease-bounce) 0.15s both;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen.active .btn-primary {
    animation: buttonReveal 0.5s var(--ease-bounce) 0.5s both;
}

@keyframes buttonReveal {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   Desktop Styles
   ============================================ */
@media (min-width: 600px) {
    .screen-inner {
        max-width: 600px;
        margin: 0 auto;
        padding: 32px 28px;
    }
    
    .menu-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .menu-card {
        padding: 16px 18px;
    }
    
    .menu-desc {
        white-space: normal;
    }
    
    .carousel-track {
        height: 185px;
    }
}

@media (min-width: 768px) {
    :root {
        --shadow: 6px 6px 0 var(--black);
        --shadow-sm: 4px 4px 0 var(--black);
    }
    
    .screen-inner {
        max-width: 720px;
        padding: 40px 36px;
    }
    
    .screen-header {
        position: relative;
        background: transparent;
    }
    
    .welcome-logo {
        width: 130px;
        height: 130px;
    }
    
    .welcome-title {
        font-size: 3.5rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .menu-card {
        padding: 18px 20px;
        min-height: 90px;
    }
    
    .menu-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .menu-label {
        font-size: 0.95rem;
    }
    
    .menu-desc {
        font-size: 0.78rem;
        white-space: normal;
        line-height: 1.4;
    }
    
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    
    .bento-featured {
        grid-column: span 3;
    }
    
    .bento-card {
        min-height: 110px;
        padding: 16px;
    }
    
    .bento-card h3 {
        font-size: 0.9rem;
    }
    
    .bento-card p {
        font-size: 0.8rem;
    }
    
    .carousel-track {
        height: 195px;
    }
    
    .timeline {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        flex-direction: column;
        background: var(--white);
        border: var(--border-sm);
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
        padding: 16px;
        text-align: center;
    }
    
    .timeline-item:hover {
        transform: translateY(-4px);
    }
    
    .timeline-marker {
        margin: 0 auto 10px;
    }
    
    .timeline-content {
        padding-top: 0;
    }
    
    .exclusivity-list {
        flex-direction: row;
        gap: 14px;
    }
    
    .excl-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 16px 14px;
    }
    
    .excl-item:hover {
        transform: translateY(-4px);
    }
    
    .excl-num {
        margin: 0 auto 10px;
    }
    
    .objectives-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-structure {
        flex-direction: row;
        gap: 14px;
    }
    
    .team-role {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 18px 14px;
    }
    
    .team-role:hover {
        transform: translateY(-4px);
    }
    
    .role-count {
        margin-bottom: 10px;
    }
    
    /* Desktop hover states */
    .btn-primary:hover {
        transform: translate(-3px, -3px);
        box-shadow: 8px 8px 0 var(--black);
    }
    
    .btn-secondary:hover,
    .btn-back:hover,
    .carousel-btn:hover:not(:disabled) {
        transform: translate(-2px, -2px);
        box-shadow: 5px 5px 0 var(--black);
    }
    
    .menu-card:hover {
        transform: translate(-3px, -3px);
        box-shadow: 6px 6px 0 var(--black);
        background: var(--white);
    }
    
    .btn-cta:hover {
        transform: translate(-3px, -3px);
        box-shadow: 8px 8px 0 var(--black);
    }
    
    .modal-content {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        border-radius: var(--radius);
        bottom: auto;
        top: 50%;
        max-height: 80vh;
    }
    
    .modal-overlay.active .modal-content {
        transform: translateX(-50%) translateY(-50%);
    }
}

@media (min-width: 1024px) {
    .screen-inner {
        max-width: 760px;
        padding: 50px 44px;
    }
    
    .welcome-title {
        font-size: 4rem;
    }
}

/* ============================================
   Chatbot Styles
   ============================================ */
.chatbot-screen {
    padding-bottom: max(20px, calc(var(--safe-bottom) + 20px)) !important;
}

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.chatbot-avatar {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border: var(--border-sm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    animation: avatarBounce 2s ease-in-out infinite;
}

@keyframes avatarBounce {
    0%, 100% { transform: scale(1) rotate(-5deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.chatbot-info h2 {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #4CAF50;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.chat-container {
    flex: 1;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    max-height: 400px;
    margin-bottom: 14px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: messageSlide 0.4s var(--ease-bounce);
}

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

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--primary);
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.chat-message.user .message-avatar {
    background: var(--gray-200);
}

.message-content {
    background: var(--gray-100);
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.chat-message.user .message-content {
    background: var(--primary);
}

.message-content p {
    margin: 0;
}

.message-content p + p {
    margin-top: 8px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 14px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--gray-300);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.chat-input-container {
    margin-bottom: 14px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 36px;
}

.quick-reply-btn {
    background: var(--white);
    border: var(--border-sm);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s var(--ease-bounce);
    animation: quickReplyPop 0.4s var(--ease-bounce) backwards;
}

.quick-reply-btn:nth-child(1) { animation-delay: 0.1s; }
.quick-reply-btn:nth-child(2) { animation-delay: 0.15s; }
.quick-reply-btn:nth-child(3) { animation-delay: 0.2s; }
.quick-reply-btn:nth-child(4) { animation-delay: 0.25s; }

@keyframes quickReplyPop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.quick-reply-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-reply-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
}

#chatInput {
    flex: 1;
    padding: 14px 18px;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s var(--ease);
}

#chatInput:focus {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

#chatInput::placeholder {
    color: var(--gray-300);
}

.chat-send-btn {
    width: 52px;
    height: 52px;
    background: var(--black);
    color: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-bounce);
}

.chat-send-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--black);
}

.chat-send-btn:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}

.chat-send-btn svg {
    width: 20px;
    height: 20px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
    }
    
    .screen {
        transition: opacity 0.2s;
        transform: none !important;
    }
    
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-pop {
        opacity: 1;
        transform: none;
    }
}
