/* ==========================
   Gold CTA — White subtle prestige
   ========================== */
:root {
    --card-bg: #ffffff;
    --accent-gold-1: #f7d7a6;
    /* pale gold */
    --accent-gold-2: #c9a94f;
    /* deep gold */
    --accent-muted: #e9d9b7;
    --text: #1f2a37;
    --muted: #6b7280;
    --shadow-dark: rgba(31, 42, 55, 0.08);
    --gold-glow: rgba(201, 169, 79, 0.12);
    --inner-max: 1100px;
    --radius: 12px;
}

/* container — full width but inner constrained */
.gold-cta.full-width.light-subtle {
    width: 100%;
    padding: 2px 4vw;
    box-sizing: border-box;
    background: linear-gradient(229deg, #ffd400 0%, #ffb51c 100%);
    position: relative;
    overflow: visible;
    margin: 41px 0;
    border-radius: var(--radius);
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    box-shadow: 16px 12px 57px rgb(0 0 0 / 16%);
    border: 1px solid rgb(235 235 235 / 54%);
}

/* inner content width */
.gold-cta .inner {
    max-width: var(--inner-max);
    z-index: 2;
    position: relative;
    top: -12px;
}

/* soft gold halo behind the card (subtle prestige) */
.gold-cta .glow-ring {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: -8px;
    bottom: -8px;
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(90deg, rgba(255, 233, 176, 0.10), rgba(201, 169, 79, 0.06));
    filter: blur(14px);
    pointer-events: none;
    z-index: 1;
}

/* header */
.cta-header {
    text-align: right;
    margin-bottom: 6px;
    z-index: 2;
}

.cta-header .badge {
    display: inline-block;
    background: white;
    color: #000000;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 20px;
    font-size: 13px;
    box-shadow: 0 6px 18px rgb(118 118 118 / 12%);
}

.cta-header .title {
    font-size: 27px;
    color: #000000;
    text-align: center;
    letter-spacing: .2px;
}

.cta-header .sub {
    font-size: 16px;
    padding: 14px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
}

/* main layout */
.cta-main {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 2;
}

/* visual coin */
.visual {
    min-width: 100px;
    width: 110px;
    height: 110px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffaf0, #fff6e6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(31, 42, 55, 0.04);
    border: 1px solid rgba(31, 42, 55, 0.03);
    flex-shrink: 0;
    transition: transform .36s cubic-bezier(.2, .9, .2, 1);
    position: relative;
}

.visual::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 6px 18px rgba(201, 169, 79, 0.06) inset;
    pointer-events: none;
}

.visual.bounce {
    animation: coin-bounce .56s cubic-bezier(.2, .8, .2, 1);
    transform-origin: 50% 70%;
}

@keyframes coin-bounce {
    0% {
        transform: translateY(0) rotate(-2deg)
    }

    30% {
        transform: translateY(-10px) rotate(2deg)
    }

    60% {
        transform: translateY(-4px) rotate(-1deg)
    }

    100% {
        transform: translateY(0) rotate(0)
    }
}

/* controls */
.controls {
    min-width: 220px;
    z-index: 2;
}

.qty {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 12px;
}

.unit-label {
    font-size: 13px;
    color: var(--muted);
    margin-right: 8px;
}

/* circle buttons */
.circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(180deg, var(--accent-gold-2), var(--accent-gold-1));
    color: #3b2a12;
    font-weight: 800;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(201, 169, 79, 0.10), inset 0 -3px 6px rgba(0, 0, 0, 0.04);
    transition: transform .12s ease, box-shadow .12s, filter .12s;
    position: relative;
    overflow: hidden;
}

.circle-btn:active {
    transform: translateY(1px) scale(.98);
    outline: none;
}

.circle-btn:focus {
    box-shadow: 0 6px 16px rgba(201, 169, 79, 0.16);
}

/* ripple element */
.circle-btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    opacity: .9;
    animation: ripple 600ms ease-out;
    background: rgba(255, 255, 255, 0.65);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(3.2);
        opacity: 0;
    }
}

/* qty input */
.qty-input {
    width: 86px;
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    background: #fff;
    color: var(--text);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(31, 42, 55, 0.06);
    box-shadow: 0 6px 14px rgba(31, 42, 55, 0.04) inset;
}

/* price area */
.price-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    text-align: right;
}

.price-label {
    font-size: 12px;
    color: var(--muted);
}

.price-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 8px;
    transition: box-shadow .28s, transform .18s;
    padding: 6px 8px;
    border-radius: 8px;
}

.price-value.pulse {
    box-shadow: 0 8px 28px rgba(201, 169, 79, 0.12);
    transform: translateY(-2px) scale(1.01);
}

.price-value .currency {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    margin-top: 4px;
}

.gram-eq {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

/* CTA button (more elegant) */
.cta-btn {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #ffffff, #ffffff);
    color: #000000;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(201, 169, 79, 0.12);
    position: relative;
    overflow: hidden;
    transition: transform .14s ease, box-shadow .14s;
}

.cta-btn:active {
    transform: translateY(2px);
}

.cta-btn::after {
    content: "";
    position: absolute;
    left: -40%;
    top: -60%;
    width: 40%;
    height: 220%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
    transform: rotate(25deg);
    filter: blur(8px);
    animation: sheen 2.8s infinite linear;
    opacity: 0.95;
}

@keyframes sheen {
    0% {
        left: -60%
    }

    50% {
        left: 130%
    }

    100% {
        left: 130%
    }
}

.cta-btn .btn-sub {
    display: block;
    font-size: 12px;
    color: rgba(59, 42, 18, 0.9);
    margin-top: 4px;
}

/* description — made more legible & scannable */
.cta-desc {
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    text-align: justify;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.0), rgba(245, 243, 238, 0.02));
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(31, 42, 55, 0.02);
    box-shadow: 0 6px 18px rgba(31, 42, 55, 0.03) inset;
}

/* hover subtle lift */
.gold-cta.full-width.light-subtle:hover {
    transform: translateY(-3px);
    transition: transform .18s ease, box-shadow .18s;
}

/* responsive */
@media (max-width:920px) {
    .visual {
        width: 96px;
        height: 96px;
    }

    .qty-input {
        width: 72px;
    }

    .price-value {
        font-size: 18px;
    }
}

@media (max-width:640px) {
    .cta-main {
        flex-direction: column;
        align-items: stretch;
    }

    .visual {
        width: 100%;
        height: 80px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-left: 14px;
        box-sizing: border-box;
    }

    .qty {
        justify-content: center;
        margin: 23px 0px;
    }

    .unit-label {
        margin-right: 4px;
    }

    .qty-input {
        width: 64px;
    }

    .cta-btn::after {
        display: none;
    }

    /* remove sheen for perf */
}

@media (max-width:420px) {
    .visual {
        display: none;
    }

    .qty-input {
        width: 56px;
        font-size: 15px;
        padding: 8px;
    }

    .cta-btn {
        padding: 7px;
        font-size: 15px;
    }
}

/* wrapper */
.cta-desc-article {
    direction: rtl;
    max-width: var(--desc-max);
    margin: 12px 0 0 0;
    padding: 14px;
    box-sizing: border-box;
    color: var(--lead-color);
    line-height: 1.75;
    font-size: 15px;
    border-radius: 10px;
    /* subtle backing to separate from pure-white page without harsh contrast */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(31, 42, 55, 0.03);
    box-shadow: 0 6px 18px rgba(31, 42, 55, 0.03) inset;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Peyda", "Vazirmatn", "Tahoma", "Segoe UI", sans-serif;
}

/* title */
.cta-desc-article .desc-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--title-color);
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* lead paragraph (short intro) */
.cta-desc-article .lead {
    margin: 0 0 12px 0;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--lead-color);
    background: linear-gradient(90deg, rgba(201, 169, 79, 0.03), rgba(255, 255, 255, 0));
    padding: 8px 10px;
    border-radius: 8px;
}

/* small headings inside */
.cta-desc-article .mini-heading {
    margin: 12px 0 6px 0;
    font-size: 14px;
    color: var(--title-color);
    font-weight: 700;
}

/* muted explanatory text */
.cta-desc-article .muted {
    margin: 0 0 12px 0;
    color: var(--muted-color);
    font-size: 14px;
}

/* benefits list — custom golden bullets */
.cta-desc-article .benefits {
    margin: 6px 0 12px 18px;
    padding: 0;
    list-style: none;
    color: var(--lead-color);
}

.cta-desc-article .benefits li {
    position: relative;
    padding: 8px 12px 8px 28px;
    margin: 6px 0;
    border-radius: 8px;
    background: linear-gradient(180deg, rgb(154 107 25 / 6%), rgb(226 129 7 / 6%));
    transition: background .18s ease, transform .12s ease;
}

.cta-desc-article .benefits li::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: conic-gradient(from 180deg at 50% 50%, var(--gold-strong), var(--gold-pale));
    box-shadow: 0 2px 6px rgba(201, 169, 79, 0.18);
}

/* callout box (actionable tip) */
.cta-desc-article .callout {
    margin: 12px 0 0 0;
    padding: 12px;
    border-radius: var(--radius-desc);
    background: var(--callout-bg);
    border-left: 4px solid var(--gold-strong);
    color: #2b2f36;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(201, 169, 79, 0.04);
    line-height: 1.5;
}

/* final summary */
.cta-desc-article .summary {
    margin: 12px 0 0 0;
    font-weight: 700;
    color: var(--title-color);
    font-size: 15px;
    background: linear-gradient(90deg, rgba(255, 250, 240, 0.0), rgba(255, 250, 240, 0.02));
    padding: 8px 10px;
    border-radius: 8px;
}

/* hover & micro interactions */
.cta-desc-article .benefits li:hover {
    background: linear-gradient(90deg, rgba(255, 250, 240, 0.45), rgba(255, 255, 255, 0.6));
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(31, 42, 55, 0.04);
}

/* responsive tweaks */
@media (max-width: 820px) {
    .cta-desc-article {
        padding: 12px;
        font-size: 15px;
    }

    .cta-desc-article .desc-title {
        font-size: 17px;
    }

    .cta-desc-article .lead {
        font-size: 15px;
    }

    .cta-desc-article .benefits li {
        padding: 8px 10px 8px 26px;
        margin: 9px;
    }
}

@media (max-width: 420px) {
    .cta-desc-article {
        font-size: 14px;
        padding: 10px;
    }

    .cta-desc-article .lead {
        font-size: 14px;
    }

    .cta-desc-article .desc-title {
        font-size: 16px;
    }
}


.blog-mobile {
    display: none;
}

@media (max-width: 800px) {
    .blog-mobile {
        display: block;
    }

    .blog-desktop {
        display: none;
    }
}


.category-wrap {
    width: 100%;
    max-width: 1200px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    align-items: start;
}

.category-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.15));
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-elev);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.category-card:hover,
.category-card:focus {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover-elev);
    background: linear-gradient(180deg, rgba(93, 211, 255, 0.06), rgba(0, 0, 0, 0.2));
    outline: none;
}

.category-img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #081023, #0b1630);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin: 0;
    color: var(--text);
}

.category-subtitle {
    font-size: 14px;
    color: var(--subtitle);
    margin: 0;
}

@media (max-width: 1000px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-img {
        max-width: 180px;
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-img {
        max-width: 140px;
    }

    .category-card {
        padding: 14px;
        gap: 12px;
    }

    .category-title {
        font-size: 16px;
    }

    .category-subtitle {
        font-size: 12px;
    }
}

.lic-container {
    display: flex;
    flex-direction: column;
    /* موبایل پیش‌فرض ستونی */
    gap: 12px;
    background-color: #f8f8f8;
    padding: 20px;
}

/* باکس‌ها در موبایل: آیکون راست، متن چپ */
.lic-item {
    display: flex;
    align-items: center;
}

.lic-icon {
    font-size: 28px;
    margin-right: 8px;
}

.lic-text {
    font-size: 16px;
}

/* دسکتاپ */
@media (min-width: 768px) {
    .lic-container {
        flex-direction: row;
        /* افقی کنار هم */
        justify-content: space-between;
        text-align: center;
    }

    .lic-item {
        flex-direction: column;
        /* آیکون بالا متن پایین */
        align-items: center;
        flex: 1;
        /* همه مساوی عرض بگیرن */
    }

    .lic-icon {
        margin: 0 0 8px 0;
        /* فاصله فقط پایین */
    }

    .lic-text {
        margin: 0;
    }
}



.lic-tabs {
    width: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 9px;
}

.lic-tab-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.lic-tab-header button {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lic-tab-header button.active {
    color: #000000;
    border-bottom: 4px solid #fecd06;
}

.lic-tab-content {
    display: none;
    padding: 17px;
}

.lic-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lic-form-group {
    margin-bottom: 16px;
}

.lic-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

.lic-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s ease;
}

.selects-lic-cus {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s ease;
    appearance: none;
    /* فلش پیش‌فرض مرورگر حذف میشه */
    background-size: 16px;
    cursor: pointer;
}

.selects-lic-cus:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

/* استایل گزینه‌های داخل سلکت */
.selects-lic-cus option {
    padding: 10px;
    font-size: 14px;
    background: #fff;
    color: #333;
}

/* وقتی گزینه انتخاب شده/هاور میشه */
.selects-lic-cus option:hover,
.selects-lic-cus option:checked {
    background: #f1f1f1;
}


.lic-form-group input:focus {
    border-color: #fcc909;
    outline: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lic-form-group {
    margin-bottom: 15px;
}

.lic-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.lic-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: all 0.3s ease;
}

.lic-form-group input:focus {
    border-color: #f5b100;
    box-shadow: 0 0 8px rgba(245, 177, 0, 0.4);
}

.gold-price-hint {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.gold-price {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 9px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  color: #ffd700;
  font-family: "Peyda-Bold", sans-serif;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.25),
              inset 0 0 8px rgba(255, 200, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.35);
  position: relative;
  top: -35px;
  left: 26px;
}


/* دایره سبز تپنده */
.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ff62;
  position: relative;
  box-shadow: 0 0 8px rgba(0, 255, 98, 0.8);
}

.pulse::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 255, 98, 0.5);
  transform: translate(-50%, -50%);
  animation: pulseAnim 1.5s infinite;
}

@keyframes pulseAnim {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

.gold-price .label {
  font-size: 14px;
  font-weight: 500;
  color: #aaa;
}

.gold-price .value {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #ffd700, #ffae00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 8px rgba(255, 200, 0, 0.6);
}

.gold-price .value small {
  font-size: 13px;
  color: #ccc;
  -webkit-text-fill-color: #ccc;
}


@media (max-width: 800px){
    .gold-price{
        left: 4px;
        top: -22px;
    }
    .gold-price .value{
        font-size: 16px;
    }
}