:root {
    --bg: #0c0c0c;
    --bg-elevated: #161616;
    --bg-card: #1a1a1a;
    --text: #e8e8e8;
    --text-dim: #888;
    --text-muted: #555;
    --accent: #00e87b;
    --accent-dim: rgba(0,232,123,0.12);
    --border: #222;
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'DM Sans', -apple-system, sans-serif;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  ::selection {
    background: var(--accent);
    color: var(--bg);
  }

  /* --- Badge --- */
  .badge {
    display: inline-block;
    padding: 0.3em 1em;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  /* --- Nav --- */
  nav {
    position: fixed; top:0; left:0; right:0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.4rem 4vw;
    background: rgba(12,12,12,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  .logo {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
  }
  .logo span { color: var(--accent); }
  .nav-links { display:flex; gap: 2.5rem; align-items:center; }
  .nav-links a {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.3s;
  }
  .nav-links a:hover { color: var(--text); }
  .btn-nav {
    padding: 0.55rem 1.6rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    text-decoration: none;
  }
  .btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,232,123,0.25);
  }

  /* --- Hero --- */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10rem 4vw 6rem;
    max-width: 900px;
    position: relative;
  }
  .hero::after {
    content: '';
    position: absolute;
    top: 15%; right: -20vw;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(0,232,123,0.06) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero .badge { margin-bottom: 2rem; animation: fadeUp 0.8s ease both; }
  .hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.8rem;
    animation: fadeUp 0.8s ease 0.1s both;
  }
  .hero h1 em {
    font-style: italic;
    color: var(--accent);
  }
  .hero p {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.8rem;
    animation: fadeUp 0.8s ease 0.2s both;
  }
  .hero-actions {
    display: flex; gap: 1rem; align-items: center;
    animation: fadeUp 0.8s ease 0.3s both;
  }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2.2rem;
    background: var(--accent);
    color: var(--bg);
    border: none; border-radius: 8px;
    font-size: 0.95rem; font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,232,123,0.3);
  }
  .btn-primary svg { width: 16px; height: 16px; }
  .btn-ghost {
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s;
  }
  .btn-ghost:hover { border-color: var(--text-dim); color: var(--text); }

  /* --- Section shared --- */
  section { padding: 7rem 4vw; }
  .section-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
  }
  .section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
  }
  .section-sub {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 540px;
    line-height: 1.7;
  }

  /* --- Features --- */
  .features { background: var(--bg); }
  .features-header { margin-bottom: 4rem; }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.4rem 2rem;
    transition: border-color 0.4s, transform 0.3s;
    position: relative;
    overflow: hidden;
  }
  .feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
  }
  .feature-card:hover::before { transform: scaleX(1); }
  .feature-card:hover { border-color: #333; transform: translateY(-4px); }
  .feature-num {
    font-family: var(--serif);
    font-size: 2.6rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1.2rem;
    opacity: 0.4;
  }
  .feature-card h3 {
    font-weight: 500;
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
  }
  .feature-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.65;
  }

  /* --- How it works --- */
  .how-it-works {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
  }
  .how-step {
    position: relative;
    padding-top: 3rem;
  }
  .how-step::before {
    content: attr(data-step);
    position: absolute;
    top: 0; left: 0;
    font-family: var(--serif);
    font-size: 4.5rem;
    color: var(--accent);
    opacity: 0.12;
    line-height: 1;
  }
  .how-step h3 {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  .how-step p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.65;
  }

  /* --- Testimonials --- */
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
  }
  .testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: border-color 0.3s;
  }
  .testimonial-card:hover { border-color: #333; }
  .testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
  }
  .testimonial-card blockquote::before {
    content: '"';
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.5;
    display: block;
    margin-bottom: 0.3rem;
    line-height: 1;
  }
  .testimonial-author {
    display: flex; align-items: center; gap: 1rem;
  }
  .testimonial-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent-dim);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent);
    flex-shrink: 0;
  }
  .testimonial-name {
    font-weight: 500;
    font-size: 0.88rem;
  }
  .testimonial-role {
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  /* --- CTA --- */
  .cta-section {
    text-align: center;
    padding: 8rem 4vw;
    position: relative;
  }
  .cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 60vw; height: 60vw;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0,232,123,0.05) 0%, transparent 60%);
    pointer-events: none;
  }
  .cta-section .section-title { max-width: 600px; margin: 0 auto 1rem; }
  .cta-section .section-sub { max-width: 480px; margin: 0 auto 2.5rem; }

  /* --- Footer --- */
  footer {
    border-top: 1px solid var(--border);
    padding: 3rem 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  footer small {
    color: var(--text-muted);
    font-size: 0.78rem;
  }
  .footer-links { display:flex; gap: 2rem; }
  .footer-links a {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.3s;
  }
  .footer-links a:hover { color: var(--text-dim); }

  /* --- Animations --- */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* --- Responsive --- */
  @media (max-width: 768px) {
    nav { padding: 1rem 5vw; }
    .nav-links a:not(.btn-nav) { display: none; }
    .hero { padding: 8rem 5vw 4rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .how-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    section { padding: 5rem 5vw; }
  }

  /* --- Label --- */
  .mockup-label {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: var(--bg);
    padding: 0.5rem 1.5rem; border-radius: 100px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; z-index: 200;
    box-shadow: 0 4px 20px rgba(0,232,123,0.3);
  }

.testimonial-avatar { padding: 0; overflow: hidden; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Legal pages (terms, privacy) */
.page-container { max-width: 800px; margin: 0 auto; padding: 7rem 1.5rem 2rem; }
.page-title { font-family: var(--serif); font-size: 2rem; font-weight: 400; margin-bottom: 0.4rem; }
.legal-content { max-width: 700px; }
.legal-content .last-updated { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 2rem; }
.legal-content h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; margin: 2rem 0 0.8rem; color: var(--text); }
.legal-content p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.75; margin-bottom: 0.8rem; }

/* Auth forms (login, register) */
.login-wrapper { min-height: calc(100vh - 100px); display: flex; align-items: center; justify-content: center; padding: 6rem 4vw 3rem; position: relative; }
.login-wrapper::before { content: ''; position: absolute; top: 30%; left: 50%; transform: translateX(-50%); width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,232,123,0.06) 0%, transparent 70%); pointer-events: none; }
.login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 3rem 2.8rem; width: 100%; max-width: 420px; position: relative; z-index: 1; }
.login-card h1 { font-family: var(--serif); font-size: 2rem; font-weight: 400; margin-bottom: 0.4rem; }
.login-card .sub { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 2.2rem; }
.login-error { background: rgba(249,112,102,0.08); border: 1px solid rgba(249,112,102,0.25); color: #f97066; padding: 0.7rem 1rem; border-radius: 8px; font-size: 0.85rem; margin-bottom: 1.4rem; }
.form-error { color: #f97066; font-size: 0.78rem; margin-top: 0.4rem; }
.form-group { margin-bottom: 1.4rem; }
.form-label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-dim); margin-bottom: 0.5rem; letter-spacing: 0.04em; text-transform: uppercase; }
.form-input { width: 100%; padding: 0.75rem 1rem; background: #0f0f0f; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.92rem; font-family: var(--sans); outline: none; transition: border-color 0.3s; }
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-dim); cursor: pointer; }
.form-check input { accent-color: var(--accent); }
.form-link { font-size: 0.82rem; color: var(--accent); text-decoration: none; }
.btn-full { width: 100%; padding: 0.85rem; background: var(--accent); color: var(--bg); border: none; border-radius: 8px; font-size: 0.95rem; font-weight: 500; cursor: pointer; font-family: var(--sans); transition: all 0.2s; }
.btn-full:hover { box-shadow: 0 8px 30px rgba(0,232,123,0.25); transform: translateY(-1px); }
.login-footer { text-align: center; margin-top: 1.8rem; font-size: 0.85rem; color: var(--text-muted); }
.login-footer a { color: var(--accent); text-decoration: none; }

/* Affiliate & Support (batch2/batch3) */
.page-subtitle { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 2.5rem; }
.btn-sm { display: inline-block; padding: 0.45rem 1.2rem; border-radius: 6px; font-size: 0.78rem; font-weight: 500; border: none; cursor: pointer; font-family: var(--sans); text-decoration: none; transition: all 0.2s; }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,232,123,0.25); }
.btn-outline { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-dim); color: var(--text); }

.affiliate-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.affiliate-actions { display: flex; gap: 0.6rem; }

.table-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table thead th { text-align: left; padding: 0.8rem 1.2rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
table.data-table tbody td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-dim); word-break: break-all; }
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table__url { color: var(--text-dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }
.data-table__asterisk { color: var(--accent, var(--text-muted)); font-weight: 600; margin-left: 0.15rem; }
.table-card__footnote { padding: 0.85rem 1.2rem; margin: 0; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.table-card__footnote strong { color: var(--text-dim); }
.table-card__footnote > span { color: var(--accent, var(--text-muted)); font-weight: 600; margin-right: 0.15rem; }

.empty-state { text-align: center; padding: 3rem 2rem; color: var(--text-muted); }
.empty-state p { font-size: 0.9rem; }
.empty-state .sub-text { font-size: 0.82rem; margin-top: 0.4rem; color: var(--text-muted); }

.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; max-width: 520px; }

.stats-filter { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; margin-bottom: 2rem; }
.stats-filter__form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: end; }
.stats-filter__form .form-group { margin-bottom: 0; }
.stats-filter__submit .btn-sm { width: 100%; padding: 0.65rem; }

.stats-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stats-totals__item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.6rem; }
.stats-totals__label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.stats-totals__value { font-family: var(--serif); font-size: 1.6rem; color: var(--text); }

.support-intro { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; max-width: 600px; }
.messages-area { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem 1.6rem; margin-bottom: 1.5rem; min-height: 180px; }
.messages-area--empty { display: flex; align-items: center; justify-content: center; padding: 2.5rem 2rem; }
.empty-messages { text-align: center; color: var(--text-muted); }
.empty-messages p { font-size: 0.9rem; }
.empty-messages .sub-text { font-size: 0.82rem; margin-top: 0.3rem; }
.form-textarea { width: 100%; padding: 0.75rem 1rem; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.92rem; font-family: var(--sans); outline: none; transition: border-color 0.3s; resize: vertical; min-height: 120px; }
.form-textarea:focus { border-color: var(--accent); }
.form-textarea::placeholder { color: var(--text-muted); }

.messages-area { display: flex; flex-direction: column; gap: 1.1rem; }
.messages-area--empty { align-items: center; justify-content: center; }
.support-chat__message { display: flex; flex-direction: column; max-width: 75%; }
.support-chat__message--own { align-self: flex-end; align-items: flex-end; }
.support-chat__message--admin { align-self: flex-start; align-items: flex-start; }
.support-chat__meta { display: flex; gap: 0.6rem; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.35rem; padding: 0 0.25rem; }
.support-chat__author { color: var(--text-dim); font-weight: 500; }
.support-chat__date { color: var(--text-muted); }
.support-chat__bubble { padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.92rem; line-height: 1.55; border: 1px solid var(--border); }
.support-chat__message--own .support-chat__bubble { background: rgba(0,232,123,0.12); border-color: rgba(0,232,123,0.3); color: var(--text); border-bottom-right-radius: 4px; }
.support-chat__message--admin .support-chat__bubble { background: var(--bg-input); color: var(--text-dim); border-bottom-left-radius: 4px; }
@media (max-width: 600px) { .support-chat__message { max-width: 90%; } }

@media (max-width: 768px) {
  .stats-filter__form { grid-template-columns: 1fr; }
  .stats-totals { grid-template-columns: 1fr; }
  .affiliate-header { align-items: flex-start; }
}

.form-textarea + .btn-full { margin-top: 1.5rem; }

.btn-icon { display: inline-flex; align-items: center; justify-content: center; padding: 0.45rem; width: 2rem; height: 2rem; white-space: nowrap; }
.btn-icon .icon { width: 1rem; height: 1rem; display: block; }
.btn-icon .icon-check { display: none; }
.btn-icon.is-copied { color: var(--accent); border-color: var(--accent); }
.btn-icon.is-copied .icon-copy { display: none; }
.btn-icon.is-copied .icon-check { display: block; }

.page-container--narrow { max-width: 560px; }
.page-container--wide { max-width: 1180px; }
.back-link { display: inline-block; font-size: 0.82rem; text-decoration: none; margin-bottom: 1.2rem; }
.form-hint { font-size: 0.8rem; margin-top: 0.5rem; }
.back-link { color: var(--text-dim); }
.back-link:hover { color: var(--accent); }
.form-hint { color: var(--text-muted); }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.profile-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2.2rem 2rem; }
.profile-card h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin-bottom: 0.5rem; }
.status-row { margin: 1rem 0 0.8rem; }
.status-badge { display: inline-block; padding: 0.3em 1em; border-radius: 100px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; }
.status-free { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,232,123,0.2); }
.status-premium { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,232,123,0.3); }
.status-description { color: var(--text-dim); font-size: 0.9rem; margin: 1rem 0 1.5rem; line-height: 1.65; }
.status-description strong { color: var(--text); font-weight: 500; }
.status-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.8rem; }
.plan-features { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.plan-features li { font-size: 0.88rem; color: var(--text-dim); padding: 0.4rem 0; padding-left: 1.4rem; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.confirm-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
@media (max-width: 768px) { .profile-grid { grid-template-columns: 1fr; } }

.nav-links a.btn-nav { color: var(--bg); font-weight: 500; }
.nav-links a.btn-nav:hover { color: var(--bg); }
.nav-greeting { font-size: 0.82rem; color: var(--text-dim); }
.nav-greeting strong { color: var(--accent); font-weight: 500; }

/* Campaign list (admin-mockup1) */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap; }
.campaigns-table { width: 100%; border-collapse: collapse; }
.campaigns-table thead th { text-align: left; padding: 0.8rem 1rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.campaigns-table thead th.num { text-align: right; }
.campaigns-table tbody td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; color: var(--text); }
.campaigns-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
.campaigns-table tbody td.dim { color: var(--text-dim); }
.campaigns-table tbody tr:last-child td { border-bottom: none; }
.campaigns-table tbody tr { transition: background 0.2s; }
.campaigns-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.campaigns-table tr.is-archived td { opacity: 0.5; }
.campaign-name { color: var(--accent); font-weight: 500; text-decoration: none; transition: opacity 0.2s; }
.campaign-name:hover { opacity: 0.8; }
.archived-tag { display: inline-block; margin-left: 0.5rem; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

/* Campaign detail (admin-mockup1) */
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.6rem; gap: 1rem; flex-wrap: wrap; }
.detail-title { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.detail-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.campaign-url-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 1.5rem; }
.campaign-url-bar code { font-size: 0.82rem; color: var(--text-dim); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.section-divider { width: 100%; height: 1px; background: var(--border); margin: 1.5rem 0; }
.detail-section { padding: 1.5rem 0; }
.detail-section-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; margin-bottom: 1rem; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.2rem; margin-bottom: 1.5rem; }
.settings-grid .form-group { margin-bottom: 0; }

.btn-danger { background: rgba(249,112,102,0.08); color: #f97066; border: 1px solid rgba(249,112,102,0.25); }
.btn-danger:hover { background: rgba(249,112,102,0.18); border-color: rgba(249,112,102,0.45); color: #f97066; }

.rule-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem; margin-bottom: 1.5rem; }
.rule-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.rule-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; margin-bottom: 0.2rem; }
.rule-sub { font-size: 0.82rem; color: var(--text-dim); }
.rule-group { margin-bottom: 1.6rem; }
.rule-group:last-child { margin-bottom: 0; }
.rule-group-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.7rem; }

.rules-table { width: 100%; border-collapse: collapse; }
.rules-table thead th { text-align: left; padding: 0.5rem 0.6rem 0.6rem; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.rules-table thead th.col-num { text-align: right; }
.rules-table tbody td { padding: 0.35rem 0.6rem; vertical-align: middle; font-size: 0.88rem; color: var(--text); }
.rules-table tbody td.dim { color: var(--text-dim); }
.rules-table tbody td.col-num { text-align: right; font-variant-numeric: tabular-nums; }
.rules-table tbody td.col-action { width: 36px; text-align: center; }
.rules-table .col-weight { width: 110px; }
.rules-table .col-num { width: 110px; }
.rules-table tr.is-disabled td { opacity: 0.5; }
.rules-table .rule-add-row td { border-top: 1px dashed var(--border); padding-top: 0.7rem; }
.rules-table .rule-add-row .dim { color: var(--text-muted); font-size: 0.8rem; }
.rules-table input.form-input { padding: 0.45rem 0.65rem; font-size: 0.85rem; }

.row-delete { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--text-muted); border-radius: 6px; transition: all 0.2s; }
.row-delete:hover { color: #f97066; background: rgba(249,112,102,0.1); }
.row-delete svg { width: 14px; height: 14px; }

.rule-row { display: grid; grid-template-columns: 1fr 120px 36px; gap: 0.6rem; align-items: center; }

.add-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--accent-dim); border: 1px solid rgba(0,232,123,0.2); border-radius: 8px; cursor: pointer; transition: all 0.2s; color: var(--accent); font-size: 1.1rem; line-height: 1; padding: 0; font-family: var(--sans); }
.add-btn:hover { background: rgba(0,232,123,0.22); border-color: rgba(0,232,123,0.35); }

.rule-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.upgrade-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem; margin-top: 2rem; }
.upgrade-card h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; margin-bottom: 0.4rem; }
.upgrade-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; }

/* select2 overrides — minimal */
.select2-container--default .select2-selection--multiple { background: #0f0f0f; border: 1px solid var(--border); border-radius: 8px; min-height: 42px; padding: 0.25rem 0.4rem; }
.select2-container--default.select2-container--focus .select2-selection--multiple { border-color: var(--accent); }
.select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--accent-dim); border: 1px solid rgba(0,232,123,0.25); color: var(--text); border-radius: 6px; padding: 2px 8px; margin-top: 4px; font-size: 0.82rem; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--text-dim); margin-right: 5px; }
.select2-container--default .select2-search--inline .select2-search__field { color: var(--text); font-family: var(--sans); }
.select2-dropdown { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.select2-results__option { padding: 0.5rem 0.8rem; font-size: 0.88rem; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--accent-dim); color: var(--text); }
.select2-search--dropdown .select2-search__field { background: #0f0f0f; border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 0.4rem 0.6rem; }

@media (max-width: 768px) {
  .settings-grid { grid-template-columns: 1fr; }
  .detail-actions { width: 100%; }
}
