/* ================================================================
   MEME Client — Gift Cards
   تصفح + Wizard + تأكيد
   ================================================================ */

/* ── صفحة التصفح ──────────────────────────────────────────── */

.gc-page {
    padding: 32px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.gc-hero {
    text-align: center;
    margin-bottom: 44px;
    padding: 44px 24px;
    background: linear-gradient(135deg, rgba(212,165,116,.07), rgba(30,107,94,.05));
    border-radius: 22px;
    border: 1px solid rgba(212,165,116,.12);
    position: relative;
    overflow: hidden;
}

.gc-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(212,165,116,.12) 0%, transparent 70%);
    border-radius: 50%;
}

.gc-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(30,107,94,.08) 0%, transparent 70%);
    border-radius: 50%;
}

.gc-hero h1 {
    font-size: 34px;
    font-weight: 900;
    color: #1a3530;
    margin: 0 0 10px;
    line-height: 1.4;
    position: relative;
}

.gc-hero h1 span {
    background: linear-gradient(135deg, #d4a574, #e8a35a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gc-hero p {
    font-size: 15px;
    color: #64748b;
    margin: 0 auto;
    max-width: 440px;
    line-height: 1.8;
    position: relative;
}

.gc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}

.gc-empty {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.gc-empty i {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
    color: #d4a574;
}

.gc-empty p {
    font-size: 15px;
    margin-bottom: 20px;
}

.gc-empty a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #1e6b5e, #3a9b8f);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all .3s;
}

.gc-empty a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30,107,94,.3);
    color: #fff;
}


/* ── بطاقة الكرت ─────────────────────────────────────────── */

.gc-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #ebe5df;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.25,.46,.45,.94), box-shadow .35s ease;
    position: relative;
}

.gc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(30,107,94,.1), 0 8px 16px rgba(212,165,116,.08);
}

.gc-card__img-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #faf6f1, #f5efe8);
}

.gc-card__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: contain;
    display: block;
    transition: transform .5s ease;
}

.gc-card:hover .gc-card__img {
    transform: scale(1.04);
}

.gc-card__img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #d4a574;
    background: linear-gradient(135deg, rgba(212,165,116,.06), rgba(30,107,94,.04));
}

.gc-card__discount {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #d4a574, #c49464);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(212,165,116,.35);
}

.gc-card__body {
    padding: 20px;
}

.gc-card__name {
    font-size: 18px;
    font-weight: 800;
    color: #1a3530;
    margin: 0 0 8px;
    line-height: 1.5;
}

.gc-card__desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gc-card__prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.gc-price-original {
    text-decoration: line-through;
    color: #b0b8c3;
    font-size: 14px;
}

.gc-price-final {
    font-size: 22px;
    font-weight: 900;
    color: #1e6b5e;
}

.gc-card__services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0ebe5;
}

.gc-svc-chip {
    padding: 4px 10px;
    background: rgba(30,107,94,.05);
    color: #1e6b5e;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(30,107,94,.1);
}

.gc-card__cta {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4a574, #c49464);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    border-radius: 14px;
    transition: all .3s;
    box-shadow: 0 4px 16px rgba(212,165,116,.25);
}

.gc-card__cta:hover {
    background: linear-gradient(135deg, #e8a35a, #d4a574);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,165,116,.35);
    color: #fff;
}

.gc-card__cta i {
    margin-left: 8px;
}


/* ================================================================
   Wizard
================================================================ */

.gc-wizard-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.gc-step-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #ebe5df;
    box-shadow: 0 2px 20px rgba(0,0,0,.03);
    margin-bottom: 16px;
}

.gc-step-title {
    font-size: 17px;
    font-weight: 800;
    color: #1a3530;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(212,165,116,.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gc-step-title i {
    color: #d4a574;
    font-size: 16px;
}

/* Section dividers inside forms */
.gc-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
}

.gc-section-label--buyer {
    background: linear-gradient(135deg, rgba(212,165,116,.06), rgba(212,165,116,.02));
    border: 1px solid rgba(212,165,116,.12);
    color: #c49464;
}

.gc-section-label--recipient {
    background: linear-gradient(135deg, rgba(30,107,94,.05), rgba(30,107,94,.02));
    border: 1px solid rgba(30,107,94,.1);
    color: #1e6b5e;
}

.gc-section-label--payment {
    background: linear-gradient(135deg, rgba(212,165,116,.06), rgba(30,107,94,.04));
    border: 1px solid rgba(212,165,116,.1);
    color: #8b6f47;
}

/* Form fields — reusing offers pattern */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fg {
    margin-bottom: 4px;
}

.fg label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.fg label .req {
    color: #dc2626;
    font-size: 14px;
}

.fg input,
.fg select,
.fg textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    color: #1f2937;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212,165,116,.12);
}

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

.fg.full {
    grid-column: 1 / -1;
}


/* ── Service options ───────────────────────────────────────── */

.service-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.svc-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid #ebe5df;
    border-radius: 14px;
    cursor: pointer;
    transition: all .25s;
    background: #fff;
}

.svc-option:hover {
    border-color: rgba(212,165,116,.4);
    background: rgba(212,165,116,.02);
}

.svc-option.selected {
    border-color: #d4a574;
    background: rgba(212,165,116,.05);
    box-shadow: 0 4px 14px rgba(212,165,116,.1);
}

.svc-option__radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px solid #d1d5db;
    flex-shrink: 0;
    transition: all .2s;
    position: relative;
}

.svc-option.selected .svc-option__radio {
    border-color: #d4a574;
    background: #d4a574;
}

.svc-option.selected .svc-option__radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.svc-option__name {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: #1a3530;
}

.svc-option__price {
    font-size: 14px;
    font-weight: 800;
    color: #d4a574;
    white-space: nowrap;
}


/* ── Bank options ──────────────────────────────────────────── */

.bank-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.bank-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid #ebe5df;
    border-radius: 14px;
    cursor: pointer;
    transition: all .25s;
    background: #fff;
}

.bank-option:hover {
    border-color: rgba(30,107,94,.3);
    background: rgba(30,107,94,.02);
}

.bank-option.selected {
    border-color: #1e6b5e;
    background: rgba(30,107,94,.04);
    box-shadow: 0 4px 14px rgba(30,107,94,.08);
}

.bank-option__radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px solid #d1d5db;
    flex-shrink: 0;
    transition: all .2s;
    position: relative;
}

.bank-option.selected .bank-option__radio {
    border-color: #1e6b5e;
    background: #1e6b5e;
}

.bank-option.selected .bank-option__radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.bank-option__name {
    font-size: 14px;
    font-weight: 700;
    color: #1a3530;
}

.bank-option__iban {
    font-size: 11px;
    color: #94a3b8;
    direction: ltr;
    text-align: left;
    margin-top: 2px;
    font-family: monospace;
    letter-spacing: .5px;
}


/* ── Payment summary ───────────────────────────────────────── */

.gc-summary {
    background: linear-gradient(135deg, #faf8f5, #f5f2ee);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(212,165,116,.12);
}

.gc-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: #64748b;
}

.gc-summary__row + .gc-summary__row {
    border-top: 1px solid rgba(0,0,0,.04);
}

.gc-summary__row.total {
    border-top: 2px solid rgba(212,165,116,.2);
    margin-top: 6px;
    padding-top: 12px;
}

.gc-summary__row.total .gc-summary__label {
    font-size: 15px;
    font-weight: 800;
    color: #1a3530;
}

.gc-summary__row.total .gc-summary__value {
    font-size: 20px;
    font-weight: 900;
    color: #1e6b5e;
}

.gc-summary__label {
    font-weight: 600;
}

.gc-summary__value {
    font-weight: 700;
    color: #1a3530;
}


/* ── Receipt upload ────────────────────────────────────────── */

.receipt-upload {
    border: 2.5px dashed rgba(212,165,116,.3);
    border-radius: 16px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
    background: rgba(212,165,116,.02);
    margin-bottom: 16px;
    gap: 8px;
    padding: 20px;
}

.receipt-upload:hover {
    border-color: #d4a574;
    background: rgba(212,165,116,.05);
}

.receipt-upload.has-file {
    border-color: #1e6b5e;
    border-style: solid;
    background: rgba(30,107,94,.04);
}

.receipt-upload i {
    font-size: 28px;
    color: #d4a574;
}

.receipt-upload.has-file i {
    color: #1e6b5e;
}

.receipt-upload p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.receipt-upload p span {
    color: #d4a574;
    font-weight: 600;
}

.receipt-upload.has-file p {
    color: #1e6b5e;
    font-weight: 600;
}


/* ── Card Preview in wizard ────────────────────────────────── */

.gc-preview-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(212,165,116,.1);
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    margin-bottom: 24px;
    text-align: center;
}

.gc-preview-card img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 14px;
}

.gc-preview-card h3 {
    margin: 0 0 8px;
    font-weight: 800;
    color: #1a3530;
}


/* ── Confirm page ──────────────────────────────────────────── */

.gc-confirm-card {
    background: #fff;
    border-radius: 24px;
    padding: 48px 32px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 8px 40px rgba(0,0,0,.06);
    border: 2px solid rgba(30,107,94,.12);
    text-align: center;
}

.gc-confirm-icon {
    font-size: 64px;
    margin-bottom: 18px;
    animation: gcPopIn .5s cubic-bezier(.68,-.55,.265,1.55);
}

@keyframes gcPopIn {
    0% { transform: scale(0) rotate(-15deg); }
    60% { transform: scale(1.15) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.gc-confirm-card h2 {
    font-size: 22px;
    font-weight: 900;
    color: #166534;
    margin: 0 0 12px;
}

.gc-confirm-card .order-number {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(30,107,94,.06);
    border: 1px solid rgba(30,107,94,.12);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #1e6b5e;
    font-family: monospace;
    direction: ltr;
    margin-bottom: 16px;
}

.gc-confirm-card .amount-display {
    font-size: 28px;
    font-weight: 900;
    color: #1e6b5e;
    margin: 8px 0;
}

.gc-confirm-card .amount-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.gc-confirm-card .info-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    margin: 0 0 24px;
}

.gc-confirm-card .btn-browse-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1.5px solid rgba(212,165,116,.2);
    border-radius: 12px;
    color: #d4a574;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    font-size: 14px;
}

.gc-confirm-card .btn-browse-more:hover {
    background: rgba(212,165,116,.06);
    border-color: #d4a574;
    color: #d4a574;
}

.gc-confirm-card .confirm-recipient {
    padding: 14px;
    background: rgba(30,107,94,.04);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(30,107,94,.08);
}

.gc-confirm-card .confirm-recipient .cr-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 4px;
}

.gc-confirm-card .confirm-recipient .cr-name {
    font-size: 16px;
    font-weight: 800;
    color: #1a3530;
}

.gc-confirm-card .confirm-recipient .cr-phone {
    font-size: 13px;
    color: #64748b;
    direction: ltr;
    display: inline-block;
}


/* ── Toast ──────────────────────────────────────────────────── */

.gc-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    z-index: 99999;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 8px 28px rgba(0,0,0,.2);
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-toast.show {
    transform: translateX(-50%) translateY(0);
}

.gc-toast.success {
    background: linear-gradient(135deg, #1e6b5e, #3a9b8f);
}

.gc-toast.error {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}


/* ── Loading ────────────────────────────────────────────────── */

.gc-loading {
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
}

.gc-loading i {
    font-size: 30px;
    display: block;
    margin-bottom: 10px;
    color: #d4a574;
}


/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
    .gc-hero h1 { font-size: 24px; }
    .gc-hero { padding: 30px 16px; }
    .gc-grid { grid-template-columns: 1fr; gap: 20px; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .wiz-nav { flex-direction: column-reverse; }
    .btn-wiz-prev,
    .btn-wiz-next,
    .btn-wiz-submit { width: 100%; justify-content: center; }
    .gc-confirm-card { padding: 36px 20px; margin: 0 12px; }
    .page-header-back { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 420px) {
    .gc-page { padding: 16px 12px 60px; }
    .gc-wizard-container { padding: 12px 0; }
    .gc-step-card { padding: 20px 16px; }
    .wiz-step__num { width: 34px; height: 34px; font-size: 12px; }
    .wiz-step__label { font-size: 10px; }
}
/* ── Wizard Steps Progress Bar ──────────────────────────────── */

.wiz-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    position: relative;
}

.wiz-steps::before {
    content: '';
    position: absolute;
    top: 17px;
    right: 15%;
    left: 15%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.wiz-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
    cursor: default;
}

.wiz-step__num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    border: 2.5px solid transparent;
}

.wiz-step__label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    transition: color .3s;
    white-space: nowrap;
}

.wiz-step.active .wiz-step__num {
    background: linear-gradient(135deg, #d4a574, #c49464);
    color: #fff;
    border-color: rgba(212,165,116,.3);
    box-shadow: 0 4px 14px rgba(212,165,116,.35);
}

.wiz-step.active .wiz-step__label {
    color: #d4a574;
}

.wiz-step.done .wiz-step__num {
    background: linear-gradient(135deg, #1e6b5e, #3a9b8f);
    color: #fff;
    border-color: rgba(30,107,94,.2);
}

.wiz-step.done .wiz-step__label {
    color: #1e6b5e;
}


/* ── Wizard Panels ───────────────────────────────────────────── */

.wiz-panel {
    display: none;
}

.wiz-panel.active {
    display: block;
    animation: wizFadeIn .3s ease;
}

@keyframes wizFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ── Wizard Navigation Buttons ──────────────────────────────── */

.wiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 0 4px;
}

.btn-wiz-next,
.btn-wiz-prev,
.btn-wiz-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all .3s;
}

.btn-wiz-next {
    background: linear-gradient(135deg, #d4a574, #c49464);
    color: #fff;
    box-shadow: 0 4px 16px rgba(212,165,116,.3);
    margin-right: auto;
}

.btn-wiz-next:hover {
    background: linear-gradient(135deg, #e8a35a, #d4a574);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,165,116,.4);
}

.btn-wiz-prev {
    background: transparent;
    color: #64748b;
    border: 1.5px solid #e5e7eb;
}

.btn-wiz-prev:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.btn-wiz-submit {
    background: linear-gradient(135deg, #1e6b5e, #3a9b8f);
    color: #fff;
    box-shadow: 0 4px 16px rgba(30,107,94,.3);
    margin-right: auto;
}

.btn-wiz-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,107,94,.4);
}

.btn-wiz-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}


/* ── Page Header with Back Link ─────────────────────────────── */

.page-header-back {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(212,165,116,.12);
}

.page-header-back h1 {
    font-size: 20px;
    font-weight: 900;
    color: #1a3530;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header-back h1 i {
    color: #d4a574;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(212,165,116,.06);
    border: 1px solid rgba(212,165,116,.12);
    color: #d4a574;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

.back-link:hover {
    background: rgba(212,165,116,.12);
    color: #c49464;
}