:root {
    color-scheme: light;
    --buy-bg: #fcf2de;
    --buy-bg-soft: #fff7eb;
    --buy-card: #fff8ef;
    --buy-card-strong: #ffe7c4;
    --buy-line: #e7c69a;
    --buy-line-strong: #d5ab78;
    --buy-text: #2f241c;
    --buy-muted: #6a5441;
    --buy-accent: #f37934;
    --buy-success-bg: #f5f1e5;
    --buy-success-line: #d3bf97;
    --buy-error-bg: #fff0ea;
    --buy-error-line: #e1b39f;
    --buy-info-bg: #fff6e8;
    --buy-shadow: 0 18px 40px rgba(101, 74, 40, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.buy-credits-page {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--buy-text);
    background:
        radial-gradient(circle at top left, rgba(243, 121, 52, 0.08), transparent 26%),
        radial-gradient(circle at 85% 12%, rgba(244, 194, 116, 0.12), transparent 22%),
        linear-gradient(180deg, #fffaf1 0%, var(--buy-bg) 100%);
}

body.consultant-landing-page {
    overflow-x: hidden;
}

.buy-credits-stage {
    min-height: 100vh;
    padding: 24px 18px 52px;
}

.buy-shell {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.buy-hero,
.daily-bonus-panel,
.packages-section,
.status-section {
    background: var(--buy-card);
    border: 1px solid var(--buy-line);
    border-radius: 22px;
    box-shadow: var(--buy-shadow);
}

.buy-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
    gap: 16px;
    padding: 22px 24px;
}

.buy-kicker,
.section-kicker,
.package-kicker,
.wallet-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #a96a30;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.buy-hero h1,
.purchase-lead h1,
.packages-section h2,
.package-card h3 {
    margin: 0;
    font-family: Adamina, Georgia, serif;
    color: var(--buy-text);
    font-weight: 400;
}

.buy-hero h1,
.purchase-lead h1 {
    margin-bottom: 8px;
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.08;
}

.packages-section h2 {
    font-size: clamp(24px, 3vw, 32px);
}

.buy-intro,
.buy-rate-context,
.package-text,
.buy-side-text,
.buy-notice,
.payment-status-box {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--buy-muted);
}

.buy-rate-context {
    max-width: 760px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff4e4;
    border: 1px solid #ead0ad;
    color: #5f4734;
    font-size: 14px;
    line-height: 1.55;
}

.buy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.credit-value-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f2fbf0 0%, #eaf7e8 100%);
    border: 1px solid #acd3ae;
    color: #184f2e;
    box-shadow: 0 8px 18px rgba(54, 117, 65, 0.1);
}

.credit-value-strip span {
    font-size: 14px;
    font-weight: 700;
}

.credit-value-strip strong {
    color: #184f2e;
    font-size: 20px;
    line-height: 1;
}

.buy-side-card,
.wallet-card {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf2 0%, #fff4e2 100%);
    border: 1px solid #ebc99f;
    display: grid;
    gap: 10px;
    align-content: start;
}

.buy-side-card strong,
.wallet-card strong {
    font-size: 20px;
    line-height: 1.35;
    color: var(--buy-text);
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.primary-btn {
    background: #2D7A4F;
    border: 1px solid #2D7A4F;
    color: #fff;
}

.primary-btn:hover,
.primary-btn:focus {
    background: #256640;
    border-color: #256640;
    color: #fff;
    transform: translateY(-1px);
}

.ghost-btn {
    background: var(--buy-bg-soft);
    border: 1px solid var(--buy-line-strong);
    color: #5a4331;
}

.ghost-btn:hover,
.ghost-btn:focus {
    background: #fff0dc;
    border-color: #c79b6a;
    color: #422f22;
    transform: translateY(-1px);
}

.account-consultants-btn {
    background: linear-gradient(180deg, #f8b15f 0%, #f37934 100%) !important;
    border-color: #ef8a3d !important;
    color: #fff7ef !important;
    box-shadow: 0 12px 24px rgba(201, 108, 40, 0.16);
}

.account-consultants-btn:hover,
.account-consultants-btn:focus {
    background: linear-gradient(180deg, #f5a34a 0%, #e56a27 100%) !important;
    border-color: #de6a28 !important;
    color: #fffaf3 !important;
    transform: translateY(-1px);
}

.primary-btn:disabled,
.ghost-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.packages-section,
.daily-bonus-panel,
.status-section {
    padding: 20px 22px;
}

.packages-section {
    padding: 24px 22px 22px;
}

.purchase-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.daily-bonus-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: 12px 24px;
    align-items: center;
    background: linear-gradient(180deg, #f2fbf0 0%, #eaf7e8 100%);
    border-color: #acd3ae;
    box-shadow: 0 18px 36px rgba(54, 117, 65, 0.1);
}

.daily-bonus-panel h2 {
    margin: 0;
    font-family: Adamina, Georgia, serif;
    color: #184f2e;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 400;
    line-height: 1.15;
}

.daily-bonus-panel p {
    max-width: 820px;
    margin: 0;
    color: #385d42;
    font-size: 15px;
    line-height: 1.65;
}

.daily-bonus-panel .section-kicker {
    color: #2d7d47;
}

.buy-notice,
.payment-status-box {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--buy-info-bg);
    border: 1px solid var(--buy-line);
    color: #5d4735;
}

.buy-notice.is-ok,
.payment-status-box.is-ok {
    background: var(--buy-success-bg);
    border-color: var(--buy-success-line);
    color: #4f3f31;
}

.buy-notice.is-err,
.payment-status-box.is-err {
    background: var(--buy-error-bg);
    border-color: var(--buy-error-line);
    color: #7a3f2a;
}

.buy-notice.is-auth {
    background: linear-gradient(180deg, #f2fbf0 0%, #eaf7e8 100%);
    border-color: #acd3ae;
    color: #385d42;
    box-shadow: 0 12px 26px rgba(54, 117, 65, 0.08);
}

.buy-auth-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.buy-auth-notice strong,
.buy-auth-notice span {
    display: block;
}

.buy-auth-notice strong {
    color: #184f2e;
    font-size: 17px;
    line-height: 1.35;
}

.buy-auth-notice span {
    margin-top: 2px;
    color: #385d42;
    font-size: 14px;
    line-height: 1.55;
}

.buy-auth-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.buy-notice-inline {
    margin-top: 16px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.section-price-note {
    flex: 0 0 auto;
    padding: 9px 13px;
    border-radius: 999px;
    background: #fff3df;
    border: 1px solid #e6bd8c;
    color: #6b4429;
    font-size: 14px;
    font-weight: 800;
}

.purchase-reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    color: #6f5844;
    font-size: 14px;
    font-weight: 700;
}

.purchase-reassurance span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff5e6;
    border: 1px solid #ead0ad;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

body.consultant-landing-page .consultant-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-height: 300px;
    height: 100%;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #ecd8bf;
    background: #fffdf8;
}

.package-card.featured {
    background: linear-gradient(180deg, #fff8ef 0%, #ffeccf 100%);
    border-color: #ddb27d;
}

.package-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff2dc;
    border: 1px solid #e3c59f;
    color: #8c5c2e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.package-topline {
    display: none;
}

.package-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

body.buy-credits-page .package-card h3 {
    margin-top: 0;
    font-family: Adamina, Georgia, serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1.08;
    color: var(--buy-accent) !important;
}

body.buy-credits-page .package-price {
    font-family: Adamina, Georgia, serif !important;
    font-size: 40px !important;
    font-weight: 400 !important;
    line-height: 1.05;
    color: var(--buy-text) !important;
    white-space: nowrap;
}

.package-rate {
    margin-top: -4px;
    color: #7a624d;
    font-size: 13px;
    font-weight: 700;
}

.package-bonus-line {
    min-height: 22px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--buy-muted);
}

.package-bonus-line.has-bonus {
    color: #8c5c2e;
    font-weight: 700;
}

.package-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
}

.buy-package-btn {
    margin-top: auto;
    width: 100%;
    min-height: 50px;
    border-radius: 15px;
    font-size: 15px;
    box-shadow: 0 10px 22px rgba(46, 158, 91, 0.16);
}

.payment-result[hidden] {
    display: none !important;
}

body.consultant-landing-page .buy-credits-stage,
body.consultant-landing-page .buy-shell,
body.consultant-landing-page .buy-hero,
body.consultant-landing-page .buy-hero-copy,
body.consultant-landing-page .packages-section,
body.consultant-landing-page .status-section,
body.consultant-landing-page .package-card,
body.consultant-landing-page .package-content {
    min-width: 0;
    max-width: 100%;
}

body.consultant-landing-page .package-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.consultant-landing-page .package-rate-table {
    max-width: 100%;
}

body.buy-credits-page > .content {
    margin: 0;
    padding: 8px 16px;
    background: #f8edd9;
    color: #7d6a56;
    box-shadow: none;
}

body.buy-credits-page > .content .text-content,
body.buy-credits-page > .content .text-content p {
    margin: 0;
    color: #7d6a56 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

body.buy-credits-page > .content .text-content span,
body.buy-credits-page > .content .text-content a {
    color: #8a6d4d !important;
}

body.buy-credits-page > .content .image-wrapper {
    opacity: 0.24;
    line-height: 0;
}

body.buy-credits-page > .content .image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 980px) {
    .buy-hero {
        grid-template-columns: 1fr;
    }

    body.consultant-landing-page .consultant-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .buy-credits-stage {
        padding: 16px 12px 36px;
    }

    .buy-hero,
    .daily-bonus-panel,
    .packages-section,
    .status-section {
        border-radius: 18px;
        padding: 16px;
    }

    .buy-actions {
        flex-direction: column;
    }

    .credit-value-strip {
        width: 100%;
        justify-content: space-between;
    }

    .purchase-lead,
    .section-head,
    .daily-bonus-panel {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .section-price-note {
        justify-self: start;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .buy-auth-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .buy-auth-actions {
        width: 100%;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    body.consultant-landing-page .consultant-info-grid {
        grid-template-columns: 1fr;
    }
}
