@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --park-purple: #5d2ca8;
    --park-magenta: #ff5fa2;
    --park-gold: #ffcc29;
    --park-teal: #27d8d5;
    --park-navy: #1b1155;
    --park-cream: #fff7ea;
    --park-cloud: rgba(255, 247, 234, 0.94);
    --text-muted: rgba(27, 17, 85, 0.68);
    --border-soft: rgba(93, 44, 168, 0.12);
    --shadow-soft: 0 25px 60px rgba(29, 17, 85, 0.15);
}

* {
    box-sizing: border-box;
}

.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;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    color: var(--park-navy);
    background: radial-gradient(circle at top, rgba(255, 245, 230, 0.9), rgba(241, 223, 255, 0.95)),
                linear-gradient(135deg, #1a2a6c 0%, #fdbb2d 100%);
    min-height: 100vh;
}

html.is-embedded,
html.is-embedded body {
    background: none;
}

html.is-embedded body {
    min-height: auto;
}

html.is-embedded .aurora,
html.is-embedded .top-nav,
html.is-embedded .site-footer {
    display: none;
}

html.is-embedded .app-shell {
    min-height: auto;
    box-shadow: none;
}

html.is-embedded .main-content {
    padding: 0 0 32px;
}

.aurora {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 111, 162, 0.35), transparent 55%),
                radial-gradient(circle at 80% 15%, rgba(39, 216, 213, 0.35), transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(255, 204, 41, 0.25), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 247, 234, 0.86);
    border-bottom: 1px solid rgba(93, 44, 168, 0.12);
    backdrop-filter: blur(18px);
    border-radius: 32px;
    box-shadow: 0 22px 45px rgba(27, 17, 85, 0.12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--park-purple);
    text-decoration: none;
}

.brand__badge {
    background: linear-gradient(135deg, var(--park-purple), var(--park-magenta));
    color: white;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    box-shadow: 0 12px 30px rgba(93, 44, 168, 0.25);
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
    color: var(--park-purple);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:focus-visible,
.nav-toggle:focus-visible {
    outline: 3px solid rgba(93, 44, 168, 0.45);
    outline-offset: 3px;
}

.nav-link:hover {
    background: rgba(93, 44, 168, 0.12);
    transform: translateY(-1px);
}

.nav-link--primary {
    background: linear-gradient(135deg, var(--park-purple), var(--park-magenta));
    color: white;
    box-shadow: 0 12px 24px rgba(93, 44, 168, 0.25);
}

.nav-link.active {
    background: rgba(93, 44, 168, 0.18);
    color: var(--park-navy);
    font-weight: 600;
}

.main-content {
    flex: 1;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(93, 44, 168, 0.18);
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    position: relative;
    z-index: 25;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(93, 44, 168, 0.32);
}

.nav-toggle__bar {
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--park-purple);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bar:nth-child(1) {
    transform: translateY(-7px);
}

.nav-toggle__bar:nth-child(2) {
    transform: translateY(0);
}

.nav-toggle__bar:nth-child(3) {
    transform: translateY(7px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

body.nav-open {
    overflow: hidden;
}

body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(27, 17, 85, 0.35);
    backdrop-filter: blur(2px);
    z-index: 15;
    pointer-events: auto;
}

.section {
    width: 100%;
    padding: 60px 24px 100px;
}

.section--hero {
    padding-top: 40px;
}

.section__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-card {
    background: var(--park-cloud);
    border-radius: 28px;
    padding: clamp(36px, 6vw, 64px);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-card::before,
.hero-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.35;
    filter: blur(0.5px);
}

.hero-card::before {
    width: 260px;
    height: 260px;
    background: var(--park-magenta);
    top: -120px;
    right: -80px;
}

.hero-card::after {
    width: 180px;
    height: 180px;
    background: var(--park-teal);
    bottom: -80px;
    left: -60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(93, 44, 168, 0.12);
    color: var(--park-purple);
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    margin: 20px 0 12px;
    line-height: 1.1;
}

.hero-lead {
    font-size: 1.1rem;
    max-width: 640px;
    line-height: 1.7;
    color: var(--text-muted);
}

.hero-actions {
    margin: 36px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    font-size: 1rem;
}

.btn:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(93, 44, 168, 0.2);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--park-purple), var(--park-magenta));
    color: white;
}

.btn-outline {
    border-color: rgba(93, 44, 168, 0.35);
    color: var(--park-purple);
    background: white;
}

.btn-outline:hover:not([disabled]) {
    background: rgba(93, 44, 168, 0.08);
}

.btn-accent {
    background: linear-gradient(135deg, var(--park-gold), var(--park-magenta));
    color: var(--park-navy);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 42px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 22px 24px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 30px rgba(27, 17, 85, 0.08);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-muted);
    margin-top: 6px;
}

.feature-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    padding: 26px;
    border: 1px solid rgba(27, 17, 85, 0.12);
    box-shadow: 0 20px 45px rgba(27, 17, 85, 0.08);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 18px;
}

.tenant-card {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(39, 216, 213, 0.12);
    border: 1px solid rgba(39, 216, 213, 0.35);
}

.tenant-hint {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section--settings {
    padding-top: 80px;
}

.settings-shell {
    display: grid;
    gap: 48px;
}

.settings-header {
    position: relative;
    overflow: hidden;
}

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

.settings-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 28px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 45px rgba(27, 17, 85, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.settings-card:hover {
    transform: translateY(-4px);
    border-color: rgba(93, 44, 168, 0.28);
    box-shadow: 0 22px 55px rgba(27, 17, 85, 0.14);
}

.settings-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--park-purple), var(--park-magenta));
    color: white;
    box-shadow: 0 12px 24px rgba(93, 44, 168, 0.28);
}

.settings-card__title {
    margin: 0;
    font-size: 1.25rem;
}

.settings-card__copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.settings-card__cta {
    margin-top: auto;
    font-weight: 600;
    color: var(--park-purple);
}


.section--module {
    padding-top: 80px;
}

.module-shell {
    display: grid;
    gap: 48px;
}

.module-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) 1fr;
    gap: 28px;
    align-items: flex-start;
}

.module-menu {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 26px 24px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 40px rgba(27, 17, 85, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-menu__title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.module-menu__note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.module-menu__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(93, 44, 168, 0.08);
    color: var(--park-purple);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.module-menu__link span {
    font-size: 1.1rem;
}

.module-menu__link:hover {
    background: rgba(93, 44, 168, 0.16);
    transform: translateX(4px);
}

.module-stage {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 26px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 22px 55px rgba(27, 17, 85, 0.12);
    overflow: hidden;
    min-height: 560px;
    display: flex;
    flex-direction: column;
}

.module-stage__frame {
    flex: 1;
    width: 100%;
    border: none;
    background: white;
}

.module-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: clamp(26px, 5vw, 36px);
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 45px rgba(27, 17, 85, 0.1);
}

.module-card--speedrun {
    background: linear-gradient(135deg, rgba(93, 44, 168, 0.12), rgba(255, 95, 162, 0.12));
    border: 1px solid rgba(93, 44, 168, 0.18);
}

.module-card + .module-card {
    margin-top: 24px;
}

.speedrun-status {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.speedrun-status li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.speedrun-status li span:last-child {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.speedrun-status li.speedrun-status--unlocked {
    background: rgba(76, 175, 80, 0.18);
    color: #1b5e20;
}

.speedrun-status li.speedrun-status--locked {
    background: rgba(93, 44, 168, 0.1);
    color: var(--park-purple);
}

.guide-details {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.guide-details__content {
    position: relative;
    z-index: 1;
}

.guide-details__time {
    margin-top: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--park-purple);
}

.guide-details__mask {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
    background: rgba(32, 0, 64, 0.82);
    color: #f9f5ff;
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.guide-details__mask strong {
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.guide-details__mask p {
    margin: 0;
    font-size: 0.9rem;
}

.guide-details--locked .guide-details__content {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.guide-details--locked .guide-details__mask {
    opacity: 1;
    pointer-events: auto;
}

.guide-details__mask-hint {
    font-size: 0.8rem;
    opacity: 0.85;
}

.module-card__title {
    margin: 0;
    font-size: 1.35rem;
}

.module-card__subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.module-meta {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.module-alert {
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 500;
    border: 1px solid transparent;
}

.module-alert + .module-alert {
    margin-top: 12px;
}

.module-alert--success {
    background: rgba(39, 216, 213, 0.14);
    color: #0f6b6a;
    border-color: rgba(39, 216, 213, 0.28);
}

.module-alert--error {
    background: rgba(255, 95, 162, 0.14);
    color: #a11850;
    border-color: rgba(255, 95, 162, 0.32);
}

.module-alert--note {
    background: rgba(255, 204, 41, 0.18);
    color: #7b4b00;
    border-color: rgba(255, 204, 41, 0.32);
}

.module-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.module-table thead {
    background: rgba(93, 44, 168, 0.12);
    color: var(--park-navy);
}

.module-table th {
    padding: 14px 16px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.module-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(93, 44, 168, 0.12);
    font-size: 0.95rem;
    vertical-align: top;
}

.module-table tbody tr:hover {
    background: rgba(93, 44, 168, 0.06);
}

.module-table tr.is-foreign {
    background: rgba(255, 95, 162, 0.12);
}

.module-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.module-form--inline {
    margin: 0;
    gap: 12px;
}

.module-form--inline .input-field {
    margin-bottom: 0;
    flex: 0 1 150px;
    min-width: 120px;
}

.module-form--inline .input-field[type="time"],
.module-form--inline .input-field[type="number"] {
    flex: 0 1 110px;
}

.module-form--inline .btn {
    margin-bottom: 0;
}

.module-form--inline .module-link {
    margin-left: auto;
}

.module-link {
    color: var(--park-purple);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.module-link:hover {
    text-decoration: underline;
}

.module-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-list__item {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(93, 44, 168, 0.08);
    color: var(--park-navy);
    line-height: 1.5;
}

.module-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(93, 44, 168, 0.12);
    color: var(--park-purple);
    font-size: 0.85rem;
    font-weight: 600;
}

.module-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 24px;
}

.module-figure {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(93, 44, 168, 0.1);
    color: var(--park-navy);
}

.module-figure__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.module-figure__value {
    font-size: 1.4rem;
    font-weight: 700;
}

.form-section {
    width: 100%;
    padding: 80px 24px 100px;
}

.form-shell {
    max-width: 420px;
    margin: 0 auto;
}

.form-card {
    background: var(--park-cloud);
    border-radius: 26px;
    padding: 42px 44px 48px;
    box-shadow: var(--shadow-soft);
}

.form-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.form-card p {
    margin-top: 0;
    margin-bottom: 26px;
    color: var(--text-muted);
    line-height: 1.6;
}

.input-field,
select.input-field,
textarea.input-field {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(93, 44, 168, 0.3);
    border-radius: 14px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    color: inherit;
}

select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235D2CA8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 46px;
}

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

.input-field:focus,
select.input-field:focus,
textarea.input-field:focus {
    outline: none;
    border-color: var(--park-purple);
    box-shadow: 0 0 0 4px rgba(93, 44, 168, 0.12);
}

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

.alert--error {
    background: rgba(255, 95, 162, 0.12);
    color: #a11850;
    border: 1px solid rgba(255, 95, 162, 0.35);
}

.alert--success {
    background: rgba(39, 216, 213, 0.12);
    color: #0f6b6a;
    border: 1px solid rgba(39, 216, 213, 0.35);
}

.site-footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(27, 17, 85, 0.12);
    padding: 24px 32px 40px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--park-purple);
    font-weight: 600;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

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

    .module-menu {
        position: relative;
    }

    .module-stage {
        min-height: 520px;
    }
}
@media (max-width: 1024px) {
    .top-nav {
        max-width: none;
        margin: 0 24px;
        border-radius: 26px;
    }

    .section {
        padding: 56px 24px 90px;
    }

    .section__inner {
        max-width: 900px;
    }

    .hero-card {
        padding: clamp(32px, 6vw, 44px);
    }

    .hero-actions {
        gap: 14px;
    }

    .stats-grid,
    .feature-grid {
        gap: 24px;
    }

    .settings-shell,
    .module-shell {
        gap: 36px;
    }
}

@media (max-width: 900px) {
    .top-nav {
        margin: 0;
        border-radius: 0;
        padding: 18px 24px;
    }

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

    .nav-links {
        position: fixed;
        top: 78px;
        right: 24px;
        left: 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 24px;
        background: rgba(255, 247, 234, 0.97);
        border-radius: 24px;
        box-shadow: 0 24px 60px rgba(27, 17, 85, 0.22);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.2s ease;
        margin-left: 0;
        z-index: 30;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
    }

    .section {
        padding: 52px 20px 80px;
    }

    .hero-card {
        border-radius: 24px;
    }

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

    .hero-actions .btn {
        width: 100%;
    }

    .stats-grid,
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .form-card {
        padding: 32px 28px 38px;
    }

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

    .settings-card {
        padding: 24px;
    }

    .module-card {
        padding: 26px;
    }

    .module-table th,
    .module-table td {
        padding: 12px 14px;
    }

    .module-menu__link {
        padding: 10px 14px;
    }

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

@media (max-width: 720px) {
    .top-nav {
        padding: 16px 20px;
    }

    .nav-links {
        top: 72px;
        right: 18px;
        left: 18px;
        padding: 20px;
    }

    .hero-card {
        padding: 30px 24px;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .stats-grid,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tenant-card {
        padding: 20px;
    }

    .form-card {
        padding: 30px 24px 36px;
    }

    .module-card {
        padding: 24px;
    }

    .settings-shell,
    .module-shell {
        gap: 28px;
    }

    .module-stage {
        min-height: 420px;
    }
}

@media (max-width: 540px) {
    .top-nav {
        padding: 16px;
    }

    .nav-links {
        top: 66px;
        right: 16px;
        left: 16px;
        border-radius: 20px;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .hero-card {
        padding: 26px 20px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .hero-actions {
        gap: 12px;
    }

    .btn {
        padding: 14px 22px;
    }

    .section {
        padding: 44px 16px 72px;
    }

    .site-footer {
        padding: 28px 20px 36px;
        font-size: 0.85rem;
    }

    .module-table th,
    .module-table td {
        font-size: 0.95rem;
    }

    .form-card {
        padding: 26px 20px 32px;
        border-radius: 22px;
    }

    .tenant-card {
        border-radius: 16px;
    }

    .module-card {
        padding: 22px;
        border-radius: 22px;
    }
}
