* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--sgh-bg);
    color: var(--sgh-text);
    font-family: var(--sgh-font-body);
}

h1, h2, h3, h4, strong {
    color: var(--sgh-heading);
    font-family: var(--sgh-font-head);
}

.sgh-page {
    min-height: 100vh;
    padding: 24px;
}

.sgh-container {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.sgh-section {
    margin-bottom: 32px;
}

.sgh-kicker {
    color: var(--sgh-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sgh-title-xl {
    margin: 8px 0 0;
    font-size: clamp(42px, 8vw, 72px);
    line-height: .92;
    letter-spacing: -.06em;
}

.sgh-lead {
    margin: 12px 0 0;
    color: var(--sgh-muted);
    font-weight: 700;
    line-height: 1.55;
}

.sgh-surface {
    background: var(--sgh-surface);
    border: 1px solid rgba(226, 230, 232, .86);
    border-radius: var(--sgh-radius-lg);
    box-shadow: var(--sgh-shadow-md);
}

.sgh-card {
    padding: 24px;
    transition: transform .18s var(--sgh-ease), box-shadow .18s var(--sgh-ease);
}

.sgh-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sgh-shadow-lg);
}

.sgh-card h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.03em;
}

.sgh-card p {
    margin: 8px 0 0;
    color: var(--sgh-muted);
    font-weight: 700;
    line-height: 1.5;
}

.sgh-grid {
    display: grid;
    gap: 16px;
}

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

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

.sgh-btn {
    min-height: 56px;
    border: 0;
    border-radius: var(--sgh-radius-md);
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    transition: transform .16s var(--sgh-ease), box-shadow .16s var(--sgh-ease), background .16s var(--sgh-ease);
}

.sgh-btn:active {
    transform: scale(.97);
}

.sgh-btn-primary {
    background: var(--sgh-red);
    color: #fff;
    box-shadow: 0 16px 34px rgba(230, 2, 40, .26);
}

.sgh-btn-primary:hover {
    background: var(--sgh-blue);
}

.sgh-btn-secondary {
    background: var(--sgh-blue);
    color: #fff;
}

.sgh-btn-light {
    background: #fff;
    color: var(--sgh-heading);
    border: 1px solid var(--sgh-border);
}

.sgh-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #f0f2f5;
    color: var(--sgh-blue);
    font-size: 24px;
    font-weight: 900;
}

.sgh-icon-red {
    background: var(--sgh-red);
    color: #fff;
}

.sgh-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.sgh-badge-success {
    background: rgba(24,160,88,.12);
    color: var(--sgh-success);
}

.sgh-badge-warning {
    background: rgba(240,162,2,.16);
    color: #9a6600;
}

.sgh-badge-red {
    background: rgba(230,2,40,.09);
    color: var(--sgh-red);
}

.sgh-hero {
    min-height: 280px;
    padding: 40px;
    border-radius: var(--sgh-radius-xl);
    background:
        radial-gradient(circle at 100% 0%, rgba(230,2,40,.48), transparent 28%),
        linear-gradient(135deg, #0e1e32, #132842);
    color: #fff;
    box-shadow: var(--sgh-shadow-lg);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
}

.sgh-hero h2 {
    color: #fff;
    margin: 8px 0 0;
    font-size: clamp(38px, 7vw, 64px);
    line-height: .95;
    letter-spacing: -.06em;
}

.sgh-hero p {
    margin: 14px 0 0;
    max-width: 560px;
    color: rgba(255,255,255,.72);
    font-weight: 700;
    line-height: 1.55;
}

.sgh-field {
    display: grid;
    gap: 8px;
    font-weight: 900;
    color: var(--sgh-heading);
}

.sgh-input {
    width: 100%;
    min-height: 58px;
    border: 1px solid var(--sgh-border);
    border-radius: var(--sgh-radius-md);
    padding: 0 18px;
    font: inherit;
    outline: none;
    background: #fff;
}

.sgh-input:focus {
    border-color: var(--sgh-red);
    box-shadow: 0 0 0 4px rgba(230,2,40,.08);
}

@media (max-width: 800px) {
    .sgh-page {
        padding: 18px;
    }

    .sgh-grid-2,
    .sgh-grid-4 {
        grid-template-columns: 1fr;
    }

    .sgh-hero {
        min-height: 360px;
        padding: 28px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.sgh-svg-icon {
    width: 24px;
    height: 24px;
    display: block;
    stroke: currentColor;
}

.sgh-icon .sgh-svg-icon {
    width: 25px;
    height: 25px;
}

.sgh-rail .sgh-svg-icon {
    width: 24px;
    height: 24px;
}

.icon-btn .sgh-svg-icon {
    width: 22px;
    height: 22px;
}

.card-icon .sgh-svg-icon {
    width: 26px;
    height: 26px;
}

.sgh-ui-page {
    background:
        radial-gradient(circle at 78% 0%, rgba(230,2,40,.10), transparent 28%),
        var(--sgh-bg);
}

.sgh-ui-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
}

.sgh-ui-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 0 32px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(18px);
    border: 1px solid var(--sgh-border);
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.sgh-ui-tabs a {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-radius: 16px;
    font-weight: 900;
    color: var(--sgh-muted);
}

.sgh-ui-tabs a:hover {
    background: var(--sgh-blue);
    color: #fff;
}

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

.sgh-token {
    min-height: 130px;
    padding: 22px;
    border-radius: 28px;
    font-weight: 900;
    box-shadow: var(--sgh-shadow-sm);
}

.sgh-token strong {
    display: block;
    margin-top: 8px;
}

.sgh-token.red {
    background: var(--sgh-red);
    color: #fff;
}

.sgh-token.red strong,
.sgh-token.blue strong {
    color: #fff;
}

.sgh-token.blue {
    background: var(--sgh-blue);
    color: #fff;
}

.sgh-token.bg {
    background: var(--sgh-bg);
    border: 1px solid var(--sgh-border);
}

.sgh-token.surface {
    background: #fff;
    border: 1px solid var(--sgh-border);
}

.sgh-demo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sgh-icon-button {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--sgh-blue);
    box-shadow: var(--sgh-shadow-sm);
}

.sgh-module-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sgh-module-card.primary {
    background: linear-gradient(145deg, #fff, #fff3f5);
}

.sgh-check-card {
    position: relative;
    min-height: 126px;
    border: 1px solid var(--sgh-border);
    border-radius: 24px;
    padding: 20px;
    display: grid;
    gap: 6px;
    cursor: pointer;
    background: #fff;
}

.sgh-check-card input {
    position: absolute;
    opacity: 0;
}

.sgh-check-card span {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #f0f2f5;
    color: var(--sgh-blue);
}

.sgh-check-card small {
    color: var(--sgh-muted);
    font-weight: 700;
}

.sgh-check-card:has(input:checked) {
    border-color: var(--sgh-red);
    box-shadow: 0 0 0 4px rgba(230,2,40,.08);
}

.sgh-check-card:has(input:checked) span {
    background: var(--sgh-red);
    color: #fff;
}

.sgh-booking-row {
    display: grid;
    grid-template-columns: 70px 24px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--sgh-border);
    border-radius: 24px;
    background: #fff;
}

.sgh-booking-row + .sgh-booking-row {
    margin-top: 12px;
}

.sgh-booking-row time {
    font-weight: 900;
    color: var(--sgh-heading);
}

.sgh-booking-row i {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--sgh-success);
    box-shadow: 0 0 0 7px rgba(24,160,88,.12);
}

.sgh-booking-row.pending i {
    background: var(--sgh-warning);
    box-shadow: 0 0 0 7px rgba(240,162,2,.16);
}

.sgh-booking-row span {
    display: block;
    margin-top: 4px;
    color: var(--sgh-muted);
    font-weight: 700;
    font-size: 14px;
}

.sgh-booking-row em {
    font-style: normal;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(24,160,88,.12);
    color: var(--sgh-success);
}

.sgh-booking-row.pending em {
    background: rgba(240,162,2,.16);
    color: #9a6600;
}

.sgh-wizard-preview {
    padding: 32px;
    border-radius: 36px;
    background: #fff;
    box-shadow: var(--sgh-shadow-md);
}

.sgh-wizard-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 32px;
}

.sgh-wizard-progress span {
    height: 7px;
    border-radius: 999px;
    background: var(--sgh-border);
}

.sgh-wizard-progress .active {
    background: var(--sgh-red);
}

.sgh-wizard-preview h2 {
    margin: 0;
    font-size: clamp(30px, 6vw, 48px);
    letter-spacing: -.05em;
}

.sgh-wizard-preview p {
    margin: 10px 0 24px;
    color: var(--sgh-muted);
    font-weight: 700;
}

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

.sgh-choice {
    min-height: 86px;
    border: 1px solid var(--sgh-border);
    border-radius: 24px;
    background: #fff;
    font-weight: 900;
    color: var(--sgh-heading);
}

.sgh-choice.active {
    border-color: var(--sgh-red);
    background: #fff5f7;
    color: var(--sgh-red);
}

.sgh-wizard-preview .sgh-btn {
    margin-top: 24px;
    width: 100%;
}

@media (max-width: 800px) {
    .sgh-token-grid,
    .sgh-grid-3 {
        grid-template-columns: 1fr;
    }

    .sgh-booking-row {
        grid-template-columns: 58px 22px 1fr;
    }

    .sgh-booking-row em {
        grid-column: 1 / -1;
        justify-self: start;
    }
}
