/* ==========================================================================
   أغلى هدية — gift page, e-card, preview dialog, home section and menu link.
   Colours follow the site: green #0c4d45 and gold #ceb061.
   The site stylesheet resets line-height to 1, paints links white and hides every
   radio input, so each rule below is scoped and sets those explicitly.
   ========================================================================== */

:root {
    --gift-green: #0c4d45;
    --gift-green-dark: #08362f;
    --gift-green-light: #11685c;
    --gift-green-soft: #eef6f4;
    --gift-gold: #ceb061;
    --gift-gold-deep: #8a6d27;   /* gold that stays readable on white */
    --gift-cream: #fbf7ec;
    --gift-ink: #3a3a3a;
    --gift-muted: #777;
    --gift-line: #e8e2d2;
    --gift-ok: #0f7a4f;
    --gift-error: #b3261e;
}

/* ---------- Page shell ---------- */

.gift-page {
    padding: 10px 0 60px;
    line-height: 1.7;
    color: var(--gift-ink);
    background: linear-gradient(180deg, #fff 0, #fff 380px, var(--gift-cream) 100%);
}

/* Elements toggled by the script must stay hidden whatever their display style. */
.gift-page [hidden],
.gift-preview-modal [hidden] {
    display: none !important;
}

.gift-page a {
    color: var(--gift-green);
}

.gift-page a:hover {
    color: var(--gift-green-dark);
}

/* ---------- Hero: logo tab, calligraphy title, gift box, slogan ---------- */

.gift-hero {
    position: relative;
    max-width: 920px;
    margin: 10px auto 0;
    padding: 0 34px 24px;
    border: 1px solid rgba(206, 176, 97, .55);
    border-radius: 22px;
    background:
        radial-gradient(circle at 24% 50%, rgba(206, 176, 97, .38) 0, transparent 34%),
        linear-gradient(160deg, var(--gift-green-light) 0%, var(--gift-green) 52%, var(--gift-green-dark) 100%);
    box-shadow: 0 14px 34px rgba(12, 77, 69, .22);
    text-align: center;
    overflow: hidden;
}

.gift-hero-logo {
    display: block;
    height: 62px;
    margin: 0 auto 6px;
    border-radius: 0 0 16px 16px;
}

.gift-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
}

.gift-page h1.gift-hero-title {
    width: auto;
    margin: 0;
}

.gift-page h1.gift-hero-title:before,
.gift-page h1.gift-hero-title:after {
    content: none;
    display: none;
}

.gift-hero-title img {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
}

.gift-hero-box {
    width: 190px;
    height: auto;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35));
}

.gift-hero-slogan {
    margin: 12px 0 0;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
}

.gift-intro {
    max-width: 680px;
    margin: 18px auto 26px;
    text-align: center;
    font-size: 15px;
    color: var(--gift-muted);
}

.gift-alert {
    max-width: 920px;
    margin: 0 auto 18px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
}

.gift-alert-error {
    background: #fdecea;
    border: 1px solid #f3c4bf;
    color: #7d1d15;
}

.gift-alert-info {
    background: var(--gift-cream);
    border: 1px solid #ecdcae;
    color: #5c4a14;
}

/* ---------- Steps indicator ---------- */

.gift-steps {
    display: flex;
    max-width: 620px;
    margin: 0 auto 24px;
    padding: 0;
}

.gift-steps li {
    position: relative;
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--gift-muted);
}

/* connector towards the previous step (RTL: the previous step is on the right) */
.gift-steps li + li::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e3ded0;
}

.gift-steps li.is-done + li::before,
.gift-steps li.is-done + li.is-active::before {
    background: var(--gift-gold);
}

.gift-step-num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    border: 2px solid #ddd7c6;
    border-radius: 50%;
    background: #fff;
    font-size: 16px;
    font-weight: 700;
    color: var(--gift-muted);
}

.gift-steps li.is-active {
    color: var(--gift-green);
    font-weight: 700;
}

.gift-steps li.is-active .gift-step-num {
    border-color: var(--gift-green);
    background: var(--gift-green);
    color: #fff;
}

.gift-steps li.is-done .gift-step-num {
    border-color: var(--gift-gold);
    background: var(--gift-gold);
    color: var(--gift-green-dark);
}

.gift-step-label {
    display: block;
}

/* ---------- Panels ---------- */

.gift-panel {
    max-width: 920px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid var(--gift-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(12, 77, 69, .07);
}

.gift-panel[hidden] {
    display: none;
}

.gift-panel h2.gift-section-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: var(--gift-green);
}

.gift-section-sub {
    margin: 0 0 18px;
    text-align: center;
    font-size: 14px;
    color: var(--gift-gold-deep);
}

.gift-block + .gift-block {
    margin-top: 30px;
}

.gift-block-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gift-green);
}

.gift-block-title .fa {
    margin-left: 6px;
    color: var(--gift-gold);
}

/* Radio and checkbox inputs stay focusable but invisible (the site hides radios entirely). */
.gift-page .gift-option {
    position: relative;
    display: block;
    margin: 0;
    font-weight: normal;
}

.gift-page .gift-option input {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
}

/* ---------- Step 1: gift type cards ---------- */

.gift-types {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gift-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 18px 10px 14px;
    border: 2px solid var(--gift-line);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.gift-type-card:hover {
    border-color: #b9d3cd;
    transform: translateY(-2px);
}

.gift-type-card img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.gift-type-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--gift-gold-deep);
}

.gift-tick {
    position: absolute;
    top: 10px;
    left: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gift-green);
    color: #fff;
    font-size: 12px;
}

.gift-option input:checked + .gift-type-card {
    border-color: var(--gift-green);
    background: var(--gift-green-soft);
    box-shadow: 0 10px 22px rgba(12, 77, 69, .14);
}

.gift-option input:checked + .gift-type-card .gift-type-name {
    color: var(--gift-green);
}

.gift-option input:checked + .gift-type-card .gift-tick {
    display: inline-flex;
}

.gift-option input:focus-visible + .gift-type-card,
.gift-option input:focus-visible + .gift-amount-pill,
.gift-option input:focus-visible + .gift-track-card .gift-diamond {
    outline: 3px solid var(--gift-gold);
    outline-offset: 3px;
}

/* ---------- Step 1: track diamonds (the site's diamond shape, in green and gold) ---------- */

.gift-tracks {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 34px 60px;
    padding: 34px 0 10px;
}

.gift-track-card {
    display: block;
    width: 168px;
    text-align: center;
    cursor: pointer;
}

.gift-diamond {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 118px;
    margin: 0 auto;
    border: 3px solid rgba(206, 176, 97, .55);
    border-radius: 28px;
    background: linear-gradient(135deg, var(--gift-green-light) 0%, var(--gift-green) 55%, var(--gift-green-dark) 100%);
    box-shadow: 0 12px 24px rgba(12, 77, 69, .25);
    transform: rotate(45deg);
    transition: box-shadow .15s, border-color .15s, transform .15s;
}

.gift-diamond span {
    max-width: 104px;
    transform: rotate(-45deg);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}

.gift-track-card:hover .gift-diamond {
    transform: rotate(45deg) scale(1.04);
}

.gift-option input:checked + .gift-track-card .gift-diamond {
    border-color: var(--gift-gold);
    box-shadow: 0 0 0 5px rgba(206, 176, 97, .45), 0 14px 28px rgba(12, 77, 69, .35);
}

.gift-track-state {
    display: block;
    margin-top: 30px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gift-green);
    visibility: hidden;
}

.gift-option input:checked + .gift-track-card .gift-track-state {
    visibility: visible;
}

.gift-track-note {
    margin: 4px auto 0;
    max-width: 560px;
    text-align: center;
    font-size: 13px;
    color: var(--gift-muted);
}

/* ---------- Step 2: amounts and fields ---------- */

.gift-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gift-amount-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 104px;
    padding: 10px 18px;
    border: 2px solid var(--gift-line);
    border-radius: 999px;
    background: #fff;
    font-size: 16px;
    font-weight: 700;
    color: var(--gift-ink);
    cursor: pointer;
}

.gift-amount-pill small {
    font-size: 12px;
    font-weight: normal;
}

.gift-option input:checked + .gift-amount-pill {
    border-color: var(--gift-green);
    background: var(--gift-green);
    color: #fff;
}

.gift-amount-other {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 260px;
    margin-top: 12px;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}

.gift-field {
    margin-bottom: 18px;
}

.gift-page .gift-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
}

.gift-label .req {
    color: var(--gift-error);
}

.gift-label .opt {
    font-size: 12px;
    font-weight: normal;
    color: var(--gift-muted);
}

.gift-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d6d2c6;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    color: var(--gift-ink);
}

.gift-input:focus {
    border-color: var(--gift-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(12, 77, 69, .12);
}

.gift-phone {
    display: flex;
    align-items: stretch;
    direction: ltr;
    border: 1px solid #d6d2c6;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.gift-phone:focus-within {
    border-color: var(--gift-green);
    box-shadow: 0 0 0 3px rgba(12, 77, 69, .12);
}

.gift-phone-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-right: 1px solid #d6d2c6;
    background: #f4f6f5;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
    white-space: nowrap;
    color: #444;
}

.gift-phone input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 0;
    background: transparent;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    text-align: left;
    color: var(--gift-ink);
}

.gift-phone input:focus {
    outline: none;
}

.gift-phone input[readonly] {
    background: #fafafa;
    color: #666;
}

/* The button moves under the number when the column is too narrow for both. */
.gift-phone-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gift-phone-row .gift-phone {
    flex: 1 1 220px;
}

.gift-phone-row .gift-btn {
    flex: 0 0 auto;
}

.gift-otp {
    margin-top: 12px;
    padding: 14px;
    border-radius: 12px;
    background: var(--gift-cream);
}

.gift-otp-row {
    display: flex;
    gap: 10px;
}

.gift-otp-input {
    max-width: 180px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 20px;
    letter-spacing: 6px;
    text-align: center;
    direction: ltr;
}

.gift-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--gift-muted);
}

.gift-verified {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--gift-ok);
}

.gift-field-error {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--gift-error);
}

.gift-field-error:empty {
    display: none;
}

.has-error .gift-input,
.has-error .gift-phone {
    border-color: var(--gift-error);
}

.gift-checks {
    margin-top: 6px;
}

.gift-page .gift-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
}

.gift-check-row input {
    flex: none;
    width: 19px;
    height: 19px;
    margin: 3px 0 0;
    accent-color: var(--gift-green);
}

/* ---------- Buttons ---------- */

.gift-page .gift-btn,
.gift-promo .gift-btn,
.gift-preview-modal .gift-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.gift-page .gift-btn-primary {
    background: var(--gift-green);
    color: #fff;
}

.gift-page .gift-btn-primary:hover,
.gift-page .gift-btn-primary:focus {
    background: var(--gift-green-dark);
    color: #fff;
}

.gift-page .gift-btn-outline {
    border-color: var(--gift-green);
    background: #fff;
    color: var(--gift-green);
}

.gift-page .gift-btn-outline:hover {
    background: var(--gift-green-soft);
    color: var(--gift-green-dark);
}

.gift-page .gift-btn-quiet {
    background: transparent;
    color: var(--gift-muted);
}

.gift-page .gift-btn-quiet:hover {
    color: var(--gift-green);
}

.gift-page .gift-btn-small {
    padding: 9px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.gift-page .gift-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.gift-page .gift-link {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--gift-green);
    text-decoration: underline;
    cursor: pointer;
}

.gift-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gift-line);
}

.gift-actions-end {
    justify-content: flex-end;
}

/* ---------- Step 3: summary and payment ---------- */

.gift-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.gift-summary-list {
    margin: 0;
    border: 1px solid var(--gift-line);
    border-radius: 16px;
    overflow: hidden;
}

.gift-summary-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    font-size: 14px;
}

.gift-summary-list div:nth-child(even) {
    background: #f8f7f2;
}

.gift-summary-list dt {
    font-weight: normal;
    color: var(--gift-muted);
}

.gift-summary-list dd {
    margin: 0;
    font-weight: 700;
    text-align: left;
    color: var(--gift-ink);
}

.gift-pay-box {
    padding: 22px;
    border-radius: 18px;
    background: var(--gift-cream);
    text-align: center;
}

.gift-pay-box img {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.gift-total {
    margin: 6px 0 14px;
    font-size: 24px;
    font-weight: 700;
    color: var(--gift-green);
}

.gift-page .gift-pay-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.gift-secure {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--gift-muted);
}

.gift-permits {
    max-width: 920px;
    margin: 22px auto 0;
    text-align: center;
    font-size: 12px;
    color: var(--gift-muted);
}

/* ---------- The e-card (card page and preview) ---------- */

.gift-ecard {
    position: relative;
    max-width: 430px;
    margin: 0 auto;
    border: 1px solid rgba(206, 176, 97, .45);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(12, 77, 69, .18);
    overflow: hidden;
    text-align: center;
    line-height: 1.8;
    color: var(--gift-ink);
}

.gift-ecard-top {
    padding: 0 20px 46px;
    background:
        radial-gradient(circle at 50% 110%, rgba(206, 176, 97, .35) 0, transparent 55%),
        linear-gradient(160deg, var(--gift-green-light) 0%, var(--gift-green) 55%, var(--gift-green-dark) 100%);
}

.gift-ecard-logo {
    display: block;
    height: 54px;
    margin: 0 auto;
    border-radius: 0 0 14px 14px;
}

.gift-ecard h2.gift-ecard-title {
    width: auto;
    margin: 12px 0 0;
}

.gift-ecard-title img {
    display: block;
    width: 130px;
    height: auto;
    margin: 0 auto;
}

.gift-ecard-body {
    position: relative;
    margin-top: -30px;
    padding: 22px 26px 18px;
    border-radius: 24px 24px 0 0;
    background: #fff;
}

.gift-ecard-to {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--gift-muted);
}

.gift-ecard-to strong,
.gift-ecard-from strong {
    color: var(--gift-green);
}

.gift-ecard-subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--gift-gold-deep);
}

.gift-ecard-box {
    display: block;
    width: 104px;
    height: 104px;
    margin: 8px auto 6px;
    object-fit: contain;
}

.gift-ecard-message {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 2;
}

.gift-ecard-track {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--gift-green-soft);
    font-size: 14px;
    color: var(--gift-green);
}

.gift-ecard-amount {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--gift-green);
    font-size: 14px;
    color: var(--gift-gold);
}

.gift-ecard-amount .en {
    color: var(--gift-gold);
}

.gift-ecard-from {
    margin: 0;
    font-size: 17px;
}

.gift-ecard-date {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--gift-muted);
}

.gift-ecard-footer {
    padding: 14px 18px 12px;
    background: var(--gift-green);
}

.gift-ecard-slogan {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--gift-gold);
}

.gift-ecard-permit {
    margin: 2px 0 0;
    font-size: 11px;
    color: rgba(255, 255, 255, .78);
}

.gift-ecard-watermark {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-24deg);
    font-size: 54px;
    font-weight: 700;
    color: rgba(12, 77, 69, .07);
    pointer-events: none;
    white-space: nowrap;
}

/* ---------- Card page ---------- */

.gift-card-page {
    padding-top: 30px;
}

.gift-card-intro {
    margin: 0 0 18px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--gift-green);
}

.gift-card-intro .fa {
    color: var(--gift-gold);
}

.gift-card-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px auto 0;
}

.gift-share {
    max-width: 430px;
    margin: 18px auto 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px dashed #dccfa6;
    text-align: center;
    font-size: 13px;
}

.gift-share-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* ---------- Preview dialog ---------- */

/* The site header sits at z-index 1000000; the dialog (and its backdrop, set by gift.js) go above it. */
.gift-preview-modal {
    z-index: 1000002;
}

.gift-preview-modal .modal-dialog {
    width: auto;
    max-width: 480px;
    margin: 30px auto;
}

.gift-preview-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    line-height: 1.6;
}

.gift-preview-modal .modal-header {
    border-bottom: 1px solid var(--gift-line);
}

.gift-preview-modal .modal-title {
    font-weight: 700;
    color: var(--gift-green);
}

.gift-preview-modal .close {
    float: left;
}

.gift-preview-modal .modal-body {
    background: #f6f8f7;
}

.gift-preview-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    border-radius: 12px;
    background: #e5eeeb;
}

.gift-preview-tabs button {
    flex: 1;
    padding: 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--gift-muted);
}

.gift-preview-tabs button.is-active {
    background: #fff;
    color: var(--gift-green);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.gift-preview-pane {
    display: none;
}

.gift-preview-pane.is-active {
    display: block;
}

.gift-preview-loading {
    padding: 40px 0;
    text-align: center;
    color: var(--gift-muted);
}

.gift-sms-phone {
    max-width: 300px;
    min-height: 330px;
    margin: 0 auto;
    padding: 18px 14px;
    border: 9px solid #222;
    border-radius: 34px;
    background: #fff;
}

.gift-sms-sender {
    margin-bottom: 14px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

.gift-sms-bubble {
    max-width: 94%;
    padding: 11px 14px;
    border-radius: 18px 18px 18px 4px;
    background: #e9e9ee;
    font-size: 14px;
    line-height: 1.8;
    color: #111;
    white-space: pre-line;
    word-break: break-word;
}

/* ---------- Home page section ---------- */

.gift-promo {
    padding: 34px 0 6px;
}

.gift-promo-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 22px 34px;
    border: 1px solid rgba(206, 176, 97, .55);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 50%, rgba(206, 176, 97, .38) 0, transparent 26%),
        linear-gradient(160deg, var(--gift-green-light) 0%, var(--gift-green) 55%, var(--gift-green-dark) 100%);
    box-shadow: 0 16px 34px rgba(12, 77, 69, .22);
    color: #fff;
    line-height: 1.7;
    overflow: hidden;
}

.gift-promo-card img.gift-promo-box {
    flex: none;
    width: 124px;
    height: 124px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .3));
}

.gift-promo-text {
    flex: 1;
    min-width: 0;
}

.gift-promo-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    background: rgba(206, 176, 97, .2);
    font-size: 12px;
    color: var(--gift-gold);
}

.gift-promo h2.gift-promo-title {
    margin: 6px 0 4px;
}

.gift-promo-title img {
    display: block;
    height: 82px;
    width: auto;
}

.gift-promo-slogan {
    margin: 0 0 10px;
    font-size: 15px;
    color: #fff;
}

.gift-promo-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.gift-promo-types li {
    padding: 3px 12px;
    border: 1px solid rgba(206, 176, 97, .6);
    border-radius: 999px;
    font-size: 13px;
    color: #fff;
}

.gift-promo .gift-btn-gold {
    flex: none;
    background: var(--gift-gold);
    color: var(--gift-green-dark);
}

.gift-promo .gift-btn-gold:hover,
.gift-promo .gift-btn-gold:focus {
    background: #fff;
    color: var(--gift-green-dark);
}

/* ---------- Header links ---------- */

nav .upper .navbar-nav > li > a.gift-nav-link {
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    background: var(--gift-green);
    color: #fff;
    font-weight: 700;
}

nav .upper .navbar-nav > li > a.gift-nav-link .fa {
    color: var(--gift-gold);
    margin-left: 4px;
}

nav .upper .navbar-nav > li > a.gift-nav-link:hover {
    background: var(--gift-green-dark);
    color: #fff;
}

.mobile-header ul li.gift-mobile a {
    font-size: 14px;
    color: var(--gift-gold);
    font-weight: 700;
}

.mobile-header ul li.gift-mobile a .fa {
    font-size: 16px;
    margin-left: 3px;
}

/* ---------- Small screens ---------- */

@media (max-width: 992px) {
    .gift-page {
        padding-top: 20px;
    }
}

@media (max-width: 767px) {
    .gift-hero {
        padding: 0 16px 18px;
        border-radius: 18px;
        background:
            radial-gradient(circle at 22% 52%, rgba(206, 176, 97, .38) 0, transparent 40%),
            linear-gradient(160deg, var(--gift-green-light) 0%, var(--gift-green) 52%, var(--gift-green-dark) 100%);
    }

    .gift-hero-logo {
        height: 48px;
    }

    .gift-hero-main {
        gap: 10px;
    }

    .gift-hero-title img {
        width: 150px;
    }

    .gift-hero-box {
        width: 112px;
    }

    .gift-hero-slogan {
        font-size: 15px;
    }

    .gift-panel {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .gift-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gift-type-card img {
        width: 80px;
        height: 80px;
    }

    /* Three diamonds in one row on a 375px phone. */
    .gift-tracks {
        gap: 26px 18px;
        padding-top: 22px;
    }

    .gift-track-card {
        width: 88px;
    }

    .gift-diamond {
        width: 70px;
        height: 70px;
        border-radius: 17px;
    }

    .gift-diamond span {
        max-width: 70px;
        font-size: 12px;
    }

    .gift-track-state {
        margin-top: 20px;
        font-size: 12px;
    }

    .gift-grid,
    .gift-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .gift-phone-row,
    .gift-otp-row {
        flex-wrap: wrap;
    }

    .gift-phone-row .gift-btn,
    .gift-otp-row .gift-btn {
        width: 100%;
    }

    .gift-otp-input {
        max-width: none;
    }

    .gift-amount-pill {
        min-width: 0;
        flex: 1 1 40%;
    }

    .gift-steps {
        margin-bottom: 18px;
    }

    .gift-step-label {
        font-size: 12px;
    }

    .gift-promo-card {
        flex-direction: column;
        padding: 22px 18px;
        text-align: center;
        background:
            radial-gradient(circle at 50% 18%, rgba(206, 176, 97, .38) 0, transparent 32%),
            linear-gradient(160deg, var(--gift-green-light) 0%, var(--gift-green) 55%, var(--gift-green-dark) 100%);
    }

    .gift-promo-card img.gift-promo-box {
        width: 100px;
        height: 100px;
    }

    .gift-promo-title img {
        height: 70px;
        margin: 0 auto;
    }

    .gift-promo-types {
        justify-content: center;
    }
}
