/* ============================================================
   Quantralux Tool Style — WHOIS & Domain Intelligence
   ============================================================ */

:root {
  --navy: #0A1A2F; --navy-soft: #153A7A; --gold: #D4AF37; --gold-dark: #B8960F;
  --bg: #0A1A2F; --text-main: #F2F4F7; --text-muted: #C8D0DC;
  --card-bg: #FFFFFF; --card-border: rgba(21, 58, 122, 0.2);
  --btn-primary: #1E4A7A; --btn-primary-hover: #1B449B; --divider: #153A7A;
  --success: #16a34a; --danger: #dc2626; --warning: #d97706;
  --accent: #D4AF37; --text-primary: #1a1a2e; --text-secondary: #4a5568;
}
body.dark-mode {
  --navy: #0a1628; --navy-soft: #111d33; --gold: #00d4ff; --gold-dark: #0099cc;
  --bg: #0a1628; --text-main: #ffffff; --text-muted: #B0BEC5;
  --card-bg: #f8f9fc; --card-border: rgba(0, 212, 255, 0.2);
  --btn-primary: #00d4ff; --btn-primary-hover: #0099cc; --divider: #153A7A;
  --success: #22c55e; --danger: #ef4444; --warning: #f59e0b;
  --accent: #00d4ff; --text-primary: #1a1a2e; --text-secondary: #4a5568;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text-main); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background 0.4s ease, color 0.4s ease; }
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse at center, #1B449B 0%, #153A7A 40%, #0A1A2F 100%); z-index: -1; pointer-events: none; }
body.dark-mode::before { background: radial-gradient(ellipse at center, #0f1f38 0%, #111d33 40%, #0a1628 100%); }
a { color: inherit; text-decoration: none; } img { max-width: 100%; height: auto; } button { cursor: pointer; font-family: inherit; }
.lang-en, .lang-fr { display: none; }
.theme-toggle { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-soft); border: 2px solid var(--card-border); color: var(--gold); font-size: 1.3rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 9998; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.theme-toggle:hover { transform: scale(1.1); border-color: var(--gold); }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 7vw; background: linear-gradient(135deg, rgba(10,26,47,0.95), rgba(21,58,122,0.98)); backdrop-filter: blur(20px); border-bottom: 2px solid var(--gold); position: sticky; top: 0; z-index: 20; }
body.dark-mode .site-header { background: linear-gradient(135deg, rgba(10,22,40,0.95), rgba(17,29,51,0.98)); }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 800; font-size: 22px; box-shadow: 0 8px 18px rgba(212,175,55,0.3); }
body.dark-mode .logo-mark { box-shadow: 0 8px 18px rgba(0,212,255,0.3); }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-weight: 700; letter-spacing: 0.04em; font-size: 16px; color: var(--text-main); }
.logo-subtitle { font-size: 12px; color: var(--text-muted); }
.main-nav a { color: var(--text-muted); margin-left: 24px; font-size: 14px; font-weight: 500; position: relative; transition: color 0.2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width 0.2s ease; }
.main-nav a:hover { color: var(--gold); } .main-nav a:hover::after { width: 100%; }
main { flex: 1; }
.hero { padding: 60px 7vw 40px 7vw; display: flex; align-items: center; justify-content: center; background: transparent; }
.hero-content { max-width: 720px; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px; color: var(--text-main); }
.hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto 24px auto; font-size: 1.05rem; line-height: 1.7; }
.section { padding: 60px 7vw; background: transparent; }
.section-tag { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 28px; font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
.btn-primary { background: var(--btn-primary); color: #FFF; box-shadow: 0 4px 15px rgba(27,68,155,0.3); }
.btn-primary:hover { background: var(--btn-primary-hover); transform: translateY(-2px); }
body.dark-mode .btn-primary { background: var(--gold); color: var(--navy); }
body.dark-mode .btn-primary:hover { background: var(--gold-dark); }
.btn-secondary { background: transparent; border-color: var(--card-border); color: var(--gold); }
.btn-secondary:hover { background: rgba(212,175,55,0.1); border-color: var(--gold); }
body.dark-mode .btn-secondary:hover { background: rgba(0,212,255,0.1); }
.btn-danger { background: var(--danger); color: #FFF; }
.btn-danger:hover { opacity: 0.9; transform: translateY(-2px); }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold); font-size: 0.9rem; font-weight: 600; margin-bottom: 1.5rem; transition: all 0.3s; }
.back-link:hover { transform: translateX(-3px); }
.site-footer { text-align: center; font-size: 12px; color: var(--text-muted); padding: 16px 7vw 20px 7vw; border-top: 1px solid var(--card-border); background: var(--navy); }
body.dark-mode .site-footer { background: linear-gradient(135deg, rgba(17,29,51,0.95), rgba(10,22,40,0.98)); }
.lang-switcher { position: fixed; top: 20px; right: 20px; background: var(--navy-soft); color: var(--gold); border: 2px solid var(--gold); padding: 10px 15px; border-radius: 25px; cursor: pointer; z-index: 1001; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(212,175,55,0.2); }
body.dark-mode .lang-switcher { box-shadow: 0 2px 10px rgba(0,212,255,0.2); }
.lang-switcher:hover { transform: scale(1.05); background: rgba(212,175,55,0.15); }
body.dark-mode .lang-switcher:hover { background: rgba(0,212,255,0.15); }
.lang-btn-en, .lang-btn-fr { display: none; }
[lang="en"] .lang-btn-fr { display: inline; }
[lang="fr"] .lang-btn-en { display: inline; }
.hamburger-menu { position: fixed; top: 20px; left: 20px; width: 35px; height: 30px; cursor: pointer; z-index: 1001; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.3s ease; }
.hamburger-menu:hover { transform: scale(1.1); }
.hamburger-menu span { display: block; height: 4px; background: var(--gold); border-radius: 2px; transition: all 0.3s ease; }
.sidebar-menu { position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: linear-gradient(180deg, var(--navy), var(--navy-soft)); box-shadow: 2px 0 15px rgba(0,0,0,0.5); transition: left 0.3s ease; z-index: 1000; overflow-y: auto; padding: 130px 20px 20px 20px; }
body.dark-mode .sidebar-menu { background: linear-gradient(180deg, rgba(10,22,40,0.98), rgba(15,31,56,0.98)); }
.sidebar-menu.active { left: 0; }
.sidebar-menu h3 { color: var(--gold); font-size: 1em; margin: 25px 0 15px 0; padding-bottom: 8px; border-bottom: 2px solid var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-menu h3:first-child { margin-top: 0; }
.sidebar-menu a { display: block; color: var(--text-main); text-decoration: none; padding: 12px 15px; margin: 5px 0; border-radius: 8px; transition: all 0.3s ease; font-size: 1.05em; }
.sidebar-menu a:hover { background: rgba(212,175,55,0.15); transform: translateX(8px); color: var(--gold); }
body.dark-mode .sidebar-menu a:hover { background: rgba(0,212,255,0.15); }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.sidebar-overlay.active { opacity: 1; visibility: visible; }

/* ===== TOOL CONTAINER ===== */
.tool-container { background: var(--card-bg); color: #1a1a2e; border-radius: 18px; padding: 32px; border: 1px solid var(--card-border); box-shadow: 0 10px 30px rgba(0,0,0,0.3); max-width: 900px; margin: 0 auto; }
body.dark-mode .tool-container { color: #1a1a2e; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; justify-content: center; }
.tab-btn { padding: 12px 24px; border-radius: 12px; border: 1px solid var(--card-border); background: rgba(255,255,255,0.05); color: var(--text-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.tab-btn:hover { border-color: var(--gold); color: var(--gold); }
.tab-btn.active { background: var(--gold); color: var(--navy); border-color: var(--gold); box-shadow: 0 4px 15px rgba(212,175,55,0.3); }
body.dark-mode .tab-btn.active { background: var(--gold); color: var(--navy); box-shadow: 0 4px 15px rgba(0,212,255,0.3); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== INPUTS ===== */
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; }
body.dark-mode .input-group label { color: #1a1a2e; }
.input-row { display: flex; gap: 12px; }
.input-row input { flex: 1; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--card-border); font-size: 15px; font-family: inherit; background: #f8f9fc; color: #1a1a2e; outline: none; transition: border-color 0.2s; }
.input-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
body.dark-mode .input-row input { background: #eef0f5; }
textarea { width: 100%; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--card-border); font-size: 15px; font-family: inherit; background: #f8f9fc; color: #1a1a2e; outline: none; resize: vertical; transition: border-color 0.2s; }
textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
body.dark-mode textarea { background: #eef0f5; }
.input-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ===== STATUS ===== */
.status-area { display: none; padding: 12px 18px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.status-area.show { display: block; }
.status-area.loading { background: rgba(212,175,55,0.1); color: var(--gold); border: 1px solid rgba(212,175,55,0.3); }
.status-area.error { background: rgba(220,38,38,0.1); color: var(--danger); border: 1px solid rgba(220,38,38,0.3); }
.status-area.success { background: rgba(22,163,74,0.1); color: var(--success); border: 1px solid rgba(22,163,74,0.3); }

/* ===== RESULTS ===== */
.result-area { margin-top: 20px; }

/* WHOIS Result Cards */
.whois-card { background: #f8f9fc; border-radius: 12px; padding: 20px; margin-bottom: 12px; border: 1px solid var(--card-border); }
body.dark-mode .whois-card { background: #eef0f5; }
.whois-card h4 { font-size: 13px; font-weight: 700; color: var(--navy-soft); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--card-border); }
.whois-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.whois-row:last-child { border-bottom: none; }
.whois-row .label { font-weight: 600; color: #4a5568; flex: 0 0 160px; }
.whois-row .value { color: #1a1a2e; flex: 1; text-align: right; word-break: break-all; }
.raw-whois { margin-top: 16px; }
.raw-whois-toggle { background: none; border: 1px solid var(--card-border); color: var(--navy-soft); padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.raw-whois-toggle:hover { border-color: var(--gold); color: var(--gold); }
.raw-whois-content { display: none; margin-top: 12px; background: #1a1a2e; color: #a8ff60; padding: 16px; border-radius: 8px; font-family: 'Courier New', monospace; font-size: 12px; white-space: pre-wrap; max-height: 400px; overflow-y: auto; }
.raw-whois-content.show { display: block; }

/* Domain Scanner Grid */
.domain-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.domain-card { background: #f8f9fc; border-radius: 12px; padding: 16px; border: 1px solid var(--card-border); transition: all 0.2s; }
body.dark-mode .domain-card { background: #eef0f5; }
.domain-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.domain-card .domain-name { font-size: 16px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.domain-card .domain-tld { font-size: 12px; color: var(--text-muted); }
.domain-card .domain-status { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; margin-top: 8px; }
.domain-card .domain-status.available { background: rgba(22,163,74,0.15); color: var(--success); }
.domain-card .domain-status.unavailable { background: rgba(220,38,38,0.15); color: var(--danger); }
.domain-card .domain-status.error { background: rgba(217,119,6,0.15); color: var(--warning); }

/* Expiry Monitor Table */
.expiry-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.expiry-table th { background: var(--navy-soft); color: #FFF; padding: 12px 16px; text-align: left; font-weight: 600; }
.expiry-table th:first-child { border-radius: 8px 0 0 0; }
.expiry-table th:last-child { border-radius: 0 8px 0 0; }
.expiry-table td { padding: 10px 16px; border-bottom: 1px solid var(--card-border); color: #1a1a2e; }
.expiry-table tr:hover td { background: rgba(212,175,55,0.05); }
.expiry-table .domain-cell { font-weight: 600; }
.expiry-table .expiry-cell { font-weight: 500; }
.expiry-table .days-cell { font-weight: 600; }
.expiry-table .days-cell.urgent { color: var(--danger); }
.expiry-table .days-cell.warning { color: var(--warning); }
.expiry-table .days-cell.safe { color: var(--success); }
.expiry-table .status-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.expiry-table .status-badge.expiring { background: rgba(220,38,38,0.15); color: var(--danger); }
.expiry-table .status-badge.active { background: rgba(22,163,74,0.15); color: var(--success); }
.expiry-table .status-badge.unknown { background: rgba(217,119,6,0.15); color: var(--warning); }
.expiry-table .action-btn { padding: 4px 12px; border-radius: 6px; border: 1px solid var(--card-border); background: transparent; color: var(--navy-soft); font-size: 12px; cursor: pointer; transition: all 0.2s; }
.expiry-table .action-btn:hover { border-color: var(--gold); color: var(--gold); }
.expiry-table .action-btn.danger { color: var(--danger); border-color: rgba(220,38,38,0.3); }
.expiry-table .action-btn.danger:hover { border-color: var(--danger); background: rgba(220,38,38,0.1); }

/* Watchlist */
.watchlist-section { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--card-border); }
.watchlist-section h3 { font-size: 18px; color: #1a1a2e; margin-bottom: 16px; }
body.dark-mode .watchlist-section h3 { color: #1a1a2e; }
.watchlist-empty { text-align: center; padding: 32px; color: var(--text-muted); font-size: 14px; }

/* Toast */
.toast { position: fixed; bottom: 80px; right: 24px; background: var(--navy-soft); color: #FFF; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 9999; opacity: 0; transform: translateY(20px); transition: all 0.3s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Copy button */
.copy-btn { background: none; border: 1px solid var(--card-border); color: var(--navy-soft); padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; margin-left: 8px; }
.copy-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ===== MULTI-TLD RESULTS TABLE ===== */
.multi-tld-table { width: 100%; border-collapse: collapse; border-radius: 8px; overflow: hidden; }
.multi-tld-table thead tr { background: rgba(212,175,55,0.1); }
.multi-tld-table th { padding: 10px 12px; text-align: left; color: var(--gold); font-size: 0.85rem; font-weight: 600; }
.multi-tld-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.multi-tld-table tr:hover td { background: rgba(212,175,55,0.05); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .main-nav { width: 100%; display: flex; justify-content: flex-start; flex-wrap: wrap; }
  .main-nav a { margin: 4px 16px 0 0; }
  .hero h1 { font-size: 24px; }
  .tabs { flex-direction: column; align-items: stretch; }
  .tab-btn { text-align: center; }
  .input-row { flex-direction: column; }
  .btn-group { flex-direction: column; }
  .whois-row { flex-direction: column; gap: 2px; }
  .whois-row .label { flex: none; }
  .whois-row .value { text-align: left; }
  .domain-grid { grid-template-columns: 1fr; }
  .expiry-table { font-size: 12px; }
  .expiry-table th, .expiry-table td { padding: 8px 10px; }
  .hamburger-menu { top: 15px; left: 15px; }
  .sidebar-menu { width: 85%; max-width: 300px; }
  .lang-switcher { top: auto; bottom: 80px; right: 20px; }
  .tld-chips { flex-wrap: wrap; gap: 6px; }
  .multi-tld-table { font-size: 12px; }
  .multi-tld-table th, .multi-tld-table td { padding: 8px 10px; }
}

/* ===== CTA BANNER ===== */
.section-cta-banner { background: var(--navy-soft); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); text-align: center; padding: 48px 7vw; }
.section-cta-banner .section-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.cta-content { text-align: center; }
.cta-badge { display: inline-block; font-size: 0.9rem; font-weight: 700; color: var(--gold); background: rgba(212,175,55,0.12); padding: 0.5rem 1.4rem; border-radius: 50px; margin-bottom: 1.5rem; border: 1px solid rgba(212,175,55,0.3); }
.cta-content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--text-main); margin-bottom: 1rem; }
.cta-content p { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.7; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-content .btn { margin-top: 0.5rem; }
