*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111;
  --blue: #0070f3;
  --gray: #666;
  --light: #f5f5f5;
  --border: #e5e5e5;
  --radius: 12px;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--black); background: #fff; }

/* NAV */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 10; }
.logo { font-size: 20px; font-weight: 800; } .logo span { color: var(--blue); }
.app-nav { gap: 16px; flex-wrap: wrap; }
.nav-tabs { display: flex; gap: 4px; background: var(--light); padding: 4px; border-radius: var(--radius); }
.tab-btn { padding: 8px 16px; border: none; background: none; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--gray); }
.tab-btn.active { background: #fff; color: var(--black); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.nav-user { display: flex; align-items: center; gap: 12px; }
#user-badge { font-size: 13px; color: var(--gray); }

/* HERO */
.hero { text-align: center; padding: 80px 24px 60px; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 900; line-height: 1.1; margin-bottom: 16px; }
.hero h1 span { color: var(--blue); }
.hero p { font-size: 18px; color: var(--gray); margin-bottom: 32px; }
.url-demo { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.url-demo input { flex: 1; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 15px; }
.url-demo input:focus { outline: none; border-color: var(--blue); }

/* FEATURES */
.features { display: flex; gap: 24px; justify-content: center; padding: 40px 24px; flex-wrap: wrap; background: var(--light); }
.feature { text-align: center; padding: 24px; background: #fff; border-radius: 16px; width: 200px; }
.feature-icon { font-size: 36px; margin-bottom: 12px; }
.feature h3 { font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--gray); }

/* PRICING */
.pricing { padding: 80px 24px; text-align: center; }
.pricing h2 { font-size: 32px; font-weight: 800; margin-bottom: 32px; }
.price-card { max-width: 340px; margin: 0 auto; border: 2px solid var(--black); border-radius: 20px; padding: 32px; position: relative; }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--black); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.price-amount { font-size: 52px; font-weight: 900; margin: 16px 0; } .price-amount span { font-size: 24px; color: var(--gray); }
.price-card ul { list-style: none; text-align: left; margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.price-card ul li { font-size: 15px; }
.price-note { font-size: 13px; color: var(--gray); margin-top: 12px; }

/* FOOTER */
footer { padding: 24px; text-align: center; color: var(--gray); font-size: 14px; border-top: 1px solid var(--border); }

/* BUTTONS */
.btn-primary { background: var(--black); color: #fff; border: none; padding: 14px 24px; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.btn-primary:hover { opacity: .85; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--black); border: 2px solid var(--black); padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-link { background: none; border: none; color: var(--blue); cursor: pointer; font-size: 14px; padding: 8px 0; }
.full { width: 100%; }

/* MODAL */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal.hidden { display: none; }
.modal-box { background: #fff; border-radius: 20px; padding: 32px; width: 100%; max-width: 400px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray); }
.modal-box h2 { font-size: 24px; font-weight: 800; }
.modal-box p { color: var(--gray); font-size: 14px; }
.modal-box input { padding: 14px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 16px; width: 100%; }
.modal-box input:focus { outline: none; border-color: var(--black); }
.otp-input { text-align: center; font-size: 28px; letter-spacing: 8px; }
.auth-toggle { font-size: 14px; color: var(--gray); text-align: center; cursor: pointer; }
.auth-toggle span { color: var(--blue); font-weight: 600; }

/* APP TABS */
.tab-content { padding: 24px; max-width: 640px; margin: 0 auto; }
.download-box { display: flex; gap: 8px; margin-bottom: 24px; }
.download-box input { flex: 1; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 15px; }
.download-box input:focus { outline: none; border-color: var(--black); }

/* PREVIEW CARD */
.preview-card { border: 2px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.preview-card img { width: 100%; max-height: 240px; object-fit: cover; }
.preview-info { padding: 16px; }
.platform-badge { display: inline-block; background: var(--light); padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.preview-info p { font-weight: 600; margin: 8px 0 4px; }
.duration { font-size: 13px; color: var(--gray); }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; margin: 12px 16px; }
.progress-fill { height: 100%; background: var(--blue); border-radius: 2px; width: 0%; transition: width .3s; }
#progress-text { font-size: 13px; color: var(--gray); padding: 0 16px 8px; display: block; }
#download-btn { margin: 0 16px 16px; width: calc(100% - 32px); background: var(--blue); }

/* QUOTA BANNER */
.quota-banner { background: #fff8e1; border: 2px solid #f59e0b; border-radius: 16px; padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 12px; }

/* FEED */
#feed-list { display: flex; flex-direction: column; gap: 1px; }
.feed-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.feed-thumb { width: 80px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--light); flex-shrink: 0; }
.feed-info { flex: 1; min-width: 0; }
.feed-platform { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--gray); }
.feed-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-date { font-size: 12px; color: var(--gray); margin-top: 2px; }
.feed-delete { background: none; border: none; color: #ccc; font-size: 18px; cursor: pointer; padding: 8px; flex-shrink: 0; }
.feed-delete:hover { color: #ef4444; }
.empty-state { text-align: center; color: var(--gray); padding: 40px 0; }

/* UTILS */
.hidden { display: none !important; }
@media (max-width: 480px) {
  .url-demo { flex-direction: column; }
  .download-box { flex-direction: column; }
  .nav-tabs { display: none; }
}
