/*
Theme Name: Index24h
Theme URI: https://example.com
Author: Index24h
Description: Theme WordPress tùy chỉnh cho dịch vụ index backlink Index24h — trang chủ, bảng giá, đăng ký, đăng nhập, trang quản trị khách hàng.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: signalio
*/

:root{
  --ink:#0c1220;
  --panel:#131b2b;
  --panel-2:#182338;
  --line:#26344a;
  --line-soft:#1c2739;
  --cyan:#4cc9c0;
  --cyan-dim:#2c5f5b;
  --amber:#f3a73b;
  --text:#e9edf3;
  --muted:#8fa0b8;
  --muted-2:#5f7290;
  --danger:#e2695a;
  --good:#5fd08a;
  --radius-s:4px;
  --radius-m:8px;
  --maxw:1180px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--ink);
  color:var(--text);
  font-family:'IBM Plex Sans', sans-serif;
  font-size:15px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  letter-spacing:-0.01em;
  line-height:1.15;
}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
img{max-width:100%; display:block;}
::selection{background:var(--cyan-dim); color:#fff;}
:focus-visible{outline:2px solid var(--cyan); outline-offset:2px;}

/* ---------- background grid texture ---------- */
.grid-field{
  position:relative;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size:42px 42px;
  background-position:center top;
}

/* ---------- shared top nav (public pages) ---------- */
.topnav{
  position:sticky; top:0; z-index:50;
  background:rgba(12,18,32,0.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.topnav-inner{
  max-width:var(--maxw); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px;
}
.logo{
  display:flex; align-items:center; gap:9px;
  font-family:'Space Grotesk', sans-serif;
  font-weight:700; font-size:18px; letter-spacing:-0.01em;
}
.logo-mark{width:22px; height:22px; flex-shrink:0;}
.nav-links{display:flex; align-items:center; gap:30px;}
.nav-links a{
  font-size:14px; color:var(--muted);
  padding:6px 0; border-bottom:1px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.nav-links a:hover, .nav-links a.current{color:var(--text); border-color:var(--cyan);}
.nav-actions{display:flex; align-items:center; gap:14px;}
.navbtn-ghost{font-size:14px; color:var(--muted);}
.navbtn-ghost:hover{color:var(--text);}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 20px;
  border-radius:var(--radius-s);
  font-size:14px; font-weight:500;
  border:1px solid transparent;
  transition:transform .12s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px);}
.btn-primary{background:var(--cyan); color:#08201d;}
.btn-primary:hover{background:#63d6ce;}
.btn-amber{background:var(--amber); color:#241300;}
.btn-amber:hover{background:#f7b658;}
.btn-outline{background:transparent; border-color:var(--line); color:var(--text);}
.btn-outline:hover{border-color:var(--cyan); color:var(--cyan);}
.btn-block{width:100%;}
.btn-lg{padding:14px 26px; font-size:15px;}

/* ---------- hero ---------- */
.hero{
  max-width:var(--maxw); margin:0 auto;
  padding:88px 28px 60px;
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px;
  align-items:center;
}
.eyebrow-note{
  font-size:13px; color:var(--muted-2);
  margin-bottom:18px;
  font-family:'IBM Plex Mono', monospace;
}
.hero h1{font-size:46px; color:var(--text); max-width:11.5em; margin-bottom:22px;}
.hero h1 em{font-style:normal; color:var(--cyan);}
.hero p.lede{font-size:16px; color:var(--muted); max-width:38em; margin-bottom:32px;}
.hero-actions{display:flex; align-items:center; gap:18px; flex-wrap:wrap;}
.hero-note{font-size:13px; color:var(--muted-2);}

.stat-row{display:flex; gap:36px; margin-top:52px; flex-wrap:wrap;}
.stat-row .stat b{display:block; font-family:'Space Grotesk',sans-serif; font-size:26px; color:var(--text);}
.stat-row .stat span{font-size:13px; color:var(--muted-2);}

/* ---------- signal graphic ---------- */
.signal-wrap{position:relative; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center;}
.signal-wrap svg{width:100%; height:100%;}
.pulse-core{animation:pulseCore 2.6s ease-in-out infinite; transform-origin:center;}
.pulse-ring{animation:pulseRing 2.6s ease-out infinite; transform-origin:center;}
@keyframes pulseCore{0%,100%{opacity:1;} 50%{opacity:.75;}}
@keyframes pulseRing{0%{opacity:.55; transform:scale(0.6);} 80%{opacity:0; transform:scale(1.6);} 100%{opacity:0; transform:scale(1.6);}}
@media (prefers-reduced-motion:reduce){ .pulse-core, .pulse-ring{animation:none;} }

/* ---------- sections ---------- */
section{max-width:var(--maxw); margin:0 auto; padding:70px 28px;}
.section-head{max-width:34em; margin-bottom:44px;}
.section-head h2{font-size:30px; margin-bottom:14px;}
.section-head p{color:var(--muted); font-size:15px;}
.divider-line{max-width:var(--maxw); margin:0 auto; border-top:1px solid var(--line);}

/* how it works */
.steps{display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid var(--line);}
.step{padding:28px 24px 28px 0; border-right:1px solid var(--line); position:relative;}
.step:last-child{border-right:none;}
.step .step-num{font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--cyan); margin-bottom:14px; display:block;}
.step h4{font-size:16px; margin-bottom:8px;}
.step p{font-size:13.5px; color:var(--muted);}

/* features */
.feature-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
.feature{background:var(--panel); padding:26px 22px;}
.feature svg{width:26px; height:26px; color:var(--cyan); margin-bottom:16px;}
.feature h4{font-size:15px; margin-bottom:8px;}
.feature p{font-size:13.5px; color:var(--muted);}

/* quote */
.quote-block{background:var(--panel); border:1px solid var(--line); padding:44px 48px; display:grid; grid-template-columns:auto 1fr; gap:28px; align-items:center;}
.quote-block .qmark{font-family:'Space Grotesk',sans-serif; font-size:56px; color:var(--cyan); line-height:1;}
.quote-block p{font-size:18px; color:var(--text); max-width:32em; margin-bottom:14px; font-family:'Space Grotesk',sans-serif; font-weight:500;}
.quote-block span{font-size:13px; color:var(--muted-2);}

.plan-teaser-row{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}

/* footer */
footer{border-top:1px solid var(--line); background:var(--panel);}
.footer-inner{max-width:var(--maxw); margin:0 auto; padding:52px 28px 30px; display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:40px;}
.footer-inner h5{font-size:13px; color:var(--muted-2); font-weight:500; margin-bottom:16px;}
.footer-inner ul{list-style:none;}
.footer-inner li{margin-bottom:10px;}
.footer-inner a{font-size:13.5px; color:var(--muted);}
.footer-inner a:hover{color:var(--text);}
.footer-brand p{font-size:13.5px; color:var(--muted); max-width:26em; margin-top:14px;}
.footer-bottom{max-width:var(--maxw); margin:0 auto; padding:20px 28px 36px; display:flex; justify-content:space-between; font-size:12.5px; color:var(--muted-2); border-top:1px solid var(--line-soft); margin-top:10px;}

/* ================= PRICING PAGE ================= */
.page-header{max-width:var(--maxw); margin:0 auto; padding:70px 28px 20px; text-align:center;}
.page-header h1{font-size:36px; margin-bottom:14px;}
.page-header p{color:var(--muted); max-width:34em; margin:0 auto;}

.billing-toggle{display:flex; align-items:center; justify-content:center; gap:14px; margin:38px auto 0;}
.toggle-track{width:46px; height:26px; background:var(--panel-2); border:1px solid var(--line); border-radius:20px; position:relative; cursor:pointer;}
.toggle-thumb{position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:var(--cyan); transition:left .15s ease;}
.toggle-track.on .toggle-thumb{left:22px;}
.toggle-label{font-size:13.5px; color:var(--muted);}
.toggle-label.active{color:var(--text);}
.save-badge{font-size:11.5px; background:var(--cyan-dim); color:var(--cyan); padding:3px 8px; border-radius:20px; font-family:'IBM Plex Mono',monospace;}

.plans{max-width:var(--maxw); margin:0 auto; padding:50px 28px 30px; display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.plan-card{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-m); padding:32px 28px; display:flex; flex-direction:column;}
.plan-card.featured{border-color:var(--cyan); background:var(--panel-2); box-shadow:0 0 0 1px var(--cyan);}
.plan-badge{font-size:11.5px; color:var(--cyan); font-family:'IBM Plex Mono',monospace; margin-bottom:14px;}
.plan-name{font-size:19px; margin-bottom:6px;}
.plan-desc{font-size:13.5px; color:var(--muted); margin-bottom:22px; min-height:36px;}
.plan-price{display:flex; align-items:baseline; gap:6px; margin-bottom:4px;}
.plan-price .amount{font-family:'Space Grotesk',sans-serif; font-size:34px; font-weight:600;}
.plan-price .cycle{font-size:13px; color:var(--muted-2);}
.plan-note{font-size:12.5px; color:var(--muted-2); margin-bottom:26px;}
.plan-cta{margin-bottom:26px;}
.plan-features{list-style:none; display:flex; flex-direction:column; gap:12px;}
.plan-features li{font-size:13.5px; color:var(--muted); display:flex; gap:10px; align-items:flex-start;}
.plan-features li svg{width:15px; height:15px; flex-shrink:0; margin-top:2px; color:var(--cyan);}
.plan-card.featured .plan-features li{color:var(--text);}

.compare-wrap{max-width:var(--maxw); margin:60px auto; padding:0 28px;}
.compare-wrap h3{font-size:20px; margin-bottom:22px;}
table.compare{width:100%; border-collapse:collapse; font-size:13.5px;}
table.compare th, table.compare td{padding:14px 18px; border-bottom:1px solid var(--line); text-align:center;}
table.compare th:first-child, table.compare td:first-child{text-align:left; color:var(--muted);}
table.compare thead th{font-family:'Space Grotesk',sans-serif; font-weight:600; color:var(--text); font-size:14px; border-bottom:1px solid var(--line);}
table.compare td{color:var(--text);}
table.compare td.dash{color:var(--muted-2);}

.faq-wrap{max-width:760px; margin:60px auto; padding:0 28px 80px;}
.faq-wrap h3{font-size:20px; margin-bottom:22px;}
.faq-item{border-bottom:1px solid var(--line);}
.faq-q{width:100%; background:none; border:none; color:var(--text); display:flex; justify-content:space-between; align-items:center; padding:20px 0; font-size:15px; font-family:'Space Grotesk',sans-serif; font-weight:500; text-align:left;}
.faq-q svg{width:16px; height:16px; color:var(--muted); transition:transform .15s ease; flex-shrink:0;}
.faq-item.open .faq-q svg{transform:rotate(45deg); color:var(--cyan);}
.faq-a{max-height:0; overflow:hidden; transition:max-height .2s ease; font-size:13.5px; color:var(--muted);}
.faq-item.open .faq-a{max-height:200px; padding-bottom:20px;}

/* ================= AUTH PAGES ================= */
.auth-shell{min-height:100vh; display:grid; grid-template-columns:1fr 1fr;}
.auth-form-side{display:flex; flex-direction:column; justify-content:center; padding:60px 80px;}
.auth-form-side .logo{margin-bottom:52px;}
.auth-form-side h1{font-size:28px; margin-bottom:10px;}
.auth-form-side > p.sub{font-size:14px; color:var(--muted); margin-bottom:34px;}
.auth-form{max-width:380px; display:flex; flex-direction:column; gap:18px;}
.field label{display:block; font-size:13px; color:var(--muted); margin-bottom:7px;}
.field input{width:100%; background:var(--panel); border:1px solid var(--line); color:var(--text); padding:12px 14px; border-radius:var(--radius-s); font-size:14px; font-family:inherit; transition:border-color .15s ease;}
.field input:focus{border-color:var(--cyan);}
.field input::placeholder{color:var(--muted-2);}
.field-row{display:flex; justify-content:space-between; align-items:center; font-size:13px;}
.checkbox-row{display:flex; align-items:flex-start; gap:9px; font-size:13px; color:var(--muted);}
.checkbox-row input{margin-top:3px;}
.checkbox-row a{color:var(--cyan);}
.link-accent{color:var(--cyan);}
.link-accent:hover{text-decoration:underline;}
.auth-switch{font-size:13.5px; color:var(--muted); margin-top:28px;}
.form-errors{background:rgba(226,105,90,0.1); border:1px solid var(--danger); color:#ffb3a8; border-radius:var(--radius-s); padding:12px 14px; font-size:13px; margin-bottom:20px;}
.form-errors ul{list-style:none;}
.form-errors li{margin-bottom:4px;}
.form-errors li:last-child{margin-bottom:0;}
.form-success{background:rgba(95,208,138,0.1); border:1px solid var(--good); color:var(--good); border-radius:var(--radius-s); padding:12px 14px; font-size:13px; margin-bottom:20px;}

.auth-brand-side{background:var(--panel); border-left:1px solid var(--line); display:flex; flex-direction:column; justify-content:center; padding:70px; position:relative; overflow:hidden;}
.auth-brand-side::before{content:''; position:absolute; inset:0; background-image:linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size:38px 38px; opacity:.6;}
.auth-brand-content{position:relative; max-width:420px;}
.auth-brand-content h2{font-size:24px; margin-bottom:18px;}
.auth-brand-content p{font-size:14px; color:var(--muted); margin-bottom:34px;}
.brand-stat-list{display:flex; flex-direction:column; gap:20px;}
.brand-stat-list .row{display:flex; justify-content:space-between; padding:14px 0; border-top:1px solid var(--line); font-size:13.5px;}
.brand-stat-list .row:last-child{border-bottom:1px solid var(--line);}
.brand-stat-list .row b{font-family:'IBM Plex Mono',monospace; color:var(--cyan); font-weight:500;}

/* ================= DASHBOARD ================= */
.dash-shell{display:flex; min-height:100vh;}
.dash-sidebar{width:236px; flex-shrink:0; background:var(--panel); border-right:1px solid var(--line); display:flex; flex-direction:column; position:sticky; top:0; height:100vh; z-index:100;}
.dash-sidebar .logo{padding:24px 22px; border-bottom:1px solid var(--line);}
.dash-nav{flex:1; padding:16px 12px; display:flex; flex-direction:column; gap:2px;}
.dash-nav a{display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:var(--radius-s); font-size:13.5px; color:var(--muted);}
.dash-nav a svg{width:16px; height:16px; flex-shrink:0;}
.dash-nav a:hover{background:var(--panel-2); color:var(--text);}
.dash-nav a.current{background:var(--panel-2); color:var(--text); box-shadow:inset 2px 0 0 var(--cyan);}
.dash-sidebar-foot{padding:16px 22px; border-top:1px solid var(--line); display:flex; align-items:center; gap:11px;}
.avatar{width:32px; height:32px; border-radius:50%; background:var(--cyan-dim); color:var(--cyan); display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:600; font-family:'Space Grotesk',sans-serif; flex-shrink:0;}
.dash-sidebar-foot .who{flex:1; min-width:0;}
.dash-sidebar-foot .who b{display:block; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.dash-sidebar-foot .who span{font-size:11.5px; color:var(--muted-2);}
.dash-sidebar-foot a.logout-link{background:none; border:none; color:var(--muted-2);}
.dash-sidebar-foot a.logout-link:hover{color:var(--text);}
.dash-sidebar-foot a.logout-link svg{width:16px; height:16px;}

.dash-main{flex:1; min-width:0;}
.dash-topbar{display:flex; align-items:center; justify-content:space-between; padding:20px 32px; border-bottom:1px solid var(--line); position:sticky; top:0; background:rgba(12,18,32,0.92); backdrop-filter:blur(8px); z-index:10; gap:16px;}
.dash-topbar h1{font-size:20px;}
.dash-topbar-left{display:flex; align-items:center; gap:14px;}
.plan-pill{font-size:12px; font-family:'IBM Plex Mono',monospace; color:var(--cyan); border:1px solid var(--cyan-dim); background:var(--cyan-dim); padding:5px 11px; border-radius:20px; white-space:nowrap;}
.dash-body{padding:32px;}
.hamburger{display:none; background:none; border:1px solid var(--line); border-radius:var(--radius-s); padding:8px; color:var(--text);}
.hamburger svg{width:18px; height:18px; display:block;}

.stat-cards{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:28px;}
.stat-card{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-m); padding:20px 22px;}
.stat-card .label{font-size:12.5px; color:var(--muted); margin-bottom:12px;}
.stat-card .value{font-family:'Space Grotesk',sans-serif; font-size:26px; font-weight:600;}
.stat-card .delta{font-size:12px; margin-top:8px; font-family:'IBM Plex Mono',monospace;}
.delta.up{color:var(--good);}
.delta.warn{color:var(--amber);}

.dash-grid{display:grid; grid-template-columns:1.4fr 1fr; gap:20px; margin-bottom:28px;}
.panel-box{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-m); padding:24px;}
.panel-box h3{font-size:15px; margin-bottom:18px; display:flex; justify-content:space-between; align-items:center;}
.panel-box h3 span{font-size:12px; color:var(--muted-2); font-weight:400; font-family:'IBM Plex Mono',monospace;}

.bar-chart{display:flex; align-items:flex-end; gap:10px; height:150px; padding-top:10px;}
.bar-chart .col{flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; height:100%; justify-content:flex-end;}
.bar-chart .bar{width:100%; background:linear-gradient(180deg, var(--cyan), var(--cyan-dim)); border-radius:3px 3px 0 0; min-height:2px;}
.bar-chart .col span{font-size:11px; color:var(--muted-2);}

.quick-submit textarea, .field textarea{width:100%; min-height:90px; background:var(--ink); border:1px solid var(--line); color:var(--text); padding:12px 14px; border-radius:var(--radius-s); font-size:13.5px; font-family:'IBM Plex Mono',monospace; resize:vertical; margin-bottom:14px;}
.quick-submit textarea::placeholder, .field textarea::placeholder{color:var(--muted-2);}
.quick-submit .hint{font-size:12px; color:var(--muted-2); margin-bottom:14px;}

table.link-table{width:100%; border-collapse:collapse; font-size:13.5px;}
table.link-table th{text-align:left; padding:10px 14px; color:var(--muted-2); font-weight:500; font-size:12px; border-bottom:1px solid var(--line);}
table.link-table td{padding:13px 14px; border-bottom:1px solid var(--line-soft); vertical-align:middle;}
table.link-table tr:last-child td{border-bottom:none;}
table.link-table td.url{font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--text); max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
table.link-table td.muted{color:var(--muted-2); font-size:12.5px;}

.badge{display:inline-flex; align-items:center; gap:6px; font-size:11.5px; padding:4px 10px; border-radius:20px; font-family:'IBM Plex Mono',monospace;}
.badge::before{content:''; width:6px; height:6px; border-radius:50%;}
.badge.done{background:rgba(95,208,138,0.12); color:var(--good);}
.badge.done::before{background:var(--good);}
.badge.pending{background:rgba(243,167,59,0.12); color:var(--amber);}
.badge.pending::before{background:var(--amber);}
.badge.failed{background:rgba(226,105,90,0.12); color:var(--danger);}
.badge.failed::before{background:var(--danger);}

.dash-section-title{margin-bottom:22px;}
.dash-section-title h2{font-size:19px; margin-bottom:6px;}
.dash-section-title p{font-size:13.5px; color:var(--muted);}

.settings-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px; max-width:760px;}
.empty-note{font-size:13px; color:var(--muted-2); padding:30px 0; text-align:center;}

/* responsive */
@media (max-width:980px){
  .hero{grid-template-columns:1fr; padding-top:60px;}
  .signal-wrap{max-width:340px; margin:0 auto;}
  .steps{grid-template-columns:repeat(2,1fr);}
  .step{border-bottom:1px solid var(--line);}
  .feature-grid{grid-template-columns:repeat(2,1fr);}
  .plans{grid-template-columns:1fr;}
  .footer-inner{grid-template-columns:1fr 1fr; gap:30px;}
  .auth-shell{grid-template-columns:1fr;}
  .auth-brand-side{display:none;}
  .auth-form-side{padding:40px 24px;}
  .dash-sidebar{position:fixed; left:-236px; top:0; transition:left .2s ease;}
  .dash-sidebar.open{left:0;}
  .hamburger{display:block;}
  .stat-cards{grid-template-columns:repeat(2,1fr);}
  .dash-grid{grid-template-columns:1fr;}
  .nav-links{display:none;}
  .settings-grid{grid-template-columns:1fr;}
}
