/* AIB-DESIGN-SYSTEM v2 — プロデザイナー仕上げの共通デザイン(初期構築・修正後も維持) */
:root{
  /* ブランド */
  --brand:#3b5bdb; --brand-hover:#2f49b8; --brand-press:#27409f;
  --brand-soft:#eef2ff; --brand-soft-2:#e0e7ff; --brand-ink:#1e2a78;
  /* 面と境界 */
  --bg:#f6f8fc; --surface:#ffffff; --surface-2:#f9fafe; --surface-3:#f1f4fb;
  --line:#e6e9f2; --line-strong:#d4d9e8;
  /* テキスト階層 */
  --ink:#10172a; --text:#374151; --muted:#6b7280; --faint:#9aa3b2;
  /* セマンティック */
  --ok:#15803d; --ok-bg:#ecfdf3; --ok-line:#bbf7d0;
  --warn:#b45309; --warn-bg:#fffbeb; --warn-line:#fde68a;
  --err:#b91c1c; --err-bg:#fef2f2; --err-line:#fecaca;
  --info:#1e40af; --info-bg:#eff4ff; --info-line:#c7d6fe;
  /* 形状・影・余白 */
  --r-xs:6px; --r-sm:9px; --r:13px; --r-lg:18px; --r-pill:999px;
  --sh-xs:0 1px 2px rgba(16,23,42,.06);
  --sh-sm:0 1px 3px rgba(16,23,42,.07), 0 1px 2px rgba(16,23,42,.04);
  --sh:0 4px 14px rgba(16,23,42,.07), 0 2px 4px rgba(16,23,42,.04);
  --sh-lg:0 18px 44px rgba(16,23,42,.12), 0 6px 14px rgba(16,23,42,.06);
  --maxw:1120px; --ease:cubic-bezier(.4,0,.2,1);
  --font:"Inter","Noto Sans JP",-apple-system,BlinkMacSystemFont,"Hiragino Sans","Segoe UI",sans-serif;
}
*{box-sizing:border-box;}
*::selection{background:var(--brand-soft-2); color:var(--brand-ink);}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
html,body{margin:0;padding:0;}
body{
  font-family:var(--font); background:var(--bg); color:var(--text);
  line-height:1.7; font-size:15.5px; letter-spacing:.005em;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5{color:var(--ink); line-height:1.25; margin:0 0 .55em; font-weight:700; letter-spacing:-.012em;}
h1{font-size:clamp(1.7rem,2.4vw,2.15rem);} h2{font-size:1.5rem; margin-top:.2em;} h3{font-size:1.2rem;} h4{font-size:1.02rem;}
p{margin:0 0 1em;} small{color:var(--muted);}
a{color:var(--brand); text-decoration:none; transition:color .15s var(--ease);}
a:hover{color:var(--brand-hover); text-decoration:underline; text-underline-offset:2px;}
img{max-width:100%; height:auto; display:block;}
hr{border:0; border-top:1px solid var(--line); margin:24px 0;}
code{background:var(--surface-3); padding:.12em .4em; border-radius:var(--r-xs); font-size:.88em; font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,monospace;}
:focus-visible{outline:2px solid var(--brand); outline-offset:2px; border-radius:4px;}
::-webkit-scrollbar{width:11px; height:11px;}
::-webkit-scrollbar-thumb{background:#cfd6e6; border-radius:8px; border:3px solid var(--bg);}
::-webkit-scrollbar-thumb:hover{background:#b9c2d8;}
.container{max-width:var(--maxw); margin:0 auto; padding:28px 22px;}
/* 取りこぼし対策: ラッパークラスを付け忘れても整って見えるように */
main{display:block;}
main:not(.container){max-width:var(--maxw); margin:0 auto; padding:28px 22px;}
section:not(.hero){margin:18px 0;}

/* ナビゲーション */
.navbar{background:rgba(255,255,255,.86); backdrop-filter:saturate(1.6) blur(10px);
  border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50;}
.navbar .nav-inner{max-width:var(--maxw); margin:0 auto; padding:14px 22px;
  display:flex; align-items:center; justify-content:space-between; gap:18px;}
.nav-brand{font-weight:800; font-size:1.12rem; color:var(--ink); letter-spacing:-.02em;
  display:flex; align-items:center; gap:9px;}
.nav-brand:hover{text-decoration:none; color:var(--ink);}
.nav-links{display:flex; align-items:center; gap:6px; flex-wrap:wrap;}
.nav-links a{color:var(--muted); font-weight:600; font-size:.9rem; padding:7px 12px; border-radius:var(--r-sm);
  transition:background .15s var(--ease),color .15s var(--ease);}
.nav-links a:hover{color:var(--brand-ink); background:var(--brand-soft); text-decoration:none;}

/* ヒーロー */
.hero{position:relative; overflow:hidden; color:#fff; border-radius:var(--r-lg);
  padding:clamp(36px,5vw,64px); margin:26px 0; box-shadow:var(--sh-lg);
  background-color:var(--brand-press); background-size:cover; background-position:center;
  background-image:linear-gradient(120deg, rgba(30,42,120,.78), rgba(59,91,219,.62)),
    var(--hero-bg, radial-gradient(120% 140% at 0% 0%, #4c6ef5 0%, var(--brand) 45%, var(--brand-press) 100%));}
.hero::after{content:""; position:absolute; inset:0;
  background:radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.18), transparent 60%); pointer-events:none;}
.hero h1{color:#fff; font-size:clamp(1.9rem,3.4vw,2.7rem); margin-bottom:.25em; letter-spacing:-.02em;}
.hero p{color:rgba(255,255,255,.92); font-size:1.1rem; max-width:60ch; margin-bottom:0;}
.hero .btn{margin-top:22px;}

/* カード・グリッド */
.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:24px; box-shadow:var(--sh-sm); margin-bottom:22px; transition:box-shadow .2s var(--ease),transform .2s var(--ease),border-color .2s var(--ease);}
a.card,.card-link{display:block; color:inherit;}
a.card:hover,.card-link:hover{text-decoration:none; box-shadow:var(--sh); transform:translateY(-2px); border-color:var(--line-strong);}
.card-title{font-size:1.08rem; font-weight:700; color:var(--ink); margin-bottom:.7em; letter-spacing:-.01em;}
.grid{display:grid; gap:22px;}
.grid.cols-2{grid-template-columns:repeat(2,1fr);}
.grid.cols-3{grid-template-columns:repeat(3,1fr);}
.grid.cols-4{grid-template-columns:repeat(4,1fr);}

/* ボタン */
.btn,button{display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 19px; background:var(--brand); color:#fff; border:1px solid transparent;
  border-radius:var(--r-sm); cursor:pointer; font:inherit; font-weight:650; line-height:1.1;
  text-decoration:none; letter-spacing:.01em; box-shadow:var(--sh-xs);
  transition:background .15s var(--ease),box-shadow .15s var(--ease),transform .06s var(--ease);}
.btn:hover,button:hover{background:var(--brand-hover); color:#fff; text-decoration:none; box-shadow:var(--sh-sm); transform:translateY(-1px);}
.btn:active,button:active{background:var(--brand-press); transform:translateY(0);}
.btn:disabled,button:disabled{opacity:.55; cursor:not-allowed; transform:none; box-shadow:none;}
.btn-secondary{background:var(--brand-soft); color:var(--brand-ink); border-color:var(--brand-soft-2);}
.btn-secondary:hover{background:var(--brand-soft-2); color:var(--brand-ink);}
.btn-ghost{background:var(--surface); color:var(--text); border-color:var(--line-strong);}
.btn-ghost:hover{background:var(--surface-3); color:var(--ink);}
.btn-danger{background:var(--err);} .btn-danger:hover{background:#a11616;}
.btn-success{background:var(--ok);} .btn-success:hover{background:#11652f;}
.btn-sm{padding:7px 13px; font-size:.85rem; border-radius:var(--r-xs);}
.btn-lg{padding:14px 26px; font-size:1.05rem;}
.btn-block{display:flex; width:100%;}

/* フォーム */
.form-group{margin-bottom:17px;}
label{display:block; font-weight:600; color:var(--ink); margin-bottom:7px; font-size:.9rem;}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=tel],
input[type=date],input[type=search],input[type=url],input[type=time],select,textarea{
  width:100%; padding:11px 13px; border:1px solid var(--line-strong); border-radius:var(--r-sm);
  font:inherit; color:var(--ink); background:var(--surface); transition:border-color .15s var(--ease),box-shadow .15s var(--ease);}
input::placeholder,textarea::placeholder{color:var(--faint);}
input:hover,select:hover,textarea:hover{border-color:#b6bed2;}
input:focus,select:focus,textarea:focus{outline:none; border-color:var(--brand); box-shadow:0 0 0 3.5px var(--brand-soft);}
input:disabled,select:disabled,textarea:disabled{background:var(--surface-3); color:var(--muted);}
textarea{min-height:118px; resize:vertical;}
.form-hint{font-size:.82rem; color:var(--muted); margin-top:5px;}

/* 認証ページ */
.auth-wrap{min-height:calc(100vh - 64px); display:flex; align-items:center; justify-content:center; padding:34px 16px;
  background:radial-gradient(80% 60% at 50% -10%, var(--brand-soft), transparent 70%);}
.auth-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--sh-lg); padding:38px 34px; width:100%; max-width:430px;}
.auth-card h1{text-align:center; font-size:1.55rem; margin-bottom:1.1em;}
.auth-card .btn{width:100%; margin-top:4px;}
.auth-alt{text-align:center; margin-top:20px; font-size:.9rem; color:var(--muted);}

/* テーブル */
.table-wrap{overflow-x:auto; border-radius:var(--r); box-shadow:var(--sh-sm); border:1px solid var(--line);}
.table,table{width:100%; border-collapse:collapse; background:var(--surface); overflow:hidden;}
.table th,.table td,th,td{padding:13px 15px; text-align:left; border-bottom:1px solid var(--line); font-size:.93rem;}
.table th,th{background:var(--surface-3); font-weight:700; color:var(--ink); font-size:.82rem;
  text-transform:uppercase; letter-spacing:.04em;}
.table tbody tr,tbody tr{transition:background .12s var(--ease);}
.table tbody tr:hover,tbody tr:hover{background:var(--surface-2);}
.table tr:last-child td,tr:last-child td{border-bottom:0;}

/* アラート・バッジ */
.alert{padding:13px 16px 13px 16px; border-radius:var(--r-sm); margin:14px 0; border:1px solid transparent;
  border-left-width:4px; font-size:.92rem;}
.alert.success{background:var(--ok-bg); color:var(--ok); border-color:var(--ok-line); border-left-color:var(--ok);}
.alert.error{background:var(--err-bg); color:var(--err); border-color:var(--err-line); border-left-color:var(--err);}
.alert.warning{background:var(--warn-bg); color:var(--warn); border-color:var(--warn-line); border-left-color:var(--warn);}
.alert.info{background:var(--info-bg); color:var(--info); border-color:var(--info-line); border-left-color:var(--info);}
.badge{display:inline-flex; align-items:center; gap:5px; padding:3px 11px; border-radius:var(--r-pill);
  font-size:.76rem; font-weight:700; background:var(--brand-soft); color:var(--brand-ink); letter-spacing:.01em;}
.badge.ok{background:var(--ok-bg); color:var(--ok);} .badge.warn{background:var(--warn-bg); color:var(--warn);}
.badge.err{background:var(--err-bg); color:var(--err);}

/* ダッシュボード */
.stat-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:18px; margin-bottom:8px;}
.stat-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:22px; box-shadow:var(--sh-sm); position:relative; overflow:hidden;}
.stat-card::before{content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--brand); opacity:.9;}
.stat-card .stat-label{color:var(--muted); font-size:.85rem; font-weight:600;}
.stat-card .stat-value{font-size:2rem; font-weight:800; color:var(--ink); margin-top:5px; letter-spacing:-.02em;}

/* 空状態・フッター・ユーティリティ */
.empty-state{text-align:center; color:var(--muted); padding:48px 20px;}
.site-footer{text-align:center; color:var(--muted); font-size:.85rem; padding:30px 16px; border-top:1px solid var(--line); margin-top:36px;}
.text-center{text-align:center;} .text-muted{color:var(--muted);} .text-right{text-align:right;}
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;} .mt-1{margin-top:8px;} .mb-1{margin-bottom:8px;}
.mt-2{margin-top:18px;} .mb-2{margin-bottom:18px;} .mt-3{margin-top:28px;}
.flex{display:flex; gap:12px; align-items:center;} .flex-between{justify-content:space-between;}
.flex-wrap{flex-wrap:wrap;} .gap-sm{gap:8px;}

@media (max-width:820px){
  .grid.cols-2,.grid.cols-3,.grid.cols-4{grid-template-columns:1fr;}
  .nav-inner{flex-wrap:wrap; gap:10px;}
  .container{padding:22px 16px;}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none !important; transition:none !important; scroll-behavior:auto !important;}
}

/* ===== project-specific styles (AI generated) ===== */
:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --bg: #f4f7fb;
    --bg-dark: #0f172a;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-muted: #eef2f7;
    --text: #1e293b;
    --text-light: #475569;
    --text-muted: #64748b;
    --border: #dbe4ee;
    --border-strong: #c8d4e3;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #dbeafe;
    --secondary: #7c3aed;
    --secondary-soft: #ede9fe;
    --success: #16a34a;
    --success-soft: #dcfce7;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --info: #0f766e;
    --info-soft: #ccfbf1;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.14);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --container: 1180px;
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.07), transparent 22%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.06), transparent 20%),
        var(--bg);
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

code,
pre,
.mono {
    font-family: var(--font-mono);
}

pre {
    overflow: auto;
    padding: 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.6;
}

hr {
    border: 0;
    height: 1px;
    margin: 24px 0;
    background: var(--border);
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.container-sm {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
}

.page-section {
    padding: 56px 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(219, 228, 238, 0.9);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.site-brand-badge {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--shadow-sm);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-light);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.hero {
    padding: 72px 0 56px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero p.lead {
    margin: 0 0 24px;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
}

.hero-panel,
.panel,
.card {
    background: var(--surface);
    border: 1px solid rgba(219, 228, 238, 0.85);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 28px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.metric-box {
    padding: 18px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--border);
    text-align: center;
}

.metric-box strong {
    display: block;
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.metric-box span {
    color: var(--text-muted);
    font-size: 13px;
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1,
.page-header h2 {
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.page-header p {
    margin: 0;
    color: var(--text-light);
}

.section-title {
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

.section-lead {
    margin: 0 auto 28px;
    max-width: 760px;
    color: var(--text-light);
    font-size: 16px;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    padding: 24px;
}

.card h2,
.card h3,
.card h4 {
    margin-top: 0;
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
    margin-bottom: 0;
}

.card-soft {
    background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.card-muted {
    background: var(--surface-soft);
}

.card-outline {
    box-shadow: none;
}

.feature-card {
    height: 100%;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 800;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.feature-card p {
    margin: 0;
    color: var(--text-light);
}

.btn,
button.btn,
input[type="submit"].btn,
input[type="button"].btn {
    appearance: none;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
    color: #fff;
    filter: brightness(0.98);
}

.btn-secondary {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-color: rgba(37, 99, 235, 0.15);
}

.btn-secondary:hover {
    color: var(--primary-dark);
    background: #cfe1ff;
}

.btn-outline {
    color: var(--text);
    background: #fff;
    border-color: var(--border-strong);
}

.btn-outline:hover {
    color: var(--text);
    border-color: var(--primary);
    background: #f8fbff;
}

.btn-success {
    color: #fff;
    background: var(--success);
}

.btn-danger {
    color: #fff;
    background: var(--danger);
}

.btn-warning {
    color: #fff;
    background: var(--warning);
}

.btn-link {
    color: var(--primary);
    padding: 0;
    min-height: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.btn-sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
}

.btn-lg {
    min-height: 54px;
    padding: 0 24px;
    font-size: 16px;
}

.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-light {
    color: var(--text-light);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.bg-white {
    background: #fff;
}

.hidden {
    display: none !important;
}

.form-card,
.auth-card,
.dashboard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
}

.auth-layout {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.auth-card {
    width: min(520px, 100%);
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
}

.auth-card p {
    margin: 0 0 22px;
    color: var(--text-light);
}

.form-row {
    display: grid;
    gap: 16px;
}

.form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--text);
    border-radius: 12px;
    padding: 13px 14px;
    outline: none;
    transition: var(--transition);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

input[type="file"] {
    width: 100%;
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.form-hint,
.field-hint,
small.help {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-inline,
.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.checkbox-inline input,
.radio-inline input {
    width: auto;
    margin: 0;
}

.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-slider {
    width: 50px;
    height: 28px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    transition: var(--transition);
}

.switch-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.switch input:checked + .switch-slider {
    background: var(--primary);
}

.switch input:checked + .switch-slider::after {
    left: 25px;
}

.alert,
.notice,
.message-box {
    border-radius: var(--radius);
    padding: 15px 16px;
    border: 1px solid transparent;
    margin-bottom: 18px;
}

.alert:last-child,
.notice:last-child,
.message-box:last-child {
    margin-bottom: 0;
}

.alert-info {
    color: var(--info);
    background: var(--info-soft);
    border-color: rgba(15, 118, 110, 0.14);
}

.alert-success {
    color: #166534;
    background: var(--success-soft);
    border-color: rgba(22, 163, 74, 0.16);
}

.alert-warning {
    color: #92400e;
    background: var(--warning-soft);
    border-color: rgba(217, 119, 6, 0.16);
}

.alert-danger,
.alert-error {
    color: #991b1b;
    background: var(--danger-soft);
    border-color: rgba(220, 38, 38, 0.16);
}

.badge,
.status-badge,
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-primary {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-color: rgba(37, 99, 235, 0.12);
}

.badge-success,
.status-active,
.status-published {
    color: #166534;
    background: var(--success-soft);
    border-color: rgba(22, 163, 74, 0.14);
}

.badge-warning,
.status-past_due,
.status-draft {
    color: #92400e;
    background: var(--warning-soft);
    border-color: rgba(217, 119, 6, 0.14);
}

.badge-danger,
.status-canceled,
.status-archived {
    color: #991b1b;
    background: var(--danger-soft);
    border-color: rgba(220, 38, 38, 0.14);
}

.badge-muted,
.status-none {
    color: var(--text-muted);
    background: #eef2f7;
    border-color: rgba(100, 116, 139, 0.12);
}

.plan-free {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: rgba(37, 99, 235, 0.16);
}

.plan-pro {
    color: #6d28d9;
    background: #ede9fe;
    border-color: rgba(124, 58, 237, 0.16);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: #fff;
}

.table th,
.table td {
    padding: 14px 16px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.table thead th {
    background: var(--surface-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table tbody tr:hover {
    background: #fafcff;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kpi-grid,
.stats-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card,
.stat-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: var(--shadow-sm);
}

.kpi-label,
.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kpi-value,
.stat-value {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    font-weight: 800;
}

.kpi-note,
.stat-note {
    color: var(--text-light);
    font-size: 13px;
}

.layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 92px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.sidebar h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-light);
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.content-stack {
    display: grid;
    gap: 22px;
}

.list-group {
    display: grid;
    gap: 12px;
}

.list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.list-item-main h3,
.list-item-main h4 {
    margin: 0 0 6px;
}

.list-item-main p {
    margin: 0;
    color: var(--text-light);
}

.list-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filters-bar {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.filters-bar .form-group {
    margin-bottom: 0;
    min-width: 180px;
    flex: 1 1 180px;
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-light);
    font-weight: 700;
}

.tab-link.active,
.tab-link:hover {
    color: var(--primary-dark);
    border-color: rgba(37, 99, 235, 0.16);
    background: var(--primary-soft);
}

.progress-steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.progress-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
}

.progress-step-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
    background: var(--surface-muted);
    color: var(--text-light);
}

.progress-step.active .progress-step-number {
    background: var(--primary);
    color: #fff;
}

.progress-step.done .progress-step-number {
    background: var(--success);
    color: #fff;
}

.progress-step h3 {
    margin: 2px 0 4px;
    font-size: 17px;
}

.progress-step p {
    margin: 0;
    color: var(--text-light);
}

.progress-bar {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe4ee;
}

.progress-bar > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.loading-dots {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: dotPulse 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.45;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--surface-soft);
}

.editor-area {
    width: 100%;
    min-height: 420px;
    resize: vertical;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid var(--border);
    padding: 18px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    background: #0f172a;
    color: #e2e8f0;
}

.preview-frame,
.lp-frame {
    width: 100%;
    min-height: 680px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.preview-shell {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
}

.code-box,
.copy-box {
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-soft);
    font-family: var(--font-mono);
    font-size: 13px;
    overflow-x: auto;
}

.image-grid,
.upload-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.image-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.image-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--surface-muted);
}

.image-card-body {
    padding: 14px;
}

.image-card-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 800;
}

.image-card-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.pricing-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
    position: relative;
    padding: 28px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.pricing-card.featured {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.14);
    transform: translateY(-4px);
}

.pricing-ribbon {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 14px;
}

.pricing-price strong {
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pricing-price span {
    color: var(--text-muted);
    font-weight: 700;
}

.pricing-card ul {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--text-light);
}

.pricing-card li + li {
    margin-top: 8px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

.summary-list {
    display: grid;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.summary-item strong {
    font-weight: 800;
}

.chart-card,
.graph-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.chart-placeholder {
    min-height: 260px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    border: 1px dashed var(--border-strong);
    color: var(--text-muted);
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.02)),
        #fff;
}

.chart-bars {
    display: grid;
    align-items: end;
    gap: 10px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-height: 220px;
    padding-top: 24px;
}

.chart-bars span {
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    min-height: 28px;
}

.empty-state {
    padding: 40px 24px;
    text-align: center;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--text-light);
}

.empty-state h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 22px;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-light);
    font-weight: 700;
}

.pagination a:hover,
.pagination .active {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-color: rgba(37, 99, 235, 0.16);
}

.site-footer {
    margin-top: 60px;
    padding: 32px 0 48px;
    color: var(--text-muted);
    font-size: 14px;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.lp-public-body {
    background: #fff;
    color: #111827;
}

.lp-public-body .site-header {
    background: rgba(255, 255, 255, 0.95);
}

.lp-public,
.generated-lp,
.lp-content {
    color: #111827;
    background: #fff;
}

.lp-public h1,
.generated-lp h1,
.lp-content h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: -0.03em;
}

.lp-public h2,
.generated-lp h2,
.lp-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.lp-public h3,
.generated-lp h3,
.lp-content h3 {
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.25;
    margin: 0 0 14px;
}

.lp-public p,
.generated-lp p,
.lp-content p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 16px;
}

.lp-public ul,
.lp-public ol,
.generated-lp ul,
.generated-lp ol,
.lp-content ul,
.lp-content ol {
    margin: 0 0 18px 20px;
    color: #334155;
}

.lp-public section,
.generated-lp section,
.lp-content section {
    padding: 64px 0;
}

.lp-public section:nth-child(odd),
.generated-lp section:nth-child(odd),
.lp-content section:nth-child(odd) {
    background: #fff;
}

.lp-public section:nth-child(even),
.generated-lp section:nth-child(even),
.lp-content section:nth-child(even) {
    background: #f8fbff;
}

.lp-public .hero,
.generated-lp .hero,
.lp-content .hero {
    padding: 100px 0 72px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 24%),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff, #ffffff);
}

.lp-public .cta-button,
.generated-lp .cta-button,
.lp-content .cta-button,
.lp-public .btn-primary,
.generated-lp .btn-primary,
.lp-content .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.lp-public .cta-button:hover,
.generated-lp .cta-button:hover,
.lp-content .cta-button:hover {
    color: #fff;
    filter: brightness(0.98);
}

.lp-public .lp-card,
.generated-lp .lp-card,
.lp-content .lp-card {
    padding: 26px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(219, 228, 238, 0.9);
    box-shadow: var(--shadow);
}

.lp-public blockquote,
.generated-lp blockquote,
.lp-content blockquote {
    margin: 20px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--primary);
    background: #f8fbff;
    color: #334155;
    border-radius: 0 16px 16px 0;
}

.lp-public table,
.generated-lp table,
.lp-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

.lp-public th,
.lp-public td,
.generated-lp th,
.generated-lp td,
.lp-content th,
.lp-content td {
    border: 1px solid var(--border);
    padding: 12px 14px;
    text-align: left;
}

.lp-public th,
.generated-lp th,
.lp-content th {
    background: #f8fafc;
}

.stats-summary {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.referrer-list,
.event-feed {
    display: grid;
    gap: 10px;
}

.referrer-item,
.event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.admin-summary-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.admin-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-light);
    font-weight: 700;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--primary-soft);
    border-color: rgba(37, 99, 235, 0.16);
    color: var(--primary-dark);
}

.timeline {
    display: grid;
    gap: 14px;
    position: relative;
}

.timeline-item {
    position: relative;
    padding: 16px 16px 16px 20px;
    border-left: 3px solid var(--border-strong);
    background: #fff;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
}

.timeline-item strong {
    display: block;
    margin-bottom: 4px;
}

.timeline-item p {
    margin: 0;
    color: var(--text-light);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: grid;
    place-items: center;
    padding: 16px;
    z-index: 1000;
}

.modal {
    width: min(640px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 24px;
}

.modal-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
}

.sticky-actions {
    position: sticky;
    bottom: 16px;
    z-index: 10;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.sticky-actions .inner {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.slug-preview {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    color: var(--text-light);
    word-break: break-all;
}

.inline-meta {
    display: flex;
    align-items: center;
    gap: 10px 16px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 13px;
}

.inline-meta strong {
    color: var(--text);
}

.avatar {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
    color: var(--primary-dark);
    font-weight: 800;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pill-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text-light);
    font-weight: 700;
}

.m0 {
    margin: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 8px !important;
}

.mt-2 {
    margin-top: 16px !important;
}

.mt-3 {
    margin-top: 24px !important;
}

.mt-4 {
    margin-top: 32px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 8px !important;
}

.mb-2 {
    margin-bottom: 16px !important;
}

.mb-3 {
    margin-bottom: 24px !important;
}

.mb-4 {
    margin-bottom: 32px !important;
}

.p-0 {
    padding: 0 !important;
}

.rounded {
    border-radius: var(--radius) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.border {
    border: 1px solid var(--border) !important;
}

.bg-soft {
    background: var(--surface-soft) !important;
}

@media (max-width: 1100px) {
    .hero-grid,
    .dashboard-hero,
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .grid-4,
    .kpi-grid,
    .stats-grid,
    .admin-summary-grid,
    .stats-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-header-inner {
        min-height: 64px;
    }

    .hero {
        padding: 48px 0 36px;
    }

    .page-section {
        padding: 42px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .form-row-2,
    .kpi-grid,
    .stats-grid,
    .admin-summary-grid,
    .stats-summary {
        grid-template-columns: 1fr;
    }

    .table {
        min-width: 680px;
    }

    .auth-card,
    .form-card,
    .dashboard-card,
    .card {
        padding: 22px;
    }

    .site-footer-inner,
    .admin-header,
    .filters-bar {
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .container,
    .container-sm {
        width: min(100% - 24px, var(--container));
    }

    .site-brand {
        font-size: 18px;
    }

    .nav-links {
        width: 100%;
    }

    .nav-links a,
    .btn,
    .tab-link,
    .admin-nav a {
        width: 100%;
        justify-content: center;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .pricing-price strong,
    .kpi-value,
    .stat-value {
        font-size: 28px;
    }

    .list-item,
    .summary-item,
    .referrer-item,
    .event-item {
        flex-direction: column;
        align-items: stretch;
    }

    .list-item-actions,
    .form-actions,
    .sticky-actions .inner {
        flex-direction: column;
    }

    .lp-public section,
    .generated-lp section,
    .lp-content section {
        padding: 48px 0;
    }

    .lp-public .hero,
    .generated-lp .hero,
    .lp-content .hero {
        padding: 72px 0 56px;
    }
}

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .btn,
    .form-actions,
    .sticky-actions,
    .admin-nav {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card,
    .panel,
    .table-wrapper {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}