:root {
  --ink: #192321;
  --muted: #5e6b66;
  --subtle: #798681;
  --line: #dce4df;
  --cream: #f6f8f4;
  --mint: #ccebdc;
  --green: #317662;
  --dark: #1d2c28;
  --coral: #e6765f;
  --accent: #e45b41;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 19px;
  --fs-xl: 24px;
  --fs-2xl: 34px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Outfit, sans-serif; font-size: var(--fs-base); }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 218px; background: #e8f0e9; border-right: 1px solid var(--line); padding: 32px 22px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 21px; font-weight: 700; letter-spacing: -0.5px; text-decoration: none; }
.brand-mark { height: 25px; display: flex; align-items: center; gap: 3px; }
.brand-mark span { display: block; width: 4px; border-radius: var(--radius-full); background: var(--coral); }
.brand-mark span:nth-child(1) { height: 11px; }
.brand-mark span:nth-child(2) { height: 21px; background: var(--green); }
.brand-mark span:nth-child(3) { height: 16px; background: var(--ink); }
.brand-mark span:nth-child(4) { height: 8px; background: var(--coral); }
.nav { margin-top: 76px; display: grid; gap: 8px; }
.nav-link { color: #5e6b66; text-decoration: none; padding: 11px 13px; border-radius: var(--radius-sm); font-size: var(--fs-base); display: flex; gap: 11px; align-items: center; transition: background 0.15s ease; }
.nav-link.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 5px 14px rgba(40, 75, 59, 0.05); }
.nav-icon { font-family: 'DM Mono', monospace; font-size: 16px; }
.sidebar-footer { margin-top: auto; color: var(--muted); font-size: var(--fs-xs); line-height: 1.5; }
.sidebar-footer p { max-width: 150px; margin: 8px 0 0; }
.status-dot { display: flex; align-items: center; gap: 7px; color: var(--green); font-weight: 600; }
.status-dot i, .online-pill i { width: 6px; height: 6px; border-radius: var(--radius-full); background: #5ec18d; display: inline-block; }
.content { max-width: 1420px; flex: 1; padding: 31px clamp(28px, 5vw, 82px) 23px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 36px; }
.eyebrow { font: 500 var(--fs-xs) 'DM Mono', monospace; letter-spacing: 0.6px; text-transform: none; color: var(--subtle); margin: 0 0 10px; }
.topbar h1 { font-size: var(--fs-2xl); letter-spacing: -1.5px; margin: 0; font-weight: 600; }
.topbar-meta { display: flex; align-items: center; gap: 15px; }
.online-pill { font: 500 11px 'DM Mono', monospace; color: var(--green); border: 1px solid #cfe1d6; padding: 7px 10px; border-radius: var(--radius-full); display: flex; gap: 7px; align-items: center; }
.icon-button { border: 0; background: transparent; color: var(--subtle); font-size: 20px; cursor: pointer; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: 28px; align-items: start; }
.dropzone { min-height: 255px; border: 1px dashed #a8c4b5; border-radius: var(--radius-sm); background: linear-gradient(120deg, #edf6ef, #f8fbf5); display: flex; align-items: center; flex-direction: column; justify-content: center; text-align: center; transition: 0.2s; }
.dropzone.dragging { border-color: var(--green); background: #ddf1e5; transform: scale(1.01); }
.drop-visual { position: relative; margin-bottom: 13px; }
.pulse-ring { display: block; width: 46px; height: 46px; border-radius: var(--radius-full); background: #d0ecdd; }
.upload-arrow { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); font-size: 25px; font-weight: 600; }
.dropzone h2 { margin: 0 0 5px; font-size: 17px; font-weight: 600; }
.dropzone p { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 18px; }
.primary-button { border: 0; cursor: pointer; font: 600 13px Outfit, sans-serif; background: var(--dark); color: #fff; padding: 11px 19px; border-radius: var(--radius-sm); transition: background 0.15s ease; }
.primary-button:hover { background: #2b3e38; }
.primary-button span { font-size: 17px; line-height: 0; margin-right: 5px; }
.drop-hint { font: var(--fs-xs) 'DM Mono', monospace; color: var(--subtle); margin-top: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 24px 0 12px; }
.section-heading h2 { font-size: var(--fs-lg); margin: 0; font-weight: 600; }
.section-heading h2 span { color: var(--subtle); font: 400 13px 'DM Mono', monospace; margin-left: 5px; }
.text-button { border: 0; background: none; color: var(--coral); font-size: var(--fs-xs); font-weight: 500; cursor: pointer; padding: 4px 6px; transition: opacity 0.15s ease; }
.text-button:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.file-list { display: grid; gap: 8px; }
.empty-state { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 20px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: #fafcf9; color: var(--subtle); }
.empty-state span { font-size: 18px; }
.empty-state p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.empty-state small { font-size: var(--fs-xs); color: var(--subtle); margin-left: 6px; }
.file-item { display: grid; grid-template-columns: 39px 1fr auto auto 25px; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid #e9eee9; border-radius: var(--radius-sm); animation: slide-in 0.3s ease both; }
.file-badge { width: 36px; height: 36px; display: grid; place-items: center; background: #f3ddd7; color: var(--coral); font: 500 var(--fs-xs) 'DM Mono', monospace; border-radius: var(--radius-sm); }
.file-info { min-width: 0; }
.file-name { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.file-size { font: var(--fs-xs) 'DM Mono', monospace; color: var(--subtle); margin-top: 4px; }
.file-status { font: var(--fs-xs) 'DM Mono', monospace; color: var(--green); }
.remove-file { border: 0; background: none; color: #aab4ae; cursor: pointer; font-size: 17px; }
.progress { height: 3px; background: #e7efea; grid-column: 2/5; margin-top: -4px; border-radius: 2px; }
.progress i { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.2s; border-radius: 2px; }
.settings-panel { background: #fff; border: 1px solid #e2eae4; border-radius: var(--radius-md); padding: 25px 23px; align-self: start; margin-top: 0; box-shadow: 0 8px 24px rgba(29, 44, 40, 0.04); }
.panel-title { display: flex; justify-content: space-between; margin-bottom: 28px; }
.panel-title h2 { margin: 0; font-size: 20px; font-weight: 600; }
.settings-icon { font: 20px 'DM Mono', monospace; color: var(--coral); }
.field-label { font: 500 var(--fs-xs) 'DM Mono', monospace; letter-spacing: 0.8px; text-transform: uppercase; color: var(--subtle); }
.select-wrap { margin-top: 9px; position: relative; }
.select-wrap:after { content: '⌄'; position: absolute; right: 12px; top: 10px; color: var(--green); pointer-events: none; }
.select-wrap select { appearance: none; width: 100%; padding: 11px; border: 1px solid #dce6df; background: #fafcf9; border-radius: var(--radius-sm); color: var(--ink); font: 500 12px Outfit, sans-serif; }
.quality-label { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.quality-label > span { font-size: var(--fs-xs); color: var(--green); }
.quality-options { display: grid; gap: 6px; margin-top: 10px; }
.quality-options button { display: flex; align-items: center; gap: 11px; text-align: left; border: 1px solid #e5ebe6; border-radius: var(--radius-sm); background: #fff; padding: 9px 10px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.quality-options button.selected { border-color: #8cbda6; background: #f2faf5; }
.quality-options strong { font: 500 12px 'DM Mono', monospace; min-width: 44px; }
.quality-options small { font-size: var(--fs-xs); color: var(--subtle); }
.divider { height: 1px; background: var(--line); margin: 24px 0 18px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); margin: 16px 0; }
.toggle { width: 32px; height: 18px; border: 0; background: #cdd8d2; border-radius: var(--radius-full); padding: 2px; cursor: pointer; text-align: left; }
.toggle i { display: block; width: 14px; height: 14px; border-radius: var(--radius-full); background: white; transition: 0.2s; }
.toggle.on { background: var(--green); }
.toggle.on i { transform: translateX(14px); }
.convert-button { width: 100%; display: flex; justify-content: space-between; align-items: center; background: var(--accent); color: #fff; padding: 13px 18px; margin-top: 24px; border-radius: var(--radius-sm); border: none; font: 700 14px Outfit, sans-serif; cursor: pointer; box-shadow: 0 4px 12px rgba(228, 91, 65, 0.28); transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease; }
.convert-button:not(:disabled):hover { background: #d34a31; box-shadow: 0 6px 16px rgba(228, 91, 65, 0.38); transform: translateY(-1px); }
.convert-button:disabled { background: #d8e2dc; color: #7b8882; box-shadow: none; opacity: 0.8; cursor: not-allowed; transform: none; }
.panel-note { font-size: var(--fs-xs); color: var(--subtle); line-height: 1.5; text-align: center; margin: 16px 5px 0; }
.footer { border-top: 1px solid var(--line); margin-top: 54px; padding-top: 16px; display: flex; justify-content: space-between; color: var(--subtle); font: var(--fs-xs) 'DM Mono', monospace; }
@keyframes slide-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media(max-width: 850px) {
  .sidebar { width: 70px; padding: 25px 12px; }
  .brand > span:last-child, .nav-link:not(.active)::after, .nav-link { font-size: 0; }
  .nav-link { justify-content: center; }
  .nav-icon { font-size: 17px; }
  .sidebar-footer { display: none; }
  .content { padding: 25px 20px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 24px; }
  .settings-panel { max-width: none; }
  .topbar { margin-bottom: 27px; }
}
@media(max-width: 520px) {
  .topbar h1 { font-size: 27px; }
  .topbar-meta .online-pill { display: none; }
  .file-item { grid-template-columns: 35px 1fr auto 22px; gap: 9px; }
  .file-status { display: none; }
  .progress { grid-column: 2/4; }
  .footer { font-size: 10px; flex-direction: column; gap: 8px; }
}

.admin-login-error { color: var(--coral); font-size: var(--fs-xs); margin: 8px 0 0; min-height: 16px; }
body.high-contrast {
  --cream: #0c1210;
  --ink: #f4faf6;
  --muted: #9db0a7;
  --line: #2a3e35;
  --mint: #163d2e;
  --green: #4fd99f;
  --dark: #050807;
  --coral: #ff7c63;
  --accent: #ff684c;
  background: var(--cream);
  color: var(--ink);
}
body.high-contrast .sidebar, body.high-contrast .settings-panel, body.high-contrast .file-item, body.high-contrast .modal, body.high-contrast .story-card, body.high-contrast .contact-form {
  background: #121a16; border-color: #2a3e35; color: #f4faf6;
}
body.high-contrast .dropzone { background: #0e1612; border-color: #385246; }
body.high-contrast .nav-link { color: #9db0a7; }
body.high-contrast .nav-link.active { background: #1c2a23; color: #fff; }
body.high-contrast input, body.high-contrast select, body.high-contrast textarea { background: #16231d !important; border-color: #334a3f !important; color: #f4faf6 !important; }
body.high-contrast .quality-options button { background: #141f1a; border-color: #2a3e35; color: #e8f1ec; }
body.high-contrast .quality-options button.selected { background: #193b2c; border-color: #4fd99f; }
body.high-contrast .history-item, body.high-contrast .admin-stats > div, body.high-contrast .subscription-overview > div, body.high-contrast .newsletter-compose {
  background: #141f1a; border-color: #2a3e35;
}
body.high-contrast .ad-slot { background: #111815; border-color: #2a3e35; color: #677770; }

.auth-terms { display: flex; align-items: center; margin: 6px 0 2px; font-size: var(--fs-xs); color: var(--muted); }
.auth-terms label { display: flex !important; align-items: center; gap: 8px; cursor: pointer; text-transform: none !important; letter-spacing: normal !important; font: 12px Outfit, sans-serif !important; color: var(--muted) !important; margin-top: 0 !important; }
.auth-terms input[type="checkbox"] { width: 15px !important; height: 15px !important; accent-color: var(--green); cursor: pointer; margin: 0 !important; padding: 0 !important; flex-shrink: 0; }
.auth-terms a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.auth-terms a:hover { color: var(--ink); }
body.high-contrast .auth-terms, body.high-contrast .auth-terms label { color: #9db0a7 !important; }
body.high-contrast .auth-terms a { color: #4fd99f; }

.ad-slot { display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; border: 1px dashed #c8d5cc; background: #f1f5f0; color: #a3ada7; font: 9px 'DM Mono', monospace; letter-spacing: 1.4px; border-radius: var(--radius-sm); }
.ad-slot iframe { max-width: 100%; border: none; margin: 0 auto; display: block; }
.ad-slot:has(iframe) { border: none; background: transparent; }
.ad-leaderboard { width: 100%; min-height: 90px; margin: -14px 0 28px; }
.ad-footer { min-height: 90px; max-width: 728px; margin: 48px auto 0; }

.newsletter-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 45px; padding: 22px 0; }
.newsletter-copy h2 { font-size: 18px; margin: 0 0 5px; }
.newsletter-copy p { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.newsletter-form { display: flex; gap: 7px; min-width: min(340px, 100%); }
.newsletter-form input { min-width: 0; flex: 1; border: 1px solid #dce6df; border-radius: var(--radius-sm); background: #fff; padding: 10px; font: 12px Outfit, sans-serif; }
.newsletter-form button { border: 0; border-radius: var(--radius-sm); background: var(--green); color: #fff; padding: 10px 14px; cursor: pointer; font: 600 12px Outfit, sans-serif; transition: background 0.15s ease; }
.newsletter-form button:hover { background: #276150; }
.newsletter-status { font-size: var(--fs-xs); color: var(--green); margin: 6px 0 0; }
.newsletter-status.error { color: var(--coral); }

.admin-plan-select { border: 1px solid #d6e2da; background: #fff; padding: 5px 6px; color: var(--green); font: 10px Outfit, sans-serif; }
.status-action.suspend { color: var(--coral); }
.newsletter-admin-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
.newsletter-compose { display: grid; gap: 9px; border: 1px solid #e2eae4; background: #f7faf7; padding: 16px; border-radius: var(--radius-sm); }
.newsletter-compose input, .newsletter-compose textarea { width: 100%; border: 1px solid #dce6df; border-radius: var(--radius-sm); background: #fff; padding: 10px; font: 12px Outfit, sans-serif; }
.newsletter-compose textarea { min-height: 150px; resize: vertical; }
.subscriber-count { display: block; font: 28px 'DM Mono', monospace; margin: 9px 0; color: var(--green); }
.subscriber-list { display: grid; gap: 6px; max-height: 180px; overflow: auto; }
.subscriber-list span { padding: 8px; background: #f7faf7; border: 1px solid #e5ece6; border-radius: var(--radius-sm); font: var(--fs-xs) 'DM Mono', monospace; color: #63716b; }
@media(max-width: 700px) { .newsletter-admin-grid { grid-template-columns: 1fr; } }

.admin-modal { width: min(100%, 920px) !important; max-height: calc(100vh - 40px); overflow: auto; }
.admin-table { min-width: 640px; }
.admin-table-wrap { overflow-x: auto; }
.user-cell small { display: block; color: var(--subtle); font-size: var(--fs-xs); font-weight: 400; margin-top: 3px; }
.table-action { padding: 6px 9px; white-space: nowrap; border-radius: var(--radius-sm); }
.premium-option { position: relative; border-color: #cfae5a !important; background: #fffaf0 !important; }
.premium-option:hover { border-color: #b78b2e !important; }
.premium-chip { margin-left: auto; color: #9a711c; background: #f8e8b6; border: 1px solid #e1c778; padding: 3px 6px; font: 600 9px 'DM Mono', monospace; border-radius: 3px; letter-spacing: 0.5px; }

.save-name { margin-top: 22px; }
.save-name input { width: 100%; margin-top: 9px; padding: 11px; border: 1px solid #dce6df; background: #fafcf9; border-radius: var(--radius-sm); color: var(--ink); font: 12px Outfit, sans-serif; }
.history-list { display: grid; gap: 8px; }
.history-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; border: 1px solid #e5ece6; border-radius: var(--radius-sm); padding: 11px; background: #fafcf9; }
.history-icon { width: 30px; height: 30px; display: grid; place-items: center; background: #d9eee2; color: var(--green); font: var(--fs-xs) 'DM Mono', monospace; border-radius: var(--radius-sm); }
.history-name { font-size: 12px; font-weight: 600; }
.history-meta { display: block; color: var(--subtle); font: var(--fs-xs) 'DM Mono', monospace; margin-top: 4px; }
.history-format { color: var(--green); font: var(--fs-xs) 'DM Mono', monospace; }
.history-empty { text-align: center; color: var(--subtle); font-size: var(--fs-xs); padding: 24px; border: 1px dashed #d5e1d8; border-radius: var(--radius-sm); }
.history-clear { border: 0; background: none; color: var(--coral); font: 11px Outfit, sans-serif; cursor: pointer; }
.history-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 17px; }

.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.admin-stats > div { border: 1px solid #e2eae4; border-radius: var(--radius-sm); background: #f7faf7; padding: 13px; }
.admin-stats small, .admin-stats strong, .admin-stats span { display: block; }
.admin-stats small { font: 9px 'DM Mono', monospace; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.7px; }
.admin-stats strong { font: 22px 'DM Mono', monospace; margin: 9px 0 4px; }
.stat-up { font-size: var(--fs-xs); color: var(--green) !important; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dce6df; margin-bottom: 15px; gap: 15px; }
.admin-tabs { display: flex; gap: 20px; }
.admin-tab { border: 0; border-bottom: 2px solid transparent; background: none; color: var(--subtle); padding: 10px 0; font: 600 var(--fs-xs) Outfit, sans-serif; cursor: pointer; }
.admin-tab.active { border-color: var(--coral); color: var(--ink); }
#adminSearch { width: 180px; border: 1px solid #dce6df; border-radius: var(--radius-sm); padding: 9px 10px; background: #fafcf9; font: var(--fs-xs) Outfit, sans-serif; }
.admin-view { display: none; }
.admin-view.active { display: block; }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.admin-table th { text-align: left; color: var(--subtle); font: 500 10px 'DM Mono', monospace; letter-spacing: 0.7px; text-transform: uppercase; padding: 8px; border-bottom: 1px solid #dce6df; }
.admin-table td { padding: 11px 8px; border-bottom: 1px solid #edf1ed; color: #50605a; }
.user-cell { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.user-avatar { width: 25px; height: 25px; display: grid; place-items: center; background: #d4ecdf; color: var(--green); font: var(--fs-xs) 'DM Mono', monospace; border-radius: var(--radius-sm); }
.plan-tag, .payment-tag { font: var(--fs-xs) 'DM Mono', monospace; }
.plan-tag { color: var(--green); }
.payment-tag { color: #c36b55; }
.payment-tag.paid { color: var(--green); }
.table-action { border: 1px solid #d6e2da; background: #fff; padding: 5px 8px; color: var(--green); cursor: pointer; font: 10px Outfit, sans-serif; }
.subscription-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.subscription-overview > div { border: 1px solid #e1eae3; border-radius: var(--radius-sm); padding: 16px; }
.subscription-overview span, .subscription-overview strong, .subscription-overview small { display: block; }
.subscription-overview span { font-size: 12px; color: #74817b; }
.subscription-overview strong { font: 22px 'DM Mono', monospace; margin: 10px 0 5px; }
.subscription-overview small { font-size: var(--fs-xs); color: var(--subtle); }
.admin-note { display: flex; gap: 11px; align-items: center; background: #f1f8f3; margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); color: var(--green); }
.admin-note span { font-size: 18px; }
.admin-note p { font-size: var(--fs-xs); margin: 0; color: #60716a; }
.admin-footnote { font: var(--fs-xs) 'DM Mono', monospace; color: var(--subtle); margin: 18px 0 0; }
@media(max-width: 700px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-toolbar { align-items: flex-start; flex-direction: column; padding-bottom: 12px; }
  .admin-tabs { gap: 12px; }
  .admin-table { font-size: 10px; }
  .admin-table th:nth-child(4), .admin-table td:nth-child(4) { display: none; }
  .subscription-overview { grid-template-columns: 1fr; }
  .admin-modal { max-height: 90vh; overflow: auto; }
}

.account-actions { display: flex; align-items: center; gap: 10px; }
.account-button, .upgrade-button { border: 1px solid #d5e2d9; background: #fff; color: var(--ink); border-radius: var(--radius-sm); padding: 8px 12px; font: 600 var(--fs-xs) Outfit, sans-serif; cursor: pointer; transition: filter 0.15s ease; }
.upgrade-button { background: var(--coral); border-color: var(--coral); color: #fff; }
.account-button:hover, .upgrade-button:hover { filter: brightness(0.96); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(21, 37, 31, 0.6); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 10; }
.modal-backdrop.open { display: flex; }
.modal { width: min(100%, 480px); background: #fff; border: 1px solid #dce7df; border-radius: var(--radius-md); box-shadow: 0 25px 70px rgba(21, 37, 31, 0.2); padding: 28px; }
.modal-wide { width: min(100%, 820px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 23px; }
.modal h2 { font-size: var(--fs-xl); letter-spacing: -0.8px; margin: 0 0 5px; }
.modal-subtitle { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.close-modal { border: 0; background: transparent; color: var(--subtle); font-size: 22px; cursor: pointer; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { font: 500 var(--fs-xs) 'DM Mono', monospace; letter-spacing: 0.8px; text-transform: uppercase; color: var(--subtle); margin-top: 8px; }
.auth-form input { width: 100%; padding: 12px; border: 1px solid #dce6df; border-radius: var(--radius-sm); background: #fafcf9; font: 13px Outfit, sans-serif; }
.modal-submit { border: 0; border-radius: var(--radius-sm); background: var(--dark); color: #fff; padding: 13px; margin-top: 12px; font: 600 13px Outfit, sans-serif; cursor: pointer; transition: background 0.15s ease; }
.modal-submit:hover { background: #273832; }
.auth-switch { font-size: var(--fs-xs); color: var(--muted); text-align: center; margin: 17px 0 0; }
.auth-switch button { border: 0; background: none; color: var(--coral); cursor: pointer; font: inherit; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-card { border: 1px solid #dce6df; border-radius: var(--radius-md); padding: 18px 15px; display: flex; flex-direction: column; min-height: 245px; }
.plan-card.featured { border: 2px solid var(--green); padding: 17px 14px; background: #f5fbf7; }
.plan-card h3 { font-size: 16px; margin: 0 0 7px; }
.plan-price { font: 500 20px 'DM Mono', monospace; margin: 0 0 14px; }
.plan-price small { font: var(--fs-xs) Outfit, sans-serif; color: var(--muted); }
.plan-card ul { padding: 0; margin: 0 0 17px; list-style: none; color: #74817b; font-size: var(--fs-xs); line-height: 2; }
.plan-card li:before { content: '✓'; color: var(--green); margin-right: 7px; }
.plan-choose { margin-top: auto; border: 1px solid #cfded4; border-radius: var(--radius-sm); background: #fff; padding: 10px; cursor: pointer; font: 600 var(--fs-xs) Outfit, sans-serif; transition: background 0.15s ease; }
.featured .plan-choose { background: var(--green); color: #fff; border-color: var(--green); }
.featured .plan-choose:hover { background: #265f4e; }
.member-badge { display: none; color: var(--green); font: 500 var(--fs-xs) 'DM Mono', monospace; }
.member-badge.visible { display: inline; }
.ads-hidden .ad-slot { display: none; }
@media(max-width: 700px) {
  .account-actions { gap: 5px; }
  .account-button, .upgrade-button { padding: 8px 7px; }
  .plan-grid { grid-template-columns: 1fr; }
  .modal-wide { max-height: 90vh; overflow: auto; }
}

.seo-section { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.seo-intro h2 { font-size: 26px; letter-spacing: -1px; margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.seo-lead { font-size: var(--fs-base); line-height: 1.7; color: var(--muted); max-width: 880px; margin: 0 0 32px; }
.seo-formats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 40px; }
.seo-format-card { background: #fff; border: 1px solid #e2eae4; padding: 22px; border-radius: var(--radius-md); transition: border-color 0.2s; }
.seo-format-card:hover { border-color: #b9d5c5; }
.format-pill { display: inline-block; background: #eef6f1; color: var(--green); font: 600 var(--fs-xs) 'DM Mono', monospace; padding: 3px 8px; border-radius: var(--radius-sm); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.8px; }
.seo-format-card h3 { font-size: 16px; margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.seo-format-card p { font-size: var(--fs-xs); line-height: 1.6; color: var(--muted); margin: 0; }
.seo-steps { margin-bottom: 40px; padding: 28px 24px; background: #f0f6f2; border: 1px solid #dbe8e0; border-radius: var(--radius-md); }
.seo-steps h2 { font-size: 22px; letter-spacing: -0.8px; margin: 0 0 18px; font-weight: 600; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step-card { background: #fff; padding: 18px; border-radius: var(--radius-md); border: 1px solid #dce8e0; }
.step-number { font: 700 14px 'DM Mono', monospace; color: var(--coral); display: block; margin-bottom: 6px; }
.step-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.step-card p { margin: 0; font-size: var(--fs-xs); line-height: 1.6; color: var(--muted); }
.seo-faq h2 { font-size: 23px; letter-spacing: -0.8px; margin: 0 0 18px; font-weight: 600; }
.faq-grid { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid #e2eae4; border-radius: var(--radius-md); padding: 16px 20px; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 15px; font-weight: 600; margin: 0; color: var(--ink); }
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--green); font-family: 'DM Mono', monospace; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 12px 0 0; font-size: var(--fs-sm); line-height: 1.65; color: var(--muted); }
body.high-contrast .seo-format-card, body.high-contrast .step-card, body.high-contrast .faq-item { background: #121a16; border-color: #2a3e35; color: #f4faf6; }
body.high-contrast .seo-steps { background: #0e1612; border-color: #2a3e35; }
body.high-contrast .format-pill { background: #163d2e; color: #4fd99f; }
body.high-contrast .seo-format-card h3, body.high-contrast .step-card h3, body.high-contrast .faq-item summary h3 { color: #f4faf6; }