:root {
    --ty-bg: #eef4ff;
    --ty-primary: #0a58ca;
    --ty-primary-dark: #0f2f73;
    --ty-text: #1a2540;
    --ty-muted: #62708a;
    --ty-border: #d2dff3;
}

.ty-wrap {
    min-height: 100vh;
    background: radial-gradient(120% 100% at 0% 0%, #d9e7ff 0%, #eff5ff 45%, #f6f9ff 100%);
    padding: 46px 16px 56px;
}

.ty-shell {
    max-width: 920px;
    margin: 0 auto;
}

.ty-title {
    margin: 0 0 8px;
    color: var(--ty-primary-dark);
    font-size: 1.8rem;
    line-height: 1.2;
}

.ty-subtitle {
    margin: 0 0 20px;
    color: var(--ty-muted);
}

.ty-ticket {
    border: 1px solid var(--ty-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(13, 52, 120, 0.13);
    overflow: hidden;
    position: relative;
}

.ty-ticket::before,
.ty-ticket::after {
    content: "";
    position: absolute;
    top: 54%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border-radius: 50%;
    background: var(--ty-bg);
    border: 1px solid var(--ty-border);
}

.ty-ticket::before {
    left: -12px;
}

.ty-ticket::after {
    right: -12px;
}

.ty-head {
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--ty-primary), var(--ty-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ty-kicker {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
}

.ty-booking-id {
    margin: 6px 0 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.ty-status {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    padding: 8px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.ty-body {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.ty-grid {
    display: grid;
    gap: 10px;
}

.ty-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px dashed #d4e0f2;
    padding-bottom: 8px;
    font-size: 0.93rem;
}

.ty-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ty-label {
    color: var(--ty-muted);
}

.ty-value {
    color: var(--ty-text);
    font-weight: 600;
    text-align: right;
}

.ty-summary {
    border: 1px solid var(--ty-border);
    border-radius: 14px;
    background: #f8fbff;
    padding: 12px;
}

.ty-total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #c0d2ef;
    font-weight: 700;
    color: var(--ty-primary-dark);
}

.ty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.ty-btn {
    border: 0;
    border-radius: 12px;
    padding: 11px 15px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ty-btn-primary {
    background: linear-gradient(135deg, var(--ty-primary), #0d3f93);
    color: #fff;
}

.ty-btn-outline {
    background: #fff;
    color: var(--ty-primary);
    border: 1px solid #a7bde5;
}

.ty-note {
    margin: 14px 0 0;
    color: var(--ty-muted);
    font-size: 0.84rem;
}

.ty-loading,
.ty-error {
    border: 1px solid var(--ty-border);
    border-radius: 14px;
    background: #fff;
    padding: 16px;
    color: var(--ty-muted);
}

.ty-error {
    border-color: #f0bec8;
    color: #b72d3f;
    background: #fff1f4;
}

@media (min-width: 768px) {
    .ty-wrap {
        padding: 60px 24px;
    }

    .ty-body {
        grid-template-columns: 1.35fr 1fr;
        align-items: start;
        padding: 22px;
    }

    .ty-title {
        font-size: 2rem;
    }
}
