﻿:root {
    color-scheme: light dark;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-strong: #f8fafc;
    --surface-muted: #eff2f7;
    --ink: #0f172a;
    --ink-muted: #475569;
    --border: #d8e3f3;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-soft: #dbeafe;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 24px;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.page-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(248, 250, 254, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.header-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 700;
}

.brand-mark,
.footer-logo {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 800;
}

.brand-name {
    font-size: 1.05rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link,
.dropdown-toggle {
    color: var(--ink);
    font-weight: 600;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    padding: 14px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 10px;
}

.dropdown.open .dropdown-menu {
    display: flex;
}

.tools-menu {
    position: relative;
}

/* Topbar and Admin link visibility */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(250,250,252,0.6));
    border-bottom: 1px solid var(--border);
}

.topbar .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.admin-top-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37,99,235,0.12);
    text-decoration: none;
}

.admin-top-link:hover {
    transform: translateY(-1px);
}

.tools-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    padding: 14px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    z-index: 100;
}

.tools-menu.open .tools-menu-panel {
    display: grid;
}

.tools-menu-item {
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--ink);
    background: rgba(15, 23, 42, 0.03);
    transition: background 140ms ease;
}

.tools-menu-item:hover {
    background: rgba(37, 99, 235, 0.08);
}

.user-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-dark);
    font-weight: 600;
}

.alert {
    padding: 14px 18px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-weight: 600;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.quota-banner {
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-dark);
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.status-badge,
.expiry-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--surface);
}

.status-badge {
    background: rgba(15, 23, 42, 0.9);
}

.success-badge {
    background: var(--success);
}

.danger-badge {
    background: var(--danger);
}

.profile-hero,
.tool-hero {
    margin-bottom: 32px;
}

/* Admin page layout */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(90deg, rgba(37,99,235,0.06), rgba(15,23,42,0.02));
    border-bottom: 1px solid var(--border);
}

.admin-user-pill {
    background: rgba(15,23,42,0.06);
    color: var(--ink);
    padding: 8px 12px;
    font-weight: 600;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0 28px;
}

.admin-stat {
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}

.admin-section {
    margin-bottom: 28px;
}

.admin-table-wrap {
    overflow: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15,23,42,0.04);
    text-align: left;
    vertical-align: middle;
}

.admin-name-fields input {
    width: calc(50% - 6px);
    display: inline-block;
    margin-right: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.admin-row-actions {
    display: flex;
    gap: 8px;
}

.small-action {
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: rgba(15,23,42,0.06);
    cursor: pointer;
}

.danger-action {
    background: rgba(220,38,38,0.08);
    color: var(--danger);
}

.profile-header h1,
.tool-header h1 {
    margin-top: 10px;
    margin-bottom: 12px;
}

.profile-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1.6fr 1fr;
    margin-bottom: 32px;
}

.profile-card {
    padding: 28px;
    border-radius: 32px;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.details-list {
    display: grid;
    gap: 16px;
}

.details-list dt {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.details-list dd {
    margin: 0 0 0 0;
    font-size: 1rem;
    color: var(--ink);
    font-weight: 600;
}

.usage-summary {
    display: grid;
    gap: 12px;
}

.usage-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
}

/* Admin dashboard redesign */
.admin-body {
    background: linear-gradient(180deg, #f4f8ff 0%, #f5f7fb 42%, #eef4fb 100%);
    color: var(--ink);
    min-height: 100vh;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-kicker {
    margin-bottom: 8px;
}

.profile-pill {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-dark);
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.18);
    text-decoration: none;
}

.admin-home-link {
    flex-shrink: 0;
}

.topbar-logout-form {
    margin: 0;
}

.icon-button {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.icon-button:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.08);
}

.table-title {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.admin-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.admin-sidebar {
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
    padding: 24px 18px;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--accent-soft);
    padding: 8px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.sidebar-brand-label {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.85rem;
}

.sidebar-brand-title {
    margin: 0;
    font-size: 1.05rem;
}

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

.sidebar-link,
.sidebar-link--action,
.sidebar-link--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    transition: all 200ms ease;
    background: transparent;
}

.sidebar-link:hover,
.sidebar-link--ghost:hover,
.sidebar-link--action:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--ink);
}

.sidebar-link.active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}

.sidebar-link--action {
    background: var(--surface);
    border-color: var(--border);
}

.sidebar-footer {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.admin-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-topbar {
    position: sticky;
    top: 24px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.sidebar-toggle {
    display: none;
    width: 50px;
    height: 50px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
    margin: 7px auto;
}

.topbar-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.topbar-heading h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-search {
    width: min(420px, 100%);
}

.admin-hero {
    display: grid;
    gap: 20px;
}

.admin-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.metric-card,
.panel,
.card,
.log-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.metric-card {
    display: flex;
    gap: 18px;
    align-items: center;
}

.metric-card__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.12);
    font-size: 1.5rem;
}

.metric-card__label,
.metric-card__meta,
.panel-label {
    margin: 0;
    color: var(--ink-muted);
}

.metric-card__value {
    display: block;
    font-size: 2.1rem;
    margin: 8px 0;
}

.metric-card__value--status {
    font-size: 1.35rem;
}

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

.ops-card {
    align-items: flex-start;
}

.ops-errors-panel {
    margin-top: 0;
}

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

.ops-error-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.ops-error-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.ops-error-item strong,
.ops-error-item span {
    display: block;
}

.ops-error-item strong {
    line-height: 1.4;
}

.ops-error-item span,
.ops-error-item time {
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.ops-error-item time {
    flex-shrink: 0;
    white-space: nowrap;
}

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

.panel-header,
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-title,
.card-title,
.table-title,
.section-heading h2,
.admin-topbar h1 {
    margin: 0;
}

.panel-copy,
.card-copy,
.metric-card__meta,
.log-meta {
    margin: 12px 0 0;
    color: var(--ink-muted);
    line-height: 1.7;
}

.panel-actions,
.toolbar-actions,
.action-menu-panel,
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 180ms ease;
    text-decoration: none;
    font-weight: 700;
}

.button--primary {
    background: var(--accent);
    color: #fff;
}

.button--secondary {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-dark);
}

.button--ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--ink);
}

.button--danger {
    background: rgba(220, 38, 38, 0.12);
    color: var(--danger);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 700;
}

.badge--soft {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-dark);
}

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

.badge--neutral {
    background: rgba(15, 23, 42, 0.08);
    color: var(--ink);
}

.card {
    overflow: hidden;
}

.card--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card-title {
    margin: 0;
    font-size: 1.1rem;
}

.card-copy {
    margin: 0;
    color: var(--ink-muted);
}

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

.field {
    display: grid;
    gap: 10px;
    color: var(--ink);
}

.field--search,
.field input,
.field select {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
}

.field--search {
    border-color: var(--border);
}

.field--checkbox {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
}

.admin-form-actions {
    align-items: center;
    margin-top: 4px;
}

.editing-summary,
.selected-user-summary {
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    color: var(--accent-dark);
    font-weight: 700;
}

.editing-summary a {
    color: inherit;
}

.table-panel {
    display: grid;
    gap: 18px;
}

.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.admin-table-wrap {
    overflow: auto;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.admin-table thead {
    background: var(--surface-alt);
}

.admin-table th,
.admin-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    font-size: 0.95rem;
    color: var(--ink-muted);
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 2;
}

.admin-table th.sortable:hover {
    color: var(--accent-dark);
}

.admin-table tbody tr {
    transition: background 180ms ease;
}

.admin-table tbody tr:nth-child(even) {
    background: rgba(37, 99, 235, 0.03);
}

.admin-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.08);
}

.admin-table tbody tr.is-selected,
.admin-table tbody tr.is-selected:nth-child(even),
.admin-table tbody tr.is-selected:hover {
    background: rgba(37, 99, 235, 0.14);
    box-shadow: inset 4px 0 0 var(--accent);
}

.select-column {
    width: 72px;
    text-align: center;
}

.user-select-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.user-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-subtext {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 6px;
}

.status-pill--success {
    background: rgba(22, 163, 74, 0.12);
    color: var(--success);
}

.status-pill--danger {
    background: rgba(220, 38, 38, 0.12);
    color: var(--danger);
}

.status-pill--warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.status-pill--muted {
    background: rgba(15, 23, 42, 0.06);
    color: var(--ink-muted);
}

.action-menu {
    position: relative;
}

.action-menu-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
}

.action-menu-panel {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.admin-feedback[hidden] {
    display: none;
}

.delete-user-dialog {
    width: min(460px, calc(100% - 32px));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 0;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.delete-user-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.delete-user-dialog__content {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.delete-user-dialog__identity {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.08);
}

.delete-user-dialog__identity a {
    color: var(--accent-dark);
}

.delete-user-dialog__warning {
    margin: 0;
    color: var(--danger);
    font-weight: 800;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.pagination-button {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 14px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 180ms ease;
}

.pagination-button:hover {
    background: rgba(37, 99, 235, 0.08);
}

.pagination-pages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-button.page-number {
    min-width: 40px;
}

.toast {
    border-radius: 20px;
    padding: 18px 22px;
    border: 1px solid transparent;
}

.toast--success {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.18);
    color: var(--success);
}

.toast--error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.18);
    color: var(--danger);
}

.log-grid {
    display: grid;
    gap: 18px;
}

.log-card {
    display: grid;
    gap: 14px;
}

.log-label {
    margin: 0 0 8px;
    font-weight: 700;
}

.log-meta {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

@media (max-width: 1180px) {
    .admin-page {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .admin-sidebar {
        position: relative;
        top: 0;
        height: auto;
        padding: 20px;
        margin-bottom: 18px;
        display: none;
    }

    .admin-sidebar.sidebar-open {
        display: flex;
    }

    .admin-topbar {
        position: relative;
        top: 0;
        border-radius: 24px;
        flex-wrap: wrap;
    }

    .admin-hero-grid,
    .admin-ops-grid,
    .admin-panel-grid,
    .card--split {
        grid-template-columns: 1fr;
    }

    .sidebar-toggle {
        display: inline-flex;
    }
}

@media (max-width: 760px) {
    .admin-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-actions {
        justify-content: space-between;
    }

    .topbar-search {
        width: 100%;
    }

    .profile-pill,
    .topbar-logout-form {
        width: 100%;
    }

    .profile-pill {
        justify-content: center;
    }

    .sidebar-nav {
        gap: 6px;
    }

    .field--search,
    .button,
    .sidebar-link {
        width: 100%;
    }
}

/* Dark mode support */
:root {
    color-scheme: light dark;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --surface-soft: #f3f4f6;
    --ink: #0f172a;
    --ink-muted: #475569;
    --border: #d8e3f3;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-soft: #dbeafe;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 24px;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dark-mode {
    background: #0b1120;
    color: #e2e8f0;
}

body.dark-mode .admin-sidebar,
body.dark-mode .admin-topbar,
body.dark-mode .metric-card,
body.dark-mode .panel,
body.dark-mode .card,
body.dark-mode .admin-table-wrap,
body.dark-mode .log-card,
body.dark-mode .delete-user-dialog {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.16);
}

body.dark-mode .field input,
body.dark-mode .field select,
body.dark-mode .field--search,
body.dark-mode .sidebar-link,
body.dark-mode .button {
    background: #1f2937;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .sidebar-link:hover,
body.dark-mode .button:hover,
body.dark-mode .pagination-button:hover {
    background: rgba(37, 99, 235, 0.18);
}

body.dark-mode .admin-table th,
body.dark-mode .admin-table td {
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

body.dark-mode .admin-table tbody tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.08);
}

body.dark-mode .admin-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.14);
}

body.dark-mode .admin-table tbody tr.is-selected,
body.dark-mode .admin-table tbody tr.is-selected:nth-child(even),
body.dark-mode .admin-table tbody tr.is-selected:hover,
body.dark-mode .editing-summary,
body.dark-mode .selected-user-summary {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(96, 165, 250, 0.28);
    color: #bfdbfe;
}

body.dark-mode .status-pill--muted {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.profile-note {
    padding: 24px 28px;
    border-radius: 32px;
    background: rgba(37, 99, 235, 0.06);
}

.inline-form {
    margin: 0;
}

.inline-form .ghost-button {
    padding: 14px 18px;
}

.nav-toggle,
.theme-toggle,
.cta-button,
.ghost-button,
.primary-action,
.secondary-action {
    border: none;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 999px;
    background: var(--ink);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.06);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cta-button,
.primary-action,
.ghost-button,
.secondary-action {
    border-radius: 999px;
    padding: 14px 22px;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.cta-button,
.primary-action {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.18);
}

.cta-button:hover,
.primary-action:hover {
    transform: translateY(-1px);
}

.ghost-button,
.secondary-action {
    background: rgba(15, 23, 42, 0.04);
    color: var(--ink);
}

.page-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    flex: 1;
    padding: 36px 24px 72px;
}

/*
 * Keep clear desktop gutters for AdSense side-rail ads. Google controls the
 * actual rail placement; the site content remains centered and uninterrupted.
 */
@media (min-width: 1440px) {
    .page-content {
        width: min(1200px, calc(100% - 360px));
    }

    .footer-inner {
        width: min(1200px, calc(100% - 360px));
        max-width: none;
    }

    .header-inner {
        width: min(1280px, calc(100% - 280px));
        max-width: none;
    }
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px 24px;
    background: var(--bg);
}

.auth-card {
    width: min(520px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 32px;
    display: grid;
    gap: 24px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    color: var(--ink);
}

.auth-brand .logo {
    width: 44px;
    height: 44px;
    border-radius: 18px;
    background: var(--accent-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.05;
}

.auth-heading p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-section-heading {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.auth-section-heading h2 {
    margin: 0;
    font-size: 1.1rem;
}

.field {
    display: grid;
    gap: 10px;
}

.field span {
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--ink);
}

.primary-action {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.auth-guest-action {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    font-weight: 700;
}

.alert,
.status {
    padding: 14px 16px;
    border-radius: 18px;
}

.alert {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
}

.status.success-alert {
    background: rgba(22, 163, 74, 0.1);
    color: #166534;
}

.auth-switch {
    margin: 0;
    color: var(--ink-muted);
    text-align: center;
}

.auth-switch a {
    color: var(--accent);
    font-weight: 700;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.auth-links a {
    color: var(--accent);
    font-weight: 700;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
    gap: 30px;
    align-items: stretch;
    margin-bottom: 56px;
}

.hero-copy-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    max-width: 420px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy-block h1,
.tool-header h1,
.section-heading h2,
.simple-page h1 {
    font-size: clamp(2.2rem, 3vw, 3.3rem);
    margin: 0;
    line-height: 1.02;
}

/* Reduce only the hero section primary heading to be less dominant */
.hero-copy-block h1 {
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.hero-copy-block p,
.tool-header p,
.section-heading p,
.simple-page .section-lead {
    max-width: 680px;
    color: var(--ink-muted);
    font-size: 1.05rem;
}

.hero-copy-block p {
    max-width: 390px;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-panel-card,
.tool-panel,
.tool-form-card,
.related-card,
.tips-card,
.simple-page .page-copy {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel-card {
    padding: 28px;
    display: grid;
    gap: 22px;
}

.home-photo-slider {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 8px;
    background: #101820;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    isolation: isolate;
}

.home-photo-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 600ms ease;
}

.home-photo-slide.is-active {
    opacity: 1;
}

.home-photo-slide img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: contain;
    display: block;
}

.home-photo-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 18, 30, 0.08), rgba(8, 18, 30, 0.74));
    z-index: 1;
}

.home-photo-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 42px;
    z-index: 2;
    display: grid;
    gap: 6px;
    color: #ffffff;
}

.home-photo-caption span {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.78rem;
    font-weight: 700;
}

.home-photo-caption strong {
    max-width: 22rem;
    font-size: 1.2rem;
    line-height: 1.25;
}

.home-photo-dots {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.home-photo-dots button {
    width: 28px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.home-photo-nav {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    pointer-events: none;
}

.home-photo-button {
    pointer-events: auto;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.home-photo-button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.home-photo-dots button.is-active {
    background: #ffffff;
}

.upload-preview {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-panel-card .upload-preview > .upload-dropzone {
    display: none;
}

.home-preview-body {
    display: block;
}

.upload-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-label {
    font-weight: 700;
    font-size: 0.95rem;
}

.upload-note {
    color: var(--ink-muted);
}

.upload-dropzone {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 180px;
    padding: 20px;
    text-align: center;
    border: 2px dashed var(--accent);
    border-radius: 28px;
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.06),
        rgba(37, 99, 235, 0.01)
    );
    cursor: pointer;
    transition: background 160ms ease,
                border-color 160ms ease,
                transform 160ms ease;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.02));
    transform: translateY(-1px);
}

.upload-dropzone input[type="file"] {
    display: none;
}

.upload-icon {
    font-size: 1rem;
}

.upload-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.upload-text {
    color: var(--ink-muted);
    max-width: 330px;
}

.upload-selection {
    min-height: 1.6rem;
}

.upload-selection-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.98rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

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

.hero-stats > div {
    padding: 10px 16px;
    border-radius: 16px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
}

.hero-stats strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.1;
    margin-bottom: 4px;
}

.hero-stats p {
    margin: 0;
    line-height: 1.25;
    font-size: 0.9rem;
}

.tools-section,
.features-section,
.simple-page,
.tool-hero,
.tool-panel {
    margin-bottom: 56px;
}

.section-header {
    max-width: 920px;
    margin-bottom: 28px;
}

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

.tool-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid transparent;
    box-shadow: var(--shadow);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

.tool-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-muted);
    color: var(--accent-dark);
    font-size: 1rem;
}

.tool-card h3 {
    margin: 0;
    font-size: 1rem;
}

.tool-card p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.card-chevron {
    justify-self: end;
    font-size: 1rem;
    color: var(--accent);
}

.features-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.feature-card h3 {
    margin: 0 0 12px;
}

.feature-card p {
    margin: 0;
    color: var(--ink-muted);
}

.tool-hero {
    display: grid;
    gap: 18px;
}

.tool-header h1 {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    margin: 0;
}

.tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-chip {
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.tool-panel {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 26px;
}

.tool-form-card {
    padding: 32px;
}

.tool-article {
    margin-top: 42px;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.tool-article-header {
    max-width: 820px;
}

.tool-article-header h2 {
    margin: 10px 0 14px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.tool-article-header p,
.tool-article-note p {
    color: var(--ink-muted);
    line-height: 1.8;
}

.tool-article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.tool-article-grid section,
.tool-article-note {
    padding: 24px;
    border-radius: 20px;
    background: var(--surface-muted);
}

.tool-article h3 {
    margin: 0 0 14px;
}

.tool-article ol,
.tool-article ul {
    margin: 0;
    padding-left: 22px;
    color: var(--ink-muted);
    line-height: 1.75;
}

.tool-article li + li {
    margin-top: 8px;
}

.tool-article-note {
    margin-top: 28px;
}

.tool-article-note p {
    margin: 0;
}

.tool-article-depth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 36px;
}

.tool-article-depth p,
.tool-faq p {
    margin: 0;
    color: var(--ink-muted);
    line-height: 1.8;
}

.tool-faq {
    margin-top: 38px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.tool-faq details {
    border-bottom: 1px solid var(--border);
}

.tool-faq summary {
    padding: 18px 4px;
    font-weight: 700;
    cursor: pointer;
}

.tool-faq details p {
    padding: 0 4px 20px;
}

@media (max-width: 680px) {
    .tool-article-grid,
    .tool-article-depth {
        grid-template-columns: 1fr;
    }
}

.home-preview-body .home-photo-slider {
    min-width: 0;
}

@media (max-width: 780px) {
    .home-photo-slider,
    .home-photo-slide img {
        min-height: 220px;
    }

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

.upload-form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 10px;
}

.field span {
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--ink);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.form-status {
    min-height: 32px;
    color: var(--ink-muted);
}

.related-card,
.tips-card {
    padding: 26px;
}

.related-card h3,
.tips-card h3 {
    margin-top: 0;
}

.related-list,
.tips-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-item,
.tips-card li {
    display: block;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface-muted);
    color: var(--ink);
}

.related-item:hover {
    background: var(--accent-soft);
}

.simple-page {
    padding: 40px 0;
}

.simple-page .container {
    max-width: 840px;
    margin: 0 auto;
}

.simple-page .page-copy {
    padding: 28px;
    line-height: 1.8;
    color: var(--ink-muted);
}

.legal-page .page-copy {
    display: grid;
    gap: 16px;
    overflow: visible;
}

.legal-page .page-copy h2 {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: 1.25rem;
}

.legal-page .page-copy p,
.legal-page .page-copy ul {
    margin: 0;
}

.legal-page .page-copy ul {
    padding-left: 1.25rem;
}

.legal-page .page-copy a {
    color: var(--accent);
    font-weight: 700;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 254, 0.94);
    padding: 28px 24px 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-copy {
    margin: 0;
    color: var(--ink-muted);
    max-width: 400px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: var(--ink-muted);
}

.footer-note {
    max-width: 1200px;
    margin: 18px auto 0;
    color: var(--ink-muted);
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    .hero-panel,
    .tool-panel,
    .features-section {
        grid-template-columns: 1fr;
    }

    .hero-copy-block {
        order: 1;
        max-width: 680px;
    }

    .hero-panel-card {
        order: 2;
    }

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

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu {
        display: none;
        position: absolute;
        right: 24px;
        top: 72px;
        width: 260px;
        flex-direction: column;
        padding: 18px;
        border-radius: 22px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (max-width: 680px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .hero-copy-block h1,
    .tool-header h1 {
        font-size: 2.6rem;
    }

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

    .hero-stats,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #020617;
        --surface: #0d111b;
        --surface-strong: #111827;
        --surface-muted: #111827;
        --ink: #e2e8f0;
        --ink-muted: #94a3b8;
        --border: #1f2937;
        --accent-soft: rgba(56, 189, 248, 0.12);
    }

    .site-header,
    .site-footer {
        background: rgba(7, 10, 25, 0.92);
        border-color: rgba(148, 163, 184, 0.08);
    }

    .upload-dropzone,
    .hero-panel-card,
    .feature-card,
    .tool-card,
    .tool-form-card,
    .related-card,
    .tips-card,
    .simple-page .page-copy {
        background: #0d111b;
        border-color: #1f2937;
    }

    .tool-icon,
    .upload-dropzone {
        background: rgba(56, 189, 248, 0.05);
    }

    .theme-toggle,
    .nav-toggle,
    .ghost-button,
    .secondary-action {
        background: rgba(255, 255, 255, 0.08);
    }
}
.selected-file-name {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-weight: 600;
    font-size: 14px;
}
.quick-actions {
    margin-top: 24px;
    padding-top: 16px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tool-action-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-weight: 600;
}
.remove-file-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.contact-card {
    padding: 24px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
}

.qr-image {
    display: block;
    margin: 20px auto 0;
    max-width: 160px;
    width: min(100%, 160px);
    height: auto;
    border-radius: 16px;
}

.contact-footer-card {
    margin-top: 40px;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.08),
        rgba(37, 99, 235, 0.02)
    );
    border: 1px solid var(--border);
}
.pricing-section {
padding: 80px 0;
}

.pricing-header {
text-align: center;
margin-bottom: 48px;
}

.pricing-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 18px;
}

.pricing-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 24px;
padding: 14px;
position: relative;
transition: transform .2s ease;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.pricing-card:hover {
transform: translateY(-4px);
}

.pricing-card.featured {
border: 2px solid var(--accent);
transform: scale(1.03);
}

.plan-badge {
display: inline-block;
padding: 4px 8px;
border-radius: 999px;
background: rgba(37,99,235,.12);
font-size: .8rem;
font-weight: 600;
margin-bottom: 10px;
}

.plan-badge.premium {
background: rgba(245,158,11,.15);
}

.price {
font-size: 1.85rem;
font-weight: 700;
margin: 10px 0;
}

.price span {
font-size: 0.85rem;
color: var(--ink-muted);
}

.price .old-price {
font-size: 1.15rem;
text-decoration: line-through;
text-decoration-thickness: 2px;
color: var(--ink-muted);
margin-right: 8px;
}

.price-note {
margin: 6px 0 12px;
font-size: 0.9rem;
color: var(--ink-muted);
}

.pricing-card ul {
list-style: none;
padding: 0;
margin: 12px 0;
}

.pricing-card li {
margin-bottom: 6px;
color: var(--ink-muted);
}

.pricing-btn {
display: inline-flex;
justify-content: center;
width: 100%;
padding: 10px 14px;
border-radius: 12px;
text-decoration: none;
font-weight: 600;
background: var(--accent);
color: white;
}

.pricing-btn.secondary {
background: rgba(37,99,235,.12);
color: var(--accent);
}

.premium-btn {
background: linear-gradient(
135deg,
#2563eb,
#7c3aed
);
}
.premium-contact-card {
    border: 2px solid var(--accent);
    position: relative;
}

.premium-contact-card::before {
    content: "POPULAR";
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.premium-contact-card h3 {
    color: var(--accent);
}

.dropdown.open .dropdown-menu {
    display: flex;
}
.dropdown:hover .dropdown-menu {
    display: flex;
}
.nav-menu .dropdown-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-menu .dropdown-toggle:hover {
    color: var(--accent);
}

/* =========================
   ABOUT PAGE
========================= */

.about-hero {
    margin-bottom: 48px;
}

.about-hero .hero-panel-card {
    padding: 48px;
    text-align: center;
}

.about-hero h1 {
    margin: 16px 0;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
}

.about-lead {
    max-width: 820px;
    margin: 0 auto;
    color: var(--ink-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-story {
    margin-bottom: 56px;
}

.about-story .card {
    padding: 40px;
}

.about-story h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.about-story p {
    color: var(--ink-muted);
    line-height: 1.8;
}

/* Features */

.about-features {
    margin-bottom: 56px;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.about-feature-card {
    padding: 30px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .2s ease;
}

.about-feature-card:hover {
    transform: translateY(-4px);
}

.about-feature-card span {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.about-feature-card h3 {
    margin: 0 0 12px;
}

.about-feature-card p {
    margin: 0;
    color: var(--ink-muted);
}

/* Highlights */

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.about-highlight-card {
    padding: 28px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .2s ease;
}

.about-highlight-card:hover {
    transform: translateY(-4px);
}

.about-highlight-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.about-highlight-card p {
    margin: 0;
    color: var(--ink-muted);
}

/* CTA */

.about-cta {
    margin-top: 20px;
}

.about-cta-card {
    padding: 50px;
    text-align: center;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.08),
        rgba(37, 99, 235, 0.02)
    );
}

.about-cta-card h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

.about-cta-card p {
    max-width: 650px;
    margin: 0 auto 24px;
    color: var(--ink-muted);
    line-height: 1.8;
}

/* Mobile */

@media (max-width: 768px) {

    .about-hero .hero-panel-card,
    .about-story .card,
    .about-cta-card {
        padding: 28px;
    }

    .about-feature-grid,
    .about-highlights {
        grid-template-columns: 1fr;
    }

    .about-hero h1 {
        font-size: 2.3rem;
    }
}
