.locket-page,
.locket-page * { box-sizing: border-box; }

.locket-page {
    width: 100%;
    max-width: 1520px;
    min-height: calc(100vh - 160px);
    margin: 0 auto;
    padding: 40px 28px 80px;
    color: #172033;
    background: #edf3f7;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.locket-hero,
.locket-history-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border: 1px solid #d7e8ed;
    border-left: 3px solid #eab308;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(31, 66, 91, .06);
}

.locket-eyebrow,
.locket-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9a6700;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.locket-hero h1,
.locket-history-hero h1 {
    margin: 7px 0 5px;
    color: #14233b;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.locket-hero p,
.locket-panel-heading p,
.locket-history-hero p {
    margin: 0;
    color: #617b8f;
    font-size: 12.5px;
    line-height: 1.5;
}

.locket-status {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.locket-status i {
    display: block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
}
.locket-status.is-ready { border-color: #a9dfc8; color: #087655; background: #effbf5; }
.locket-status.is-ready i { background: #11a878; }
.locket-status.is-closed { border-color: #e2c6c6; color: #9a4b4b; background: #fff7f7; }
.locket-status.is-closed i { background: #c95d5d; }

.locket-maintenance-banner {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-top: 20px;
    padding: 20px 22px;
    border: 1px solid #f2b6ad;
    border-left: 5px solid #d94c3d;
    border-radius: 8px;
    color: #6f302a;
    background: #fff4f2;
    box-shadow: 0 8px 18px rgba(151, 55, 43, .08);
}

.locket-maintenance-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: #d94c3d;
    font-size: 20px;
}

.locket-maintenance-kicker {
    display: block;
    margin-bottom: 4px;
    color: #b23f33;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.locket-maintenance-banner h2 {
    margin: 0;
    color: #922f27;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.locket-maintenance-banner p {
    margin: 6px 0 0;
    color: #7b4640;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.locket-page.is-maintenance-active > :not(.locket-maintenance-banner) {
    filter: blur(2px);
    opacity: .42;
}

.locket-page.is-maintenance-active .locket-maintenance-banner {
    position: relative;
    z-index: 1;
    animation: locket-maintenance-banner-glow 1.6s ease-in-out infinite;
}

.locket-page.is-maintenance-active .locket-maintenance-icon {
    animation: locket-maintenance-icon-glow 1.2s ease-in-out infinite;
}

.locket-page.is-maintenance-active .locket-maintenance-banner h2 {
    animation: locket-maintenance-title-glow 1.2s ease-in-out infinite;
}

@keyframes locket-maintenance-banner-glow {
    0%, 100% { box-shadow: 0 8px 18px rgba(151, 55, 43, .08); }
    50% { box-shadow: 0 0 0 3px rgba(217, 76, 61, .14), 0 12px 28px rgba(217, 76, 61, .24); }
}

@keyframes locket-maintenance-icon-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(217, 76, 61, 0), 0 0 10px rgba(217, 76, 61, .28); transform: scale(1); }
    50% { box-shadow: 0 0 0 5px rgba(217, 76, 61, .12), 0 0 24px rgba(217, 76, 61, .58); transform: scale(1.05); }
}

@keyframes locket-maintenance-title-glow {
    0%, 100% { color: #922f27; opacity: .86; text-shadow: 0 0 0 rgba(217, 76, 61, 0); }
    50% { color: #c13d32; opacity: 1; text-shadow: 0 0 12px rgba(217, 76, 61, .5); }
}

.locket-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
    gap: 20px;
    margin-top: 20px;
}

.locket-panel {
    min-width: 0;
    padding: 24px;
    border: 1px solid #d3e2eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(24, 53, 76, .07);
}

.locket-panel-heading { display: flex; align-items: flex-start; gap: 16px; }
.locket-panel-heading > div { min-width: 0; }
.locket-step {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: #111827;
    font-size: 18px;
    font-weight: 800;
}

.locket-panel-kicker { margin-bottom: 6px; color: #9a6700; font-size: 11px; }
.locket-panel h2 { margin: 0 0 5px; color: #14233b; font-size: 20px; font-weight: 800; line-height: 1.3; }

.locket-package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.locket-package-card {
    display: grid;
    min-width: 0;
    gap: 8px;
    padding: 16px;
    border: 1px solid #dce6eb;
    border-radius: 10px;
    color: #3e5668;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.locket-package-card:hover { border-color: #e7c958; box-shadow: 0 8px 18px rgba(131, 96, 0, .1); transform: translateY(-1px); }
.locket-package-card:focus-visible { border-color: #b77900; box-shadow: 0 0 0 3px rgba(234, 179, 8, .22); outline: none; }
.locket-package-card.is-selected { border-color: #eab308; background: #fffdf4; box-shadow: 0 8px 18px rgba(131, 96, 0, .1); }
.locket-package-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #172033; font-size: 15px; }
.locket-package-card-top i { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid #f2d978; border-radius: 9px; color: #b77900; background: #fffef4; }
.locket-package-price { color: #111827; font-size: 23px; font-weight: 800; line-height: 1.1; }
.locket-package-limit { color: #9a6700; font-size: 11px; font-weight: 700; }
.locket-package-features { display: grid; gap: 6px; margin-top: 3px; color: #607789; font-size: 11px; line-height: 1.45; }
.locket-package-features span { display: flex; align-items: flex-start; gap: 7px; }
.locket-package-features i { flex: 0 0 auto; margin-top: 2px; color: #12a77c; }

.locket-order-panel { align-self: start; border-top: 4px solid #eab308; }
.locket-selected-summary,
.locket-wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 22px 0 18px;
    padding: 12px 14px;
    border: 1px solid #f0df9d;
    border-radius: 8px;
    color: #6f5a2c;
    background: #fffaf0;
    font-size: 12px;
}
.locket-selected-summary span,
.locket-wallet-row span { display: inline-flex; align-items: center; gap: 8px; }
.locket-selected-summary span i,
.locket-wallet-row span i { color: #b77900; }
.locket-selected-summary > strong { color: #8d5f08; font-size: 13px; white-space: nowrap; }
.locket-field-label { display: block; margin-bottom: 7px; color: #243d54; font-size: 12px; font-weight: 800; }
.locket-usernames-input { display: block; width: 100%; min-height: 108px; resize: vertical; padding: 12px; border: 1px solid #cbdfe9; border-radius: 8px; color: #20384d; background: #fbfdfe; font: inherit; font-size: 13px; line-height: 1.5; }
.locket-usernames-input::placeholder { color: #94aabd; }
.locket-usernames-input:focus { border-color: #d7a300; box-shadow: 0 0 0 3px rgba(234, 179, 8, .16); outline: none; }
.locket-usernames-input:disabled { color: #90a0aa; background: #f0f4f6; cursor: not-allowed; }
.locket-field-help { display: flex; align-items: flex-start; gap: 7px; margin-top: 7px; color: #71899a; font-size: 11px; line-height: 1.45; }
.locket-field-help i { flex: 0 0 auto; margin-top: 2px; color: #0b95a0; }
.locket-safe-note { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 14px; padding: 12px 13px; border: 1px solid #d8e8ef; border-radius: 8px; color: #466b80; background: #f4fbfd; font-size: 11px; line-height: 1.5; }
.locket-safe-note i { flex: 0 0 auto; margin-top: 2px; color: #0b95a0; }
.locket-wallet-row { margin: 0 0 14px; border-color: #dce8ef; color: #5d7586; background: #f8fbfc; }
.locket-wallet-row strong { color: #173b56; font-size: 13px; white-space: nowrap; }
.locket-submit-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 7px; width: 100%; border: 0; border-radius: 7px; color: #fff; background: #111827; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.locket-submit-button:hover:not(:disabled),
.locket-submit-button:focus-visible:not(:disabled) { background: #263244; box-shadow: 0 8px 16px rgba(17, 24, 39, .16); transform: translateY(-1px); outline: none; }
.locket-submit-button:active:not(:disabled) { transform: translateY(0); }
.locket-submit-button:disabled { color: #8fa1ac; background: #e3ebef; cursor: not-allowed; }
.locket-history-link,
.locket-login-link { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; color: #8d5f08; font-size: 12px; font-weight: 700; text-decoration: none; transition: opacity 180ms ease, transform 180ms ease; }
.locket-history-link:hover,
.locket-login-link:hover { opacity: .78; transform: translateY(-1px); }
.locket-result { display: grid; gap: 6px; margin-top: 16px; padding: 14px; border: 1px solid #a9dfc8; border-radius: 8px; color: #18634e; background: #effcf7; font-size: 12px; line-height: 1.5; }
.locket-result.is-error { border-color: #f0b4b4; color: #963d3d; background: #fff5f5; }
.locket-result strong { color: #0b694e; font-size: 13px; }
.locket-result.is-error strong { color: #963d3d; }

.locket-history-page { max-width: 1420px; }
.locket-history-hero { border-left: 0; border-top: 3px solid #eab308; }
.locket-history-hero h1 { font-size: 28px; }
.locket-history-new-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; padding: 9px 13px; border: 1px solid #eed680; border-radius: 7px; color: #8d5f08; background: #fffaf0; font-size: 12px; font-weight: 800; text-decoration: none; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.locket-history-new-link:hover { border-color: #d7a300; box-shadow: 0 5px 12px rgba(131, 96, 0, .12); transform: translateY(-1px); }
.locket-history-panel { margin-top: 20px; border-top: 3px solid #eab308; }
.locket-history-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.locket-history-toolbar h2 { margin: 5px 0 0; color: #14233b; font-size: 20px; font-weight: 800; line-height: 1.3; }
.locket-history-summary { color: #758a98; font-size: 12px; }
.locket-history-summary strong { color: #8d5f08; font-size: 14px; }
.locket-history-table-wrap { overflow-x: auto; border: 1px solid #d6e5ec; border-radius: 8px; background: #fff; }
.locket-history-table { width: 100%; min-width: 920px; border-collapse: collapse; color: #35576e; font-size: 12px; }
.locket-history-table th { padding: 12px 14px; border-bottom: 1px solid #d6e5ec; color: #627d8f; background: #f7fafc; font-size: 10px; font-weight: 800; text-align: left; text-transform: uppercase; white-space: nowrap; }
.locket-history-table td { padding: 15px 14px; border-top: 1px solid #e1edf1; vertical-align: middle; }
.locket-history-table tbody tr:first-child td { border-top: 0; }
.locket-history-table tbody tr:hover { background: #fffdf6; }
.locket-history-service { display: grid; gap: 3px; min-width: 170px; }
.locket-history-service strong { color: #173b56; font-size: 12px; }
.locket-history-service small,
.locket-history-time { color: #7790a0; font-size: 10px; }
.locket-history-usernames { max-width: 240px; color: #45657b; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.locket-history-charge { color: #8d5f08; font-size: 12px; font-weight: 800; white-space: nowrap; }
.locket-history-status { display: inline-flex; min-height: 25px; align-items: center; padding: 4px 8px; border: 1px solid; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.locket-history-status.is-pending { border-color: #ecd498; color: #896117; background: #fff9eb; }
.locket-history-status.is-processing { border-color: #bbd9ef; color: #25618c; background: #f2f8fd; }
.locket-history-status.is-completed { border-color: #a9dfc8; color: #087655; background: #effbf5; }
.locket-history-status.is-failed,
.locket-history-status.is-refunded { border-color: #efb4b4; color: #a13d3d; background: #fff5f5; }
.locket-history-note { display: block; max-width: 220px; margin-top: 5px; color: #71899a; font-size: 10px; line-height: 1.45; }
.locket-history-empty { display: grid; min-height: 190px; place-items: center; align-content: center; gap: 8px; padding: 26px; color: #668094; text-align: center; }
.locket-history-empty i { color: #d7a300; font-size: 25px; }
.locket-history-empty strong { color: #24475f; font-size: 14px; }
.locket-history-empty span { max-width: 340px; font-size: 11px; line-height: 1.55; }
.locket-history-pagination { display: flex; justify-content: flex-end; margin-top: 16px; }
.locket-history-pagination .pagination { margin: 0; }

@media (max-width: 1100px) {
    .locket-content-grid { grid-template-columns: 1fr; }
    .locket-order-panel { max-width: none; }
}

@media (max-width: 700px) {
    .locket-page { padding: 24px 14px 56px; }
    .locket-hero,
    .locket-history-hero { align-items: flex-start; flex-direction: column; padding: 18px; }
    .locket-hero h1,
    .locket-history-hero h1 { font-size: 25px; }
    .locket-maintenance-banner { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; }
    .locket-maintenance-icon { width: 40px; height: 40px; font-size: 17px; }
    .locket-maintenance-banner h2 { font-size: 21px; }
    .locket-maintenance-banner p { font-size: 12px; }
    .locket-panel { padding: 18px; }
    .locket-package-grid { grid-template-columns: 1fr; }
    .locket-package-price { font-size: 21px; }
    .locket-usernames-input { font-size: 16px; }
    .locket-history-new-link { width: 100%; }
    .locket-history-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
    .locket-history-pagination { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .locket-package-card,
    .locket-submit-button,
    .locket-history-link,
    .locket-login-link,
    .locket-history-new-link { transition: none; }
    .locket-page.is-maintenance-active .locket-maintenance-banner,
    .locket-page.is-maintenance-active .locket-maintenance-icon,
    .locket-page.is-maintenance-active .locket-maintenance-banner h2 { animation: none; }
}
