﻿:root {
    --st-bg: #fbfaf8;
    --st-surface: #ffffff;
    --st-surface-soft: #fff7ef;
    --st-border: #eee5dc;
    --st-text: #1f2933;
    --st-muted: #7b8794;
    --st-orange: #f28c28;
    --st-orange-dark: #d96f13;
    --st-orange-soft: #fff0de;
    --st-shadow: 0 18px 45px rgba(60, 42, 24, 0.07);
    --st-radius: 22px;
}

body {
    margin: 0;
    background: var(--st-bg);
    color: var(--st-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.side-nav {
    width: 260px;
    background: rgba(255, 255, 255, 0.82);
    border-right: 1px solid var(--st-border);
    padding: 22px 18px;
    position: fixed;
    inset: 0 auto 0 0;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
}

.side-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--st-text);
    padding: 10px 8px 24px;
}

.side-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffb86b, #f28c28);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(242, 140, 40, 0.28);
}

.side-brand-name {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 14px;
}

.side-brand-caption {
    color: var(--st-muted);
    font-size: 12px;
}

.side-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    color: #56616f;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.16s ease;
}

    .side-menu-item:hover {
        color: var(--st-orange-dark);
        background: var(--st-orange-soft);
    }

    .side-menu-item.active {
        color: var(--st-orange-dark);
        background: var(--st-orange-soft);
    }

.menu-icon {
    width: 22px;
    text-align: center;
    color: var(--st-orange);
}

.side-footer {
    margin-top: auto;
    border: 1px solid var(--st-border);
    background: linear-gradient(135deg, #fff, #fff7ef);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.side-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--st-orange);
    box-shadow: 0 0 0 6px rgba(242, 140, 40, 0.14);
}

.side-footer-title {
    font-size: 13px;
    font-weight: 700;
}

.side-footer-sub {
    font-size: 12px;
    color: var(--st-muted);
}

.main-area {
    margin-left: 260px;
    min-height: 100vh;
    width: calc(100% - 260px);
}

.top-bar {
    height: 72px;
    border-bottom: 1px solid var(--st-border);
    background: rgba(251, 250, 248, 0.82);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
}

.top-search {
    width: min(420px, 45vw);
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--st-border);
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: var(--st-muted);
}

    .top-search input {
        border: 0;
        outline: 0;
        width: 100%;
        font-size: 14px;
        background: transparent;
    }

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-link {
    color: var(--st-orange-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.top-public-link {
    white-space: nowrap;
}

.top-account-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 14px;
    border-left: 1px solid var(--st-border);
}

.top-user {
    border: 1px solid var(--st-border);
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px 7px 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--st-text);
    font-weight: 700;
    font-size: 13px;
}

.top-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--st-orange-soft);
    color: var(--st-orange-dark);
    display: grid;
    place-items: center;
    font-size: 12px;
}

.store-switch-form {
    min-height: 42px;
    padding: 6px 8px 6px 12px;
    border: 1px solid var(--st-border);
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-switch-label {
    color: var(--st-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.store-switch-select {
    max-width: 180px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--st-text);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

    .store-switch-select:disabled {
        cursor: default;
        opacity: 1;
    }

.store-switch-empty {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--st-border);
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    color: var(--st-muted);
    font-size: 13px;
    font-weight: 800;
}

.current-user-pill {
    min-height: 42px;
    padding: 6px 12px 6px 7px;
    border: 1px solid var(--st-border);
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-user-text {
    display: grid;
    line-height: 1.12;
}

    .current-user-text strong {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--st-text);
        font-size: 13px;
        font-weight: 800;
    }

    .current-user-text small {
        color: var(--st-muted);
        font-size: 11px;
        font-weight: 700;
    }

.top-logout {
    min-height: 42px;
    border: 1px solid var(--st-orange);
    background: var(--st-orange);
    border-radius: 999px;
    padding: 0 16px;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    box-shadow: 0 10px 22px rgba(242, 140, 40, 0.22);
    transition: 0.16s ease;
}

    .top-logout:hover {
        color: #fff;
        background: var(--st-orange-dark);
        border-color: var(--st-orange-dark);
        box-shadow: 0 14px 28px rgba(242, 140, 40, 0.28);
        transform: translateY(-1px);
    }

.content-area {
    padding: 34px;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.dashboard-kicker {
    color: var(--st-orange-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.dashboard-heading h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 8px;
}

.dashboard-heading p {
    margin: 0;
    color: var(--st-muted);
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

.btn-seatotte-primary {
    background: var(--st-orange);
    border-color: var(--st-orange);
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(242, 140, 40, 0.22);
}

    .btn-seatotte-primary:hover {
        background: var(--st-orange-dark);
        border-color: var(--st-orange-dark);
        color: #fff;
    }

.btn-seatotte-light {
    background: #fff;
    border-color: var(--st-border);
    color: var(--st-text);
    font-weight: 700;
    border-radius: 12px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.kpi-card,
.panel {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
}

.kpi-card {
    padding: 20px;
}

.kpi-label {
    color: var(--st-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -0.04em;
}

    .kpi-value span {
        font-size: 16px;
        margin-left: 3px;
    }

.kpi-note {
    color: var(--st-muted);
    font-size: 12px;
    margin-top: 8px;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.panel {
    padding: 20px;
}

.panel-large {
    min-height: 410px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

    .panel-header h2 {
        font-size: 17px;
        font-weight: 800;
        margin: 0 0 4px;
    }

    .panel-header p {
        margin: 0;
        color: var(--st-muted);
        font-size: 13px;
    }

.segmented {
    display: flex;
    padding: 4px;
    border-radius: 999px;
    background: #f6f1ec;
}

    .segmented button {
        border: 0;
        background: transparent;
        border-radius: 999px;
        padding: 6px 12px;
        color: var(--st-muted);
        font-size: 13px;
        font-weight: 700;
    }

        .segmented button.active {
            background: #fff;
            color: var(--st-orange-dark);
            box-shadow: 0 4px 12px rgba(60, 42, 24, 0.08);
        }

.chart-shell {
    height: 310px;
}

.setup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.setup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--st-muted);
    font-weight: 700;
    font-size: 14px;
}

    .setup-item span {
        width: 18px;
        height: 18px;
        border-radius: 999px;
        border: 2px solid #eaded2;
        display: inline-block;
    }

    .setup-item.done {
        color: var(--st-text);
    }

        .setup-item.done span {
            background: var(--st-orange);
            border-color: var(--st-orange);
            box-shadow: 0 0 0 5px rgba(242, 140, 40, 0.12);
        }

.setup-link {
    display: block;
    border-radius: 16px;
    padding: 14px;
    background: var(--st-orange-soft);
    color: var(--st-orange-dark);
    text-decoration: none;
    font-weight: 800;
}

.ranking-list,
.visit-list,
.seat-type-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ranking-item,
.visit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0e8df;
}

    .ranking-item:last-child,
    .visit-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .ranking-item strong,
    .visit-item strong {
        display: block;
        font-size: 14px;
    }

    .ranking-item span,
    .visit-item span {
        color: var(--st-muted);
        font-size: 12px;
    }

.visit-item {
    justify-content: flex-start;
}

.visit-time {
    width: 56px;
    height: 36px;
    border-radius: 12px;
    background: var(--st-orange-soft);
    color: var(--st-orange-dark);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
}

.seat-type-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seat-type-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.seat-type-bar {
    height: 8px;
    border-radius: 999px;
    background: #f2ebe4;
    overflow: hidden;
}

    .seat-type-bar span {
        display: block;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #ffbc78, #f28c28);
    }

.seatotte-login-page {
    min-height: calc(100vh - 80px);
    background: radial-gradient(circle at 20% 10%, rgba(242, 140, 40, 0.16), transparent 34%), radial-gradient(circle at 80% 20%, rgba(255, 190, 120, 0.2), transparent 30%), var(--st-bg);
    display: grid;
    place-items: center;
    padding: 48px 18px;
}

.seatotte-login-shell {
    width: min(460px, 100%);
}

.seatotte-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 22px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffb86b, #f28c28);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(242, 140, 40, 0.28);
}

.brand-name {
    font-weight: 900;
    letter-spacing: 0.12em;
}

.brand-subtitle {
    color: var(--st-muted);
    font-size: 12px;
}

.seatotte-login-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--st-border);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(60, 42, 24, 0.12);
    padding: 34px;
    backdrop-filter: blur(16px);
}

.login-eyebrow {
    color: var(--st-orange-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-title {
    font-size: 30px;
    font-weight: 850;
    margin: 4px 0 8px;
}

.login-description {
    color: var(--st-muted);
    margin: 0;
}

.seatotte-login-note {
    text-align: center;
    color: var(--st-muted);
    font-size: 13px;
    margin-top: 18px;
}

@media (max-width: 1000px) {
    .side-nav {
        width: 220px;
    }

    .main-area {
        margin-left: 220px;
        width: calc(100% - 220px);
    }

    .kpi-grid,
    .dashboard-sub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .side-nav {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .app-shell {
        display: block;
    }

    .main-area {
        margin-left: 0;
        width: 100%;
    }

    .top-bar {
        padding: 0 18px;
    }

    .content-area {
        padding: 22px 18px;
    }

    .dashboard-heading {
        flex-direction: column;
    }

    .kpi-grid,
    .dashboard-sub-grid {
        grid-template-columns: 1fr;
    }

    .top-search {
        display: none;
    }
}

.auth-page {
    min-height: 100vh;
    background: radial-gradient(circle at 12% 16%, rgba(242, 140, 40, 0.14), transparent 30%), radial-gradient(circle at 88% 8%, rgba(255, 184, 107, 0.18), transparent 28%), linear-gradient(135deg, #fbfaf8 0%, #fff 48%, #fff7ef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.auth-shell {
    width: min(1120px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--st-border);
    border-radius: 34px;
    box-shadow: 0 28px 90px rgba(60, 42, 24, 0.12);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.auth-brand-panel {
    position: relative;
    padding: 42px;
    background: linear-gradient(135deg, rgba(255, 247, 239, 0.9), rgba(255, 255, 255, 0.78)), radial-gradient(circle at 20% 20%, rgba(242, 140, 40, 0.18), transparent 35%);
    border-right: 1px solid var(--st-border);
    display: flex;
    flex-direction: column;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--st-text);
    text-decoration: none;
}

.auth-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffb86b, #f28c28);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(242, 140, 40, 0.28);
}

.auth-brand-name {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.auth-brand-subtitle {
    color: var(--st-muted);
    font-size: 12px;
    margin-top: 1px;
}

.auth-copy {
    margin-top: auto;
    margin-bottom: 84px;
    max-width: 520px;
}

.auth-kicker {
    color: var(--st-orange-dark);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.auth-copy h1 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.055em;
    font-weight: 900;
    margin: 0 0 20px;
}

.auth-copy p {
    color: var(--st-muted);
    font-size: 15px;
    line-height: 1.9;
    margin: 0;
}

.auth-mini-card {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 34px;
    border: 1px solid var(--st-border);
    background: rgba(255, 255, 255, 0.76);
    border-radius: 20px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--st-muted);
    font-size: 13px;
}

    .auth-mini-card strong {
        color: var(--st-orange-dark);
    }

.auth-mini-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--st-orange);
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 0 6px rgba(242, 140, 40, 0.13);
}

.auth-form-panel {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--st-border);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(60, 42, 24, 0.08);
    padding: 34px;
}

.auth-card-header {
    margin-bottom: 28px;
}

    .auth-card-header h2 {
        font-size: 30px;
        font-weight: 900;
        letter-spacing: -0.04em;
        margin: 0 0 8px;
    }

    .auth-card-header p {
        color: var(--st-muted);
        margin: 0;
        font-size: 14px;
    }

.auth-label {
    font-size: 13px;
    color: var(--st-text);
    font-weight: 750;
    margin-bottom: 8px;
}

.auth-input {
    min-height: 52px;
    border-radius: 15px;
    border-color: var(--st-border);
    background: #fff;
    font-size: 15px;
}

    .auth-input:focus {
        border-color: var(--st-orange);
        box-shadow: 0 0 0 0.22rem rgba(242, 140, 40, 0.14);
    }

.auth-check-label {
    color: var(--st-muted);
    font-size: 13px;
}

.auth-card .form-check-input:checked {
    background-color: var(--st-orange);
    border-color: var(--st-orange);
}

.auth-submit {
    min-height: 52px;
}

.auth-footer-text {
    text-align: center;
    margin-top: 18px;
    color: var(--st-muted);
    font-size: 12px;
}

.top-store-add-link {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--st-orange-soft);
    border: 1px solid rgba(242, 140, 40, 0.22);
    display: inline-flex;
    align-items: center;
    color: var(--st-orange-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

    .top-store-add-link:hover {
        background: #ffead2;
        color: var(--st-orange-dark);
    }

@media (max-width: 900px) {
    .auth-page {
        padding: 18px;
        align-items: flex-start;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-brand-panel {
        border-right: 0;
        border-bottom: 1px solid var(--st-border);
        padding: 28px;
    }

    .auth-copy {
        margin: 36px 0 78px;
    }

    .auth-mini-card {
        left: 28px;
        right: 28px;
        bottom: 24px;
    }

    .auth-form-panel {
        padding: 28px;
    }

    .auth-card {
        max-width: none;
        padding: 28px;
    }
}

@media (max-width: 560px) {
    .auth-copy h1 {
        font-size: 34px;
    }

    .auth-form-panel,
    .auth-brand-panel {
        padding: 22px;
    }

    .auth-mini-card {
        left: 22px;
        right: 22px;
    }
}

@media (max-width: 1000px) {
    .current-user-text strong {
        max-width: 130px;
    }

    .store-switch-select {
        max-width: 130px;
    }
}

@media (max-width: 760px) {
    .top-actions {
        gap: 8px;
    }

    .store-switch-label,
    .current-user-text small {
        display: none;
    }

    .current-user-text strong {
        max-width: 100px;
    }
}