:root, [data-theme="light"] {
    --bg-color: linear-gradient(180deg, #ffffff 0%, #f5f6f8 100%);
    --bg-color-alt: #f8f9fa;
    --text-color-black: #080808;
    --text-color: #1f2328;
    --text-color-muted: #6c757d;
    --primary-color: #6366f1;
    --primary-color-hover: #4f46e5;
    --primary-button-text-color: #ffffff;
    --secondary-color: #6c757d;
    --accent-color: #6366f1;
    --accent-color-blue: #38bdf8;
    --accent-color-purple: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #8b5cf6 100%);
    --accent-gradient-hover: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 50%, #7c3aed 100%);
    --danger-color: #dc3545;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
}

/* SPEX primary action */
.primary-button {
    background: var(--accent-gradient);
    color: var(--primary-button-text-color);
    border-color: transparent;
}

    .primary-button:hover,
    .primary-button:focus {
        background: var(--accent-gradient-hover);
        color: var(--primary-button-text-color);
        border-color: transparent;
    }

.logo-pc-menu img {
    width: 70%;
}

/* =========================================================
   TICKET
========================================================= */

.ticket-page {
    padding-bottom: 40px;
}

/* ---------------------------------------------------------
   PAGE HEADER
--------------------------------------------------------- */

.ticket-page-header {
    margin-bottom: 20px;
}

    .ticket-page-header h1 {
        margin-bottom: 4px;
    }

    .ticket-page-header p {
        font-size: 14px;
        color: var(--text-color-muted);
    }

/* ---------------------------------------------------------
   COMMON CARD
--------------------------------------------------------- */

.ticket-dashboard-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------
   TOP SUMMARY
--------------------------------------------------------- */

.ticket-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.ticket-summary-card {
    min-height: 112px;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ticket-summary-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.10);
    color: var(--accent-color);
}

    .ticket-summary-icon .material-symbols-rounded {
        font-size: 30px;
    }

.ticket-summary-info {
    min-width: 0;
}

.ticket-summary-label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.ticket-summary-value {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

    .ticket-summary-value strong {
        font-size: 25px;
        line-height: 1.05;
        word-break: break-all;
    }

    .ticket-summary-value .unit {
        flex-shrink: 0;
        color: var(--text-color-muted);
        font-size: 13px;
        font-weight: 600;
    }

    .ticket-summary-value.rank strong {
        color: var(--accent-color);
        font-size: 20px;
        line-height: 1.2;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

/* ---------------------------------------------------------
   REWARD PROGRESS
--------------------------------------------------------- */

.ticket-reward-progress {
    padding: 22px 24px;
    margin-bottom: 16px;
}

.ticket-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

    .ticket-section-header h2 {
        margin-bottom: 3px;
    }

    .ticket-section-header p {
        color: var(--text-color-muted);
        font-size: 13px;
    }

.ticket-history-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--accent-color);
    border-radius: 99px;
    color: var(--accent-color);
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

    .ticket-history-button:hover {
        color: #ffffff;
        background: var(--accent-color);
    }

.ticket-progress-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ticket-progress-bar {
    position: relative;
    flex: 1;
    height: 18px;
    overflow: hidden;
    background: #e9ecef;
    border-radius: 99px;
}

.ticket-progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 99px;
}

.ticket-progress-percent {
    flex-shrink: 0;
    min-width: 70px;
    text-align: right;
    color: var(--accent-color);
    font-size: 20px;
    font-weight: 800;
}

.ticket-progress-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ticket-progress-item {
    min-width: 0;
    padding: 0 22px;
    border-right: 1px solid var(--border-color);
}

    .ticket-progress-item:first-child {
        padding-left: 0;
    }

    .ticket-progress-item:last-child {
        padding-right: 0;
        border-right: 0;
    }

    .ticket-progress-item span {
        display: block;
        margin-bottom: 6px;
        color: var(--text-color-muted);
        font-size: 13px;
    }

    .ticket-progress-item strong {
        display: block;
        font-size: 18px;
        line-height: 1.35;
        word-break: break-all;
    }

    .ticket-progress-item small {
        margin-left: 4px;
        font-size: 11px;
        color: var(--text-color-muted);
    }

/* ---------------------------------------------------------
   REWARD SUMMARY
--------------------------------------------------------- */

.ticket-reward-summary {
    padding: 20px 24px;
    margin-bottom: 16px;
}

.ticket-reward-summary-title {
    margin-bottom: 14px;
}

    .ticket-reward-summary-title span {
        margin-left: 5px;
        color: var(--text-color-muted);
        font-size: 13px;
        font-weight: 500;
    }

/* PC: 첫 줄 3개 / 두 번째 줄 2개 */
.ticket-reward-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.ticket-reward-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    grid-column: span 2;
}

.ticket-reward-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.10);
    color: var(--accent-color);
}

    .ticket-reward-icon .material-symbols-rounded {
        font-size: 23px;
    }

.ticket-reward-item:nth-last-child(2),
.ticket-reward-item:last-child {
    grid-column: span 3;
}

.ticket-reward-content {
    min-width: 0;
    flex: 1;
}

.ticket-reward-name {
    display: block;
    margin-bottom: 4px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.ticket-reward-amount {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

    .ticket-reward-amount strong {
        font-size: 17px;
        line-height: 1.3;
        word-break: break-all;
    }

    .ticket-reward-amount span {
        flex-shrink: 0;
        color: var(--text-color-muted);
        font-size: 11px;
        font-weight: 600;
    }

/* ---------------------------------------------------------
   AVAILABLE TICKETS
--------------------------------------------------------- */

.ticket-products {
    padding: 22px 24px;
}

.ticket-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

    .ticket-products-header h2 {
        margin: 0;
    }

.ticket-minimum-purchase,
.ticket-spex-balance {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--text-color-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: normal;
}

    .ticket-minimum-purchase > span,
    .ticket-spex-balance > span {
        color: var(--text-color-muted);
        font-size: 13px;
        font-weight: 400;
        line-height: normal;
    }

    .ticket-minimum-purchase > strong,
    .ticket-spex-balance > strong {
        color: var(--accent-color);
        font-size: 16px;
        font-weight: 700;
        line-height: normal;
    }

    .ticket-minimum-purchase > small,
    .ticket-spex-balance > small {
        color: var(--text-color);
        font-size: 11px;
        font-weight: 700;
        line-height: normal;
    }

.ticket-products-header p {
    margin-top: 3px;
    color: var(--text-color-muted);
    font-size: 13px;
}

.ticket-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ticket-product-card {
    min-width: 0;
    padding: 18px 14px 14px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.72);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

    .ticket-product-card:hover {
        transform: translateY(-2px);
        border-color: var(--accent-color);
        box-shadow: var(--shadow-md);
    }

.ticket-product-price {
    margin-bottom: 16px;
    text-align: center;
}

    .ticket-product-price strong {
        display: block;
        color: var(--accent-color);
        font-size: 26px;
        line-height: 1.15;
    }

    .ticket-product-price span {
        display: block;
        margin-top: 2px;
        font-size: 11px;
        font-weight: 700;
    }

.ticket-product-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.ticket-product-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

    .ticket-product-row > span {
        color: var(--text-color-muted);
        flex-shrink: 0;
    }

    .ticket-product-row > strong {
        min-width: 0;
        text-align: right;
        word-break: break-all;
    }

        .ticket-product-row > strong small {
            margin-left: 3px;
            color: var(--text-color-muted);
            font-size: 10px;
        }

.ticket-buy-button {
    width: 100%;
}

/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .ticket-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ticket-progress-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 0;
    }

    .ticket-progress-item:nth-child(2) {
        border-right: 0;
    }

    .ticket-progress-item:nth-child(3) {
        padding-left: 0;
    }

    .ticket-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 768px) {

    .ticket-page {
        padding-bottom: 20px;
    }

    .ticket-summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ticket-summary-card {
        min-height: auto;
        padding: 16px;
    }

    .ticket-summary-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .ticket-summary-value strong {
        font-size: 20px;
    }

    .ticket-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

        .ticket-section-header > div {
            width: 100%;
            min-width: 0;
        }

    .ticket-history-button {
        align-self: flex-end;
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .ticket-reward-progress {
        padding: 18px 16px;
    }

    .ticket-progress-wrap {
        gap: 10px;
    }

    .ticket-progress-bar {
        height: 14px;
    }

    .ticket-progress-percent {
        min-width: 55px;
        font-size: 16px;
    }

    .ticket-progress-summary {
        grid-template-columns: 1fr 1fr;
        gap: 18px 0;
    }

    .ticket-progress-item {
        padding: 0 12px;
    }

        .ticket-progress-item:nth-child(odd) {
            padding-left: 0;
        }

        .ticket-progress-item:nth-child(even) {
            padding-right: 0;
            border-right: 0;
        }

        .ticket-progress-item strong {
            font-size: 15px;
        }

    .ticket-reward-summary {
        padding: 18px 16px;
    }

    .ticket-reward-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ticket-reward-item,
    .ticket-reward-item:nth-last-child(2),
    .ticket-reward-item:last-child {
        grid-column: auto;
        padding: 14px 16px;
    }

    .ticket-reward-name {
        font-size: 13px;
        white-space: nowrap;
    }

    .ticket-reward-amount strong {
        font-size: 16px;
    }

    .ticket-products {
        padding: 18px 16px;
    }

    .ticket-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ticket-product-card {
        padding: 14px 10px 10px;
    }

    .ticket-product-price strong {
        font-size: 22px;
    }

    .ticket-product-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        text-align: left;
    }

        .ticket-product-row > span {
            flex-shrink: 0;
            font-size: 11px;
        }

        .ticket-product-row > strong {
            width: auto;
            min-width: 0;
            font-size: 11px;
            text-align: right;
            white-space: nowrap;
        }

    .ticket-buy-button {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .ticket-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

        .ticket-products-header h2 {
            white-space: nowrap;
        }

    .ticket-minimum-purchase,
    .ticket-spex-balance {
        width: 100%;
        justify-content: flex-start;
        gap: 5px;
    }

        .ticket-minimum-purchase > span,
        .ticket-spex-balance > span {
            font-size: 12px;
        }

        .ticket-minimum-purchase > strong,
        .ticket-spex-balance > strong {
            font-size: 14px;
        }

        .ticket-minimum-purchase > small,
        .ticket-spex-balance > small {
            font-size: 11px;
        }
}

/* ---------------------------------------------------------
   SMALL MOBILE
--------------------------------------------------------- */

@media (max-width: 420px) {

    .ticket-progress-summary {
        grid-template-columns: 1fr;
    }

    .ticket-progress-item,
    .ticket-progress-item:nth-child(odd),
    .ticket-progress-item:nth-child(even) {
        padding: 0 0 14px;
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }

        .ticket-progress-item:last-child {
            padding-bottom: 0;
            border-bottom: 0;
        }
}

/* 구매 자격 미달 티켓 */
.ticket-product-card.disabled {
    background: #f5f6f8;
    border-color: var(--border-color);
    opacity: 0.6;
    cursor: not-allowed;
}

    .ticket-product-card.disabled:hover {
        transform: none;
        border-color: var(--border-color);
        box-shadow: none;
    }

    .ticket-product-card.disabled .ticket-product-price strong {
        color: var(--text-color-muted);
    }

    .ticket-product-card.disabled .ticket-product-price span,
    .ticket-product-card.disabled .ticket-product-row > span,
    .ticket-product-card.disabled .ticket-product-row > strong,
    .ticket-product-card.disabled .ticket-product-row > strong small {
        color: var(--text-color-muted);
    }

    /* disabled 버튼 */
    .ticket-product-card.disabled .ticket-buy-button {
        background: #d9dde3;
        color: #8b929b;
        border-color: #d9dde3;
        cursor: not-allowed;
    }

        .ticket-product-card.disabled .ticket-buy-button:hover,
        .ticket-product-card.disabled .ticket-buy-button:focus {
            background: #d9dde3;
            color: #8b929b;
            border-color: #d9dde3;
        }

/* 티켓 구매 내역 */
.ticket-history-card {
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.ticket-history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ticket-history-header-left,
.ticket-history-header-right {
    display: flex;
    flex-direction: column;
}

.ticket-history-header-left {
    align-items: flex-start;
}

.ticket-history-header-right {
    align-items: flex-end;
}

.ticket-history-title {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-height: 28px;
}

    .ticket-history-title strong {
        color: var(--accent-color);
        font-size: 22px;
        line-height: 28px;
    }

    .ticket-history-title span {
        font-size: 12px;
        font-weight: 700;
    }

.ticket-history-date,
.ticket-history-end-date {
    margin-top: 6px;
    color: var(--text-color-muted);
    font-size: 11px;
    line-height: 14px;
    white-space: nowrap;
}

/* 상태 */
.ticket-history-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 28px;
    padding: 0 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}

    .ticket-history-status.wait {
        background: #f1f3f5;
        color: var(--text-color-muted);
    }

    .ticket-history-status.progress {
        background: rgba(99, 102, 241, 0.10);
        color: var(--accent-color);
    }

    .ticket-history-status.complete {
        background: rgba(40, 167, 69, 0.10);
        color: var(--success-color);
    }

/* 금액 정보 */
.ticket-history-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ticket-history-info-item {
    min-width: 0;
    padding: 0 20px;
    border-right: 1px solid var(--border-color);
}

    .ticket-history-info-item:first-child {
        padding-left: 0;
    }

    .ticket-history-info-item:last-child {
        padding-right: 0;
        border-right: 0;
    }

    .ticket-history-info-item > span {
        display: block;
        margin-bottom: 5px;
        color: var(--text-color-muted);
        font-size: 12px;
    }

    .ticket-history-info-item > strong {
        display: block;
        font-size: 15px;
        line-height: 1.35;
    }

    .ticket-history-info-item small {
        margin-left: 3px;
        color: var(--text-color-muted);
        font-size: 10px;
    }

/* 진행률 */
.ticket-history-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 7px;
}

    .ticket-history-progress-info span {
        min-width: 0;
        color: var(--text-color-muted);
        font-size: 12px;
    }

    .ticket-history-progress-info strong {
        flex-shrink: 0;
        color: var(--accent-color);
        font-size: 14px;
    }

.ticket-history-progress-bar {
    width: 100%;
    height: 12px;
    overflow: hidden;
    background: #e9ecef;
    border-radius: 99px;
}

.ticket-history-progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 99px;
}


/* 모바일 */
@media (max-width: 768px) {

    .ticket-history-card {
        padding: 16px;
    }

    .ticket-history-title strong {
        font-size: 19px;
        line-height: 28px;
    }

    .ticket-history-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ticket-history-info-item,
    .ticket-history-info-item:first-child,
    .ticket-history-info-item:last-child {
        padding: 0;
        border-right: 0;
    }

    .ticket-history-info-item {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
    }

        .ticket-history-info-item > span {
            margin-bottom: 0;
        }

        .ticket-history-info-item > strong {
            text-align: right;
        }

    .ticket-history-progress-info span {
        font-size: 11px;
    }
}

.ticket-history-extra {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
    padding: 16px 0;
    border-top: 0;
    border-bottom: 1px solid #e5e7eb;
}

    .ticket-history-extra .ticket-history-info-item {
        padding: 0 20px;
        border-right: 1px solid #e5e7eb;
    }

        .ticket-history-extra .ticket-history-info-item:first-child {
            padding-left: 0;
        }

        .ticket-history-extra .ticket-history-info-item:last-child {
            border-right: 0;
        }

@media (max-width: 768px) {

    .ticket-history-extra {
        grid-template-columns: 1fr;
        gap: 12px;
    }

        .ticket-history-extra .ticket-history-info-item,
        .ticket-history-extra .ticket-history-info-item:first-child,
        .ticket-history-extra .ticket-history-info-item:last-child {
            padding: 0;
            border-right: 0;
        }
}

.ticket-history-status.cancel {
    background: rgba(220, 53, 69, 0.10);
    color: var(--danger-color);
}

.ticket-history-status.complete {
    background: rgba(40, 167, 69, 0.10);
    color: var(--success-color);
}

.ticket-history-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.primary-button:disabled,
.primary-button[disabled] {
    color: #ffffff !important;
    opacity: 0.55;
    cursor: not-allowed;
}

.ticket-history-score {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 5px;
    font-size: 11px;
}

    .ticket-history-score span {
        color: var(--text-color-muted);
    }

    .ticket-history-score strong {
        color: var(--accent-color);
        font-size: 12px;
        font-weight: 700;
    }


/* 티켓 카드 및 유형 배지 */
.ticket-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

    .ticket-product-card.vip {
        border-color: #a78bfa;
        background: linear-gradient(180deg, #faf7ff 0%, #ffffff 55%);
    }

.ticket-type-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    align-self: center;
    width: fit-content;
    max-width: 100%;
    min-height: 23px;
    margin: 0 auto 10px;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

    .ticket-type-badge .material-symbols-rounded {
        font-size: 14px;
    }

    .ticket-type-badge.vip {
        background: #ede9fe;
        color: #7c3aed;
    }

    .ticket-type-badge.normal {
        background: #f1f5f9;
        color: #64748b;
    }

.ticket-product-card .ticket-product-info {
    flex: 1;
}

.ticket-product-card .ticket-buy-button {
    flex-shrink: 0;
    margin-top: auto;
}

.ticket-fast-track-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    padding: 9px 6px;
    border: 1px solid #ede9fe;
    border-radius: 8px;
    background: #f5f3ff;
    text-align: center;
}

    .ticket-fast-track-rank > span {
        color: #7c6d99;
        font-size: 11px;
    }

    .ticket-fast-track-rank > strong {
        color: #6d28d9;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
        overflow-wrap: break-word;
    }



/* 작은 화면에서도 배지와 가격이 겹치지 않도록 일반 흐름 유지 */
@media (max-width: 576px) {
    .ticket-type-badge {
        min-height: 21px;
        margin-bottom: 8px;
        padding: 3px 7px;
        font-size: 10px;
    }

        .ticket-type-badge .material-symbols-rounded {
            font-size: 13px;
        }
}


/* =========================================================
   TICKET HISTORY - NORMAL / VIP
========================================================= */

.ticket-history-card.vip {
    border-color: #c4b5fd;
}

.ticket-history-header-left {
    min-width: 0;
}

.ticket-history-title {
    flex-wrap: wrap;
    align-items: center;
}

.ticket-history-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 23px;
    margin-left: 8px;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

    .ticket-history-type-badge .material-symbols-rounded {
        font-size: 14px;
    }

    .ticket-history-type-badge.vip {
        background: #ede9fe;
        color: #7c3aed;
    }

    .ticket-history-type-badge.normal {
        background: #f1f5f9;
        color: #64748b;
    }

.ticket-history-vip-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 8px;
}

    .ticket-history-vip-info .ticket-history-score {
        margin-top: 0;
    }

.ticket-history-fast-track {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
    font-size: 11px;
}

    .ticket-history-fast-track > span {
        color: var(--text-color-muted);
    }

    .ticket-history-fast-track > strong {
        color: #7c3aed;
        font-size: 12px;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

@media (max-width: 576px) {
    .ticket-history-title {
        gap: 4px 6px;
    }

    .ticket-history-type-badge {
        min-height: 21px;
        margin-left: 4px;
        padding: 3px 7px;
        font-size: 10px;
    }

        .ticket-history-type-badge .material-symbols-rounded {
            font-size: 13px;
        }

    .ticket-history-vip-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .ticket-history-fast-track {
        font-size: 11px;
    }

        .ticket-history-fast-track > strong {
            font-size: 11px;
        }
}
