:root {
    --bg: #f7fafb;
    --line: #e3edf0;
    --card: #ffffff;
    --text: #17313a;
    --muted: #6b848b;
    --primary: #f2a33a;
    --primary-dark: #d98922;
    --secondary: #0f8a93;
    --success: #1d8b63;
    --error: #b54a3a;
    --shadow: 0 24px 60px rgba(18, 48, 57, 0.12);
    --font-base: "Montserrat", sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--text);
    background: #f7fafb;
}
.page-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 251, 252, 0.9)),
        var(--page-bg-image);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 1;
    pointer-events: none;
}
.site-shell { position: relative; max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; }
.site-header {
    display: flex; align-items: center; justify-content: center; gap: 20px; text-align: center;
    margin-bottom: 28px; position: relative;
}
.site-header-admin { justify-content: space-between; text-align: left; }
.brand-lockup { display: block; width: 100%; max-width: 980px; }
.site-header-admin .brand-lockup { max-width: 440px; }
.brand-logo { display: block; width: 70%; height: auto; }
.section-heading h1, .section-heading h2, .admin-toolbar h2, .detail-card h3, .result-card h2 {
    margin: 0; font-family: var(--font-base); font-weight: 700;
}
.section-heading p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 700; color: var(--secondary); margin: 0 0 8px; }
.page-frame { display: grid; gap: 20px; }
.flow-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 340px); gap: 20px; }
.single-panel { display: grid; justify-items: center; }
.card { background: rgba(255,255,255,0.96); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.form-card, .admin-card, .price-card { width: 100%; padding: 28px; }
.price-card { align-self: start; }
.narrow-card { max-width: 760px; }
.wide-card { max-width: 960px; }
.section-heading { margin: 20px 0 24px; }
.centered-heading { text-align: center; }
.section-heading h1 { font-size: 40px; line-height: 1.05; }
.section-heading h2 { font-size: 32px; line-height: 1.1; }
.section-summary { max-width: 720px; }
.stepper { display: grid; grid-template-columns: repeat(var(--step-count, 4), minmax(0, 1fr)); gap: 10px; }
.stepper-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #f3f8f9; color: var(--muted); font-size: 14px; }
.stepper-item.is-active { background: rgba(15, 138, 147, 0.14); color: var(--text); border: 1px solid rgba(15, 138, 147, 0.14); }
.stepper-item.is-complete { background: rgba(29, 139, 99, 0.14); color: var(--success); border: 1px solid rgba(29, 139, 99, 0.18); }
.stepper-item.is-complete .stepper-index { background: var(--success); border-color: var(--success); color: #fff; }
.stepper-item.is-complete .stepper-label { color: var(--success); font-weight: 700; }
.stepper-index { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.stacked-form { display: grid; gap: 18px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field-label,
.field-label-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.field-label-inline {
    justify-content: flex-start;
    flex-wrap: wrap;
}
.field-label > span,
.field-label-inline > span {
    display: block;
    min-width: 0;
}
.required-mark {
    font-size: 1em;
    font-weight: inherit;
    line-height: 1;
}

input, select, textarea { width: 100%; border: 1px solid #cbdbe0; border-radius: 14px; padding: 14px 16px; font-size: 15px; color: var(--text); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15, 138, 147, 0.28); border-color: var(--secondary); }
.radio-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.radio-card { position: relative; display: grid; gap: 8px; border: 1px solid #cddfe4; border-radius: 18px; padding: 18px; background: #fff; cursor: pointer; }
.radio-card input { position: absolute; inset: 16px auto auto 16px; width: auto; }
.radio-card span, .radio-card strong { padding-left: 24px; }
.phone-field { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); gap: 12px; }
.price-amount { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 6px; }
.price-amount strong { font-size: 42px; color: var(--primary-dark); }
.package-type { margin: 0 0 24px; color: var(--secondary); font-weight: 700; }
.summary-stack, .result-details { display: grid; gap: 18px; }
.summary-stack span, .result-details span, .detail-card dt, .upload-meta span { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.summary-stack strong, .result-details strong, .detail-card dd, .upload-meta strong { display: block; margin-top: 4px; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.button-row.align-right { justify-content: flex-end; }
.button-row.split-row { justify-content: space-between; align-items: center; }
.primary-button, .secondary-button, .ghost-button, .upload-trigger {
    display: inline-flex; align-items: center; justify-content: center; min-width: 160px; border-radius: 999px;
    padding: 14px 24px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: 0;
}
.primary-button { background: var(--primary); color: #fff; }
.primary-button:disabled, .secondary-button:disabled, .ghost-button:disabled { opacity: 0.58; cursor: not-allowed; box-shadow: none; transform: none; }
.primary-button:hover { background: var(--primary-dark); }
.secondary-button { background: rgba(15, 138, 147, 0.1); color: var(--secondary); }
.ghost-button { background: transparent; color: var(--text); border: 1px solid var(--line); }
.upload-trigger { background: #22a79d; color: #fff; }
.upload-trigger.is-disabled, .upload-dropzone.is-disabled { opacity: 0.58; cursor: not-allowed; pointer-events: none; }
.consent-stack { display: grid; gap: 12px; }
.consent-item { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 18px; background: #f5fafb; border: 1px solid var(--line); }
.consent-item input { width: auto; margin: 3px 0 0; }
.consent-item span { margin-bottom: 0; }
.consent-copy { display: grid; gap: 4px; }
.consent-copy small { color: var(--muted); line-height: 1.45; }
.upload-card-panel { max-width: 760px; }
.upload-card-shell { display: grid; gap: 18px; }
.upload-copy-block { text-align: left; }
.upload-label { margin: 0; color: var(--secondary); font-size: 28px; font-family: var(--font-base); font-weight: 700; }
.upload-label .required-mark {
    margin-left: 10px;
    vertical-align: middle;
}
.upload-subtitle { margin: 6px 0 0; color: var(--primary-dark); font-style: italic; }
.upload-dropzone {
    min-height: 220px; border: 3px dashed rgba(23, 49, 58, 0.75); border-radius: 20px; background: rgba(255,255,255,0.82);
    display: grid; place-items: center; text-align: center; padding: 28px; cursor: pointer;
}
.upload-dropzone.is-dragover { border-color: var(--secondary); background: rgba(15, 138, 147, 0.08); }
.upload-title { margin: 0; font-size: 20px; letter-spacing: 0.04em; }
.upload-help { margin: 12px 0 0; color: var(--muted); }
.upload-filename { margin: 18px 0 0; color: var(--secondary); font-weight: 700; }
.student-id-secondary-block {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(227, 237, 240, 0.92);
    background: rgba(248, 251, 252, 0.74);
}
.student-id-secondary-copy {
    display: grid;
    gap: 4px;
}
.student-id-secondary-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.student-id-secondary-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}
.student-id-preview {
    min-height: 220px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid rgba(227, 237, 240, 0.95);
    background: rgba(255, 255, 255, 0.62);
    padding: 14px;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.student-id-preview.has-image {
    background: rgba(255, 255, 255, 0.9);
}
.student-id-preview img {
    display: block;
    max-width: 86%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(18, 48, 57, 0.07);
}
.student-id-preview-empty {
    margin: 0;
    color: var(--muted);
    text-align: center;
    max-width: 420px;
    line-height: 1.6;
}
.student-id-confirmation {
    display: grid;
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(15, 138, 147, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 251, 0.98));
}
.student-id-confirmation-header {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
}
.student-id-confirmation-title {
    margin: 0;
    color: var(--secondary);
    font-size: 30px;
    font-family: var(--font-base);
}
.student-id-confirmation-copy {
    margin: 0;
    color: #38555d;
    line-height: 1.65;
    max-width: 560px;
}
.student-id-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(29, 139, 99, 0.12);
    color: var(--success);
    font-size: 14px;
    font-weight: 700;
}
.student-id-success-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(29, 139, 99, 0.12);
}
.student-id-confirmation-media {
    min-height: 320px;
    display: grid;
    place-items: center;
    padding: 24px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(15, 138, 147, 0.12);
}
.student-id-confirmation-media img {
    display: block;
    width: 100%;
    max-width: 500px;
    max-height: 360px;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(18, 48, 57, 0.12);
}
.student-id-confirmation-empty {
    margin: 0;
    color: var(--muted);
    text-align: center;
    max-width: 480px;
    line-height: 1.6;
}
.student-id-confirmation-actions {
    display: flex;
    justify-content: center;
}
.student-id-replace-button {
    min-width: 220px;
}
.student-id-confirmation.is-neutral,
.student-id-confirmation.is-pending {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 251, 0.98));
    border-color: rgba(15, 138, 147, 0.16);
}
.student-id-confirmation.is-pass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 250, 245, 0.98));
    border-color: rgba(29, 139, 99, 0.24);
}
.student-id-confirmation.is-warn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 240, 0.98));
    border-color: rgba(242, 163, 58, 0.26);
}
.student-id-confirmation.is-fail {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(253, 244, 242, 0.98));
    border-color: rgba(181, 74, 58, 0.24);
}
.summary-table-wrap { overflow-x: auto; }
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table th, .summary-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.summary-total-row td { font-weight: 700; }
.coupon-row { display: flex; gap: 12px; align-items: end; margin-top: 24px; }
.summary-actions {
    margin-top: 24px;
    align-items: stretch;
}
.summary-action-form {
    margin: 0;
    display: flex;
    justify-content: flex-end;
}
.summary-action-button {
    min-width: 200px;
}
.summary-action-form .summary-action-button {
    width: 100%;
}
@media (min-width: 961px) {
    .summary-actions .summary-action-button {
        width: auto;
    }
}
.coupon-input { flex: 1; }
.result-card { text-align: center; }
.result-success { border-top: 6px solid var(--success); }
.result-failure { border-top: 6px solid var(--error); }
.result-pending { border-top: 6px solid var(--secondary); }
.helper-copy { padding: 14px 16px; border-radius: 16px; background: rgba(181, 74, 58, 0.08); color: var(--error); margin-bottom: 16px; }
.alert { border-radius: 18px; padding: 16px 18px; margin-bottom: 16px; border: 1px solid var(--line); }
.alert-success { background: rgba(29, 139, 99, 0.12); color: var(--success); }
.alert-error { background: rgba(181, 74, 58, 0.1); color: var(--error); }
.alert-list { margin: 0; padding-left: 18px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.toolbar-actions, .inline-filter, .pager, .pager-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 6px 12px; background: #eef5f7; font-size: 13px; font-weight: 700; }
.status-succeeded, .status-settled, .status-authorized { background: rgba(29, 139, 99, 0.12); color: var(--success); }
.status-failed, .status-cancelled, .status-expired { background: rgba(181, 74, 58, 0.12); color: var(--error); }
.status-open, .status-pending { background: rgba(15, 138, 147, 0.12); color: var(--secondary); }
.text-link { color: var(--secondary); font-weight: 700; text-decoration: none; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.detail-card { padding: 22px; border-radius: 20px; background: #f9fcfd; border: 1px solid var(--line); }
.detail-card dl { margin: 0; display: grid; gap: 12px; }
.detail-card dd { margin: 4px 0 0; }
.json-block { margin: 0; overflow-x: auto; background: #132027; color: #d5e6ea; padding: 18px; border-radius: 18px; font-size: 13px; }
.is-hidden { display: none !important; }
@keyframes student-id-spin {
    to { transform: rotate(360deg); }
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 960px) {
    .flow-grid, .detail-grid, .form-grid.two-columns, .radio-row, .phone-field { grid-template-columns: 1fr; }
    .site-header, .admin-toolbar, .toolbar-actions, .coupon-row, .button-row.split-row { align-items: stretch; flex-direction: column; }
    .primary-button, .secondary-button, .ghost-button, .upload-trigger, .student-id-replace-button { width: 100%; }
}
@media (max-width: 720px) {
    .site-shell { padding: 18px 14px 40px; }
    .form-card, .admin-card, .price-card { padding: 20px; }
    .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-heading h1 { font-size: 32px; }
    .section-heading h2 { font-size: 28px; }
    .upload-title { font-size: 18px; }
    .student-id-secondary-block,
    .student-id-confirmation { padding: 18px; }
    .student-id-preview { min-height: 190px; }
    .student-id-preview img { max-width: 92%; max-height: 240px; }
    .student-id-confirmation-title { font-size: 24px; }
    .student-id-confirmation-media { min-height: 240px; padding: 18px; }
    .student-id-confirmation-media img { max-height: 300px; }
    .student-id-success-badge { width: 100%; justify-content: center; }
}




.student-id-secondary-copy {
    gap: 6px;
}
.student-id-processing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(15, 138, 147, 0.08);
    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
}
.student-id-processing-spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(15, 138, 147, 0.22);
    border-top-color: var(--secondary);
    animation: student-id-spin 0.9s linear infinite;
}
.student-id-confirmation.is-processing .student-id-confirmation-media {
    opacity: 0.82;
}
.student-id-continue-button {
    min-width: 220px;
    padding: 17px 34px;
    box-shadow: 0 16px 30px rgba(217, 137, 34, 0.28);
}
.student-id-continue-button:hover {
    background: var(--primary-dark);
}
.student-id-continue-button:focus-visible {
    outline: 3px solid rgba(242, 163, 58, 0.24);
    outline-offset: 3px;
}
@media (max-width: 720px) {
    .student-id-processing {
        width: 100%;
    }
    .student-id-continue-button {
        width: 100%;
    }
}
















.admin-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
    gap: 18px;
    margin-bottom: 20px;
}
.admin-stack-card {
    display: grid;
    gap: 18px;
}
.admin-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #f5fafb;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.admin-checkbox-row input {
    width: auto;
    margin: 3px 0 0;
}
.admin-note-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.7;
}
.admin-note-list li + li {
    margin-top: 8px;
}
.admin-table-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
}
.admin-status-stack {
    display: grid;
    gap: 8px;
    justify-items: start;
}
.status-active,
.status-available {
    background: rgba(29, 139, 99, 0.12);
    color: var(--success);
}
.status-inactive,
.status-unavailable {
    background: rgba(181, 74, 58, 0.12);
    color: var(--error);
}
@media (max-width: 960px) {
    .admin-section-grid {
        grid-template-columns: 1fr;
    }
}
.admin-inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.admin-inline-form {
    margin: 0;
}
.admin-inline-button {
    min-width: 0;
    padding: 10px 16px;
}
.admin-action-panel {
    display: grid;
    gap: 16px;
}
.admin-action-block {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: #f9fcfd;
    border: 1px solid var(--line);
}
.admin-action-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.admin-warning-copy {
    margin: 0;
    color: var(--error);
    line-height: 1.6;
}
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.admin-stat-card {
    gap: 10px;
}
.admin-stat-number {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    color: var(--secondary);
}
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    background: #b54a3a;
    color: #fff;
}
.danger-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}
.status-applied {
    background: rgba(29, 139, 99, 0.12);
    color: var(--success);
}
@media (max-width: 960px) {
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }
}
.coupon-admin-shell {
    display: grid;
    gap: 24px;
}
.coupon-admin-hero {
    margin-bottom: 0;
}
.coupon-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.coupon-overview-card {
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(15, 138, 147, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 251, 0.98));
    box-shadow: 0 14px 30px rgba(18, 48, 57, 0.08);
}
.coupon-overview-card span {
    display: block;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.coupon-overview-card strong {
    display: block;
    margin-top: 12px;
    font-size: 34px;
    line-height: 1;
    color: var(--text);
}
.coupon-overview-card p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}
.coupon-overview-grid-compact .coupon-overview-card strong {
    font-size: 28px;
}
.coupon-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
    gap: 20px;
    align-items: start;
}
.coupon-admin-grid-edit {
    align-items: stretch;
}
.coupon-side-stack {
    display: grid;
    gap: 20px;
}
.coupon-creation-card,
.coupon-rule-card,
.coupon-history-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 253, 0.98));
}
.coupon-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.coupon-section-heading.compact {
    justify-content: flex-start;
}
.coupon-section-heading h3,
.coupon-list-header h3,
.coupon-record-card h4 {
    margin: 0;
}
.coupon-section-heading p,
.coupon-list-header p,
.coupon-record-head p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}
.coupon-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 138, 147, 0.1);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.coupon-form {
    gap: 20px;
}
.coupon-form-grid label {
    display: grid;
    gap: 8px;
}
.field-hint {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.coupon-form-actions {
    margin-top: 4px;
}
.coupon-rule-list,
.coupon-example-list {
    display: grid;
    gap: 14px;
}
.coupon-rule-item,
.coupon-example-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 138, 147, 0.06);
    border: 1px solid rgba(15, 138, 147, 0.1);
}
.coupon-rule-item strong,
.coupon-example-code {
    display: inline-flex;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text);
}
.coupon-rule-item p,
.coupon-example-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.coupon-example-code {
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 138, 147, 0.12);
    color: var(--secondary);
    font-size: 13px;
    letter-spacing: 0.08em;
}
.coupon-list-section {
    display: grid;
    gap: 18px;
}
.coupon-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.coupon-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.coupon-record-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 250, 251, 0.97));
}
.coupon-record-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.coupon-code-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(23, 49, 58, 0.07);
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.coupon-record-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.coupon-metric-card {
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(227, 237, 240, 0.92);
}
.coupon-metric-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.coupon-metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.35;
}
.coupon-record-footer {
    display: grid;
    gap: 16px;
}
.coupon-window-note span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.coupon-window-note p {
    margin: 10px 0 0;
    color: var(--text);
    line-height: 1.6;
}
.coupon-record-actions {
    justify-content: flex-start;
}
.coupon-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 252, 0.97));
}
.coupon-empty-state h4 {
    margin: 0 0 10px;
    font-size: 24px;
}
.coupon-empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}
.coupon-history-table th,
.coupon-history-table td {
    white-space: normal;
}
@media (max-width: 1120px) {
    .coupon-overview-grid,
    .coupon-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 960px) {
    .coupon-admin-grid,
    .coupon-card-grid,
    .coupon-overview-grid,
    .coupon-record-metrics {
        grid-template-columns: 1fr;
    }
    .coupon-record-head,
    .coupon-list-header,
    .coupon-section-heading {
        flex-direction: column;
        align-items: stretch;
    }
}
.turnstile-panel {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(15, 138, 147, 0.14);
    background: rgba(244, 250, 251, 0.92);
}
.turnstile-copy span {
    display: block;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.turnstile-copy p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.6;
}
.turnstile-panel .cf-turnstile {
    width: 100%;
}
