/* ============================================================
   GH Pricing & Payment v3.0.0
   Wider payment layout | Plan selector | Form | DM Sans
   ============================================================ */

:root {
    --gh-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.gh-fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: ghFadeIn 0.65s ease forwards;
}
.gh-pricing-grid .gh-card:nth-child(1) { animation-delay: .05s; }
.gh-pricing-grid .gh-card:nth-child(2) { animation-delay: .12s; }
.gh-pricing-grid .gh-card:nth-child(3) { animation-delay: .2s; }
.gh-pricing-grid .gh-card:nth-child(4) { animation-delay: .28s; }

@keyframes ghFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .gh-fade-in { animation: none; opacity: 1; transform: none; }
}

/* ---------- Pricing Grid (unchanged core) ---------- */
.gh-pricing-grid {
    display: grid;
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px 12px;
    font-family: var(--gh-font);
    box-sizing: border-box;
}
.gh-pricing-grid *, .gh-pricing-grid *::before, .gh-pricing-grid *::after { box-sizing: border-box; }

.gh-cols-1 { grid-template-columns: 1fr; max-width: 400px; }
.gh-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gh-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gh-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 900px) {
    .gh-cols-3 { grid-template-columns: 1fr 1.18fr 1fr; }
}

.gh-card {
    position: relative;
    background: var(--gh-bg, #0f1419);
    border: 1px solid color-mix(in srgb, var(--gh-accent, #ffd700) 22%, transparent);
    border-radius: 16px;
    padding: 28px 22px 24px;
    display: flex;
    flex-direction: column;
    color: #e4e6eb;
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
    font-family: var(--gh-font);
}
.gh-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0,0,0,.4);
}
.gh-card.gh-featured {
    border-width: 1.5px;
    border-color: var(--gh-accent, #ffd700);
    background: linear-gradient(165deg, color-mix(in srgb, var(--gh-accent, #ffd700) 8%, #0f1419), #0f1419 70%);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--gh-accent, #ffd700) 12%, transparent);
}

.gh-ribbon {
    position: absolute; top: 12px; right: -34px;
    background: linear-gradient(90deg, var(--gh-accent, #ffd700), #e6b800);
    color: #111; font-size: 10px; font-weight: 700; letter-spacing: .4px;
    padding: 5px 38px; transform: rotate(45deg); text-transform: uppercase; z-index: 3; white-space: nowrap;
}
.gh-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--gh-accent, #ffd700) 14%, transparent);
    color: var(--gh-accent, #ffd700);
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 4px 11px; border-radius: 20px; margin-bottom: 12px; align-self: flex-start;
    border: 1px solid color-mix(in srgb, var(--gh-accent, #ffd700) 28%, transparent);
}
.gh-title { margin: 0 0 4px; font-size: 24px; font-weight: 700; color: #fff; line-height: 1.25; font-family: var(--gh-font); }
.gh-subtitle { margin: 0 0 16px; font-size: 13px; color: #9aa3b2; line-height: 1.4; }

.gh-price-wrap { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.gh-old { font-size: 17px; color: #6b7280; text-decoration: line-through; font-weight: 500; }
.gh-price { font-size: 48px; font-weight: 800; color: var(--gh-accent, #ffd700); line-height: 1; letter-spacing: -1.5px; font-family: var(--gh-font); }

.gh-discount-btn {
    display: inline-block;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 6px;
    margin-bottom: 10px; letter-spacing: .3px; box-shadow: 0 2px 8px rgba(34,197,94,.3);
}
.gh-note { margin: 0 0 14px; font-size: 13px; color: #9aa3b2; }

.gh-features { list-style: none; margin: 0 0 2px; padding: 0; flex-grow: 1; }
.gh-features li { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; font-size: 14px; color: #d1d5db; line-height: 1.4; }
.gh-features li svg { flex-shrink: 0; margin-top: 2px; }
.gh-features li.gh-feat-more { display: none; }
.gh-features.is-expanded li.gh-feat-more { display: flex; }

/* Plain minimal + — no box, no border, near last feature line */
.gh-card .gh-feat-toggle,
.gh-feat-toggle {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: -2px auto 12px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #8b93a3 !important;
    cursor: pointer;
    text-align: center;
    line-height: 1;
    font-size: inherit;
    transition: color .15s ease;
    flex-shrink: 0;
}
.gh-card .gh-feat-toggle:hover,
.gh-card .gh-feat-toggle:focus,
.gh-feat-toggle:hover,
.gh-feat-toggle:focus {
    color: #c4c9d4 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}
.gh-feat-toggle-icon {
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    user-select: none;
}

.gh-countdown {
    background: color-mix(in srgb, var(--gh-accent, #ffd700) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--gh-accent, #ffd700) 22%, transparent);
    border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; text-align: center;
}
.gh-cd-label { font-size: 11px; color: var(--gh-accent, #ffd700); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.gh-cd-nums { display: flex; justify-content: center; gap: 8px; }
.gh-cd-nums > div { display: flex; flex-direction: column; align-items: center; min-width: 42px; }
.gh-cd-nums span {
    background: #0a0e13; color: var(--gh-accent, #ffd700); font-size: 17px; font-weight: 700;
    padding: 4px 6px; border-radius: 6px; min-width: 36px; text-align: center; font-family: var(--gh-font);
}
.gh-cd-nums small { font-size: 9px; color: #8b93a3; margin-top: 3px; text-transform: uppercase; }

.gh-spots { font-size: 13px; color: #f87171; font-weight: 600; margin-bottom: 12px; text-align: center; }

.gh-offer-box {
    text-align: center; font-size: 14px; font-weight: 600; padding: 10px 14px;
    border-radius: 8px; margin-bottom: 14px; border: 1px solid rgba(255,255,255,.08);
}

.gh-btn {
    display: block; width: 100%; text-align: center;
    background: linear-gradient(90deg, var(--gh-btn, var(--gh-accent, #ffd700)), color-mix(in srgb, var(--gh-btn, var(--gh-accent, #ffd700)) 82%, #000));
    color: #111 !important; font-size: 15px; font-weight: 700; padding: 13px 18px;
    border-radius: 10px; text-decoration: none !important; transition: all .2s ease;
    border: none; cursor: pointer; font-family: var(--gh-font);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--gh-btn, var(--gh-accent, #ffd700)) 28%, transparent);
}
.gh-btn:hover { filter: brightness(1.08); transform: translateY(-2px); color: #000 !important; }
.gh-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.gh-guarantee {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    margin-top: 14px; font-size: 12px; color: #8b93a3;
}

/* ============================================================
   PAYMENT PAGE – WIDER
   ============================================================ */
.gh-payment-page {
    max-width: 920px;          /* خیلی عریض‌تر */
    margin: 0 auto;
    padding: 12px 16px 40px;
    font-family: var(--gh-font);
    color: #e4e6eb;
    box-sizing: border-box;
}
.gh-payment-page *, .gh-payment-page *::before, .gh-payment-page *::after { box-sizing: border-box; }

.gh-pay-header { text-align: center; margin-bottom: 28px; }
.gh-pay-title {
    margin: 0 0 8px;
    font-size: 32px;           /* بزرگ‌تر */
    font-weight: 800;
    color: #fff;
    font-family: var(--gh-font);
    letter-spacing: -.5px;
}
.gh-pay-social { margin: 0; font-size: 15px; color: #9aa3b2; }

/* Plan Selector Tabs */
.gh-plan-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px;
}
.gh-plan-tab {
    flex: 1 1 160px;
    max-width: 240px;
    background: #0f1419;
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 16px 14px;
    cursor: pointer;
    text-align: center;
    transition: all .2s ease;
    font-family: var(--gh-font);
    color: #c5cad3;
}
.gh-plan-tab:hover {
    border-color: var(--tab-accent, #ffd700);
    transform: translateY(-2px);
}
.gh-plan-tab.is-active {
    border-color: var(--tab-accent, #ffd700);
    background: color-mix(in srgb, var(--tab-accent, #ffd700) 10%, #0f1419);
    box-shadow: 0 0 0 1px var(--tab-accent, #ffd700), 0 8px 24px rgba(0,0,0,.3);
    color: #fff;
}
.gh-plan-tab.is-featured { position: relative; }
.gh-tab-badge {
    display: block;
    font-size: 10px; font-weight: 700; letter-spacing: .8px;
    text-transform: uppercase; color: var(--tab-accent, #ffd700); margin-bottom: 4px;
}
.gh-tab-title { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }

/* Selected Panel */
.gh-selected-panel {
    background: #0f1419;
    border: 1px solid color-mix(in srgb, var(--plan-accent, #ffd700) 25%, transparent);
    border-radius: 18px;
    padding: 32px 36px;
    max-width: 100%;
}

/* عنوان پلن انتخاب‌شده – بزرگ‌تر */
.gh-selected-title {
    margin: 0 0 10px;
    font-size: 36px;           /* خیلی بزرگ وقتی انتخاب می‌شود */
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    font-family: var(--gh-font);
    letter-spacing: -.8px;
    transition: font-size .25s ease;
}

.gh-selected-prices {
    display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.gh-sel-old { font-size: 20px; color: #6b7280; text-decoration: line-through; }
.gh-sel-price { font-size: 52px; font-weight: 800; color: var(--plan-accent, #ffd700); letter-spacing: -1.5px; line-height: 1; }

.gh-sel-discount {
    display: inline-block;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px;
    border-radius: 6px; margin-bottom: 10px;
}
.gh-sel-note { margin: 0 0 18px; font-size: 14px; color: #9aa3b2; }

/* Wallet */
.gh-wallet-box {
    background: #0a0e13;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}
.gh-wallet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gh-wallet-icon {
    width: 42px; height: 42px; background: #26a17b; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
}
.gh-wallet-head strong { display: block; font-size: 15px; color: #fff; }
.gh-wallet-head small { font-size: 12px; color: #9aa3b2; }
.gh-wallet-note { font-size: 13px; color: #4caf50; margin-bottom: 10px; }
.gh-wallet-address-wrap {
    display: flex; gap: 8px; align-items: center;
    background: #111; border-radius: 8px; padding: 8px 10px;
}
.gh-wallet-address {
    flex: 1; font-size: 13px; color: #9ca3af; word-break: break-all; /* طوسی */
    background: none; border: none; font-family: ui-monospace, monospace;
}
.gh-copy-btn {
    background: #6b7280; color: #fff; border: none; border-radius: 6px;
    padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
    font-family: var(--gh-font); white-space: nowrap; transition: filter .2s;
}
.gh-copy-btn:hover { filter: brightness(1.15); }
.gh-copy-btn.copied { background: #22c55e; color: #fff; }

/* جمله مهم قبل از فرم – رنگ از پلن انتخابی */
.gh-tx-instruction {
    background: color-mix(in srgb, var(--plan-accent, #ffd700) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--plan-accent, #ffd700) 35%, transparent);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--plan-accent, #ffd700);
    line-height: 1.5;
    text-align: center;
    transition: background .25s, border-color .25s, color .25s;
}

.gh-sel-features { margin-bottom: 16px; }

/* Form */
.gh-payment-form { margin-top: 8px; }
.gh-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 0;
}
.gh-form-group { margin-bottom: 16px; }
.gh-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #c5cad3;
    margin-bottom: 6px;
}
.gh-form-group label small { font-weight: 400; color: #8b93a3; }
.gh-form-group input[type="text"],
.gh-form-group input[type="file"] {
    width: 100%;
    background: #0a0e13;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    font-family: var(--gh-font);
    transition: border-color .2s;
}
.gh-form-group input[type="text"]:focus {
    outline: none;
    border-color: #ffd700;
}
.gh-form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}
.gh-file-preview {
    margin-top: 8px;
    font-size: 13px;
    color: #9aa3b2;
}
.gh-file-preview img {
    max-width: 160px;
    max-height: 120px;
    border-radius: 6px;
    margin-top: 6px;
    display: block;
}

.gh-terms label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: 500 !important;
}
.gh-terms input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 2px; accent-color: #ffd700; flex-shrink: 0;
}

.gh-submit-btn {
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin-top: 10px;
  font-size: 16px;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  background: #F0BB09;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.gh-form-message {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.gh-form-message.success {
    background: rgba(34, 197, 94, .15);
    border: 1px solid rgba(34, 197, 94, .4);
    color: #4ade80;
}
.gh-form-message.error {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .35);
    color: #f87171;
}

.gh-pay-guarantees {
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
    font-size: 13px; color: #9aa3b2; padding-top: 18px; margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,.06);
}

/* Responsive */
@media (max-width: 900px) {
    .gh-cols-3, .gh-cols-2, .gh-cols-4 {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto; margin-right: auto;
    }
    .gh-payment-page { max-width: 100%; }
    .gh-selected-panel { padding: 24px 18px; }
    .gh-selected-title { font-size: 28px; }
    .gh-sel-price { font-size: 42px; }
    .gh-pay-title { font-size: 26px; }
}
@media (max-width: 560px) {
    .gh-form-row { grid-template-columns: 1fr; }
    .gh-plan-selector { flex-direction: column; align-items: stretch; }
    .gh-plan-tab { max-width: none; }
    .gh-selected-title { font-size: 24px; }
    .gh-price, .gh-sel-price { font-size: 38px; }
}




/* ===== Payment two-column layout (minimal, stroked boxes) ===== */
.gh-payment-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 12px;
}
.gh-pay-header {
    text-align: center;
    margin-bottom: 16px;
}
.gh-plan-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 560px;
    margin: 0 auto 18px;
}
.gh-selected-panel {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    align-items: start;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    max-width: 100%;
}
.gh-pay-col {
    background: rgba(15, 20, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 20px 18px;
}
.gh-pay-col-side {
    position: sticky;
    top: 16px;
}
.gh-selected-title {
    font-size: 26px !important;
    margin: 0 0 8px !important;
    letter-spacing: -0.4px !important;
}
.gh-sel-price {
    font-size: 40px !important;
}
.gh-sel-discount {
    display: inline-block !important;
    width: auto !important;
    max-width: max-content;
    background: linear-gradient(90deg, #22c55e, #16a34a) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    margin: 0 0 10px !important;
}
.gh-sel-note {
    margin: 0 0 14px !important;
    font-size: 13px;
}
.gh-wallet-box {
    margin-bottom: 12px !important;
}
.gh-tx-instruction {
    border-radius: 12px;
    border: 1px solid rgba(240, 187, 9, 0.45);
    background: rgba(240, 187, 9, 0.12);
    color: #F0BB09;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 14px !important;
}
.gh-payment-form {
    margin-top: 0 !important;
}
.gh-pay-col-side .gh-pay-countdown {
    margin-bottom: 12px;
}
.gh-pay-col-side .gh-spots {
    margin-bottom: 12px;
    color: #f87171;
    font-size: 13px;
    font-weight: 600;
}
.gh-pay-col-side .gh-sel-features {
    margin: 0;
    padding: 0;
    list-style: none;
}
.gh-pay-col-side .gh-sel-features li {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.4;
}
.gh-plan-tab.is-active {
    border-color: #F0BB09 !important;
    box-shadow: 0 0 0 1px rgba(240, 187, 9, 0.3);
}
#gh-pay-amount-box {
    border: 1px solid rgba(240, 187, 9, 0.35) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    background: rgba(240, 187, 9, 0.06) !important;
}
.gh-submit-btn {
    background: #F0BB09 !important;
    color: #121212 !important;
    border: 0 !important;
    font-weight: 700;
}
@media (max-width: 900px) {
    .gh-selected-panel {
        grid-template-columns: 1fr;
    }
    .gh-pay-col-side {
        position: static;
        order: -1;
    }
}
