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

:root{
  --brand:#7301e9;
  --brand-2:#8a20ff;
  --brand-3:#6d63ff;
  --brand-deep:#35009b;
  --brand-ink:#28104e;
  --brand-soft:#f3edff;
  --brand-softer:#faf8ff;
  --brand-border:#e5dbff;
  --white:#ffffff;
  --ink:#17131f;
  --ink-2:#30293c;
  --muted:#7b7486;
  --muted-2:#a29baa;
  --line:#ece8f1;
  --bg:#f8f7fb;
  --card:#ffffff;
  --success:#0d8a62;
  --danger:#c73b4a;
  --warning:#9a6a00;
  --radius:18px;
  --radius-lg:26px;
  --shadow:0 12px 34px rgba(53,0,155,.07);
  --shadow-strong:0 24px 70px rgba(53,0,155,.16);
  --gradient:linear-gradient(135deg,#7301e9 0%,#7e08f4 46%,#6d63ff 100%);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:"Poppins",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:14.5px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
body{min-height:100vh}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
::selection{background:#d9c7ff;color:var(--brand-deep)}

/* LOGIN */
body.login-body{
  min-height:100vh;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 84% 10%,rgba(115,1,233,.10),transparent 30%),
    radial-gradient(circle at 12% 92%,rgba(109,99,255,.12),transparent 28%),
    #f7f5fb;
}
.login-shell{
  width:min(1100px,calc(100% - 34px));
  min-height:640px;
  background:#fff;
  border:1px solid #ece6f5;
  border-radius:30px;
  box-shadow:var(--shadow-strong);
  overflow:hidden;
  display:grid;
  grid-template-columns:1.08fr .92fr;
}
.login-brand{
  position:relative;
  background:var(--gradient);
  color:#fff;
  padding:56px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
  isolation:isolate;
}
.login-brand:before{
  content:"";
  position:absolute;
  width:520px;height:520px;border-radius:50%;
  background:rgba(255,255,255,.10);
  right:-240px;top:-170px;
  z-index:-1;
}
.login-brand:after{
  content:"SEO";
  position:absolute;
  right:-20px;bottom:-50px;
  font-size:220px;line-height:1;
  font-weight:900;
  letter-spacing:-18px;
  color:rgba(42,0,105,.16);
  z-index:-1;
}
.login-logo{
  width:235px;
  height:auto;
  object-fit:contain;
}
.login-brand h1{
  font-size:48px;
  line-height:1.04;
  margin:0 0 18px;
  letter-spacing:-1.6px;
  max-width:460px;
}
.login-brand p{
  font-size:15px;
  font-weight:500;
  color:rgba(255,255,255,.82);
  line-height:1.75;
  max-width:430px;
}
.login-brand .eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  color:#fff;
  font-size:12px;text-transform:uppercase;letter-spacing:1.5px;font-weight:800;
  margin-bottom:20px;
}
.login-brand .eyebrow:before{
  content:"";width:28px;height:2px;background:rgba(255,255,255,.75)
}
.login-panel{
  padding:72px 64px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:#fff;
}
.login-panel .mobile-logo{display:none}
.login-panel h2{
  font-size:30px;margin:0 0 8px;letter-spacing:-.55px;font-weight:800;color:var(--brand-ink)
}
.login-panel .sub{color:var(--muted);margin:0 0 34px;line-height:1.6}

/* FORMS / BUTTONS */
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.field label{font-size:11.5px;font-weight:700;color:#5c5367;text-transform:uppercase;letter-spacing:.35px}
.input,.select{
  width:100%;height:47px;border:1px solid #ded7e9;border-radius:12px;padding:0 14px;font-size:13.5px;font-weight:500;
  background:#fff;outline:none;transition:.18s;color:var(--ink)
}
.input:hover,.select:hover{border-color:#ccb8f2}
.input:focus,.select:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(115,1,233,.09)
}
.btn{
  border:0;border-radius:12px;height:44px;padding:0 18px;font-weight:700;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  background:var(--gradient);color:#fff;
  box-shadow:0 9px 24px rgba(115,1,233,.25)
}
.btn-primary:hover{box-shadow:0 12px 30px rgba(115,1,233,.32)}
.btn-dark{background:var(--brand-deep);color:#fff}
.btn-light{background:#fff;border:1px solid var(--brand-border);color:var(--brand-deep)}
.btn-light:hover{background:var(--brand-softer);border-color:#d4c5f7}
.btn-danger{background:#fff2f4;color:var(--danger);border:1px solid #ffd7dd}
.btn-sm{height:36px;border-radius:10px;padding:0 12px;font-size:12.5px}
.btn-block{width:100%}

/* ALERTS */
.alert{padding:13px 15px;border-radius:12px;margin-bottom:18px;border:1px solid;line-height:1.5}
.alert-danger{background:#fff3f5;border-color:#ffd6dc;color:#9f2f3e}
.alert-success{background:#eefaf6;border-color:#caeee0;color:#0c7654}
.alert-warning{background:#fff9e9;border-color:#f0dfad;color:#795900}

/* APP SHELL */
.app-shell{min-height:100vh;display:grid;grid-template-columns:258px 1fr}
.sidebar{
  background:
    radial-gradient(circle at 30% -10%,rgba(255,255,255,.15),transparent 26%),
    linear-gradient(180deg,#4a00b7 0%,#35009b 58%,#2d007f 100%);
  color:#fff;
  padding:24px 18px;
  position:sticky;top:0;height:100vh;
  box-shadow:12px 0 32px rgba(53,0,155,.08);
}
.sidebar-logo{
  width:176px;height:auto;object-fit:contain;
  margin:5px 10px 30px;
}
.sidebar small{
  display:block;
  color:rgba(255,255,255,.48);
  font-size:10.5px;text-transform:uppercase;letter-spacing:1px;
  margin:22px 12px 9px;font-weight:900
}
.nav{display:flex;flex-direction:column;gap:6px}
.nav a{
  height:46px;border-radius:12px;display:flex;align-items:center;gap:11px;
  padding:0 13px;color:rgba(255,255,255,.78);font-weight:600;font-size:13px;
  transition:.16s
}
.nav a:hover{background:rgba(255,255,255,.09);color:#fff}
.nav a.active{
  background:#fff;color:var(--brand-deep);
  box-shadow:0 8px 24px rgba(17,0,60,.16)
}
.nav .ico{width:18px;text-align:center;font-size:16px}
.sidebar-foot{
  position:absolute;bottom:18px;left:18px;right:18px;
  border-top:1px solid rgba(255,255,255,.13);
  padding-top:15px;color:rgba(255,255,255,.6)
}
.sidebar-user{display:flex;align-items:center;gap:10px}
.avatar{
  width:36px;height:36px;border-radius:11px;
  background:rgba(255,255,255,.12);
  display:grid;place-items:center;color:#fff;font-weight:900;
  border:1px solid rgba(255,255,255,.14)
}
.sidebar-user b{display:block;color:#fff;font-size:12.5px;font-weight:700}
.sidebar-user span{font-size:10.5px;color:rgba(255,255,255,.62)}

/* MAIN */
.main{min-width:0}
.topbar{
  height:76px;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;padding:0 30px;
  position:sticky;top:0;z-index:20
}
.topbar h1{font-size:20px;margin:0;letter-spacing:-.25px;font-weight:800;color:var(--brand-ink)}
.topbar .meta{font-size:11.5px;color:var(--muted);margin-top:3px;font-weight:500}
.content{padding:28px 30px 46px}
.container{max-width:1480px;margin:0 auto}

/* KPI CARDS */
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow)
}
.stat{padding:21px 21px 19px;position:relative;overflow:hidden}
.stat:after{
  content:"";position:absolute;width:70px;height:70px;border-radius:50%;
  background:var(--brand-soft);right:-25px;top:-25px
}
.stat .label{color:var(--muted);font-size:11.5px;font-weight:600;margin-bottom:11px}
.stat .value{font-size:29px;font-weight:800;letter-spacing:-.7px;color:var(--brand-ink)}
.stat .hint{font-size:10.5px;color:var(--muted-2);margin-top:8px;font-weight:500}
.stat.orange,
.stat.brand{
  background:linear-gradient(145deg,#fff 8%,#f6f0ff 100%);
  border-color:#e1d5fb
}
.stat.orange .value,.stat.brand .value{color:var(--brand)}

/* FILTERS */
.toolbar{padding:18px;margin-bottom:16px}
.filters{
  display:grid;
  grid-template-columns:1.6fr repeat(5,minmax(115px,1fr)) auto;
  gap:10px;align-items:end
}
.filter label{
  display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:.45px;
  color:#777080;font-weight:700;margin:0 0 7px
}
.filter .input,.filter .select{height:42px;border-radius:10px;font-size:13px}
.filter-actions{display:flex;gap:8px}

/* TABLE */
.table-card{overflow:hidden}
.table-head{
  padding:17px 18px;border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between
}
.table-head h3{margin:0;font-size:14px;color:var(--brand-ink)}
.table-wrap{overflow:auto;max-width:100%}
table{width:100%;border-collapse:collapse;min-width:980px}
th{
  background:#fbfaff;color:#7b7486;text-align:left;font-size:10.5px;
  text-transform:uppercase;letter-spacing:.4px;font-weight:700;
  padding:13px 14px;border-bottom:1px solid var(--line);white-space:nowrap
}
td{padding:14px 14px;border-bottom:1px solid #f0edf4;vertical-align:middle;font-size:12.5px;line-height:1.45}
tbody tr{transition:.12s}
tbody tr:hover{background:#fbf8ff}
.domain-cell{display:flex;align-items:center;gap:10px}
.favicon{
  width:29px;height:29px;border-radius:9px;background:var(--brand-soft);
  display:grid;place-items:center;font-size:11px;font-weight:900;color:var(--brand-deep)
}
.domain-main{font-weight:700;color:var(--brand-ink);font-size:13px}
.domain-main a:hover{color:var(--brand)}
.domain-sub{font-size:10.5px;color:#91899b;margin-top:3px;font-weight:500}
.num{font-variant-numeric:tabular-nums;font-weight:600;font-size:12.5px}
.price{font-weight:700;color:var(--brand-ink);font-size:12.5px}
.badge{
  display:inline-flex;align-items:center;height:25px;padding:0 9px;border-radius:999px;
  font-size:10.5px;font-weight:700;white-space:nowrap
}
.badge-orange,.badge-purple{background:var(--brand-soft);color:var(--brand-deep)}
.badge-green{background:#eaf8f2;color:#0d7655}
.badge-gray{background:#f2f0f5;color:#6f6878}
.badge-red{background:#fff0f2;color:#a82c3d}
.empty{padding:64px 20px;text-align:center;color:var(--muted)}
.empty .big{font-size:36px;margin-bottom:10px;color:var(--brand)}
.pagination{
  display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#fff
}
.pages{display:flex;gap:6px}
.page{
  min-width:34px;height:34px;border:1px solid var(--line);border-radius:9px;
  display:grid;place-items:center;background:#fff;font-size:12.5px;font-weight:600
}
.page:hover{border-color:#cdbbf1;color:var(--brand)}
.page.active{background:var(--brand);border-color:var(--brand);color:#fff}
.page.disabled{opacity:.4;pointer-events:none}

/* IMPORT / SETTINGS */
.page-grid{display:grid;grid-template-columns:1fr 340px;gap:18px}
.panel{padding:22px}
.panel h3{margin:0 0 6px;font-size:16px;color:var(--brand-ink)}
.panel p.desc{margin:0 0 22px;color:var(--muted);line-height:1.6}
.dropzone{
  border:1.5px dashed #cdbcef;border-radius:15px;padding:22px;
  background:#fbf9ff;margin-bottom:16px;transition:.16s
}
.dropzone:hover{background:#f7f2ff;border-color:var(--brand)}
.dropzone strong{display:block;margin-bottom:6px;color:var(--brand-ink)}
.dropzone p{margin:0;color:var(--muted);font-size:12px}
.file-input{margin-top:12px}
.import-note{font-size:12.5px;line-height:1.7;color:#706879;font-weight:500}
.log-row{
  display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)
}
.log-row:last-child{border-bottom:0}
.log-row b{font-size:12.5px;font-weight:700}
.log-row span{display:block;font-size:10.5px;color:var(--muted);margin-top:3px;font-weight:500}
.kpi-list{display:flex;flex-direction:column;gap:12px}
.kpi-item{
  padding:14px;border-radius:13px;background:#fbfaff;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between
}
.kpi-item b{font-size:18px;color:var(--brand)}
.kpi-item span{font-size:11.5px;color:var(--muted);font-weight:500}
.codebox{
  background:#241038;color:#e9ddff;border-radius:13px;padding:14px;
  font:12px/1.6 Consolas,monospace;overflow:auto
}

/* INSTALL */
.install-wrap{max-width:900px;margin:45px auto;padding:0 18px}
.install-header{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;
  background:var(--gradient);padding:16px 20px;border-radius:18px;
  box-shadow:0 12px 30px rgba(115,1,233,.16)
}
.install-header img{width:190px;height:auto}
.install-card{padding:26px}
.install-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.install-grid .full{grid-column:1/-1}

/* RESPONSIVE */
@media(max-width:1180px){
  .filters{grid-template-columns:repeat(3,1fr)}
  .cards{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:860px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{display:none}
  .topbar{padding:0 16px}
  .content{padding:18px 14px}
  .cards{grid-template-columns:1fr 1fr}
  .page-grid{grid-template-columns:1fr}
  .login-shell{grid-template-columns:1fr;min-height:auto}
  .login-brand{display:none}
  .login-panel{padding:40px 28px}
  .login-panel .mobile-logo{
    display:block;width:190px;height:auto;margin:0 0 28px;
    background:var(--gradient);padding:15px 18px;border-radius:14px
  }
}
@media(max-width:560px){
  .cards{grid-template-columns:1fr}
  .filters{grid-template-columns:1fr}
  .install-grid{grid-template-columns:1fr}
  .install-grid .full{grid-column:auto}
}

/* v2.0 backlink management */
a.domain-main{transition:.15s}
a.domain-main:hover{color:var(--brand)}
.table-wrap td .badge{vertical-align:middle}


/* v2.1 backlink form */
.form-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:24px;
}
.select-with-action{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:center;
}
.link-builder-section{
  margin-top:22px;
  padding:20px;
  border:1px solid var(--brand-border);
  background:linear-gradient(145deg,#fff 0%,#fbf8ff 100%);
  border-radius:16px;
}
.link-builder-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.link-builder-head h4{
  margin:0 0 5px;
  color:var(--brand-ink);
  font-size:15px;
}
.link-builder-head p{
  margin:0;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.55;
}
.link-builder-rows{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.link-pair-row{
  display:grid;
  grid-template-columns:34px 1fr 1.4fr 34px;
  gap:10px;
  align-items:end;
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  padding:12px;
}
.link-pair-row .field{
  margin-bottom:0;
}
.link-pair-index{
  width:30px;
  height:30px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:var(--brand-soft);
  color:var(--brand-deep);
  font-weight:800;
  margin-bottom:8px;
}
.link-remove{
  width:30px;
  height:30px;
  border:0;
  border-radius:9px;
  background:#fff1f3;
  color:#b72d42;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  margin-bottom:8px;
}
.link-remove:hover{
  background:#ffe2e7;
}
@media(max-width:760px){
  .form-title-row{flex-direction:column}
  .link-builder-head{flex-direction:column}
  .link-pair-row{
    grid-template-columns:34px 1fr 34px;
  }
  .link-pair-row .field:nth-of-type(2){
    grid-column:2/3;
  }
}


/* v2.1.3 import result reporting */
.import-report-stack{display:flex;flex-direction:column;gap:16px;margin-bottom:18px}
.import-report-card{padding:20px}
.import-report-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.import-report-title h3{margin:8px 0 0;color:var(--brand-ink);font-size:16px}
.import-report-total{font-size:11.5px;color:var(--muted);font-weight:600;padding-top:4px}
.import-result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.import-result-box{padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff}
.import-result-box span{display:block;font-size:10.5px;font-weight:700;color:var(--muted);margin-bottom:7px}
.import-result-box b{display:block;font-size:23px;letter-spacing:-.5px;color:var(--brand-ink)}
.import-result-box small{display:block;font-size:9.5px;color:var(--muted-2);margin-top:5px;line-height:1.45}
.result-new{background:#f2fbf7;border-color:#d5f0e4}
.result-new b{color:#0d8a62}
.result-updated{background:#f7f2ff;border-color:#e0d4fb}
.result-updated b{color:var(--brand)}
.result-same{background:#faf9fb}
.result-invalid{background:#fff6f7;border-color:#f5d8dd}
.result-invalid b{color:var(--danger)}
.import-details{display:flex;flex-direction:column;gap:8px}
.import-detail-group{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.import-detail-group summary{list-style:none;cursor:pointer;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;font-size:11.5px;font-weight:700;color:var(--brand-ink)}
.import-detail-group summary::-webkit-details-marker{display:none}
.import-detail-group summary:before{content:'›';font-size:18px;color:var(--brand);margin-right:8px;transition:.15s}
.import-detail-group[open] summary:before{transform:rotate(90deg)}
.import-detail-group summary{justify-content:flex-start}
.import-detail-group summary .badge{margin-left:auto}
.import-detail-list{border-top:1px solid var(--line);max-height:420px;overflow:auto}
.import-detail-row{display:grid;grid-template-columns:minmax(180px,.8fr) 2fr;gap:16px;padding:10px 14px;border-bottom:1px solid #f2eff5;align-items:start}
.import-detail-row:last-child{border-bottom:0}
.import-detail-domain{font-size:11.5px;font-weight:700;color:var(--brand-ink);word-break:break-word}
.import-detail-change{display:flex;flex-direction:column;gap:3px}
.import-detail-change span{font-size:10.5px;color:var(--muted);line-height:1.45}
@media(max-width:900px){
  .import-result-grid{grid-template-columns:1fr 1fr}
  .import-detail-row{grid-template-columns:1fr}
}
@media(max-width:560px){
  .import-result-grid{grid-template-columns:1fr}
  .import-report-title{flex-direction:column}
}


/* v2.1.4 manual domain price editing */
.domain-edit-card{padding:24px}
.domain-edit-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbf9ff;
  margin-bottom:16px;
}
.domain-edit-icon{width:42px;height:42px;font-size:14px}
.domain-edit-domain{font-size:17px;font-weight:800;color:var(--brand-ink)}
.domain-edit-domain a:hover{color:var(--brand)}
.domain-edit-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-bottom:18px;
}
.domain-edit-stat{
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  padding:13px;
}
.domain-edit-stat span{
  display:block;
  font-size:10.5px;
  color:var(--muted);
  margin-bottom:6px;
  font-weight:600;
}
.domain-edit-stat b{
  display:block;
  color:var(--brand-ink);
  font-size:15px;
}
.manual-price-box{
  border:1px solid var(--brand-border);
  border-radius:16px;
  background:linear-gradient(145deg,#fff 0%,#fbf8ff 100%);
  padding:18px;
}
.manual-price-current{
  padding:14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  margin-bottom:16px;
}
.manual-price-current span{
  display:block;
  color:var(--muted);
  font-size:10.5px;
  font-weight:600;
  margin-bottom:4px;
}
.manual-price-current b{
  display:block;
  color:var(--brand);
  font-size:24px;
  margin-bottom:4px;
}
.manual-price-current small{
  color:var(--muted-2);
  font-size:10.5px;
}
.manual-price-clear{margin-top:10px}
@media(max-width:760px){
  .domain-edit-stats{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .domain-edit-stats{grid-template-columns:1fr}
}


/* v2.1.5 project management */
.project-page-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.project-title-line{
  display:flex;
  align-items:center;
  gap:10px;
}
.project-title-line h2{
  margin:0;
  color:var(--brand-ink);
}
.project-head-actions,.row-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.project-editor-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:18px;
  max-width:1120px;
}
.project-editor-layout aside{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.textarea-input{
  min-height:120px;
  height:auto;
  padding:12px 14px;
  resize:vertical;
  line-height:1.6;
}
.danger-zone{
  border-color:#f2cfd5;
  background:linear-gradient(145deg,#fff 0%,#fff8f9 100%);
}
.danger-zone h3{
  color:#9f2f3e;
}
.delete-project-card{
  max-width:820px;
  border-color:#efcdd3;
}
.delete-warning-icon{
  width:46px;
  height:46px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#fff0f2;
  color:var(--danger);
  font-size:22px;
  font-weight:800;
  margin-bottom:14px;
}
.delete-impact-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:18px 0;
}
.delete-impact-item{
  padding:14px;
  border:1px solid #f0dce0;
  border-radius:13px;
  background:#fffafb;
}
.delete-impact-item span{
  display:block;
  color:var(--muted);
  font-size:10.5px;
  font-weight:600;
  margin-bottom:6px;
}
.delete-impact-item b{
  color:var(--brand-ink);
  font-size:18px;
}
.delete-confirm-form{
  margin-top:18px;
}
.delete-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  flex-wrap:wrap;
}
@media(max-width:900px){
  .project-page-head{align-items:flex-start;flex-direction:column}
  .project-editor-layout{grid-template-columns:1fr}
  .delete-impact-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .delete-impact-grid{grid-template-columns:1fr}
}


/* v2.1.6 backlink price -> domain price sync */
.inline-check{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-top:10px;
  cursor:pointer;
  text-transform:none !important;
  letter-spacing:0 !important;
}
.inline-check input[type="checkbox"]{
  width:16px;
  height:16px;
  margin:2px 0 0;
  accent-color:var(--brand);
  flex:0 0 auto;
}
.inline-check span{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.inline-check b{
  font-size:11.5px;
  color:var(--brand-ink);
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
}
.inline-check small{
  font-size:10.5px;
  line-height:1.45;
  color:var(--muted);
  font-weight:500;
  text-transform:none;
  letter-spacing:0;
}
.backlink-price-sync{
  padding:10px 11px;
  border-radius:10px;
  background:#faf8ff;
  border:1px solid var(--brand-border);
}


/* v2.1.7 published URL -> domain extraction */
.field-help{
  margin-top:6px;
  font-size:10px;
  line-height:1.45;
  color:var(--muted-2);
  font-weight:500;
}
.readonly-input{
  background:#f7f5fa !important;
  color:#6e6678 !important;
  cursor:not-allowed;
}


/* v2.1.8 project backlink status filtering */
.project-filter-toolbar{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.project-filter-row{
  display:flex;
  gap:10px;
  align-items:end;
  flex-wrap:wrap;
}
.project-status-chips{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  padding-top:2px;
}
.project-status-label{
  font-size:10.5px;
  color:var(--muted);
  font-weight:600;
  margin-right:2px;
}
.quick-status-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:29px;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:#6f6679;
  font-size:10.5px;
  font-weight:650;
  transition:.15s ease;
}
.quick-status-chip b{
  min-width:19px;
  height:19px;
  padding:0 5px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#f2eff5;
  color:var(--brand-ink);
  font-size:9.5px;
}
.quick-status-chip:hover,
.quick-status-chip.active{
  border-color:var(--brand-border);
  color:var(--brand);
  background:var(--brand-soft);
}
.quick-status-chip.status-published.active{
  background:#effaf5;
  border-color:#cdebdc;
  color:#087958;
}
.quick-status-chip.status-pending.active{
  background:#f7f5f8;
  color:#6c6375;
}
.quick-status-chip.status-removed.active{
  background:#fff2f4;
  border-color:#f0cfd5;
  color:#ad3445;
}
.mini-link{
  display:inline-block;
  margin-left:6px;
  font-size:9.5px;
  font-weight:700;
  color:var(--brand);
}
@media(max-width:700px){
  .project-filter-row .filter,
  .project-filter-row .filter .input,
  .project-filter-row .filter .select{
    width:100% !important;
  }
}


/* v2.1.9 SEO projects bulk actions */
.project-list-head{
  gap:18px;
}
.project-list-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.project-list-title h3{
  margin:0;
}
.bulk-selected-count{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:4px 9px;
  border-radius:999px;
  background:var(--brand-soft);
  color:var(--brand);
  font-size:10.5px;
  font-weight:700;
}
.bulk-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.bulk-action-select{
  min-width:175px;
  height:36px;
  font-size:11.5px;
}
.bulk-actions .btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
}
.bulk-help{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:9px 14px;
  background:#faf8ff;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}
.bulk-check-col{
  width:42px;
  min-width:42px;
  text-align:center;
  padding-left:12px !important;
  padding-right:8px !important;
}
.bulk-check-label{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  margin:auto;
  cursor:pointer;
  border-radius:8px;
}
.bulk-check-label:hover{
  background:var(--brand-soft);
}
.bulk-check-label input{
  width:15px;
  height:15px;
  accent-color:var(--brand);
  cursor:pointer;
}
.projects-bulk-table tbody tr{
  transition:background .12s ease;
}
.projects-bulk-table tbody tr.bulk-row-selected{
  background:#faf6ff;
}
.projects-bulk-table tbody tr.bulk-row-selected td{
  border-bottom-color:#e9ddfa;
}
@media(max-width:860px){
  .project-list-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .bulk-actions{
    width:100%;
  }
  .bulk-action-select{
    flex:1;
  }
  .bulk-help{
    flex-direction:column;
    gap:4px;
  }
}


/* v2.2.0 planning workflow */
.quick-status-chip.status-planned.active{
  background:#eefaf4;
  border-color:#cfead9;
  color:#0b7f59;
}


/* v2.3.0 monthly backlink operations */
.operations-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:16px;
  align-items:stretch;
  margin-bottom:16px;
}
.operations-hero>div:first-child{
  padding:4px 2px;
}
.operations-eyebrow{
  font-size:10px;
  letter-spacing:.9px;
  font-weight:800;
  color:var(--brand);
  margin-bottom:6px;
}
.operations-hero h2{
  margin:0 0 7px;
  color:var(--brand-ink);
  font-size:25px;
  letter-spacing:-.55px;
}
.operations-hero p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.65;
  max-width:760px;
}
.operations-progress-card{
  border:1px solid var(--brand-border);
  border-radius:16px;
  padding:15px 17px;
  background:linear-gradient(145deg,#fff 0%,#f8f2ff 100%);
}
.operations-progress-card>span{
  display:block;
  font-size:10.5px;
  color:var(--muted);
  font-weight:650;
}
.operations-progress-card>b{
  display:block;
  font-size:27px;
  color:var(--brand);
  margin:4px 0 8px;
}
.operations-progress{
  height:7px;
  background:#eee8f5;
  border-radius:999px;
  overflow:hidden;
}
.operations-progress i{
  display:block;
  height:100%;
  background:linear-gradient(90deg,var(--brand),#8457ff);
  border-radius:999px;
}
.operations-progress-card small{
  display:block;
  margin-top:7px;
  color:var(--muted-2);
  font-size:9.5px;
}
.operations-toolbar{
  margin-bottom:16px;
}
.operations-filters{
  grid-template-columns:.65fr .85fr 1.5fr 1.35fr 1.25fr auto;
}
.operations-kpis{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}
.operations-kpi{
  padding:14px;
  min-height:98px;
}
.operations-kpi span{
  display:block;
  font-size:10px;
  font-weight:650;
  color:var(--muted);
  margin-bottom:7px;
}
.operations-kpi b{
  display:block;
  color:var(--brand-ink);
  font-size:21px;
  letter-spacing:-.35px;
}
.operations-kpi small{
  display:block;
  margin-top:6px;
  font-size:9px;
  line-height:1.4;
  color:var(--muted-2);
}
.operations-kpi.planned{background:#fbfff9;border-color:#dcefd5}
.operations-kpi.pending{background:#fffaf0;border-color:#f2dfbd}
.operations-kpi.published{background:#f6f1ff;border-color:#dfd0fb}
.operations-kpi.published b{color:var(--brand)}
.operations-kpi.money{background:#fff;border-color:var(--brand-border)}
.operations-kpi.money b{color:var(--brand)}
.operations-table-card .table-head{
  align-items:flex-start;
}
.operations-table-wrap{
  max-height:calc(100vh - 290px);
  min-height:360px;
}
.operations-table{
  min-width:1500px;
}
.operations-table thead th{
  position:sticky;
  top:0;
  z-index:4;
  background:#fbf9fd;
}
.operations-table td{
  vertical-align:middle;
}
.operation-row.status-planned{
  background:#fcfffb;
}
.operation-row.status-pending{
  background:#fffdf8;
}
.operation-row.status-published{
  background:#fcfaff;
}
.operation-mini-input{
  width:105px;
  min-width:105px;
  height:36px;
  font-size:11px;
  padding:0 9px;
}
.operation-select{
  min-width:150px;
  height:36px;
  font-size:10.5px;
}
.operation-invoice{
  min-width:76px;
  width:76px;
}
.operation-status-select{
  width:205px;
  min-width:205px;
  height:36px;
  font-size:10px;
}
.operation-url-input{
  width:245px;
  min-width:245px;
  height:36px;
  font-size:10.5px;
}
.operation-doc-title{
  display:block;
  max-width:150px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:10px;
  color:var(--muted);
}
.operation-row-form{
  display:flex;
  align-items:center;
  gap:6px;
}
.operation-actions-cell{
  min-width:128px;
}
.empty-state{
  padding:46px 20px;
  text-align:center;
  color:var(--muted);
}
.empty-state b{
  display:block;
  color:var(--brand-ink);
  margin-bottom:6px;
  font-size:14px;
}
.empty-state span{
  font-size:11px;
}
@media(max-width:1200px){
  .operations-kpis{grid-template-columns:repeat(3,1fr)}
  .operations-filters{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:800px){
  .operations-hero{grid-template-columns:1fr}
  .operations-kpis{grid-template-columns:1fr 1fr}
  .operations-filters{grid-template-columns:1fr}
}
@media(max-width:520px){
  .operations-kpis{grid-template-columns:1fr}
}


/* v2.3.1 monthly operations UX overhaul */
.operations-table-wrap,
.operations-table{display:none !important}

.operations-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px;
  background:#faf9fc;
}
.operation-card{
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  overflow:hidden;
  transition:.15s ease;
}
.operation-card:hover{
  border-color:var(--brand-border);
  box-shadow:0 8px 24px rgba(58,0,120,.055);
}
.operation-card.status-planned{border-left:4px solid #8bcf9f}
.operation-card.status-pending{border-left:4px solid #e3b75f}
.operation-card.status-published{border-left:4px solid var(--brand)}
.operation-card.status-removed{border-left:4px solid #d96b78}

.operation-card-main{
  display:grid;
  grid-template-columns:minmax(190px,.95fr) minmax(330px,1.4fr) minmax(390px,1.6fr);
  gap:18px;
  align-items:end;
  padding:15px 16px 13px;
}
.operation-identity{min-width:0;align-self:center}
.operation-project-name{
  font-size:10px;
  font-weight:700;
  color:var(--brand);
  margin-bottom:5px;
}
.operation-project-name a:hover{text-decoration:underline}
.operation-domain{
  font-size:14px;
  line-height:1.35;
  font-weight:800;
  color:var(--brand-ink);
  word-break:break-word;
}
.operation-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:6px;
}
.operation-meta span{
  font-size:9.5px;
  color:var(--muted);
  background:#f6f4f8;
  padding:4px 7px;
  border-radius:7px;
}
.operation-finance{
  display:grid;
  grid-template-columns:100px minmax(150px,1fr) 80px;
  gap:8px;
  min-width:0;
}
.operation-publish{
  display:grid;
  grid-template-columns:200px minmax(180px,1fr);
  gap:8px;
  min-width:0;
}
.operation-field-group{min-width:0}
.operation-field-group label{
  display:block;
  margin-bottom:5px;
  font-size:9px;
  font-weight:750;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.35px;
}
.operation-mini-input,
.operation-select,
.operation-invoice,
.operation-status-select,
.operation-url-input{
  width:100% !important;
  min-width:0 !important;
  height:38px !important;
  font-size:10.5px !important;
  padding-left:10px !important;
  padding-right:10px !important;
}
.operation-card-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:9px 14px 10px;
  border-top:1px solid #f0edf3;
  background:#fcfbfd;
}
.operation-document{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.operation-footer-label{
  font-size:9px;
  font-weight:750;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.35px;
}
.operation-doc-title{max-width:360px}
.operation-row-form{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
}
.operation-row-form .btn{
  min-width:70px;
  justify-content:center;
}
.operation-row-form .btn-primary{
  box-shadow:0 5px 12px rgba(115,1,233,.16);
}
.operations-table-card{overflow:visible}
.operations-table-card .table-head{border-bottom:0}

@media(max-width:1350px){
  .operation-card-main{
    grid-template-columns:minmax(180px,.8fr) minmax(300px,1.2fr);
  }
  .operation-publish{
    grid-column:1/-1;
    grid-template-columns:220px minmax(0,1fr);
  }
}
@media(max-width:980px){
  .operation-card-main{
    grid-template-columns:1fr;
    gap:12px;
  }
  .operation-finance,
  .operation-publish{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:680px){
  .operation-finance,
  .operation-publish{
    grid-template-columns:1fr;
  }
  .operation-card-footer{
    align-items:flex-start;
    flex-direction:column;
  }
  .operation-row-form{width:100%}
  .operation-row-form .btn{flex:1}
}


/* v2.4.0 AI content center */
.ai-prompt-textarea,
.content-html-editor{
  min-height:300px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:11px;
  line-height:1.65;
}
.small-code{
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:10px !important;
}
.content-workspace,
.content-view-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:18px;
  align-items:start;
}
.content-workspace>aside,
.content-view-layout>aside{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.content-generate-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:20px;
}
.content-status-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.content-status-hero h2{
  margin:9px 0 5px;
  color:var(--brand-ink);
  font-size:23px;
  letter-spacing:-.4px;
}
.content-status-hero p{
  margin:0;
  color:var(--muted);
  font-size:11px;
}
.content-status-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.content-link-item{
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.content-link-item:last-child{border-bottom:0}
.content-link-item b{
  display:block;
  color:var(--brand-ink);
  font-size:11px;
  margin-bottom:4px;
}
.content-link-item span{
  display:block;
  color:var(--muted);
  font-size:9.5px;
  word-break:break-all;
}
.content-image-strip{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
}
.content-image-strip a{
  display:block;
  aspect-ratio:4/3;
  border-radius:10px;
  overflow:hidden;
  background:#f3f0f6;
  border:1px solid var(--line);
}
.content-image-strip img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.generated-content-preview{
  max-width:850px;
  color:#2d2536;
  font-size:13px;
  line-height:1.8;
}
.generated-content-preview h1{
  color:var(--brand-ink);
  font-size:27px;
  line-height:1.25;
  margin:0 0 22px;
}
.generated-content-preview h2{
  color:var(--brand-ink);
  margin:28px 0 10px;
  font-size:20px;
}
.generated-content-preview h3{
  color:var(--brand-ink);
  margin:22px 0 8px;
  font-size:16px;
}
.generated-content-preview p{margin:0 0 15px}
.generated-content-preview a{
  color:var(--brand);
  text-decoration:underline;
  text-underline-offset:2px;
}
.generated-content-preview li{margin:5px 0}
.content-center-kpis{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin-bottom:16px;
}
.content-center-filters{
  grid-template-columns:1.2fr 1fr 1fr 1.6fr auto;
}
.backlink-content-shortcut{
  max-width:1050px;
  display:flex;
  justify-content:flex-end;
  margin:0 auto 10px;
}

/* project image library */
.image-upload-box{
  padding:16px;
  border:1px dashed var(--brand-border);
  border-radius:14px;
  background:#fbf8ff;
}
.project-image-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}
.project-image-card{
  overflow:hidden;
}
.project-image-card.is-inactive{
  opacity:.55;
}
.project-image-preview{
  display:block;
  aspect-ratio:16/10;
  background:#f3f0f6;
  overflow:hidden;
}
.project-image-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.project-image-info{
  padding:11px 12px 8px;
}
.project-image-info b{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:var(--brand-ink);
  font-size:11px;
  margin-bottom:5px;
}
.project-image-info span{
  display:block;
  color:var(--muted);
  font-size:9.5px;
  margin-top:2px;
}
.project-image-actions{
  display:flex;
  gap:6px;
  padding:8px 12px 12px;
}
.project-image-actions form{margin:0}

/* content shortcut in operation cards */
.operation-row-form .btn{
  white-space:nowrap;
}

@media(max-width:1100px){
  .content-workspace,
  .content-view-layout{
    grid-template-columns:1fr;
  }
  .content-center-kpis{grid-template-columns:repeat(3,1fr)}
  .content-center-filters{grid-template-columns:1fr 1fr}
  .project-image-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:720px){
  .content-status-hero{
    flex-direction:column;
  }
  .content-center-kpis{grid-template-columns:1fr 1fr}
  .content-center-filters{grid-template-columns:1fr}
  .project-image-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:480px){
  .content-center-kpis{grid-template-columns:1fr}
  .project-image-grid{grid-template-columns:1fr}
}
