html,body {
    width: 100%;
    height: 100%;
}
.coupon-list {
    width: 100%;
    height: 100%;
}
.coupon-item {
    width: 380px;
    height: 100px;
    margin: 0 auto;
    border-bottom: 1px dashed #e2e2e2;
    margin-bottom: 10px;
}
.coupon-item-list {
    width: 100%;
    height: 100px;
    border-bottom: 1px dashed #e2e2e2;
    margin-top: 10px;
}
.coupon {
    width: 20rem;
    height: 4rem;
    position: relative;
    float: left;
}

.coupon::before, .coupon::after {
    content: '';
    position: absolute;
    top: calc(1rem + 2px);
    width: calc(2rem - 4px);
    height: calc(2rem - 4px);
    background-color: white;
    z-index: 2;
}

.coupon::before {
    left: -1rem;
    border-radius: 0 calc(1rem - 2px) calc(1rem - 2px) 0;
}

.coupon::after {
    right: -1rem;
    border-radius: calc(1rem - 2px) 0 0 calc(1rem - 2px);
}

.coupon-inner {
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.coupon-inner::before, .coupon-inner::after {
    background-color: white;
    border-radius: 1rem;
    box-shadow: inset 1px 1px 6px rgba(0, 0, 0, 0.15);
    content: '';
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: 1rem;
    z-index: 1;
}

.coupon-inner::before {
    left: -1rem;
}

.coupon-inner::after {
    right: -1rem;
}

.coupon-inner div {
    float: left;
}

.coupon-inner .title {
    width: 30%;
    height: 100%;
    background: #415FFF;
    line-height: 64px;
    text-align: center;
    color: #fff;
}

.coupon-inner .content {
    width: 69%;
    height: 100%;
    font-size: 12px;
}

.coupon-inner .content .name {
    font-size: 14px;
    margin-left: 45px;
    margin-top: 10px;
    display: inline-block;
    font-weight: 500;
}

.coupon-inner .content .date {
    margin-left: 5px;
    color:#757575;
    margin-top: 10px;
    display: inline-block;
}

.coupon-select {
    float: right;
    width: 30px;
    height: 30px;
    margin-top: 22px;
    cursor: pointer;
}

.coupon-select input {
    height: 20px;
    width: 20px;
}

.overdue {
    background: #757575 !important;
}
.overdue-txt {
    color: #757575 !important;
}

.notice {
    text-align: left;
    color: #757575;
    clear: both;
    font-size: 13px;
    padding-top: 10px;
}

.coupon-type {
    border-radius: 20px;
    background: #415FFF;
    color: #fff;
    font-size: 10px !important;
    padding: 3px;
}

.coupon-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.coupon-card-grid-compact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.coupon-chip-card {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(65, 95, 255, 0.06);
    border: 1px solid rgba(65, 95, 255, 0.10);
}

.coupon-chip-card-main {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.coupon-chip-card-value {
    font-size: 15px;
    font-weight: 700;
    color: #415FFF;
    line-height: 1;
}

.coupon-chip-card-divider {
    width: 1px;
    height: 12px;
    background: rgba(65, 95, 255, 0.16);
}

.coupon-chip-card-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #4f5d75;
}

.coupon-chip-card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.coupon-chip-card-tag.cash {
    background: rgba(65, 95, 255, 0.12);
    color: #415FFF;
}

.coupon-chip-card-tag.discount {
    background: rgba(42, 171, 110, 0.14);
    color: #198754;
}

.coupon-chip-card-action {
    flex-shrink: 0;
    min-width: 56px;
    height: 28px;
    padding: 0 10px;
    border: none;
    border-radius: 999px;
    background: #415FFF;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.coupon-chip-card-action.is-disabled,
.coupon-chip-card-action:disabled {
    background: #d3d8e5;
    color: #7b8496;
    cursor: not-allowed;
}

.coupon-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 158px;
    padding: 20px 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(65, 95, 255, 0.12);
    box-shadow: 0 18px 34px rgba(18, 38, 99, 0.08);
    overflow: hidden;
}

.coupon-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(65, 95, 255, 0.08) 0%, rgba(65, 95, 255, 0) 48%, rgba(33, 188, 230, 0.10) 100%);
    pointer-events: none;
}

.coupon-card::after {
    content: '';
    position: absolute;
    top: -46px;
    right: -28px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(65, 95, 255, 0.16) 0%, rgba(65, 95, 255, 0) 72%);
    pointer-events: none;
}

.coupon-card > * {
    position: relative;
    z-index: 1;
}

.coupon-card-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.coupon-card-value {
    flex: 0 0 auto;
    min-width: 112px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: #1f3b8f;
    letter-spacing: -0.02em;
}

.coupon-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coupon-card-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.coupon-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.coupon-card-badge.cash {
    background: rgba(65, 95, 255, 0.12);
    color: #415FFF;
}

.coupon-card-badge.discount {
    background: rgba(42, 171, 110, 0.14);
    color: #198754;
}

.coupon-card-badge.scope {
    background: rgba(17, 24, 39, 0.08);
    color: #4f5d75;
}

.coupon-card-badge.state-unused {
    background: rgba(65, 95, 255, 0.12);
    color: #415FFF;
}

.coupon-card-badge.state-used {
    background: rgba(17, 24, 39, 0.09);
    color: #5b6475;
}

.coupon-card-badge.state-expired {
    background: rgba(145, 151, 166, 0.18);
    color: #7a8191;
}

.coupon-card-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    word-break: break-word;
}

.coupon-card-desc,
.coupon-card-date {
    font-size: 13px;
    line-height: 1.6;
    color: #667085;
}

.coupon-card-action {
    flex: 0 0 auto;
}

.coupon-card-btn {
    min-width: 104px;
    height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #415FFF 0%, #6C7BFF 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 12px 24px rgba(65, 95, 255, 0.24);
}

.coupon-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(65, 95, 255, 0.28);
}

.coupon-card-btn.is-ghost {
    background: rgba(65, 95, 255, 0.08);
    color: #415FFF;
    box-shadow: none;
}

.coupon-card-btn.is-disabled,
.coupon-card-btn:disabled {
    background: #d3d8e5;
    color: #7b8496;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.coupon-card.is-muted {
    background: linear-gradient(135deg, #fbfbfc 0%, #f4f6f9 100%);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: none;
}

.coupon-card.is-muted .coupon-card-value,
.coupon-card.is-muted .coupon-card-name {
    color: #7a8191;
}

.coupon-card-compact {
    min-height: 146px;
}

.coupon-card-compact .coupon-card-value {
    min-width: 96px;
    font-size: 30px;
}

.coupon-card-compact .coupon-card-name {
    font-size: 16px;
}

.coupon-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 52px 24px;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(180deg, #fbfcff 0%, #f5f7ff 100%);
    border: 1px dashed rgba(65, 95, 255, 0.16);
}

.coupon-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 95, 255, 0.08);
    color: #415FFF;
    font-size: 30px;
}

.coupon-empty-state h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.coupon-empty-state p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #667085;
}

.ybt-coupon-shell {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8faff;
    border: 1px solid rgba(65, 95, 255, 0.10);
    box-shadow: none;
}

.ybt-coupon-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ybt-coupon-inline-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ybt-coupon-inline-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.ybt-coupon-inline-label {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #415FFF;
}

.ybt-coupon-inline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 32px;
    padding: 0 10px;
    border: none;
    border-radius: 999px;
    background: rgba(65, 95, 255, 0.08);
    color: #415FFF;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ybt-coupon-inline-toggle i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.ybt-coupon-inline-toggle i.is-open {
    transform: rotate(180deg);
}

.ybt-coupon-panel {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(65, 95, 255, 0.10);
}

.ybt-coupon-panel.is-open {
    display: block;
}

.ybt-coupon-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ybt-coupon-panel-head h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.ybt-coupon-panel-head span {
    font-size: 13px;
    color: #667085;
}

.coupon-center-page {
    padding: 16px 20px 20px;
}

.coupon-center-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.coupon-center-toolbar-main h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.coupon-center-toolbar-main p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #667085;
}

.coupon-center-toolbar-stats {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.coupon-center-toolbar-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(65, 95, 255, 0.08);
    font-size: 12px;
    color: #5b6475;
}

.coupon-center-toolbar-stat strong {
    font-size: 14px;
    color: #415FFF;
}

.coupon-center-tabs {
    padding: 0 4px;
}

.coupon-panel-box {
    padding-top: 12px;
}

.coupon-panel-desc {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.8;
    color: #667085;
}

#pages-0,
#pages-1,
#pages-2 {
    margin-top: 20px;
}

@media (max-width: 991px) {
    .coupon-card-grid,
    .coupon-card-grid-center {
        grid-template-columns: 1fr;
    }

    .coupon-center-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .coupon-center-toolbar-stats {
        justify-content: flex-start;
    }

    .coupon-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .coupon-card-main {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .coupon-card-value {
        min-width: 0;
    }

    .ybt-coupon-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .ybt-coupon-inline-main {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .coupon-center-page {
        padding: 14px 16px 18px;
    }

    .coupon-center-toolbar-main h2 {
        font-size: 20px;
    }

    .coupon-card {
        min-height: 0;
        padding: 18px;
        border-radius: 22px;
    }

    .ybt-coupon-shell {
        padding: 12px;
        border-radius: 14px;
    }
}
