/* ============================================================
   QuikConvert — style.css
   Dark theme, gold accents, glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #1a1a1a;
  --gold:        #FFD700;
  --gold-2:      #FFA500;
  --glass:       rgba(255,215,0,0.05);
  --glass-b:     rgba(255,215,0,0.15);
  --text:        #f0f0f0;
  --muted:       #888;
  --danger:      #ff4444;
  --success:     #00c853;
  --radius:      14px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--gold-2); border-radius: 3px; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,215,0,0.12);
}
.navbar-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 1.35rem; font-weight: 800;
  background: linear-gradient(135deg,#FFD700,#FFA500);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-decoration: none; letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-link {
  padding: 6px 14px; border-radius: 8px; font-size: 0.9rem;
  font-weight: 400; color: #aaa; text-decoration: none;
  border: 1px solid transparent; transition: all 0.2s;
}
.nav-link:hover { color: var(--gold); border-color: var(--glass-b); background: var(--glass); }
.nav-link.active { color: var(--gold); background: rgba(255,215,0,0.1); border-color: rgba(255,215,0,0.2); font-weight: 600; }
.hamburger {
  display: none; background: transparent; border: none;
  color: var(--gold); font-size: 1.5rem; cursor: pointer; padding: 4px;
}
.mobile-menu {
  display: none; flex-direction: column;
  background: rgba(17,17,17,0.98);
  border-top: 1px solid rgba(255,215,0,0.1);
  padding: 12px 24px 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  border-radius: 0; border-left: none; border-right: none; border-top: none;
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* ── Page wrapper ── */
.page { max-width: 1100px; margin: 0 auto; padding: 48px 24px 80px; }
.page-sm { max-width: 640px; margin: 0 auto; padding: 48px 24px 80px; }
.page-md { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }

/* ── Page heading ── */
.page-title {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg,#FFD700,#FFA500);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 6px;
}
.page-sub { color: var(--muted); margin-bottom: 36px; font-size: 0.95rem; }

/* ── Glass card ── */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 28px;
}

/* ── Section label ── */
.section-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}

/* ── Inputs ── */
input, select, textarea {
  font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; color: var(--text);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}
input[type="text"], input[type="number"], input[type="date"],
textarea { padding: 12px 16px; font-size: 1rem; }
select { padding: 11px 12px; font-size: 0.9rem; cursor: pointer; }
select option { background: #1a1a1a; color: var(--text); }
textarea { resize: vertical; }
label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }

/* ── Buttons ── */
.btn {
  cursor: pointer; border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 0.95rem; transition: all 0.2s ease;
  padding: 13px 24px; display: inline-block;
}
.btn-gold {
  background: linear-gradient(135deg,#FFD700,#FFA500);
  color: #000; width: 100%;
}
.btn-gold:hover { background: linear-gradient(135deg,#FFE033,#FFB800); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,215,0,0.3); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { color: var(--gold); border-color: var(--glass-b); background: var(--glass); }
.btn-icon { width: 44px; height: 44px; font-size: 1.2rem; padding: 0; display: flex; align-items: center; justify-content: center; }

/* ── Feedback ── */
.error   { color: var(--danger); font-size: 0.85rem; font-weight: 500; margin-top: 8px; }
.success { color: var(--success); font-size: 0.85rem; font-weight: 500; margin-top: 8px; }

/* ── Result box ── */
.result-box {
  margin-top: 20px; padding: 18px 22px;
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 14px;
}
.result-label { color: var(--muted); font-size: 0.8rem; margin-bottom: 4px; }
.result-value { font-size: 2rem; font-weight: 800; color: var(--gold); letter-spacing: -1px; }
.result-sub { color: #666; font-size: 0.82rem; margin-top: 8px; }

/* ── Divider ── */
.divider { height: 1px; background: linear-gradient(90deg,transparent,rgba(255,215,0,0.3),transparent); margin: 40px 0; }

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-3 { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.grid-3 .tool-card { width: clamp(260px, 30vw, 340px); flex-shrink: 0; }
.from-to { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
@media (max-width: 500px) {
  .from-to { grid-template-columns: 1fr; }
  .btn-icon { display: none; }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(16px); }
  to   { opacity:1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.35s ease forwards; }

@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 24px rgba(255,215,0,0.1); }
  50%      { box-shadow: 0 0 40px rgba(255,215,0,0.25); }
}
.glow { animation: pulseGlow 3s ease-in-out infinite; }

/* ═══════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════ */
.hero { text-align: center; margin-bottom: 72px; }
.badge {
  display: inline-block; padding: 5px 16px; border-radius: 100px;
  background: rgba(255,215,0,0.08); border: 1px solid rgba(255,215,0,0.2);
  font-size: 0.75rem; font-weight: 600; color: var(--gold);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.5rem,6vw,4.5rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -2px; margin-bottom: 20px;
}
.gold-text {
  background: linear-gradient(135deg,#FFD700,#FFA500,#FFD700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: clamp(1rem,2vw,1.15rem); color: var(--muted); max-width: 520px; margin: 0 auto 36px; line-height: 1.7; }
.tool-card {
  background: var(--glass); border: 1px solid var(--glass-b); border-radius: var(--radius);
  padding: 26px 22px; text-decoration: none; display: block; transition: all 0.25s;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,215,0,0.4);
  box-shadow: 0 8px 32px rgba(255,215,0,0.1);
}
.tool-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 14px;
}
.tool-name { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.tool-desc { font-size: 0.85rem; color: #666; line-height: 1.5; }
.tool-link { margin-top: 18px; font-size: 0.82rem; color: var(--gold); font-weight: 600; }

/* ═══════════════════════════════════════════
   CALCULATOR
═══════════════════════════════════════════ */
.calc-screen {
  background: rgba(0,0,0,0.5); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 14px;
  border: 1px solid rgba(255,215,0,0.1); min-height: 88px;
}
.calc-expr { color: #555; font-size: 0.8rem; min-height: 18px; text-align: right; }
.calc-display {
  text-align: right; font-size: 2.2rem; font-weight: 700;
  color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -1px;
  overflow-x: auto; white-space: nowrap; margin-top: 4px;
}
.calc-display.error-state { color: var(--danger); }
.calc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px;
}
.calc-btn {
  height: 56px; border-radius: 12px; font-size: 1.1rem;
  font-weight: 600; cursor: pointer; border: none;
  transition: all 0.15s ease; font-family: 'Inter', sans-serif;
}
.calc-btn.digit  { background: rgba(255,255,255,0.06); color: #fff; }
.calc-btn.op     { background: rgba(255,215,0,0.15); color: var(--gold); }
.calc-btn.func   { background: rgba(255,255,255,0.1); color: #ddd; }
.calc-btn.equals { background: linear-gradient(135deg,#FFD700,#FFA500); color: #000; }
.calc-btn.del    { background: rgba(255,68,68,0.15); color: #ff6666; }
.calc-btn.zero   { grid-column: span 2; text-align: left; padding-left: 20px; }
.calc-btn:hover  { opacity: 0.82; transform: scale(0.97); }
.calc-btn.pressed { transform: scale(0.93); opacity: 0.7; }

/* ═══════════════════════════════════════════
   CONVERTER — category chips
═══════════════════════════════════════════ */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: 5px 13px; border-radius: 100px; font-size: 0.8rem; font-weight: 500;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03); color: var(--muted);
  transition: all 0.2s;
}
.chip.active, .chip:hover { color: var(--gold); border-color: rgba(255,215,0,0.4); background: rgba(255,215,0,0.1); }

/* ═══════════════════════════════════════════
   CURRENCY
═══════════════════════════════════════════ */
.currency-result-main { font-size: 1.9rem; font-weight: 800; color: var(--gold); letter-spacing: -1px; margin-bottom: 6px; }
.currency-result-rate { font-size: 0.85rem; color: #777; margin-bottom: 4px; }
.currency-result-time { font-size: 0.75rem; color: #555; }

/* ═══════════════════════════════════════════
   AGE
═══════════════════════════════════════════ */
.age-main { font-size: 3.5rem; font-weight: 800; color: var(--gold); letter-spacing: -2px; line-height: 1; }
.age-main span { font-size: 1.2rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.age-sub { color: var(--muted); margin-top: 8px; margin-bottom: 20px; font-size: 1rem; }
.age-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.age-stat {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 12px 14px; text-align: center;
  font-size: 0.75rem; color: #666;
}
.age-stat span { display: block; font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.age-bday {
  padding: 12px 16px; border-radius: 12px; font-weight: 600;
  font-size: 0.9rem; color: var(--gold);
  background: rgba(255,215,0,0.06); border: 1px solid rgba(255,215,0,0.15);
}
.age-bday.today { background: rgba(0,200,83,0.08); border-color: rgba(0,200,83,0.25); color: var(--success); }

/* ═══════════════════════════════════════════
   QR
═══════════════════════════════════════════ */
.qr-size-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.qr-size-btn {
  padding: 6px 13px; border-radius: 8px; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03); color: var(--muted);
  transition: all 0.2s;
}
.qr-size-btn.active { color: var(--gold); border-color: rgba(255,215,0,0.4); background: rgba(255,215,0,0.1); }
#qr-container {
  display: none; text-align: center; margin-top: 28px;
}
#qr-wrapper {
  display: inline-block; padding: 14px; background: #fff;
  border-radius: 16px; border: 2px solid rgba(255,215,0,0.3);
  box-shadow: 0 0 40px rgba(255,215,0,0.15);
}
#qr-img { display: block; border-radius: 6px; }
.qr-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.qr-actions .btn { width: auto; }
.footer-note { color: #444; font-size: 0.78rem; text-align: center; margin-top: 14px; }

/* ═══════════════════════════════════════════
   SIP CALCULATOR
═══════════════════════════════════════════ */
.input-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-weight: 600; font-size: 1rem; pointer-events: none;
}
.input-suffix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-weight: 600; pointer-events: none;
}
input.has-prefix  { padding-left: 32px  !important; }
input.has-suffix  { padding-right: 42px !important; }

.sip-stat {
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
.sip-returns { background: rgba(0,200,83,0.06) !important; border-color: rgba(0,200,83,0.15) !important; }
.sip-stat-label { font-size: 0.75rem; color: #666; margin-bottom: 4px; }
.sip-stat-val   { font-size: 1.15rem; font-weight: 700; color: #fff; }
.sip-stat-val.green { color: #00c853; }

.sip-bar-track {
  height: 10px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  overflow: hidden; display: flex;
}
.sip-bar-invested {
  background: linear-gradient(90deg, #FFD700, #FFA500);
  transition: width 0.5s ease;
}
.sip-bar-returns {
  background: linear-gradient(90deg, #00c853, #00e676);
  transition: width 0.5s ease;
}

.sip-mini-stat {
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.sip-mini-label { font-size: 0.72rem; color: #555; margin-bottom: 3px; }
.sip-mini-stat > div:last-child { font-size: 0.95rem; font-weight: 600; color: #ccc; }

/* ═══════════════════════════════════════════
   SEO CONTENT SECTION
═══════════════════════════════════════════ */
.seo-section {
  max-width: 820px; margin: 0 auto;
  padding: 48px 24px 72px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.seo-section h2 {
  font-size: 1.15rem; font-weight: 700; color: #ccc;
  margin-top: 32px; margin-bottom: 10px;
}
.seo-section h2:first-child { margin-top: 0; }
.seo-section p {
  color: #555; font-size: 0.9rem; line-height: 1.8;
}
.tool-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tool-links a {
  padding: 7px 16px; border-radius: 8px; font-size: 0.83rem;
  font-weight: 500; color: var(--gold);
  background: rgba(255,215,0,0.07);
  border: 1px solid rgba(255,215,0,0.18);
  text-decoration: none; transition: all 0.2s;
}
.tool-links a:hover { background: rgba(255,215,0,0.14); }

/* ═══════════════════════════════════════════
   HOME — CTA ROW
═══════════════════════════════════════════ */
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-bottom: 48px;
}
.cta-btn {
  padding: 11px 22px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--gold);
  background: rgba(255,215,0,0.07);
  border: 1px solid rgba(255,215,0,0.18);
  text-decoration: none; transition: all 0.22s;
}
.cta-btn:hover {
  background: rgba(255,215,0,0.15);
  border-color: rgba(255,215,0,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,215,0,0.12);
}

/* ═══════════════════════════════════════════
   DOCUMENT CONVERTER
═══════════════════════════════════════════ */
.doc-accept-note {
  font-size: 0.78rem; color: #555; margin-bottom: 18px;
}
.doc-dropzone {
  border: 2px dashed rgba(255,215,0,0.25);
  border-radius: 14px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s;
  background: rgba(255,215,0,0.02);
}
.doc-dropzone:hover,
.doc-dropzone.dragover {
  border-color: rgba(255,215,0,0.55);
  background: rgba(255,215,0,0.06);
}
.doc-dropzone-sm { padding: 20px 16px; }
.doc-drop-icon  { font-size: 2.6rem; margin-bottom: 10px; }
.doc-drop-title { font-size: 1rem; font-weight: 600; color: #ccc; margin-bottom: 6px; }
.doc-drop-sub   { font-size: 0.82rem; color: #555; }

.doc-file-info {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; margin-top: 10px;
}
.doc-file-icon { font-size: 1.2rem; }
.doc-file-name { flex: 1; font-size: 0.88rem; color: #ddd; word-break: break-all; }
.doc-file-size { font-size: 0.78rem; color: #555; white-space: nowrap; }
.doc-file-remove {
  background: none; border: none; color: #555;
  cursor: pointer; font-size: 1rem; padding: 2px 6px;
  border-radius: 6px; transition: color 0.2s;
}
.doc-file-remove:hover { color: var(--danger); }

.doc-status {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(255,215,0,0.05);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 10px; margin-top: 14px;
  color: #aaa; font-size: 0.88rem;
}
.doc-spinner {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid rgba(255,215,0,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.doc-result-inner {
  display: flex; align-items: center; gap: 16px;
}
.doc-result-icon { font-size: 2.2rem; }
.doc-result-name { font-size: 1rem; font-weight: 600; color: #ddd; margin-bottom: 4px; }
.doc-result-sub  { font-size: 0.82rem; color: #555; }

.doc-formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-top: 28px;
}
.doc-format-card {
  padding: 18px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; text-align: center;
  transition: border-color 0.2s;
}
.doc-format-card:hover { border-color: rgba(255,215,0,0.25); }
.doc-format-icon { font-size: 1.8rem; margin-bottom: 8px; }
.doc-format-name { font-size: 0.9rem; font-weight: 600; color: #ddd; margin-bottom: 4px; }
.doc-format-desc { font-size: 0.75rem; color: #555; line-height: 1.5; }
