/* ==========================================================
   CRISPY STATUS — Polished Stylesheet
   Fun · Bold · Bouncy · Tasty · Professional
   ========================================================== */

/* ---------------------- VARIABLES ---------------------- */
:root {
    --bg:             #0B0B1A;
    --bg-deep:        #06060F;
    --surface:        rgba(255,255,255,.06);
    --surface-hover:  rgba(255,255,255,.10);
    --surface-border: rgba(255,255,255,.08);
    --primary:        #FF6B35;
    --primary-light:  #FF8F65;
    --pink:           #FF3366;
    --violet:         #8B5CF6;
    --indigo:         #6366F1;
    --green:          #22D67F;
    --cyan:           #06B6D4;
    --yellow:         #FBBF24;
    --amber:          #F59E0B;
    --red:            #EF4444;
    --text:           #FFFFFF;
    --text2:          #B0B0D0;
    --text3:          #6B6B8D;
    --grad-primary:   linear-gradient(135deg, #FF6B35, #FF3366);
    --grad-violet:    linear-gradient(135deg, #8B5CF6, #6366F1);
    --grad-green:     linear-gradient(135deg, #22D67F, #06B6D4);
    --grad-gold:      linear-gradient(135deg, #FBBF24, #F59E0B);
    --grad-bg:        linear-gradient(170deg, #0B0B1A 0%, #160a2e 50%, #0B0B1A 100%);
    --r-sm:   12px;
    --r-md:   18px;
    --r-lg:   26px;
    --r-xl:   34px;
    --r-full: 9999px;
    --glow-primary: 0 8px 40px rgba(255,107,53,.30);
    --glow-violet:  0 8px 40px rgba(139,92,246,.25);
    --glow-green:   0 8px 40px rgba(34,214,127,.20);
    --glow-gold:    0 8px 40px rgba(251,191,36,.30);
    --shadow-card:  0 8px 32px rgba(0,0,0,.45);
    --bounce:  cubic-bezier(.34,1.56,.64,1);
    --smooth:  cubic-bezier(.4,0,.2,1);
    --snap:    cubic-bezier(.2,.9,.3,1);
    --font: 'Nunito', system-ui, -apple-system, sans-serif;
}

/* ---------------------- RESET ---------------------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box }
html { font-size:16px; -webkit-text-size-adjust:100%; scroll-behavior:smooth }
ul { list-style:none }
button { font:inherit; cursor:pointer; border:none; background:none; color:inherit; -webkit-tap-highlight-color:transparent }
input[type=range] { -webkit-appearance:none; appearance:none; background:transparent }
a { color:inherit; text-decoration:none }
::selection { background:rgba(255,107,53,.35); color:#fff }

/* ---------------------- FOCUS ---------------------- */
:focus-visible {
    outline:2px solid var(--primary);
    outline-offset:3px;
    border-radius:var(--r-sm);
}

/* ---------------------- BASE ---------------------- */
body {
    font-family: var(--font);
    font-weight: 700;
    background: var(--grad-bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ---------------------- BACKGROUND ORBS ---------------------- */
.bg-orbs {
    position: fixed; inset:0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .15;
}
.orb-1 {
    width: 400px; height: 400px;
    background: var(--primary);
    top: -120px; right: -100px;
    animation: orbFloat1 18s ease-in-out infinite;
}
.orb-2 {
    width: 350px; height: 350px;
    background: var(--violet);
    bottom: -80px; left: -100px;
    animation: orbFloat2 22s ease-in-out infinite;
}
.orb-3 {
    width: 250px; height: 250px;
    background: var(--pink);
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 15s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,60px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-50px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.3)} }

/* ---------------------- CONFETTI CANVAS ---------------------- */
#confetti-canvas {
    position: fixed; inset:0;
    pointer-events: none;
    z-index: 200;
    width: 100%; height: 100%;
}

/* ---------------------- TOAST ---------------------- */
#toast-container {
    position: fixed;
    bottom: 90px; left:0; right:0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 150;
    pointer-events: none;
    padding: 0 20px;
}
.toast {
    background: rgba(30,30,55,.92);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: var(--r-full);
    padding: 12px 22px;
    font-size: .9rem;
    font-weight: 800;
    color: var(--text);
    display: flex; align-items: center; gap: 8px;
    box-shadow: var(--shadow-card);
    pointer-events: auto;
    animation: toastIn .45s var(--bounce) both;
    max-width: 360px;
    width: max-content;
}
.toast.toast-out { animation: toastOut .3s var(--smooth) both }
.toast-icon { font-size: 1.15em; flex-shrink:0 }
.toast.success { border-color: rgba(34,214,127,.3) }
.toast.error   { border-color: rgba(239,68,68,.3) }
.toast.info    { border-color: rgba(99,102,241,.3) }

@keyframes toastIn  { 0%{transform:translateY(30px) scale(.85);opacity:0} 100%{transform:translateY(0) scale(1);opacity:1} }
@keyframes toastOut { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(20px);opacity:0} }

/* ---------------------- INSTALL PROMPT ---------------------- */
.install-prompt {
    position: fixed;
    top: 0; left:0; right:0;
    z-index: 120;
    animation: slideDown .5s var(--bounce) both;
}
.install-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 10px;
    background: rgba(25,25,50,.92);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
}
.install-icon { font-size: 1.8rem; flex-shrink:0 }
.install-text { flex:1; display:flex; flex-direction:column; gap:1px }
.install-text strong { font-size: .9rem; font-weight: 900 }
.install-text span { font-size: .75rem; font-weight: 600; color: var(--text2) }
.btn-sm { font-size: .8rem; padding: 8px 16px }
.btn-dismiss {
    width:32px; height:32px;
    font-size:.85rem;
    background:transparent;
    color: var(--text3);
}
@keyframes slideDown { 0%{transform:translateY(-100%);opacity:0} 100%{transform:translateY(0);opacity:1} }

/* ---------------------- SCREENS ---------------------- */
#app { position: relative; z-index: 1 }

.screen {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.screen.active { display: flex }

/* Entrance animation for all active screens */
.screen.screen-enter {
    animation: screenIn .4s var(--snap) both;
}
@keyframes screenIn {
    0%   { opacity:0; transform:translateY(20px) }
    100% { opacity:1; transform:translateY(0) }
}

.screen-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 16px;
    gap: 24px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}
.screen-content.centered { justify-content: center }

/* ---------------------- LOGO ---------------------- */
.logo-area {
    text-align: center;
    padding-top: 18vh;
    animation: bounceIn .7s var(--bounce) both;
}
.logo-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(255,107,53,.4));
}
.logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 8px;
    letter-spacing: -.5px;
    position: relative;
}
/* Shimmer effect on logo */
.logo-text::after {
    content: 'Crispy Status';
    position: absolute; inset:0;
    background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.tagline {
    color: var(--text2);
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 4px;
}

/* ---------------------- BUTTONS ---------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--r-full);
    font-weight: 800;
    font-size: 1rem;
    transition: transform .15s var(--bounce), box-shadow .3s var(--smooth), opacity .2s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}
.btn:active { transform: scale(.93) !important }
.btn:disabled, .btn.loading { opacity:.6; pointer-events:none }

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--glow-primary);
}
.btn-primary:hover { transform: scale(1.03) }

.btn-secondary {
    background: var(--grad-violet);
    color: #fff;
    box-shadow: var(--glow-violet);
}
.btn-secondary:hover { transform: scale(1.03) }

.btn-premium {
    background: var(--grad-gold);
    color: #1a1a2e;
    box-shadow: var(--glow-gold);
    font-size: 1.1rem;
    padding: 16px 32px;
    width: 100%;
}
.btn-premium:hover { transform: scale(1.03) }

.btn-ghost {
    color: var(--text2);
    font-weight: 700;
    padding: 12px 24px;
    transition: color .2s, transform .15s var(--bounce);
}
.btn-ghost:hover { color: var(--text) }

.btn-large {
    font-size: 1.15rem;
    padding: 18px 36px;
    width: 100%;
    max-width: 360px;
}

.btn-emoji { font-size: 1.25em }
.btn-label { transition: opacity .2s }

/* Button spinner */
.btn-spinner {
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    position: absolute;
}
.btn.loading .btn-label { opacity:0 }
.btn.loading .btn-emoji { opacity:0 }
.btn.loading .btn-spinner { display:block !important }

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

.btn-icon-only {
    font-size: 1.5rem;
    width: 44px; height: 44px;
    border-radius: var(--r-full);
    display: flex; align-items:center; justify-content:center;
    background: var(--surface);
    transition: background .2s, transform .15s var(--bounce);
}
.btn-icon-only:hover { background: var(--surface-hover) }

.pulse-glow { animation: pulseGlow 2.5s ease-in-out infinite }

/* ---------------------- HOW IT WORKS ---------------------- */
.how-it-works {
    width: 100%;
    max-width: 360px;
    animation: slideUp .6s var(--bounce) .25s both;
}
.section-label {
    color: var(--text3);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    text-align: center;
}
.steps { display: flex; gap: 8px }
.step {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--r-md);
    padding: 14px 8px;
    text-align: center;
    display: flex; flex-direction:column; align-items:center; gap:8px;
    transition: transform .3s var(--bounce), background .2s;
}
.step:hover { transform: translateY(-4px); background: var(--surface-hover) }
.step-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    font-size: .85rem; font-weight: 900;
    display: flex; align-items:center; justify-content:center;
}
.step-text { font-size: .82rem; font-weight:700; color:var(--text2); line-height:1.3 }

/* ---------------------- TRIM SCREEN ---------------------- */
.screen-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    animation: bounceIn .5s var(--bounce) both;
}
.screen-header h2 { font-size: 1.35rem; font-weight: 900 }

.video-preview-wrap {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 42vh;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #000;
    position: relative;
    animation: slideUp .5s var(--bounce) .1s both;
    border: 1px solid var(--surface-border);
}
.video-preview-wrap video {
    width:100%; height:100%;
    object-fit: contain;
    display: block;
}
.btn-play {
    position: absolute;
    inset:0; margin:auto;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
    font-size: 1.5rem;
    display: flex; align-items:center; justify-content:center;
    transition: transform .2s var(--bounce), opacity .25s;
    border: 2px solid rgba(255,255,255,.2);
}
.btn-play:hover { transform: scale(1.1) }
.btn-play.hide { opacity:0; pointer-events:none }

/* Trim info */
.trim-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text3);
}

/* Trim slider */
.trim-controls {
    width: 100%;
    animation: slideUp .5s var(--bounce) .2s both;
}
.trim-track-wrap { position: relative; padding: 12px 0 }
.trim-track {
    width: 100%; height: 10px;
    background: rgba(255,255,255,.08);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}
.trim-window {
    position: absolute; top: 0;
    height: 100%;
    background: var(--grad-primary);
    border-radius: 5px;
    transition: left .05s linear;
    box-shadow: 0 0 12px rgba(255,107,53,.3);
}
.trim-track-wrap input[type=range] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    margin: 0;
    cursor: grab;
    z-index: 2;
}
.trim-track-wrap input[type=range]:active { cursor: grabbing }

/* Custom thumb */
.trim-track-wrap input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.4), var(--glow-primary);
    cursor: grab;
    transition: transform .15s var(--bounce);
}
.trim-track-wrap input[type=range]::-webkit-slider-thumb:active { transform: scale(1.2) }
.trim-track-wrap input[type=range]::-moz-range-thumb {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.4);
    cursor: grab;
}

.trim-times {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: .85rem;
}
.trim-times span:first-child,
.trim-times span:last-child {
    font-weight: 900;
    color: var(--primary);
    min-width: 50px;
}
.trim-duration-label { color: var(--text3); font-weight: 700; font-size:.8rem }

/* ---------------------- PROCESSING ---------------------- */
.processing-vis { text-align: center }

.processing-ring {
    width: 130px; height: 130px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex; align-items:center; justify-content:center;
    position: relative;
}
.processing-ring::before {
    content: '';
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--pink);
    animation: spin 1.2s linear infinite;
}
.processing-ring::after {
    content: '';
    position: absolute; inset: -12px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--violet);
    border-left-color: var(--cyan);
    animation: spin 2s linear infinite reverse;
    opacity: .5;
}
.processing-emoji {
    font-size: 3.5rem;
    animation: bounceLoop 1s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(255,107,53,.4));
    z-index: 1;
}

.processing-title {
    font-size: 1.6rem; font-weight: 900;
    margin-top: 16px;
}
.processing-sub {
    color: var(--text2); font-size:.95rem; font-weight:600;
    margin-top: 4px; min-height:1.4em;
    transition: opacity .2s;
}

.progress-wrap { width:100%; max-width:320px; text-align:center }
.progress-track {
    width:100%; height:14px;
    background: rgba(255,255,255,.06);
    border-radius: var(--r-full);
    overflow: hidden;
    border: 1px solid var(--surface-border);
}
.progress-fill {
    height:100%; width:0%;
    background: var(--grad-primary);
    border-radius: var(--r-full);
    transition: width .3s var(--smooth);
    box-shadow: 0 0 16px rgba(255,107,53,.5);
    position: relative;
}
/* Animated shine on progress bar */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    animation: progressShine 1.5s ease-in-out infinite;
}
@keyframes progressShine { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }

.progress-pct {
    display: block;
    margin-top: 10px;
    font-size: 1.2rem; font-weight: 900;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.processing-fun-tip {
    color: var(--text3); font-size:.85rem; font-weight:700;
    text-align: center;
    animation: fadeInOut 4s ease-in-out infinite;
    max-width: 280px;
}

/* ---------------------- DONE SCREEN ---------------------- */
.done-header {
    text-align: center;
    padding-top: 4vh;
    animation: bounceIn .6s var(--bounce) both;
}
.done-emoji {
    font-size: 3.5rem;
    margin-bottom: 8px;
    animation: doneEmoji .6s var(--bounce) both;
}
@keyframes doneEmoji {
    0%   { transform: scale(0) rotate(-20deg) }
    50%  { transform: scale(1.3) rotate(5deg) }
    100% { transform: scale(1) rotate(0) }
}
.done-header h2 { font-size: 1.8rem; font-weight: 900 }

/* Video preview on done screen */
.done-preview-wrap {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9/16;
    max-height: 30vh;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #000;
    position: relative;
    border: 1px solid var(--surface-border);
    animation: slideUp .5s var(--bounce) .1s both;
}
.done-preview-wrap video {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}

/* Stats card */
.stats-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    backdrop-filter: blur(8px);
    border: 1px solid var(--surface-border);
    border-radius: var(--r-lg);
    padding: 18px 22px;
    width: 100%; max-width: 360px;
    position: relative;
    animation: slideUp .5s var(--bounce) .2s both;
    transition: transform .3s var(--bounce);
}
.stats-card:hover { transform: translateY(-2px) }

.stat { display:flex; flex-direction:column; gap:2px; flex:1 }
.stat-label { font-size:.75rem; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:1px }
.stat-value { font-size:1.15rem; font-weight:900 }
.stat-value.highlight { color: var(--green) }
.stat-arrow { font-size:1.2rem; color:var(--text3) }
.stat-badge {
    position: absolute; top:-10px; right:14px;
    background: var(--grad-green);
    color: #fff; font-size:.75rem; font-weight:900;
    padding: 4px 14px; border-radius: var(--r-full);
    box-shadow: var(--glow-green);
    animation: badgePop .5s var(--bounce) .5s both;
}
@keyframes badgePop { 0%{transform:scale(0)} 60%{transform:scale(1.2)} 100%{transform:scale(1)} }

.action-btns {
    display: flex; flex-direction: column;
    gap: 12px; width: 100%; max-width: 360px;
    animation: slideUp .5s var(--bounce) .35s both;
}

/* ---------------------- TIPS ---------------------- */
.tips-section {
    width: 100%; max-width: 360px;
    margin-top: 4px;
}
.tips-list { display: flex; flex-direction: column; gap: 10px }

.tip-card {
    display: flex; align-items:flex-start; gap:12px;
    background: var(--surface);
    backdrop-filter: blur(8px);
    border: 1px solid var(--surface-border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    opacity: 0;
    animation: tipBounce .55s var(--bounce) forwards;
    transition: transform .2s var(--bounce), background .2s;
}
.tip-card:hover { transform: translateX(4px); background: var(--surface-hover) }
.tip-card:nth-child(1) { animation-delay: .1s }
.tip-card:nth-child(2) { animation-delay: .22s }
.tip-card:nth-child(3) { animation-delay: .34s }
.tip-card:nth-child(4) { animation-delay: .46s }
.tip-card:nth-child(5) { animation-delay: .58s }

.tip-icon { font-size:1.4rem; flex-shrink:0; margin-top:2px }
.tip-content strong { display:block; font-size:.88rem; font-weight:800; margin-bottom:2px }
.tip-content p { font-size:.78rem; font-weight:600; color:var(--text2); line-height:1.4 }

/* ---------------------- MODALS ---------------------- */
.modal-overlay {
    position: fixed; inset:0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(14px);
    display: flex; align-items:center; justify-content:center;
    padding: 24px;
    z-index: 100;
    animation: fadeIn .2s ease both;
}
.modal-card {
    background: linear-gradient(170deg, #1e1e38, #14142b);
    border: 1px solid var(--surface-border);
    border-radius: var(--r-xl);
    padding: 36px 28px;
    text-align: center;
    max-width: 380px; width: 100%;
    box-shadow: var(--shadow-card);
    animation: bounceIn .5s var(--bounce) both;
    display: flex; flex-direction:column; align-items:center; gap:12px;
}

/* Premium */
.premium-card { border-color: rgba(251,191,36,.2) }
.premium-badge {
    background: var(--grad-gold);
    color: #1a1a2e;
    font-size: .85rem; font-weight: 900;
    padding: 6px 18px;
    border-radius: var(--r-full);
    box-shadow: var(--glow-gold);
    animation: badgePop .5s var(--bounce) .2s both;
}
.premium-sub { color:var(--text2); font-size:.95rem; font-weight:600; margin-bottom:4px }
.premium-perks {
    width: 100%; text-align: left;
    display: flex; flex-direction: column; gap: 10px;
    margin: 8px 0 12px;
}
.premium-perks li {
    display: flex; align-items: center; gap: 10px;
    font-size: .95rem; font-weight: 700;
}
.premium-perks li span { font-size:1.15rem; flex-shrink:0 }

/* Error */
.error-emoji { font-size:3rem; margin-bottom:4px }
#error-msg { color:var(--text2); font-size:.95rem; font-weight:600; margin-bottom:8px }

/* ---------------------- AD BANNER ---------------------- */
.ad-banner {
    width: 100%; max-width: 480px; margin: 0 auto;
    min-height: 60px;
    background: rgba(255,255,255,.015);
    border-top: 1px solid rgba(255,255,255,.05);
    display: flex; align-items:center; justify-content:center;
    flex-shrink: 0;
    padding: 8px;
}
.ad-placeholder {
    color: var(--text3); font-size:.65rem; font-weight:800;
    text-transform: uppercase; letter-spacing: 2px;
    opacity: .4;
}

/* ---------------------- ANIMATIONS ---------------------- */
@keyframes bounceIn {
    0%   { transform:scale(.3);opacity:0 }
    50%  { transform:scale(1.08) }
    70%  { transform:scale(.96) }
    100% { transform:scale(1);opacity:1 }
}
@keyframes slideUp {
    0%   { transform:translateY(50px);opacity:0 }
    60%  { transform:translateY(-6px);opacity:1 }
    80%  { transform:translateY(3px) }
    100% { transform:translateY(0) }
}
@keyframes tipBounce {
    0%   { transform:translateX(-60px) scale(.85);opacity:0 }
    55%  { transform:translateX(6px) scale(1.02);opacity:1 }
    75%  { transform:translateX(-3px) scale(.99) }
    100% { transform:translateX(0) scale(1);opacity:1 }
}
@keyframes pulseGlow {
    0%,100% { box-shadow: var(--glow-primary) }
    50%     { box-shadow: 0 8px 55px rgba(255,107,53,.5) }
}
@keyframes bounceLoop {
    0%,100% { transform:translateY(0) }
    50%     { transform:translateY(-14px) }
}
@keyframes float {
    0%,100% { transform:translateY(0) }
    50%     { transform:translateY(-10px) }
}
@keyframes fadeIn    { 0%{opacity:0} 100%{opacity:1} }
@keyframes fadeInOut { 0%,100%{opacity:.35} 50%{opacity:1} }

/* ---------------------- UTILITIES ---------------------- */
.hidden { display:none !important }

/* ---------------------- RESPONSIVE ---------------------- */
@media (max-width: 360px) {
    .logo-text   { font-size: 2rem }
    .btn-large   { font-size: 1rem; padding: 16px 24px }
    .stats-card  { padding: 14px 14px }
    .modal-card  { padding: 28px 20px }
    .processing-ring { width:110px; height:110px }
    .processing-emoji { font-size:2.8rem }
}
@media (min-width: 600px) {
    .logo-area    { padding-top: 14vh }
    .done-header  { padding-top: 4vh }
}
/* ---------------------- BACKGROUND NOTICE ---------------------- */
.bg-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 214, 127, .08);
    border: 1px solid rgba(34, 214, 127, .2);
    border-radius: var(--r-full);
    padding: 10px 18px;
    margin-top: 4px;
    max-width: 340px;
    animation: slideUp .5s var(--bounce) .5s both;
}
.bg-notice-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.bg-notice-text {
    font-size: .78rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1.3;
}
