* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #050505;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 16px;
    background:
        radial-gradient(circle at top right, rgba(247, 169, 0, 0.18), transparent 35%),
        linear-gradient(180deg, #121212 0%, #050505 100%);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.brand {
    font-size: 25px;
    font-weight: 900;
    color: #f7a900;
    letter-spacing: 0.4px;
}

.subtitle {
    font-size: 13px;
    color: #b8b8b8;
}

.lang {
    display: flex;
    gap: 5px;
}

.lang button {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 9px;
    padding: 6px 7px;
    font-size: 11px;
    font-weight: 700;
}

.hero {
    background:
        linear-gradient(135deg, rgba(247, 169, 0, 0.25), rgba(20, 20, 20, 1)),
        #151515;
    border: 1px solid rgba(247, 169, 0, 0.35);
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

.hero-badge {
    display: inline-block;
    background: #f7a900;
    color: #000;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 12px;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.05;
}

.hero p {
    margin: 0;
    color: #e1e1e1;
    font-size: 15px;
    line-height: 1.4;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-bottom: 16px;
}

.quick-grid button {
    background: #151515;
    border: 1px solid #292929;
    color: #fff;
    border-radius: 16px;
    padding: 12px 6px;
    font-size: 20px;
    font-weight: 800;
}

.quick-grid span {
    display: block;
    font-size: 11px;
    margin-top: 6px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: #101010;
    border: 1px solid #242424;
    padding: 5px;
    border-radius: 16px;
}

.tab {
    flex: 1;
    background: transparent;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 11px;
    font-weight: 800;
}

.tab.active {
    background: #f7a900;
    color: #000;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

h2 {
    margin: 8px 0 14px;
    font-size: 22px;
}

.products {
    display: grid;
    gap: 14px;
}

.product-card,
.info-card,
.profile-card,
.cart-item {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #2c2c2c;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.product-top {
    display: flex;
    gap: 12px;
}

.product-img {
    width: 84px;
    height: 84px;
    background: #222;
    border-radius: 16px;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 4px;
}

.product-category {
    color: #f7a900;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.product-desc {
    color: #c9c9c9;
    font-size: 13px;
    line-height: 1.35;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 13px;
}

.price {
    font-size: 19px;
    font-weight: 900;
}

.add-btn,
.main-btn {
    background: #f7a900;
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 11px 15px;
    font-weight: 900;
}

.cart-item {
    margin-bottom: 10px;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.qty-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.qty-controls button {
    background: #262626;
    color: #fff;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    min-width: 34px;
    height: 34px;
}

.cart-total {
    font-size: 21px;
    font-weight: 900;
    color: #f7a900;
    margin: 18px 0;
}

textarea {
    width: 100%;
    min-height: 90px;
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
    resize: none;
}

.main-btn {
    width: 100%;
    font-size: 16px;
    padding: 15px;
}

.consent-card {
    margin-top: 14px;
}

.consent-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.4;
    color: #dddddd;
}

.consent-row input {
    margin-top: 3px;
}
.hidden {
    display: none !important;
}

.admin-entry {
    margin-bottom: 16px;
}

.admin-entry button {
    width: 100%;
    background: #f7a900;
    color: #000;
    border: none;
    border-radius: 16px;
    padding: 14px;
    font-size: 16px;
    font-weight: 900;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.admin-stat {
    background: #141414;
    border: 1px solid #2c2c2c;
    border-radius: 18px;
    padding: 12px;
}

.admin-stat span {
    display: block;
    color: #bdbdbd;
    font-size: 12px;
    margin-bottom: 6px;
}

.admin-stat b {
    display: block;
    color: #f7a900;
    font-size: 18px;
}

.admin-block {
    margin-bottom: 18px;
}

.admin-block h3 {
    margin: 12px 0;
}

.admin-card {
    background: #141414;
    border: 1px solid #2c2c2c;
    border-radius: 18px;
    padding: 13px;
    margin-bottom: 10px;
}

.admin-card-title {
    font-weight: 900;
    font-size: 15px;
    margin-bottom: 6px;
}

.admin-card-text {
    color: #d0d0d0;
    font-size: 13px;
    line-height: 1.45;
}
.admin-status-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.admin-status-buttons button {
    background: #252525;
    color: #ffffff;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
}

.admin-status-buttons button:hover {
    background: #f7a900;
    color: #000000;
}
.admin-card .admin-status-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.admin-card .admin-status-buttons button {
    background: #252525 !important;
    color: #ffffff !important;
    border: 1px solid #3a3a3a !important;
    border-radius: 12px !important;
    padding: 9px 11px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    font-family: Arial, sans-serif !important;
    box-shadow: none !important;
}

.admin-card .admin-status-buttons button:active {
    background: #f7a900 !important;
    color: #000000 !important;
    transform: scale(0.97);
}
.my-order-card {
    background: #141414;
    border: 1px solid #2c2c2c;
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 12px;
}

.my-order-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.order-status {
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.order-status.new {
    background: #333333;
    color: #ffffff;
}

.order-status.processing {
    background: #2f2a18;
    color: #f7a900;
}

.order-status.ready {
    background: #17351f;
    color: #66ff8a;
}

.order-status.completed {
    background: #182d3d;
    color: #7fc7ff;
}

.order-status.cancelled {
    background: #3a1b1b;
    color: #ff7a7a;
}

.my-order-items {
    margin-top: 10px;
}
.admin-section {
    background: #141414;
    border: 1px solid #2c2c2c;
    border-radius: 20px;
    padding: 16px;
    margin: 16px 0;
}

.admin-section h3 {
    margin: 0 0 14px 0;
    font-size: 22px;
    color: #ffffff;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-form label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #f7a900;
    margin-top: 4px;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: #0b0b0b;
    color: #ffffff;
    border: 1px solid #3a3a3a;
    border-radius: 14px;
    padding: 12px 13px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    outline: none;
}

.admin-form textarea {
    min-height: 90px;
    resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus {
    border-color: #f7a900;
}

.checkbox-line {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    font-size: 15px !important;
}

.checkbox-line input {
    width: auto !important;
}

.admin-form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.admin-form-buttons button {
    flex: 1;
    border: none;
    border-radius: 14px;
    padding: 13px;
    font-size: 15px;
    font-weight: 900;
    background: #f7a900;
    color: #000000;
}

.admin-form-buttons button:nth-child(2) {
    background: #252525;
    color: #ffffff;
    border: 1px solid #3a3a3a;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.admin-stat-card {
    background: #141414;
    border: 1px solid #2c2c2c;
    border-radius: 18px;
    padding: 14px;
}

.admin-stat-number {
    font-size: 22px;
    font-weight: 900;
    color: #f7a900;
}

.admin-stat-label {
    font-size: 13px;
    color: #cfcfcf;
    margin-top: 4px;
}
.product-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.open-btn {
    background: #252525;
    color: #ffffff;
    border: 1px solid #3a3a3a;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 900;
}

.back-btn {
    background: #252525;
    color: #ffffff;
    border: 1px solid #3a3a3a;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 14px;
}

.product-detail-card {
    background: #141414;
    border: 1px solid #2c2c2c;
    border-radius: 24px;
    padding: 16px;
}

.product-detail-img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    background: #0b0b0b;
    border: 1px solid #2c2c2c;
    border-radius: 20px;
    margin-bottom: 16px;
}

.product-detail-title {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 8px;
}

.product-detail-meta {
    color: #f7a900;
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 12px;
}

.product-detail-price {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    margin: 14px 0 4px;
}

.product-detail-stock {
    color: #cfcfcf;
    font-size: 15px;
    margin-bottom: 18px;
}

.product-detail-section {
    background: #0b0b0b;
    border: 1px solid #2c2c2c;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
}

.product-detail-section h3 {
    margin: 0 0 8px 0;
    color: #f7a900;
    font-size: 16px;
}

.product-detail-section p {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.45;
    white-space: pre-line;
}

.product-detail-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.product-detail-buttons button {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 14px;
    font-size: 16px;
    font-weight: 900;
    background: #f7a900;
    color: #000000;
}

.product-detail-buttons button:nth-child(2),
.product-detail-buttons button:nth-child(3) {
    background: #252525;
    color: #ffffff;
    border: 1px solid #3a3a3a;
}

.product-detail-buttons button:disabled {
    opacity: 0.5;
}
.checkout-box {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #2b2b2b;
    border-radius: 22px;
    background: #111;
}

.checkout-box h3 {
    margin: 0 0 14px 0;
    color: #f7a900;
    font-size: 20px;
}

.checkout-box label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    color: #f7a900;
    font-weight: 800;
}

.checkout-box input,
.checkout-box select,
.checkout-box textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #333;
    border-radius: 16px;
    background: #050505;
    color: #fff;
    padding: 14px;
    font-size: 16px;
    outline: none;
}

.checkout-box textarea {
    min-height: 80px;
    resize: vertical;
}

.checkout-box input:focus,
.checkout-box select:focus,
.checkout-box textarea:focus {
    border-color: #f7a900;
}
.tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.tabs button,
.tabs .tab {
    min-width: 0;
    width: 100%;
    padding: 10px 4px;
    font-size: 13px;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

#cartCount {
    display: inline-block;
    margin-left: 2px;
}
.admin-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 14px 0;
}

.admin-tabs button {
    width: 100%;
    min-width: 0;
    padding: 10px 4px;
    border-radius: 14px;
    border: 1px solid #333;
    background: #151515;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.1;
    text-align: center;
}

.admin-tabs button.active {
    background: #f7a900;
    color: #000000;
    border-color: #f7a900;
}

[data-admin-tab] {
    display: none;
}
.admin-tabs {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 14px 0;
}

.admin-tabs button {
    width: 100%;
    min-width: 0;
    padding: 12px 4px;
    border-radius: 14px;
    border: 1px solid #333;
    background: #151515;
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    overflow: hidden;
}

.admin-tabs button.active {
    background: #f7a900;
    color: #000000;
    border-color: #f7a900;
}
/* ===== STAGE 8.1: EA AutoCare header logo only, bigger logo ===== */
.topbar {
    gap: 12px;
}

.topbar-logo-only {
    align-items: center;
}

.brand-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.brand-wrap-logo-only {
    flex-direction: column;
    justify-content: center;
}

.brand-logo {
    width: 92px;
    height: auto;
    max-height: 44px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.brand-logo-main {
    width: 180px;
    max-height: 72px;
}

.header-logo-subtitle {
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.22;
    color: #d7d7d7;
}

.brand-text {
    min-width: 0;
}

.brand-text .brand {
    line-height: 1.05;
}

.brand-text .subtitle {
    margin-top: 3px;
}

.detailing-ad-card {
    overflow: hidden;
    border-color: rgba(247, 169, 0, 0.28);
    background:
        radial-gradient(circle at right center, rgba(247, 169, 0, 0.10), transparent 36%),
        rgba(20, 20, 20, 0.95);
}

.detailing-ad-layout {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detailing-ad-copy {
    flex: 1;
    min-width: 0;
}

.detailing-ad-logo-box {
    width: 132px;
    flex: 0 0 132px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
}

.detailing-ad-logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.35));
}

.detailing-ad-actions {
    margin-top: 12px;
}

@media (max-width: 390px) {
    .brand-logo {
        width: 82px;
        max-height: 40px;
    }

    .brand-logo-main {
        width: 158px;
        max-height: 66px;
    }

    .header-logo-subtitle {
        font-size: 12px;
    }

    .subtitle {
        font-size: 12px;
    }

    .detailing-ad-layout {
        align-items: flex-start;
    }

    .detailing-ad-logo-box {
        width: 105px;
        flex-basis: 105px;
        padding-top: 8px;
    }
}

/* ===== STAGE 9: polished checkout before payment ===== */
.checkout-page {
    padding-bottom: 18px;
}

.checkout-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 14px;
}

.checkout-page-head h2 {
    margin: 0 0 4px;
    font-size: 27px;
    line-height: 1.05;
}

.checkout-page-subtitle {
    margin: 0;
    color: #bdbdbd;
    font-size: 13px;
    line-height: 1.35;
}

.checkout-mini-total {
    flex: 0 0 auto;
    min-width: 118px;
    background: linear-gradient(135deg, rgba(247, 169, 0, 0.22), rgba(20, 20, 20, 0.96));
    border: 1px solid rgba(247, 169, 0, 0.42);
    border-radius: 18px;
    padding: 11px 12px;
    text-align: right;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

.checkout-mini-total span {
    display: block;
    color: #cfcfcf;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.checkout-mini-total b {
    display: block;
    margin-top: 3px;
    color: #f7a900;
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
}

.checkout-cart-list {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.checkout-cart-list .cart-item {
    margin-bottom: 0;
    border-color: rgba(247, 169, 0, 0.20);
    background:
        radial-gradient(circle at top right, rgba(247, 169, 0, 0.10), transparent 34%),
        rgba(20, 20, 20, 0.96);
}

.checkout-cart-list .cart-line b {
    font-size: 16px;
    line-height: 1.2;
}

.checkout-cart-list .cart-line span {
    color: #ffffff;
    font-weight: 900;
    white-space: nowrap;
}

.checkout-card,
.checkout-summary-card,
.checkout-promo-card {
    background:
        linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(12, 12, 12, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.30);
}

.checkout-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.checkout-card-title-row h3 {
    margin: 0;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.1;
}

.checkout-step-badge {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7a900;
    color: #000000;
    font-size: 14px;
    font-weight: 900;
    flex: 0 0 28px;
}

.checkout-box {
    margin-top: 12px;
}

.checkout-box label,
.checkout-promo-card label {
    color: #f7a900;
    font-weight: 900;
}

.checkout-box input,
.checkout-box select,
.checkout-box textarea,
.checkout-promo-card input,
.checkout-comment-card textarea {
    border-color: rgba(247, 169, 0, 0.28);
    background: #070707;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.30);
}

.checkout-comment-card textarea {
    margin: 0;
}

.checkout-promo-card .promo-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.checkout-promo-card input {
    flex: 1;
    width: 100%;
    border: 1px solid rgba(247, 169, 0, 0.28);
    border-radius: 15px;
    color: #fff;
    padding: 13px;
    font-size: 16px;
    outline: none;
}

.checkout-promo-card button {
    border: none;
    border-radius: 14px;
    background: #f7a900;
    color: #000;
    padding: 13px 15px;
    font-weight: 900;
    white-space: nowrap;
}

.checkout-help-text {
    color: #d0d0d0;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 9px;
    min-height: 18px;
}

.checkout-summary-card {
    border-color: rgba(247, 169, 0, 0.34);
    background:
        radial-gradient(circle at top right, rgba(247, 169, 0, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(24, 24, 24, 0.99), rgba(9, 9, 9, 0.99));
}

.checkout-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.checkout-summary-label {
    color: #a8a8a8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    margin-bottom: 4px;
}

.checkout-summary-title {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.12;
    font-weight: 900;
}

.delivery-badge {
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    background: #2a2a2a;
    color: #ffffff;
}

.delivery-badge.paid {
    background: #3a2712;
    color: #f7a900;
}

.delivery-badge.free {
    background: #17351f;
    color: #70ff91;
}

.delivery-badge.pickup {
    background: #182d3d;
    color: #89cfff;
}

.free-delivery-box {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 17px;
    padding: 12px;
    margin-bottom: 13px;
}

.free-delivery-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 9px;
}

.free-delivery-row b {
    color: #f7a900;
}

.free-delivery-track {
    height: 9px;
    background: #252525;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.free-delivery-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f7a900, #ffd36a);
    transition: width 0.25s ease;
}

.free-delivery-note {
    margin-top: 9px;
    color: #d7d7d7;
    font-size: 13px;
    line-height: 1.38;
}

.summary-lines {
    display: grid;
    gap: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: #e7e7e7;
    font-size: 14px;
}

.summary-row span {
    color: #cfcfcf;
}

.summary-row b {
    color: #ffffff;
    white-space: nowrap;
}

.summary-row.discount b {
    color: #70ff91;
}

.summary-row.muted b {
    color: #9f9f9f;
}

.summary-row.total {
    margin-top: 7px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 18px;
    font-weight: 900;
}

.summary-row.total span,
.summary-row.total b {
    color: #f7a900;
}

.checkout-pay-sticky {
    position: sticky;
    bottom: 8px;
    z-index: 5;
    padding-top: 4px;
}

.checkout-pay-btn {
    border-radius: 18px;
    padding: 17px;
    font-size: 18px;
    box-shadow: 0 16px 30px rgba(247, 169, 0, 0.22), 0 10px 28px rgba(0,0,0,0.38);
}

@media (max-width: 390px) {
    .checkout-page-head {
        align-items: stretch;
    }

    .checkout-mini-total {
        min-width: 100px;
        padding: 10px;
    }

    .checkout-mini-total b {
        font-size: 17px;
    }

    .checkout-promo-card .promo-row {
        align-items: stretch;
    }

    .checkout-promo-card button {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.payment-choice-card {
    background:
        radial-gradient(circle at top right, rgba(247, 169, 0, 0.18), transparent 40%),
        linear-gradient(180deg, rgba(24, 24, 24, 0.99), rgba(8, 8, 8, 0.99));
    border: 1px solid rgba(247, 169, 0, 0.35);
    border-radius: 24px;
    padding: 16px;
    margin: 14px 0 8px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.35);
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

.payment-method-btn {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    padding: 12px;
    font-size: 14px;
    font-weight: 900;
}

.payment-method-btn span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7a900;
    color: #000;
    font-weight: 900;
    flex: 0 0 30px;
}

.payment-method-btn b {
    min-width: 0;
    overflow-wrap: anywhere;
}

.payment-method-btn:active {
    transform: scale(0.98);
    background: rgba(247, 169, 0, 0.16);
}

@media (max-width: 360px) {
    .payment-method-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== STAGE 10: terms + review checkout ===== */
.terms-agreement-card {
  border: 1px solid rgba(247, 169, 0, 0.28);
  background: linear-gradient(135deg, rgba(247, 169, 0, 0.10), rgba(255,255,255,0.04));
}

.terms-check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.35;
}

.terms-check-row input {
  margin-top: 3px;
  transform: scale(1.15);
}

.terms-link-btn {
  border: none;
  background: transparent;
  color: #f7a900;
  font-weight: 800;
  padding: 0;
  margin-left: 4px;
  text-decoration: underline;
}

.terms-page .back-btn {
  margin-bottom: 12px;
}

.terms-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.terms-card h3 {
  margin: 0 0 8px;
  color: #f7a900;
}

.terms-card p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.45;
}

.review-section {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
}

.review-section h4 {
  margin: 0 0 10px;
  color: #f7a900;
  font-size: 14px;
}

.review-line,
.review-total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
}

.review-line:last-child {
  border-bottom: none;
}

.review-line span {
  color: rgba(255,255,255,0.72);
}

.review-line b,
.review-total b {
  text-align: right;
}

.review-line.discount b {
  color: #9cffbf;
}

.review-total {
  margin-top: 10px;
  border-bottom: none;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-top: 14px;
}

.secondary-btn {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
}

.checkout-pay-btn:disabled {
  cursor: not-allowed;
}

/* ===== STAGE 10.1: Admin payment visibility / help ===== */
.admin-filter-buttons .active-filter {
    background: #f7a900 !important;
    color: #000000 !important;
    border-color: #f7a900 !important;
}

.admin-info-box {
    background: #241d0c;
    border: 1px solid #f7a900;
    border-radius: 16px;
    padding: 12px;
    margin: 12px 0;
    color: #f5f5f5;
    font-size: 13px;
    line-height: 1.45;
}

.admin-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.payment-badge {
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    text-align: center;
}

.payment-paid {
    background: #17351f;
    color: #66ff8a;
    border: 1px solid #2b9b45;
}

.payment-pending {
    background: #2f2a18;
    color: #f7a900;
    border: 1px solid #f7a900;
}

.payment-unpaid {
    background: #3a1b1b;
    color: #ff9c9c;
    border: 1px solid #ff6565;
}

.payment-failed {
    background: #3a1b1b;
    color: #ff7a7a;
    border: 1px solid #ff6565;
}

.payment-refunded {
    background: #182d3d;
    color: #7fc7ff;
    border: 1px solid #4f9fd8;
}

.admin-order-waiting {
    border-color: #6b4a13 !important;
}

.admin-order-paid {
    border-color: #1d5f2e !important;
}

.admin-payment-warning {
    background: #1f1607;
    border: 1px solid #6b4a13;
    border-radius: 14px;
    padding: 10px;
    margin: 10px 0;
    color: #f7c46b;
    font-size: 13px;
    line-height: 1.4;
}


/* ===== STAGE 11: unpaid order expiration + reminders ===== */
.payment-expired {
    background: #272727;
    color: #d7d7d7;
    border: 1px solid #777777;
}

.admin-order-expired {
    border-color: #555555 !important;
    opacity: 0.88;
}

.admin-payment-timer {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(247, 169, 0, 0.25);
    border-radius: 14px;
    padding: 10px;
    margin: 10px 0;
    color: #f5f5f5;
    font-size: 13px;
    line-height: 1.45;
}

.admin-payment-timer.paid {
    border-color: rgba(55, 190, 92, 0.45);
    color: #8cffaa;
}

.admin-payment-timer.expired {
    border-color: rgba(170, 170, 170, 0.35);
    color: #d7d7d7;
}

.admin-reminder-needed {
    margin-top: 8px;
    background: rgba(247, 169, 0, 0.12);
    border: 1px solid rgba(247, 169, 0, 0.45);
    color: #ffd27a;
    padding: 8px;
    border-radius: 12px;
    font-weight: 800;
}

/* Stage 11.1: customer payment expiration box */
.client-payment-timer {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid rgba(247, 169, 0, 0.65);
    border-radius: 16px;
    background: rgba(247, 169, 0, 0.08);
    color: #ffffff;
    line-height: 1.35;
    font-size: 14px;
}

.client-payment-timer b {
    color: #ffffff;
}

.client-payment-title {
    color: #f7a900;
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 6px;
}

.client-payment-timer.paid {
    border-color: rgba(70, 220, 120, 0.7);
    background: rgba(70, 220, 120, 0.10);
}

.client-payment-timer.expired {
    border-color: rgba(255, 90, 90, 0.75);
    background: rgba(255, 90, 90, 0.10);
}

/* Stage 12.2 payment polish */
.client-payment-timer.failed {
  border-color: rgba(255, 90, 90, 0.75);
  background: rgba(95, 20, 20, 0.25);
}
.client-payment-actions {
  margin-top: 10px;
}
.payment-log-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 176, 0, 0.35);
  border-radius: 14px;
  background: rgba(255, 176, 0, 0.06);
}
.payment-log-title {
  font-weight: 900;
  color: #ffb000;
  margin-bottom: 6px;
}


/* Stage 13: launch-clean admin order filters */
.admin-clean-note {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px dashed rgba(255, 178, 0, 0.45);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.35;
}
