﻿:root {
    --primary: #6366f1;
    --primary-light: #a5b4fc;
    --bg-color: #fafafa;
    --surface: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover { color: var(--primary); }

/* Buttons */
.btn-primary, .btn-outline {
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Marquee */
.marquee-container {
    margin-top: 80px;
    background: linear-gradient(90deg, #fdfbfb 0%, #ebedee 100%);
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.marquee-content {
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-weight: 600;
    color: var(--text-muted);
}

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

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* App Section (Upload/Process/Result) */
.app-section {
    padding: 40px 5% 70px;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 1200px;   /* Ð¿Ð¾Ñ‡Ñ‚Ð¸ Ð²Ð¾ Ð²ÑÑŽ ÑÑ‚Ñ€Ð°Ð½Ð¸Ñ†Ñƒ */
    padding: 0;          /* ÑƒÐ±Ð¸Ñ€Ð°ÐµÐ¼ Ð²Ð½ÑƒÑ‚Ñ€ÐµÐ½Ð½ÑŽÑŽ ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐºÑƒ */
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    min-height: auto;
    text-align: center;
    position: relative;
    overflow: visible;
}

.stage {
    width: 100%;
    display: none;
    animation: fadeIn 0.5s ease;
}

.stage.active {
    display: block;
}

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

/* Upload Box */
.upload-box {
    width: 100%;
    border: 2px dashed rgba(0,0,0,0.18);
    border-radius: 26px;
    padding: 90px 40px;          /* Ð±Ð¾Ð»ÑŒÑˆÐµ â€œÐ²Ð¾Ð·Ð´ÑƒÑ…Ð°â€ ÐºÐ°Ðº Ð½Ð° ÑÐºÑ€Ð¸Ð½Ðµ */
    min-height: 360px;           /* Ð²Ñ‹ÑÐ¾ÐºÐ°Ñ Ð·Ð¾Ð½Ð° */
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
}

.upload-box:hover, .upload-box.dragover {
    border-color: rgba(99,102,241,0.65);
    background: rgba(99,102,241,0.06);
}

.icon-pulse {
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.upload-box h3 { margin-bottom: 10px; }
.upload-box p { color: var(--text-muted); margin-bottom: 20px; }
.formats { font-size: 0.8rem; margin-top: 20px; }

/* Processing */
.processing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scanner-image {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.scanner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    animation: colorize 5s forwards;
}

@keyframes colorize {
    0% { filter: grayscale(100%); }
    100% { filter: grayscale(0%); }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: scanning 2s linear infinite;
}

@keyframes scanning {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.progress-bar-container {
    width: 80%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #ec4899);
    transition: width 0.3s linear;
}

/* Result */
.result-video-placeholder {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.result-video-placeholder img {
    width: 100%;
    display: block;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: transform 0.2s;
}

.play-button-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Examples */
.examples {
    padding: 80px 5%;
    text-align: center;
}

.examples h2 { margin-bottom: 40px; font-size: 2.5rem; }

.gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-item {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.hover-info {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    padding: 15px;
    font-weight: 600;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .hover-info {
    bottom: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    border-top: 1px solid #eee;
}

/* How it works */
.how-it-works {
    padding: 90px 5% 70px;
    position: relative;
    overflow: hidden;
}

.how-it-works::before,
.how-it-works::after {
    content: "";
    position: absolute;
    inset: -200px;
    background:
        radial-gradient(circle at 20% 30%, rgba(99,102,241,0.18), transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(236,72,153,0.14), transparent 45%),
        radial-gradient(circle at 60% 80%, rgba(99,102,241,0.12), transparent 50%);
    filter: blur(10px);
    pointer-events: none;
}

.how-wrap {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.how-head {
    text-align: center;
    margin-bottom: 40px;
}

.how-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--text-main);
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

.how-head h2 {
    font-size: 2.6rem;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.how-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 760px;
    margin: 0 auto;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.how-card {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.how-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(236,72,153,0.10), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.how-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.10);
}

.how-card:hover::before {
    opacity: 1;
}

.how-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.how-num {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: rgba(31,41,55,0.7);
}

.how-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(99,102,241,0.10);
    border: 1px solid rgba(99,102,241,0.18);
    box-shadow: 0 10px 25px rgba(99,102,241,0.12);
}

.how-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.how-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.how-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
}

.chip {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    color: var(--text-main);
}

.how-note {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.how-note-inner {
    max-width: 820px;
    width: 100%;
    text-align: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.70);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
    color: var(--text-muted);
}

.how-note-inner strong {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 900px) {
    .how-head h2 { font-size: 2rem; }
    .how-grid { grid-template-columns: 1fr; }
}

/* Shared eyebrow */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--text-main);
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

/* FAQ (minimal, like reference) */
.faq.faq-minimal{
  padding: 90px 5% 90px;
  position: relative;
}

.faq.faq-minimal .faq-wrap{
  max-width: 1100px;
  margin: 0 auto;
}

.faq.faq-minimal .faq-layout{
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 48px;
  align-items: start;
}

.faq.faq-minimal .faq-left{
  padding-top: 10px;
}

.faq.faq-minimal .faq-kicker{
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--text-main);
}

.faq.faq-minimal .faq-right{
  border-top: 1px solid rgba(0,0,0,0.10);
}

.faq.faq-minimal .faq-row{
  border-bottom: 1px solid rgba(0,0,0,0.10);
  padding: 18px 0;
}

.faq.faq-minimal .faq-row summary{
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 6px;
}

.faq.faq-minimal .faq-row summary::-webkit-details-marker{
  display: none;
}

.faq.faq-minimal .faq-row summary::after{
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  /* chevron-down (inline SVG) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.faq.faq-minimal .faq-row[open] summary::after{
  transform: rotate(180deg);
  opacity: 1;
}

.faq.faq-minimal .faq-answer{
  padding: 10px 0 0;
}

.faq.faq-minimal .faq-answer p{
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 1rem;
  max-width: 820px;
}

/* Mobile */
@media (max-width: 900px){
  .faq.faq-minimal .faq-layout{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .faq.faq-minimal .faq-kicker{
    font-size: 44px;
  }
}

/* Testimonials */
.testimonials {
    padding: 60px 5% 90px;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: "";
    position: absolute;
    inset: -220px;
    background:
        radial-gradient(circle at 20% 10%, rgba(236,72,153,0.12), transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(99,102,241,0.16), transparent 45%),
        radial-gradient(circle at 55% 80%, rgba(236,72,153,0.10), transparent 50%);
    filter: blur(12px);
    pointer-events: none;
}

.t-wrap {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.t-head {
    text-align: center;
    margin-bottom: 26px;
}

.t-head h2 {
    font-size: 2.4rem;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.t-head p {
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.t-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 26px;
}

.t-card {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
    padding: 18px;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.t-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(236,72,153,0.10), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.t-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.10);
}

.t-card:hover::before { opacity: 1; }

.t-stars {
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    color: rgba(31,41,55,0.75);
    margin-bottom: 10px;
}

.t-card blockquote {
    color: var(--text-main);
    line-height: 1.65;
    font-weight: 600;
    margin-bottom: 14px;
}

.t-card figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.t-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    background: rgba(99,102,241,0.10);
    border: 1px solid rgba(99,102,241,0.18);
    box-shadow: 0 10px 25px rgba(99,102,241,0.10);
}

.t-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.t-meta span {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 3px;
}

.t-cta {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.t-cta-inner {
    width: 100%;
    max-width: 920px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
}

.t-cta-sub {
    color: var(--text-muted);
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 980px) {
    .faq-grid { grid-template-columns: 1fr; }
    .faq-side .tip-card { position: relative; top: 0; }
    .t-grid { grid-template-columns: 1fr; }
    .t-cta-inner { flex-direction: column; text-align: center; }
}
/* Privacy Policy page */
.logo-link {
  color: inherit;
  text-decoration: none;
}

.policy {
  padding: 90px 5% 80px;
  position: relative;
  overflow: hidden;
}

.policy::before {
  content: "";
  position: absolute;
  inset: -220px;
  background:
    radial-gradient(circle at 18% 20%, rgba(99,102,241,0.16), transparent 45%),
    radial-gradient(circle at 82% 30%, rgba(236,72,153,0.12), transparent 45%),
    radial-gradient(circle at 55% 85%, rgba(99,102,241,0.10), transparent 50%);
  filter: blur(12px);
  pointer-events: none;
}

.policy-wrap {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.policy-hero {
  text-align: center;
  margin-bottom: 18px;
}

.policy-hero h1 {
  font-size: 3rem;
  letter-spacing: -1px;
  margin: 10px 0 10px;
}

.policy-sub {
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1.05rem;
}

.policy-meta {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.policy-card {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.06);
  padding: 18px;
  margin: 20px 0 18px;
}

.policy-section {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.06);
  padding: 18px;
  margin: 14px 0;
}

.policy-section h2 {
  margin-bottom: 10px;
  letter-spacing: -0.6px;
}

.policy-section h3 {
  margin-top: 14px;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.policy-section p,
.policy-section li {
  color: var(--text-muted);
  line-height: 1.65;
}

.policy-section ul {
  margin: 10px 0 0 18px;
}

.policy-toc {
  margin: 10px 0 0 18px;
}

.policy-toc a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.policy-toc a:hover {
  text-decoration: underline;
}

.policy-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.16);
}

.ph {
  font-weight: 800;
  color: var(--text-main);
  background: rgba(255,255,255,0.75);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
}

.policy-note {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.policy-table {
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}

.policy-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.88);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.policy-head-row {
  background: rgba(0,0,0,0.04);
  font-weight: 800;
  color: var(--text-main);
  border-top: none;
}

.policy-footer {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .policy-hero h1 { font-size: 2.2rem; }
  .policy-row { grid-template-columns: 1fr; }
}

/* Model picker (visual only) */
.model-picker{
    display:flex;
    gap:10px;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    margin: 0 auto 16px;
}

.model-pill{
    display:flex;
    align-items:center;
    gap:8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    cursor:pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    user-select:none;
}

.model-pill:hover{
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.06);
}

.model-pill.is-active{
    border-color: var(--primary);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 16px 40px rgba(99,102,241,0.12);
}

.model-pill:focus{
    outline: none;
}

.model-pill:focus-visible{
    box-shadow: 0 0 0 4px rgba(99,102,241,0.18), 0 16px 35px rgba(0,0,0,0.06);
}

.model-badge{
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    border: 1px solid rgba(0,0,0,0.10);
}

/* â€œIconsâ€ */
.model-sora{
    background: rgba(59,130,246,0.14);
    color: #2563eb;
    border-color: rgba(37,99,235,0.18);
}

.model-veo{
    background: rgba(34,197,94,0.14);
    color: #16a34a;
    border-color: rgba(22,163,74,0.18);
}

.model-svd{
    background: linear-gradient(135deg, rgba(99,102,241,0.95), rgba(236,72,153,0.90));
    color: #fff;
    border-color: rgba(99,102,241,0.25);
}

.model-pika{
    background: rgba(17,24,39,0.92);
    color: #fff;
    border-color: rgba(17,24,39,0.25);
}

.model-runway{
    background: rgba(0,0,0,0.06);
    color: var(--text-main);
    border-color: rgba(0,0,0,0.12);
}

.model-name{
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Mobile: make it scrollable if needed */
@media (max-width: 520px){
    .model-picker{
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content:flex-start;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .model-picker::-webkit-scrollbar{ height: 6px; }
}
/* Gallery of Magic */
.magic{
  padding: 90px 5% 90px;
  position: relative;
  overflow: hidden;
}

.magic::before{
  content:"";
  position:absolute;
  inset:-220px;
  background:
    radial-gradient(circle at 18% 25%, rgba(99,102,241,0.14), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(236,72,153,0.10), transparent 45%),
    radial-gradient(circle at 60% 85%, rgba(99,102,241,0.10), transparent 50%);
  filter: blur(12px);
  pointer-events:none;
}

.magic-wrap{
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.magic-head{
  text-align:center;
  margin-bottom: 26px;
}

.magic-head h2{
  font-size: 2.6rem;
  letter-spacing:-1px;
  margin-bottom: 10px;
}

.magic-head p{
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.magic-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.magic-item{
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.06);
  overflow:hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.magic-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.10);
}

.magic-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
  position: relative;
}

.magic-split::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:1px;
  background: rgba(0,0,0,0.08);
}

.magic-pane{
  position: relative;
  overflow:hidden;
  background: rgba(0,0,0,0.02);
}

.magic-pane img,
.magic-video{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
}

.magic-item:hover .magic-pane img,
.magic-item:hover .magic-video{
  transform: scale(1.03);
  transition: transform .35s ease;
}

.magic-tag{
  position:absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.magic-after .magic-tag{
  border-color: rgba(99,102,241,0.22);
  box-shadow: 0 14px 35px rgba(99,102,241,0.10);
}

.magic-caption{
  padding: 16px 18px 18px;
  text-align: left;
}

.magic-caption h3{
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.magic-caption p{
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.magic-note{
  margin-top: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Responsive */
@media (max-width: 980px){
  .magic-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 620px){
  .magic-split{
    grid-template-columns: 1fr;
  }
  .magic-split::after{ display:none; }
}
/* Upload: after file selected */
.upload-after { display: none; margin-top: 10px; }
.upload-box.has-file .upload-initial { display: none; }
.upload-box.has-file .upload-after { display: block; }

.selected-file{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:center;
  margin-bottom: 14px;
}

.selected-thumb{
  width:64px;
  height:64px;
  border-radius:16px;
  object-fit:cover;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.selected-meta{
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.selected-label{
  font-weight:800;
  font-size:0.85rem;
  letter-spacing:0.06em;
  color: rgba(31,41,55,0.65);
  text-transform: uppercase;
}

.selected-name{
  font-weight:800;
  font-size:1.05rem;
  color: var(--text-main);
  word-break: break-all;
}

.btn-sm{
  padding: 8px 12px;
  font-size: 0.95rem;
  border-radius: 999px;
  width: fit-content;
}

.prompt-box{
  text-align:left;
  max-width: 760px;
  margin: 0 auto 14px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.06);
}

.prompt-label{
  font-weight:800;
  display:block;
  margin-bottom: 8px;
  color: var(--text-main);
}

.prompt-box textarea{
  width:100%;
  resize: vertical;
  min-height: 84px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  padding: 12px 12px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  background: rgba(255,255,255,0.90);
}

.prompt-box textarea:focus{
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.35);
}

.prompt-hint{
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.create-btn{ width: 100%; max-width: 360px; }
.create-note{
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.muted{ opacity: 0.7; font-weight: 700; }

/* Loader ring */
.loader-ring{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 3px solid rgba(0,0,0,0.12);
  border-top-color: rgba(99,102,241,0.85);
  margin: 14px auto 10px;
  animation: spin 0.9s linear infinite;
}

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



#result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Download Modal ===== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: 14px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  padding: 24px;
  font-family: 'Inter', sans-serif;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
}

.modal-body {
  font-size: 15px;
  color: #444;
}

.modal-steps {
  margin: 12px 0;
  padding-left: 18px;
}

.modal-hint {
  font-size: 13px;
  color: #777;
  margin-top: 10px;
}

.modal-footer {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.modal-card, .modal-card * {
  box-sizing: border-box;
}
