/* ============================================================
   iCameraPlus — Global Stylesheet
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:      #f5a623;
  --orange-dark: #d4881a;
  --orange-dim:  rgba(245,166,35,0.12);
  --bg:          #0a0a0c;
  --surface:     #13131a;
  --card:        #1a1a24;
  --border:      #2a2a3a;
  --text:        #f0f0f4;
  --muted:       #8888aa;
  --ok:          #3fb950;
  --err:         #f85149;
  --link:        #58a6ff;
  --danger:      #f85149;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
  --nav-h:       64px;
  --transition:  .2s ease;
}
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; min-height: 100vh; }
a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
h1,h2,h3,h4 { font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -1.5px; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 18px; font-weight: 700; }
p  { color: var(--muted); line-height: 1.8; }
.highlight { color: var(--orange); }

/* ── Navbar ── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: rgba(10,10,12,0.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: background var(--transition); }
.navbar.scrolled { background: rgba(10,10,12,0.98); }
.nav-brand { font-size: 20px; font-weight: 800; color: var(--orange); letter-spacing: -0.5px; text-decoration: none; }
.nav-brand:hover { color: var(--orange-dark); }
.nav-center { display: flex; align-items: center; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-center a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-center a:hover, .nav-center a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switcher { display: flex; gap: 2px; align-items: center; }
.lang-switcher a { font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; border: 1px solid transparent; transition: all var(--transition); letter-spacing: 0.3px; }
.lang-switcher a:hover { color: var(--text); border-color: var(--border); }
.lang-switcher a.active { color: var(--orange); border-color: var(--orange); background: var(--orange-dim); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--card); color: var(--text); transition: all var(--transition); text-decoration: none; line-height: 1; font-family: inherit; }
.btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: #000 !important; border-color: var(--orange); font-weight: 700; }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #000 !important; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,166,35,0.3); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline { background: transparent; border-color: var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #000; }
.btn-nav { background: var(--orange); color: #000 !important; border: none; padding: 8px 18px; font-size: 13px; font-weight: 700; }
.btn-nav:hover { background: var(--orange-dark); color: #000 !important; transform: translateY(-1px); }
.btn-submit { width: 100%; background: var(--orange); color: #000; border: none; padding: 14px; font-size: 15px; font-weight: 700; border-radius: var(--radius-sm); cursor: pointer; margin-top: 8px; transition: all var(--transition); font-family: inherit; }
.btn-submit:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(245,166,35,0.3); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-ok { border-color: var(--ok); color: var(--ok); }
.btn-err { border-color: var(--err); color: var(--err); }
.btn-full { width: 100%; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.3px; }
.input { width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 15px; outline: none; transition: border-color var(--transition); font-family: inherit; }
.input:focus { border-color: var(--orange); background: rgba(245,166,35,0.04); }
.input::placeholder { color: #444; }
textarea.input { resize: vertical; min-height: 120px; }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.alert-ok  { background: rgba(63,185,80,0.1); border: 1px solid rgba(63,185,80,0.3); color: var(--ok); }
.alert-err { background: rgba(248,81,73,0.1); border: 1px solid rgba(248,81,73,0.3); color: var(--err); }
.alert-info { background: rgba(88,166,255,0.1); border: 1px solid rgba(88,166,255,0.3); color: var(--link); }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.card-hover { transition: border-color var(--transition), transform var(--transition); }
.card-hover:hover { border-color: var(--orange); transform: translateY(-4px); }

/* ── Layout ── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-content { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 80px; }
.page-narrow { max-width: 680px; margin: 0 auto; }
.page-medium { max-width: 860px; margin: 0 auto; }
.page-hero { text-align: center; padding: calc(var(--nav-h) + 60px) 24px 60px; }
.page-hero .badge { display: inline-block; background: var(--orange-dim); border: 1px solid rgba(245,166,35,0.3); color: var(--orange); font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 20px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero h1 span { color: var(--orange); }
.page-hero p { font-size: 18px; max-width: 560px; margin: 0 auto; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-label { text-align: center; font-size: 11px; font-weight: 700; color: var(--orange); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; max-width: 500px; margin: 0 auto 56px; font-size: 17px; }
.section-dark { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Hero ── */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 80px; background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,166,35,0.15) 0%, transparent 60%); position: relative; overflow: hidden; }
.hero-badge { display: inline-block; background: var(--orange-dim); border: 1px solid rgba(245,166,35,0.3); color: var(--orange); font-size: 12px; font-weight: 600; padding: 6px 16px; border-radius: 20px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 28px; animation: fadeInUp 0.6s ease; }
.hero h1 { margin-bottom: 20px; animation: fadeInUp 0.6s ease 0.1s both; }
.hero h1 span { color: var(--orange); }
.hero > p { font-size: clamp(16px, 2vw, 20px); max-width: 560px; margin-bottom: 40px; animation: fadeInUp 0.6s ease 0.2s both; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; animation: fadeInUp 0.6s ease 0.3s both; }
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; animation: fadeInUp 0.6s ease 0.4s both; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); color: var(--text); padding: 12px 20px; border-radius: var(--radius-sm); font-size: 13px; transition: all var(--transition); }
.store-btn:hover { border-color: var(--orange); color: var(--text); transform: translateY(-2px); }
.store-btn svg { width: 22px; height: 22px; fill: var(--text); flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.store-btn-text small { font-size: 10px; color: var(--muted); }
.store-btn-text strong { font-size: 14px; }

/* ── Features ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: all var(--transition); }
.feature-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.feature-icon { width: 48px; height: 48px; background: var(--orange-dim); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.feature-card h3 { color: var(--text); margin-bottom: 10px; font-size: 16px; }
.feature-card p { font-size: 14px; line-height: 1.7; }

/* ── Steps ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-num { width: 52px; height: 52px; background: var(--orange); color: #000; border-radius: 50%; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: 0 0 0 8px rgba(245,166,35,0.1); }
.step h3 { color: var(--text); margin-bottom: 10px; }

/* ── Pricing ── */
.pricing-card { max-width: 420px; margin: 0 auto; background: var(--card); border: 1px solid var(--orange); border-radius: 20px; padding: 40px 36px; text-align: center; box-shadow: 0 0 60px rgba(245,166,35,0.1); position: relative; overflow: hidden; }
.pricing-badge { display: inline-block; background: var(--orange); color: #000; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 24px; letter-spacing: 0.5px; text-transform: uppercase; }
.pricing-price { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -2px; margin-bottom: 6px; }
.pricing-price span { font-size: 20px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pricing-trial { font-size: 14px; color: var(--orange); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; text-align: left; }
.pricing-features li { font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; color: var(--muted); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--orange); font-weight: 800; flex-shrink: 0; font-size: 15px; }

/* ── Auth Pages ── */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245,166,35,0.07) 0%, transparent 60%); }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h1 { font-size: 28px; margin-bottom: 10px; }
.auth-header h1 span { color: var(--orange); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.auth-footer a { color: var(--orange); }

/* ── Archive ── */
.archive-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-user { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.nav-logout { font-size: 13px; color: var(--muted); padding: 5px 12px; border: 1px solid var(--border); border-radius: 6px; transition: all var(--transition); }
.nav-logout:hover { color: var(--err); border-color: var(--err); }
.archive-layout { display: flex; flex: 1; min-height: calc(100vh - 52px); }
.sidebar { width: 220px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); padding: 20px 12px; align-self: flex-start; position: sticky; top: 52px; max-height: calc(100vh - 52px); overflow-y: auto; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; padding: 0 8px; }
.sidebar-link { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--muted); font-size: 13px; margin-bottom: 2px; transition: all var(--transition); }
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.sidebar-link.active { color: var(--orange); background: var(--orange-dim); }
.archive-main { flex: 1; padding: 24px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.page-title { font-size: 18px; font-weight: 700; }

/* ── Grid / Clips ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.clip-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all var(--transition); }
.clip-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow); }
.clip-thumb { height: 130px; background: #000; display: flex; justify-content: center; align-items: center; }
.play-btn { width: 48px; height: 48px; background: rgba(245,166,35,0.85); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 18px; color: #000; transition: transform var(--transition); }
.clip-card:hover .play-btn { transform: scale(1.1); }
.clip-info { padding: 12px; }
.clip-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.clip-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.empty-state { text-align: center; padding: 60px; color: var(--muted); }
.pagination { display: flex; gap: 6px; margin-top: 24px; justify-content: center; }

/* ── Modal ── */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(4px); }
.modal.open { display: flex; animation: fadeIn 0.15s ease; }
.modal-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); width: 100%; max-width: 820px; overflow: hidden; box-shadow: var(--shadow); }
.modal-hdr { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.modal-ftr { padding: 10px 20px; border-top: 1px solid var(--border); }

/* ── Badge / Table / Stats ── */
.badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--border); color: var(--muted); }
.badge-ok { background: rgba(63,185,80,0.15); color: var(--ok); }
.badge-err { background: rgba(248,81,73,0.15); color: var(--err); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
tr:hover td { background: rgba(255,255,255,0.02); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 28px; font-weight: 800; margin-top: 8px; color: var(--orange); }

/* ── Verify / Simple ── */
.center-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 24px; }
.brand { font-size: 22px; font-weight: 800; color: var(--orange); margin-bottom: 24px; }
.icon-ok { font-size: 40px; color: var(--ok); margin-bottom: 16px; }
.icon-err { font-size: 40px; color: var(--err); margin-bottom: 16px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.info-icon { width: 48px; height: 48px; background: var(--orange-dim); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.info-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.info-value { font-size: 16px; font-weight: 600; color: var(--text); }
.info-value a { color: var(--orange); }

/* ── About ── */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 32px; }
.value-card { background: rgba(245,166,35,0.05); border: 1px solid rgba(245,166,35,0.15); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: all var(--transition); }
.value-card:hover { background: rgba(245,166,35,0.1); transform: translateY(-3px); }
.value-icon { font-size: 32px; margin-bottom: 14px; }
.value-card h3 { color: var(--text); margin-bottom: 10px; }

/* ── Privacy ── */
.privacy-content h2 { font-size: 20px; margin: 36px 0 12px; color: var(--text); }
.privacy-content p { margin-bottom: 14px; }
.privacy-content ul { margin: 12px 0 16px 24px; color: var(--muted); }
.privacy-content ul li { margin-bottom: 6px; line-height: 1.7; }
.privacy-updated { font-size: 13px; color: var(--muted); margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }

/* ── Footer ── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 20px; font-weight: 800; color: var(--orange); margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.8; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px; }

/* ── Log ── */
.log-content { background: #0d1117; color: #ccc; font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.8; white-space: pre-wrap; padding: 20px; max-height: calc(100vh - 200px); overflow-y: auto; border-radius: 0 0 var(--radius-sm) var(--radius-sm); border: 1px solid var(--border); border-top: none; }

/* ── Animations ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-in { animation: fadeInUp 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Utils ── */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* ── Responsive ── */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-center { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 20px; gap: 4px; transform: none; left: 0; }
  .nav-center.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 100px 20px 60px; }
  .contact-grid { grid-template-columns: 1fr; }
  .archive-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--border); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .card { padding: 20px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}
