:root {
    --bg: #f7f9fd;
    --surface: rgba(255, 255, 255, 0.78);
    --solid: #fff;
    --text: #0b1220;
    --muted: #667085;
    --line: rgba(15, 23, 42, 0.09);
    --blue: #2563eb;
    --cyan: #06b6d4;
    --violet: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 24px 80px rgba(37, 99, 235, 0.1);
    --radius: 22px;
}
[data-theme='dark'] {
    --bg: #07101d;
    --surface: rgba(12, 23, 40, 0.76);
    --solid: #0d1929;
    --text: #f4f7fb;
    --muted: #98a8bc;
    --line: rgba(255, 255, 255, 0.09);
    --shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}
body:before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 5%, rgba(37, 99, 235, 0.12), transparent 28%),
        radial-gradient(circle at 90% 25%, rgba(139, 92, 246, 0.1), transparent 25%),
        radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.08), transparent 30%);
    z-index: -2;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
}
.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}
.glass {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}
.announcement {
    padding: 9px;
    text-align: center;
    font-size: 13px;
    color: #dbeafe;
    background: linear-gradient(90deg, #172554, #1e3a8a, #312e81);
}
.announcement a {
    font-weight: 700;
    margin-left: 8px;
}
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}
.nav.scrolled {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(20px);
    border-color: var(--line);
}
.nav-inner {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.logo {
    width: 190px;
    display: block;
}
.logo-dark {
    display: none;
}
[data-theme='dark'] .logo-light {
    display: none;
}
[data-theme='dark'] .logo-dark {
    display: block;
}
.nav-links {
    display: flex;
    gap: 25px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}
.nav-links a:hover {
    color: var(--text);
}
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 12px;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 13px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--blue), #4f46e5 60%, var(--violet));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}
.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
}
.btn-sm {
    padding: 9px 14px;
    font-size: 13px;
}
.btn-block {
    width: 100%;
}
.hero {
    position: relative;
    padding: 86px 0 70px;
    min-height: 680px;
    display: flex;
    align-items: center;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 58px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    color: var(--blue);
    background: rgba(37, 99, 235, 0.07);
    font-size: 13px;
    font-weight: 700;
}
.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.12);
}
h1,
h2,
h3 {
    font-family: Inter, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0;
}
.hero h1 {
    font-size: clamp(46px, 5.5vw, 73px);
    margin: 22px 0 22px;
}
.gradient-text {
    background: linear-gradient(120deg, var(--blue), var(--cyan) 52%, var(--violet));
    -webkit-background-clip: text;
    color: transparent;
}
.hero-copy > p {
    max-width: 650px;
    color: var(--muted);
    font-size: 19px;
    margin: 0 0 29px;
}
.hero-actions {
    display: flex;
    gap: 12px;
}
.trust {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 27px;
    color: var(--muted);
    font-size: 13px;
}
.avatars {
    display: flex;
}
.avatars span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid var(--bg);
    margin-left: -7px;
}
.avatars span:first-child {
    margin: 0;
}
.hero-visual {
    position: relative;
}
.app-window {
    border-radius: 26px;
    padding: 16px;
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
    animation: float 6s ease-in-out infinite;
}
.window-top {
    height: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.window-top i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f87171;
}
.window-top i:nth-child(2) {
    background: #fbbf24;
}
.window-top i:nth-child(3) {
    background: #34d399;
}
.mini-dashboard {
    background: var(--solid);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 19px;
}
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dash-header small {
    color: var(--muted);
}
.progress-ring {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(
        var(--blue) 0 var(--preview-progress, 0%),
        var(--line) var(--preview-progress, 0%)
    );
    position: relative;
}
.progress-ring:before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--solid);
}
.progress-ring strong {
    position: relative;
}
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 16px;
}
.mini-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.mini-card small {
    display: block;
    color: var(--muted);
    margin-bottom: 5px;
}
.mini-card strong {
    font-size: 20px;
}
.chart {
    height: 70px;
    margin-top: 10px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.14), transparent);
    clip-path: polygon(
        0 82%,
        15% 62%,
        29% 72%,
        47% 31%,
        64% 51%,
        79% 15%,
        100% 3%,
        100% 100%,
        0 100%
    );
    border-bottom: 2px solid var(--blue);
}
.float-pill {
    position: absolute;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
}
.pill-one {
    left: -38px;
    top: 68px;
    animation: float 5s ease-in-out infinite;
}
.pill-two {
    right: -32px;
    bottom: 55px;
    animation: float 5.7s ease-in-out infinite reverse;
}
.stats {
    padding: 10px 0 80px;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 27px;
    border-radius: 22px;
}
.stat {
    text-align: center;
    border-right: 1px solid var(--line);
}
.stat:last-child {
    border: 0;
}
.stat strong {
    font: 800 32px Manrope;
    color: var(--text);
}
.stat span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}
.section {
    padding: 94px 0;
}
.section-head {
    max-width: 700px;
    margin: 0 auto 42px;
    text-align: center;
}
.section-head h2 {
    font-size: clamp(34px, 4vw, 50px);
    margin: 13px 0;
}
.section-head p {
    color: var(--muted);
    font-size: 17px;
    margin: 0;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.card {
    position: relative;
    padding: 23px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
    transition: 0.3s;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.25);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(6, 182, 212, 0.12));
    color: var(--blue);
    font-size: 21px;
}
.card h3 {
    font-size: 19px;
    margin: 18px 0 8px;
}
.card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}
.card-meta {
    display: flex;
    gap: 8px;
    margin-top: 17px;
    flex-wrap: wrap;
}
.tag {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
}
.card-link {
    display: inline-flex;
    margin-top: 17px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}
.tool-card {
    min-height: 220px;
}
.tool-card:after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    right: -50px;
    top: -50px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(139, 92, 246, 0.06));
}
.popular-label {
    position: absolute;
    right: 14px;
    top: 14px;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 10px;
    color: #92400e;
    background: #fef3c7;
}
.roadmap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    gap: 20px;
}
.roadmap:before {
    content: '';
    position: absolute;
    top: 30px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet));
}
.year {
    position: relative;
    text-align: center;
}
.year-num {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font: 800 18px Manrope;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}
.year h3 {
    font-size: 18px;
}
.year p {
    font-size: 13px;
    color: var(--muted);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 20px;
    align-items: stretch;
}
.price-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
}
.price-card .btn {
    margin-top: auto;
}
.price-card.featured {
    border: 1px solid var(--blue);
    transform: scale(1.025);
    box-shadow: 0 25px 80px rgba(37, 99, 235, 0.16);
}
.price-card .plan {
    color: var(--blue);
    font-weight: 800;
}
.price {
    font: 800 42px Manrope;
    margin: 13px 0;
}
.price small {
    font: 500 14px 'DM Sans';
    color: var(--muted);
}
.features {
    list-style: none;
    padding: 0;
    margin: 22px 0;
}
.features li {
    padding: 7px 0;
    color: var(--muted);
    font-size: 14px;
}
.features li:before {
    content: '✓';
    color: var(--success);
    font-weight: 800;
    margin-right: 10px;
}
.testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.quote {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}
.quote p {
    font-size: 17px;
}
.person {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}
.person b {
    display: block;
    color: var(--text);
}
.person-avatar {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
}
.faq {
    max-width: 820px;
    margin: auto;
}
.faq-item {
    border-bottom: 1px solid var(--line);
}
.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding: 21px 0;
    border: 0;
    background: none;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    color: var(--muted);
    transition: max-height 0.3s;
}
.faq-item.open .faq-a {
    max-height: 220px;
    padding-bottom: 20px;
}
.cta {
    margin: 80px auto;
    border-radius: 30px;
    padding: 55px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #172554, #1d4ed8 48%, #6d28d9);
    position: relative;
    overflow: hidden;
}
.cta h2 {
    font-size: 42px;
}
.cta p {
    color: #dbeafe;
}
.cta .btn-secondary {
    background: white;
    color: #172554;
}
.footer {
    padding: 65px 0 30px;
    border-top: 1px solid var(--line);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(4, 1fr);
    gap: 35px;
}
.footer-logo {
    width: 180px;
}
.footer p,
.footer a {
    font-size: 13px;
    color: var(--muted);
}
.footer a {
    display: block;
    margin: 9px 0;
}
.footer h4 {
    margin: 0 0 15px;
}
.footer-bottom {
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-brand {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, #071a38, #172554 50%, #312e81);
    color: white;
}
.auth-panel {
    display: grid;
    place-items: center;
    padding: 35px;
}
.form-card {
    width: min(440px, 100%);
}
.form-card h1 {
    font-size: 35px;
}
.form-card > p {
    color: var(--muted);
}
.google-auth-btn {
    background: var(--solid);
    margin-top: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.google-mark {
    width: 24px;
    height: 24px;
    display: block;
    background: white;
    border-radius: 50%;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    margin: 19px 0;
}
.auth-divider:before,
.auth-divider:after {
    content: '';
    height: 1px;
    background: var(--line);
    flex: 1;
}
.oauth-terms {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    margin-top: 10px;
}
.oauth-terms a {
    color: var(--blue);
}
.field {
    margin: 17px 0;
}
.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}
.input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--solid);
    color: var(--text);
    outline: none;
}
.input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}
.alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin: 15px 0;
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
.app-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--line);
    padding: 22px;
    background: var(--surface);
    backdrop-filter: blur(20px);
}
.side-logo {
    width: 174px;
    margin-bottom: 25px;
}
.side-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    margin: 4px 0;
    border-radius: 11px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}
.side-nav a:hover,
.side-nav a.active {
    background: rgba(37, 99, 235, 0.09);
    color: var(--blue);
}
.app-main {
    padding: 25px 34px;
}
.app-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.app-top h1 {
    font-size: 30px;
}
.user-chip {
    display: flex;
    gap: 10px;
    align-items: center;
}
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font-weight: 800;
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.kpi {
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
}
.kpi span {
    font-size: 12px;
    color: var(--muted);
}
.kpi strong {
    display: block;
    font: 800 25px Manrope;
    margin-top: 6px;
}
.dash-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 18px;
    margin-top: 18px;
}
.panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.progress-bar {
    height: 8px;
    border-radius: 99px;
    background: var(--line);
    overflow: hidden;
}
.progress-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: inherit;
}
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}
.list-item:last-child {
    border: 0;
}
.muted {
    color: var(--muted);
}
.table-wrap {
    overflow: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.table th,
.table td {
    text-align: left;
    padding: 13px;
    border-bottom: 1px solid var(--line);
}
.table th {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-size: 11px;
    font-weight: 700;
}
.badge.warn {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
.badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
.empty {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}
.tool-shell {
    max-width: 900px;
    margin: 40px auto;
}
.calculator {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 18px;
}
.result-box {
    border-radius: 20px;
    padding: 28px;
    color: white;
    background: linear-gradient(145deg, #172554, #1d4ed8, #6d28d9);
}
.result-big {
    font: 800 55px Manrope;
}
.tabs {
    display: flex;
    gap: 8px;
    overflow: auto;
    margin: 22px 0;
}
.tab {
    white-space: nowrap;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    padding: 9px 13px;
    border-radius: 10px;
    cursor: pointer;
}
.tab.active {
    background: var(--blue);
    color: white;
}
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.resource-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
}
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.66);
    z-index: 100;
    place-items: center;
    padding: 20px;
}
.modal.open {
    display: grid;
}
.modal-card {
    width: min(480px, 100%);
    background: var(--solid);
    border-radius: 22px;
    padding: 25px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: 0.7s;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
@keyframes float {
    50% {
        transform: translateY(-10px);
    }
}
.tool-workspace {
    max-width: 1080px;
}
.tool-app-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 18px;
    align-items: start;
}
.tool-output {
    position: sticky;
    top: 100px;
    min-height: 300px;
    overflow-wrap: anywhere;
}
.tool-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 9px;
    margin: 9px 0;
}
.tool-actions,
.tool-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.generated-text {
    white-space: pre-wrap;
    word-break: break-word;
    font:
        500 14px/1.65 ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    color: inherit;
    margin: 0;
}
.tool-result-content p {
    color: #dbeafe;
}
.tool-list {
    margin-top: 18px;
}
.tracker-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 8px 0;
}
.tracker-item small {
    display: block;
    color: var(--muted);
}
.tracker-item button {
    border: 0;
    background: none;
    color: var(--danger);
    font-size: 20px;
    cursor: pointer;
}
.timer-display {
    font:
        800 clamp(60px, 12vw, 108px)/1 Inter,
        sans-serif;
    text-align: center;
    letter-spacing: -0.07em;
    margin: 25px 0;
    color: var(--blue);
}
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 22px;
}
.countdown-grid span {
    padding: 16px 8px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.09);
    text-align: center;
}
.countdown-grid b {
    display: block;
    font-size: 28px;
}
.formula-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 620px;
    overflow: auto;
}
.formula-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
}
.formula-card small {
    color: var(--blue);
}
.formula-card code {
    color: var(--text);
    font-size: 14px;
    white-space: normal;
}
.formula-card span {
    color: var(--muted);
    font-size: 11px;
}
.scientific-input {
    font:
        600 20px/1.5 ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
}
.resource-search {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
    gap: 10px;
}
.admin-material-form {
    max-width: 850px;
}
.section:not(.hero),
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}
.locked-feature {
    text-align: center;
    padding: 64px 52px;
    margin-top: 28px;
}
.locked-feature h1 {
    font-size: clamp(38px, 6vw, 58px);
    margin: 20px 0 14px;
}
.locked-feature > p {
    font-size: 18px;
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto 26px;
}
.locked-feature .hero-actions {
    justify-content: center;
    margin: 25px 0;
}
.lock-symbol {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: rgba(37, 99, 235, 0.1);
    font-size: 30px;
}
.feature-preview {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 650px;
    margin: 20px auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: left;
}
.feature-preview span {
    color: var(--muted);
}
.onboarding-panel {
    margin-top: 18px;
    padding: 34px;
}
.onboarding-panel h2 {
    font-size: 30px;
    margin: 16px 0 8px;
}
.inline-admin-form {
    display: grid;
    grid-template-columns: 140px 140px 1fr auto;
    gap: 9px;
    align-items: center;
}
.inline-admin-form .input {
    padding: 9px 10px;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .app-window,
    .float-pill {
        animation: none;
    }
}
@media (max-width: 950px) {
    .nav-links {
        display: none;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding-top: 55px;
    }
    .hero-copy {
        text-align: center;
    }
    .hero-copy > p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions,
    .trust {
        justify-content: center;
    }
    .hero-visual {
        width: min(620px, 100%);
        margin: auto;
    }
    .card-grid,
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    .stat:nth-child(2) {
        border: 0;
    }
    .roadmap {
        grid-template-columns: 1fr 1fr;
    }
    .roadmap:before {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    .app-shell {
        grid-template-columns: 82px 1fr;
    }
    .sidebar {
        padding: 16px;
    }
    .side-logo {
        width: 48px;
        height: 48px;
        object-fit: cover;
        object-position: left;
    }
    .side-nav a span {
        display: none;
    }
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 650px) {
    .container {
        width: min(100% - 28px, 1180px);
    }
    .announcement {
        font-size: 11px;
    }
    .nav-inner {
        height: 65px;
    }
    .logo {
        width: 155px;
    }
    .nav-actions .login-link {
        display: none;
    }
    .hero {
        padding: 44px 0;
    }
    .hero h1 {
        font-size: 42px;
    }
    .hero-copy > p {
        font-size: 16px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .float-pill {
        display: none;
    }
    .app-window {
        transform: none;
    }
    .card-grid,
    .pricing-grid,
    .resource-grid,
    .testimonials {
        grid-template-columns: 1fr;
    }
    .price-card.featured {
        transform: none;
    }
    .stat-grid {
        padding: 20px;
    }
    .stat strong {
        font-size: 25px;
    }
    .roadmap {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 70px 0;
    }
    .cta {
        padding: 38px 20px;
    }
    .cta h2 {
        font-size: 32px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid > div:first-child {
        grid-column: 1/-1;
    }
    .footer-bottom {
        display: block;
    }
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-brand {
        display: none;
    }
    .app-shell {
        display: block;
    }
    .sidebar {
        height: auto;
        position: fixed;
        inset: auto 0 0;
        z-index: 80;
        padding: 7px;
        border-top: 1px solid var(--line);
        border-right: 0;
    }
    .side-logo {
        display: none;
    }
    .side-nav {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }
    .side-nav::-webkit-scrollbar {
        display: none;
    }
    .side-nav a {
        flex: 0 0 56px;
        justify-content: center;
        padding: 9px;
    }
    .side-nav a:last-child {
        position: sticky;
        right: 0;
        background: var(--solid);
        box-shadow: -10px 0 18px var(--solid);
    }
    .app-main {
        padding: 18px 14px 85px;
    }
    .app-top h1 {
        font-size: 24px;
    }
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dash-layout,
    .calculator,
    .tool-app-grid {
        grid-template-columns: 1fr;
    }
    .tool-output {
        position: static;
    }
    .form-row,
    .tool-row,
    .resource-search {
        grid-template-columns: 1fr;
    }
    .countdown-grid {
        grid-template-columns: 1fr 1fr;
    }
    .formula-grid {
        grid-template-columns: 1fr;
    }
}
.side-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}
.btn-danger {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.09);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.plan-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.plan-admin-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: color-mix(in srgb, var(--solid) 78%, transparent);
}
.plan-admin-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
}
.plan-delete summary {
    list-style: none;
}
.plan-delete summary::-webkit-details-marker {
    display: none;
}
.plan-delete[open] {
    padding: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 13px;
    background: rgba(239, 68, 68, 0.05);
}
.plan-delete[open] summary {
    display: none;
}
.plan-delete p {
    max-width: 220px;
    margin: 0 0 10px;
    font-size: 12px;
}
@media (max-width: 950px) {
    .side-nav a {
        justify-content: center;
    }
    .side-icon {
        width: 21px;
        height: 21px;
        flex-basis: 21px;
    }
    .plan-admin-grid {
        grid-template-columns: 1fr;
    }
}
.onboarding-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(6, 182, 212, 0.16), transparent 27%),
        radial-gradient(circle at 88% 18%, rgba(139, 92, 246, 0.15), transparent 28%), var(--bg);
}
.onboarding-shell {
    width: min(100% - 32px, 980px);
    margin: auto;
    padding: 28px 0 46px;
}
.onboarding-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}
.onboarding-safe {
    font-size: 12px;
    color: var(--muted);
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}
.onboarding-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: color-mix(in srgb, var(--solid) 88%, transparent);
    box-shadow: 0 30px 100px rgba(37, 99, 235, 0.14);
    backdrop-filter: blur(22px);
}
.onboarding-card:before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    right: -100px;
    top: -120px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(139, 92, 246, 0.12));
    pointer-events: none;
}
.onboarding-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 38px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.onboarding-progress-bar {
    height: 7px;
    flex: 1;
    overflow: hidden;
    border-radius: 99px;
    background: var(--line);
}
.onboarding-progress-bar i {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet));
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.onboarding-step {
    display: none;
    max-width: 820px;
    margin: auto;
}
.onboarding-step.active {
    display: block;
    animation: onboarding-in 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.onboarding-step h1 {
    font-size: clamp(35px, 5vw, 54px);
    margin: 16px 0 12px;
    max-width: 720px;
}
.onboarding-step > p {
    color: var(--muted);
    font-size: 17px;
    max-width: 680px;
    margin: 0 0 28px;
}
.onboarding-visual {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 20px;
    color: white;
    font-size: 28px;
    background: linear-gradient(135deg, var(--blue), var(--cyan) 55%, var(--violet));
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.24);
    animation: onboarding-float 3s ease-in-out infinite;
}
.onboarding-input {
    font-size: 16px;
    padding: 15px;
}
.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border: 0;
    padding: 0;
    margin: 0 0 24px;
}
.goal-choices {
    grid-template-columns: repeat(2, 1fr);
}
.choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    cursor: pointer;
    transition: 0.22s;
}
.choice-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.09);
}
.choice-card:has(input:checked) {
    border-color: var(--blue);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}
.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.choice-icon {
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--blue);
    background: rgba(37, 99, 235, 0.1);
    font-size: 13px;
    font-weight: 800;
}
.choice-card b {
    font-size: 14px;
}
.choice-card small {
    color: var(--muted);
}
.semester-choices {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}
.semester-choices input {
    position: absolute;
    opacity: 0;
}
.semester-choices span {
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}
.semester-choices label:has(input:checked) span {
    color: white;
    border-color: var(--blue);
    background: linear-gradient(135deg, var(--blue), var(--violet));
    transform: translateY(-2px);
}
.time-choices {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.onboarding-range {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    margin-bottom: 22px;
}
.onboarding-range label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.onboarding-range input {
    width: 100%;
    margin-top: 18px;
    accent-color: var(--blue);
}
.onboarding-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}
.onboarding-foot {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 16px;
}
.submitting {
    opacity: 0.7;
    pointer-events: none;
}
.student-profile-banner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.09),
        rgba(6, 182, 212, 0.06),
        rgba(139, 92, 246, 0.08)
    );
}
.student-profile-banner h2 {
    font-size: 24px;
    margin: 13px 0 7px;
}
.student-profile-banner p {
    margin: 0;
    color: var(--muted);
}
.profile-focus {
    min-width: 275px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
}
.profile-focus small,
.profile-focus span {
    display: block;
    color: var(--muted);
}
.profile-focus strong {
    display: block;
    margin: 4px 0;
    font-size: 18px;
}
@keyframes onboarding-in {
    from {
        opacity: 0;
        transform: translateX(28px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes onboarding-float {
    50% {
        transform: translateY(-7px) rotate(3deg);
    }
}
@media (max-width: 700px) {
    .onboarding-shell {
        width: min(100% - 20px, 980px);
        padding: 14px 0 30px;
    }
    .onboarding-top {
        margin-bottom: 12px;
    }
    .onboarding-card {
        padding: 24px 18px;
        border-radius: 23px;
    }
    .onboarding-progress {
        margin-bottom: 25px;
    }
    .onboarding-step h1 {
        font-size: 34px;
    }
    .onboarding-step > p {
        font-size: 15px;
    }
    .choice-grid,
    .goal-choices {
        grid-template-columns: 1fr 1fr;
    }
    .branch-choices {
        max-height: 315px;
        overflow: auto;
    }
    .semester-choices {
        grid-template-columns: repeat(4, 1fr);
    }
    .time-choices {
        grid-template-columns: 1fr 1fr;
    }
    .onboarding-actions .btn {
        padding: 11px 13px;
    }
    .student-profile-banner {
        align-items: stretch;
        flex-direction: column;
    }
    .profile-focus {
        min-width: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .onboarding-step.active,
    .onboarding-visual {
        animation: none;
    }
    .onboarding-progress-bar i {
        transition: none;
    }
}
.institution-field {
    position: relative;
}
.institution-help {
    display: block;
    color: var(--muted);
    margin-top: 7px;
}
.institution-help.selected {
    color: #059669;
    font-weight: 700;
}
.institution-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    max-height: 300px;
    overflow: auto;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--solid);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.18);
}
.institution-results button {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border: 0;
    border-radius: 10px;
    color: var(--text);
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.institution-results button:hover,
.institution-results button.active {
    background: rgba(37, 99, 235, 0.09);
}
.institution-results button small {
    color: var(--muted);
}
.institution-empty {
    padding: 16px;
    color: var(--muted);
    font-size: 13px;
}
.compact-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.compact-choices input {
    position: absolute;
    opacity: 0;
}
.compact-choices span {
    display: block;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.compact-choices label:has(input:checked) span {
    color: white;
    border-color: var(--blue);
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}
.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.recommendation-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: color-mix(in srgb, var(--solid) 76%, transparent);
}
.recommendation-card b {
    display: block;
    margin-bottom: 5px;
}
.recommendation-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
.recommendation-card .btn {
    margin-top: 13px;
}
@media (max-width: 800px) {
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
}
.brand-link {
    flex: 0 0 auto;
}
.nav-links a.active {
    color: var(--blue);
}
.mobile-menu-toggle {
    display: none;
    padding: 10px;
}
.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 3px;
    background: currentColor;
}
.mobile-nav {
    display: none;
}
.assurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 34px;
}
.assurance-grid h3 {
    margin: 16px 0 8px;
}
.assurance-grid p {
    margin: 0;
}
.resource-results-head {
    margin: 30px 0 18px;
}
.resource-results-head h2,
.branch-browser-head h2 {
    font-size: 25px;
}
.branch-browser-head {
    margin: 48px 0 18px;
}
.branch-browser-head p {
    margin: 5px 0 0;
}
.branch-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.branch-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    transition: 0.2s;
}
.branch-chip:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}
.branch-chip b,
.branch-chip small {
    display: block;
}
.branch-chip small {
    color: var(--muted);
    margin-top: 3px;
}
.branch-chip i {
    color: var(--blue);
    font-style: normal;
    font-weight: 800;
}
.content-hero {
    padding-bottom: 35px;
}
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
    gap: 28px;
    align-items: end;
}
.content-layout h1 {
    font-size: clamp(44px, 6vw, 68px);
    margin: 20px 0;
}
.content-lead {
    max-width: 760px;
    color: var(--muted);
    font-size: 20px;
}
.content-contact p {
    font-size: 14px;
}
.prose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.prose-grid h2,
.contact-grid h2 {
    font-size: 26px;
    margin-bottom: 15px;
}
.prose-grid p,
.prose-grid li {
    color: var(--muted);
}
.prose-grid ul {
    padding-left: 20px;
}
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 18px;
}
.faq-page {
    padding-bottom: 35px;
}
.legal-prose {
    max-width: 900px;
}
.legal-prose article {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.legal-prose article:first-child {
    padding-top: 0;
}
.legal-prose h2 {
    font-size: 26px;
    margin-bottom: 12px;
}
.legal-prose p {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}
.resource-card p {
    overflow-wrap: anywhere;
}
@media (max-width: 950px) {
    .mobile-menu-toggle {
        display: grid;
        gap: 3px;
    }
    .mobile-nav.open {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding-top: 10px;
        padding-bottom: 18px;
    }
    .mobile-nav a {
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--solid);
        font-size: 14px;
        font-weight: 700;
    }
    .mobile-nav a.active {
        color: var(--blue);
        border-color: rgba(37, 99, 235, 0.25);
    }
    .assurance-grid,
    .branch-chip-grid,
    .prose-grid {
        grid-template-columns: 1fr 1fr;
    }
    .content-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .content-contact {
        max-width: 600px;
    }
}
@media (max-width: 650px) {
    .nav-actions .btn,
    .nav-actions .login-link {
        display: none;
    }
    .nav-inner {
        gap: 10px;
    }
    .nav-actions {
        margin-left: auto;
    }
    .mobile-nav.open,
    .assurance-grid,
    .branch-chip-grid,
    .prose-grid {
        grid-template-columns: 1fr;
    }
    .mobile-nav {
        max-height: calc(100vh - 78px);
        overflow: auto;
    }
    .content-hero {
        padding-top: 58px;
    }
    .content-layout h1 {
        font-size: 42px;
    }
    .content-lead {
        font-size: 17px;
    }
    .resource-results-head,
    .branch-browser-head {
        align-items: flex-start;
        gap: 12px;
    }
    .resource-results-head {
        margin-top: 24px;
    }
    .locked-feature {
        padding: 44px 20px;
    }
    .feature-preview {
        flex-direction: column;
    }
    .tool-actions {
        flex-wrap: wrap;
    }
    .tool-actions .btn {
        flex: 1 1 150px;
    }
}
.coupon-apply-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}
.coupon-feedback {
    display: block;
    margin-top: 8px;
    min-height: 20px;
}
.coupon-feedback.success {
    color: #059669;
    font-weight: 700;
}
.coupon-feedback.error {
    color: #dc2626;
    font-weight: 700;
}
.checkout-form [disabled] {
    cursor: wait;
    opacity: 0.7;
}
.checkout-summary .coupon-saving {
    color: #a7f3d0;
}
.access-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.access-card {
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: color-mix(in srgb, var(--solid) 80%, transparent);
}
.access-card h3 {
    margin: 12px 0 7px;
}
.access-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.access-card .btn {
    margin-top: 16px;
}
.dashboard-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 15px;
}
.dashboard-plan-card {
    display: flex;
    flex-direction: column;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}
.dashboard-plan-card h3 {
    margin: 12px 0 4px;
}
.dashboard-plan-card .price {
    font-size: 30px;
}
.dashboard-plan-card .features {
    margin: 12px 0 20px;
}
.dashboard-plan-card .btn,
.dashboard-plan-card .badge {
    margin-top: auto;
}
.coupon-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.coupon-stat {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    text-align: center;
}
.coupon-stat b,
.coupon-stat small {
    display: block;
}
.coupon-stat small {
    color: var(--muted);
    font-size: 10px;
}
.coupon-admin-item {
    align-items: flex-start;
    gap: 18px;
}
.coupon-admin-details {
    min-width: 0;
    flex: 1;
}
.coupon-admin-actions {
    flex: 0 0 auto;
}
@media (max-width: 650px) {
    .coupon-apply-row {
        grid-template-columns: 1fr;
    }
    .coupon-apply-row .btn {
        width: 100%;
    }
    .coupon-stats {
        grid-template-columns: 1fr 1fr;
    }
    .coupon-admin-item {
        display: block;
    }
    .coupon-admin-actions {
        margin-top: 14px;
    }
    .dashboard-plan-grid,
    .access-summary-grid {
        grid-template-columns: 1fr;
    }
}
.content-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.content-stat-editor {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--solid) 78%, transparent);
}
.admin-page-editor {
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-top: 14px;
    overflow: hidden;
    background: var(--surface);
}
.admin-page-editor > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}
.admin-page-editor > summary::-webkit-details-marker {
    display: none;
}
.admin-page-editor > summary span:first-child {
    display: grid;
    gap: 3px;
}
.admin-page-editor > summary small {
    color: var(--muted);
    font-weight: 400;
}
.admin-page-editor[open] > summary {
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--solid) 74%, transparent);
}
.admin-page-editor > form {
    padding: 20px;
}
.page-section-editors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.content-section-editor {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.content-section-editor legend {
    padding: 0 8px;
    font-weight: 800;
    color: var(--blue);
}
@media (max-width: 850px) {
    .content-editor-grid,
    .page-section-editors {
        grid-template-columns: 1fr;
    }
    .admin-page-editor > summary {
        align-items: flex-start;
    }
    .admin-page-editor > form {
        padding: 15px;
    }
}
.local-file-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: 15px;
    background: rgba(5, 150, 105, 0.08);
}
.local-file-notice:before {
    content: '✓';
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: #059669;
    font-weight: 900;
}
.local-file-notice b,
.local-file-notice span {
    display: block;
}
.local-file-notice span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}
.file-input {
    padding: 10px;
}
.file-input::file-selector-button {
    margin-right: 12px;
    padding: 9px 13px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font-weight: 800;
    cursor: pointer;
}
.inline-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -3px 0 18px;
    font-size: 14px;
    font-weight: 700;
}
.selected-file-list {
    display: grid;
    gap: 8px;
    margin-top: 15px;
}
.selected-file-list > b {
    font-size: 13px;
    color: var(--muted);
}
.selected-file-list > span {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    overflow: hidden;
}
.selected-file-list i {
    display: grid;
    place-items: center;
    flex: 0 0 27px;
    height: 27px;
    border-radius: 8px;
    color: var(--blue);
    background: rgba(37, 99, 235, 0.1);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}
.selected-file-list span span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}
.selected-file-list small {
    display: block;
    color: var(--muted);
    font-weight: 400;
}
.local-result h2 {
    margin: 16px 0 8px;
}
.local-result.success h2 {
    color: #059669;
}
.local-result.error h2 {
    color: #dc2626;
}
.admin-tool-price-grid {
    display: grid;
    gap: 10px;
}
.admin-tool-price-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(120px, 160px) auto;
    align-items: end;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.admin-tool-price-row .field {
    margin: 0;
}
.admin-tool-price-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}
@media (max-width: 650px) {
    .tool-shell h1 {
        font-size: 38px !important;
    }
    .local-file-notice {
        padding: 13px;
    }
    .admin-tool-price-row {
        grid-template-columns: 1fr;
    }
    .admin-tool-price-row .btn {
        width: 100%;
    }
}
