:root {
  --primary: #6d28d9;
  --primary-2: #8b5cf6;
  --primary-3: #ede9fe;
  --accent: #06b6d4;
  --ink: #1f1833;
  --muted: #6f687c;
  --line: #e8e5ee;
  --surface: #ffffff;
  --surface-2: #f7f7fa;
  --surface-3: #f1eff6;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow-sm: 0 8px 26px rgba(31, 24, 51, .08);
  --shadow-lg: 0 24px 70px rgba(31, 24, 51, .15);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.admin-body { background: var(--surface-2); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.text-center { text-align: center; }
.spacer { height: 24px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(232, 229, 238, .85);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
}
.navbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.4px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  color: white; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(109,40,217,.25);
}
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .7px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 10px 13px; border-radius: 10px; font-size: 14px; font-weight: 750; color: #4f485c; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-3); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: white; }

.btn {
  border: 0; border-radius: 12px; min-height: 44px; padding: 10px 18px; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; font-weight: 800; transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 12px 26px rgba(109,40,217,.2); }
.btn-secondary { color: var(--primary); background: var(--primary-3); }
.btn-outline { color: var(--ink); background: white; border: 1px solid var(--line); }
.btn-danger { color: white; background: var(--danger); }
.btn-sm { min-height: 36px; padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbfaff 0%, #fff 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; filter: blur(1px); pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -250px; top: -260px; background: rgba(109,40,217,.08); }
.hero::after { width: 320px; height: 320px; left: -180px; bottom: -180px; background: rgba(6,182,212,.08); }
.hero-slider { min-height: 620px; position: relative; }
.hero-slide { display: none; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 54px; padding: 72px 0 88px; animation: fadeUp .45s ease; }
.hero-slide.active { display: grid; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #ddd5f4; background: #faf8ff; border-radius: 999px; color: var(--primary); font-size: 13px; font-weight: 850; letter-spacing: .2px; }
.hero h1 { margin: 18px 0; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.05; letter-spacing: -2.4px; }
.gradient-text { background: linear-gradient(120deg, var(--primary), var(--accent)); color: transparent; -webkit-background-clip: text; background-clip: text; }
.hero p { margin: 0 0 28px; font-size: 18px; color: var(--muted); max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; z-index: 1; }
.hero-visual img { width: 100%; aspect-ratio: 1.05 / .82; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow-lg); border: 1px solid #eee9f5; background: #f4f1fb; }
.hero-dots { position: absolute; z-index: 4; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #cfc8db; transition: .2s; }
.hero-dot.active { width: 28px; background: var(--primary); }

.trust-strip { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { padding: 24px; display: flex; align-items: center; gap: 13px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-3); color: var(--primary); font-size: 20px; }
.trust-item b { display: block; font-size: 14px; }
.trust-item span { font-size: 12px; color: var(--muted); }

.section { padding: 88px 0; }
.section-alt { background: var(--surface-2); }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin: 12px 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -1.5px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; }

.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 30px rgba(31,24,51,.04); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); transition: .22s ease; }
.feature-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-3), #e5faff); font-size: 23px; }
.feature-card h3 { margin: 19px 0 8px; font-size: 19px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.catalog-card, .post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 30px rgba(31,24,51,.05); display: flex; flex-direction: column; min-width: 0; }
.catalog-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); transition: .22s ease; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.catalog-card:hover .card-media img, .post-card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-tag { align-self: flex-start; padding: 5px 9px; border-radius: 999px; background: var(--primary-3); color: var(--primary); font-weight: 850; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
.card-body h3 { margin: 13px 0 8px; font-size: 20px; line-height: 1.35; }
.card-body p { margin: 0 0 18px; color: var(--muted); font-size: 14px; flex: 1; }
.card-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: var(--shadow-sm); }
.video-frame { aspect-ratio: 16 / 9; background: #17141f; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-meta { padding: 18px 20px 22px; }
.video-meta h3 { margin: 0 0 6px; }
.video-meta p { margin: 0; color: var(--muted); }

.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 48px; color: white; background: linear-gradient(135deg, #4c1d95, #7c3aed 56%, #0891b2); box-shadow: var(--shadow-lg); }
.cta::after { content: ""; position: absolute; width: 360px; height: 360px; right: -180px; top: -180px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.cta p { margin: 0; color: rgba(255,255,255,.82); max-width: 650px; }
.cta .btn { background: white; color: var(--primary); flex: 0 0 auto; }

.page-hero { padding: 84px 0 56px; background: linear-gradient(180deg, #faf8ff, #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 14px 0 10px; font-size: clamp(38px, 5vw, 58px); letter-spacing: -1.8px; line-height: 1.08; }
.page-hero p { max-width: 720px; color: var(--muted); margin: 0; font-size: 17px; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab { border: 1px solid var(--line); background: white; color: var(--muted); padding: 9px 14px; border-radius: 999px; font-weight: 800; }
.filter-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.search-box { min-width: min(100%, 320px); }
.search-box input { width: 100%; }

.detail-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: start; }
.detail-image { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow-sm); }
.detail-image img { width: 100%; aspect-ratio: 1.15 / 1; object-fit: cover; }
.detail-copy h1 { font-size: clamp(34px, 4.5vw, 54px); line-height: 1.1; letter-spacing: -1.5px; margin: 14px 0; }
.detail-copy .lead { font-size: 18px; color: var(--muted); }
.detail-content { white-space: pre-line; margin: 28px 0; color: #494253; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }

.form-card { border: 1px solid var(--line); border-radius: 24px; padding: 30px; background: white; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 850; }
.input, .select, .textarea {
  width: 100%; border: 1px solid #dcd8e5; border-radius: 11px; padding: 11px 13px; color: var(--ink); background: white; outline: none; transition: .2s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(139,92,246,.12); }
.textarea { min-height: 125px; resize: vertical; }
.help { font-size: 12px; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 38px; align-items: start; }
.contact-info { padding: 10px 0; }
.contact-points { display: grid; gap: 14px; margin-top: 26px; }
.contact-point { display: flex; gap: 13px; align-items: flex-start; }
.contact-point .trust-icon { flex: 0 0 42px; }

.site-footer { padding: 58px 0 24px; color: #d9d2e4; background: #17131f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 46px; }
.site-footer .brand { color: white; }
.site-footer p { color: #aaa1b8; max-width: 460px; }
.footer-title { color: white; font-size: 14px; margin: 0 0 13px; }
.footer-links { display: grid; gap: 8px; color: #aaa1b8; font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); display: flex; justify-content: space-between; gap: 20px; color: #837a90; font-size: 12px; }

.toast-wrap { position: fixed; top: 90px; right: 20px; z-index: 200; display: grid; gap: 10px; }
.toast { min-width: 270px; max-width: 420px; padding: 13px 16px; border-radius: 12px; color: white; box-shadow: var(--shadow-lg); animation: slideIn .25s ease; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: #334155; }
.empty-state { padding: 48px 20px; text-align: center; border: 1px dashed #d5cfdf; border-radius: var(--radius); color: var(--muted); grid-column: 1 / -1; }
.skeleton { min-height: 280px; border-radius: var(--radius); background: linear-gradient(90deg, #f4f2f8 25%, #faf9fc 37%, #f4f2f8 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }

.chat-launcher { position: fixed; bottom: 22px; z-index: 90; border: 0; width: 58px; height: 58px; border-radius: 20px; color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 15px 36px rgba(109,40,217,.34); font-size: 23px; }
.chat-launcher.right { right: 22px; }
.chat-launcher.left { left: 22px; }
.chat-panel { position: fixed; bottom: 92px; z-index: 90; width: min(380px, calc(100vw - 32px)); height: 520px; max-height: calc(100vh - 120px); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: white; box-shadow: var(--shadow-lg); display: none; }
.chat-panel.open { display: flex; flex-direction: column; }
.chat-panel.right { right: 22px; }
.chat-panel.left { left: 22px; }
.chat-head { padding: 14px 16px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; display: flex; justify-content: space-between; align-items: center; }
.chat-head button { border: 0; background: transparent; color: white; font-size: 20px; }
.chat-welcome { padding: 12px 14px; background: #f8f6ff; color: var(--muted); font-size: 13px; }
.chat-panel iframe { width: 100%; flex: 1; border: 0; }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 10% 10%, rgba(109,40,217,.12), transparent 32%), radial-gradient(circle at 90% 90%, rgba(6,182,212,.12), transparent 30%), #faf9fc; }
.login-card { width: min(100%, 440px); padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-lg); }
.login-card .brand { margin-bottom: 24px; }
.login-card h1 { margin: 0 0 8px; font-size: 30px; }
.login-card > p { margin: 0 0 24px; color: var(--muted); }
.login-card form { display: grid; gap: 16px; }

/* Admin */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #17131f; color: white; padding: 22px 16px; }
.admin-sidebar .brand { padding: 0 8px 22px; }
.admin-sidebar .brand small { color: #9e95aa; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav button { border: 0; color: #bbb2c7; background: transparent; width: 100%; padding: 11px 12px; text-align: left; border-radius: 10px; font-weight: 750; display: flex; align-items: center; gap: 10px; }
.admin-nav button:hover, .admin-nav button.active { color: white; background: rgba(255,255,255,.1); }
.admin-main { min-width: 0; }
.admin-topbar { height: 68px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-3); color: var(--primary); font-weight: 900; }
.admin-content { padding: 26px; }
.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeUp .22s ease; }
.admin-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.admin-titlebar h1 { font-size: 28px; margin: 0 0 3px; }
.admin-titlebar p { margin: 0; color: var(--muted); font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 6px 20px rgba(31,24,51,.035); }
.stat-card span { color: var(--muted); font-size: 12px; font-weight: 800; }
.stat-card strong { display: block; margin-top: 8px; font-size: 30px; line-height: 1; }
.panel { border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 6px 20px rgba(31,24,51,.035); overflow: hidden; }
.panel-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3 { margin: 0; font-size: 16px; }
.panel-body { padding: 18px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid #efedf3; text-align: left; vertical-align: top; font-size: 13px; }
.data-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; background: #fbfafd; }
.data-table tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 850; }
.badge.published, .badge.active, .badge.done { color: #047857; background: #d1fae5; }
.badge.draft, .badge.processing { color: #a16207; background: #fef3c7; }
.badge.locked, .badge.spam { color: #b91c1c; background: #fee2e2; }
.badge.new { color: #1d4ed8; background: #dbeafe; }
.badge.admin { color: #6d28d9; background: #ede9fe; }
.badge.manager { color: #0369a1; background: #e0f2fe; }
.badge.user { color: #475569; background: #e2e8f0; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-form-grid .full { grid-column: 1 / -1; }
.upload-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.preview-image { width: 120px; height: 78px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); margin-top: 8px; }
.contact-message { max-width: 340px; white-space: pre-wrap; color: #4d4658; }

.modal-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(18,14,25,.55); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 20px; background: white; box-shadow: var(--shadow-lg); }
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; font-size: 21px; }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-2); font-size: 20px; }
.modal-body { padding: 20px; }
.modal-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.mobile-admin-menu { display: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

@media (max-width: 1024px) {
  .hero-slide { grid-template-columns: 1fr 1fr; gap: 28px; min-height: 560px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards-grid, .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-shell { grid-template-columns: 220px 1fr; }
}

@media (max-width: 780px) {
  .navbar { min-height: 66px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links { position: absolute; top: 66px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); background: white; box-shadow: var(--shadow-sm); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .hero-slider { min-height: auto; }
  .hero-slide { grid-template-columns: 1fr; gap: 30px; padding: 56px 0 78px; }
  .hero-visual { order: -1; }
  .hero-visual img { max-height: 330px; }
  .hero h1 { letter-spacing: -1.5px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 66px 0; }
  .cards-grid, .ai-grid, .video-grid, .contact-layout, .detail-layout, .footer-grid { grid-template-columns: 1fr; }
  .detail-image { position: static; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .cta { padding: 34px 26px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .footer-bottom { flex-direction: column; }

  .admin-shell { display: block; }
  .admin-sidebar { position: fixed; z-index: 80; left: -270px; top: 0; width: 260px; transition: .25s; box-shadow: var(--shadow-lg); }
  .admin-sidebar.open { left: 0; }
  .mobile-admin-menu { display: inline-flex; }
  .admin-content { padding: 18px; }
  .admin-topbar { padding: 0 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .full { grid-column: auto; }
  .admin-titlebar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand-text { font-size: 14px; }
  .hero h1 { font-size: 38px; }
  .cards-grid, .ai-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .form-card { padding: 22px 17px; }
  .stat-grid { grid-template-columns: 1fr; }
  .admin-user .user-text { display: none; }
  .login-card { padding: 26px 20px; }
}


/* CAPTCHA dùng chung cho đăng nhập và các form liên hệ */
.captcha-control {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}
.captcha-image {
  display: block;
  width: 220px;
  max-width: calc(100vw - 120px);
  height: 70px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  object-fit: cover;
  user-select: none;
}
.captcha-refresh {
  width: 48px;
  min-width: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.captcha-refresh:hover { border-color: var(--primary-2); background: #f5f3ff; transform: rotate(12deg); }
.captcha-refresh:focus-visible { outline: 3px solid rgba(139,92,246,.22); outline-offset: 2px; }
.captcha-input { text-transform: uppercase; letter-spacing: .16em; font-weight: 750; }
.captcha-inline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.captcha-inline .captcha-input { flex: 1 1 220px; min-width: 180px; }
@media (max-width: 520px) {
  .captcha-inline { align-items: stretch; }
  .captcha-control { width: 100%; }
  .captcha-image { flex: 1 1 auto; width: calc(100% - 56px); max-width: none; }
  .captcha-inline .captcha-input { flex-basis: 100%; }
}
