/* ============================================================
   SILVERSUN PWA — UNIFIED MOBILE STYLE
   ------------------------------------------------------------
   Single stylesheet for the whole PWA.
   Panel palette + reference Pasha mobile layout.
   ============================================================ */
:root {

    /* =========================
       CORE NAVY
       ========================= */

    --bg: #1f1a4e;
    --surface: #29245d;
    --surface-2: #332d70;
    --surface-3: #3d3779;

    /* =========================
       TEXT
       ========================= */

    --text: #ffffff;
    --text-2: #e8e7ef;
    --muted: #aaa8bb;
    --muted-2: #878497;

    /* =========================
       BORDERS
       ========================= */

    --border: rgba(255,255,255,.14);
    --border-soft: rgba(255,255,255,.08);

    /* =========================
       ACCENT
       ========================= */

    --brand: #8f8bb8;
    --brand-2: #c7c4d9;
    --brand-soft: rgba(255,255,255,.07);

    /* =========================
       PRICE
       ========================= */

    --sell: #ffffff;
    --buy: #d7d6df;

    /* =========================
       STATUS
       ========================= */

    --success: #7ed957;

    --danger: #e05252;
    --danger-soft: rgba(224,82,82,.14);

    --warning: #d9a441;
    --warning-soft: rgba(217,164,65,.14);

    /* =========================
       WHITE
       ========================= */

    --white: #ffffff;

    /* =========================
       SHADOW
       ========================= */

    --shadow-card:
        0 8px 24px rgba(0,0,0,.20);

    /* =========================
       COMPATIBILITY
       ========================= */

    --bg-body: var(--bg);
    --bg-card: var(--surface);
    --bg-soft: var(--surface-2);
    --bg-highlight: var(--brand-soft);

    --color-primary: var(--brand-2);
    --color-primary-dark: var(--brand);
    --color-primary-soft: var(--brand-soft);

    --text-main: var(--text-2);
    --text-strong: var(--text);
    --text-muted: var(--muted);
    --text-light: var(--muted-2);

    --price-sell: var(--sell);
    --price-buy: var(--buy);
    --price-shot: var(--sell);
--price-ounce: #f4f4f7;

    --status-online: var(--success);
    --status-offline: var(--danger);

    --sale-closed-bg: var(--danger-soft);
    --sale-closed-text: var(--danger);
    --sale-closed-border: rgba(224,82,82,.30);

    --border-light: var(--border-soft);
    --border-medium: var(--border);
	--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;

    --font-main:
        "Vazirmatn",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    --page-max-width: 520px;

    --page-padding:
        clamp(10px, 3.5vw, 18px);

    --section-gap:
        clamp(12px, 3vw, 18px);

    --price-font-size:
        clamp(14px, 4.1vw, 19px);

    --price-font-weight: 700;

    --weight-font-size:
        clamp(12px, 3.6vw, 16px);
}
/* ============================================================
   FONTS
   ============================================================ */

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================
   PASHA SILVER PWA
   MOBILE UI V4.1
   Designed for current index.html
   ========================================================== */


/* ==========================================================
   1. RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg-body);
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    margin: 0;
    padding: 0;

    direction: rtl;

    overflow-x: hidden;

    background: var(--bg-body);

    color: var(--text-main);

    font-family: var(--font-main);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font-family: inherit;
}

.hidden {
    display: none !important;
}


/* ==========================================================
   2. LOADING
   ========================================================== */

.loading-overlay {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 16px;

    padding: 30px;

    background: var(--bg);
    color: var(--text);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}
.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    width: clamp(90px, 30vw, 120px);
    height: auto;
    object-fit: contain;
}

.spinner {
    width: 36px;
    height: 36px;

    border: 3px solid rgba(255,255,255,.10);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: pasha-spin 0.65s linear infinite;
}

.loading-text {
    margin: 0;
  color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

@keyframes pasha-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ==========================================================
   3. APP CONTAINER
   ========================================================== */

.app-content {
    width: 100%;

    opacity: 0;

    transition: opacity 0.25s ease;
}

.app-content.visible {
    opacity: 1;
}

.pasha-app {
    width: 100%;
    max-width: 520px;

    min-height: 100vh;
    min-height: 100dvh;

    margin: 0 auto;

    padding:
        max(10px, env(safe-area-inset-top))
        clamp(10px, 3.5vw, 18px)
        max(28px, env(safe-area-inset-bottom));

    background: var(--bg);
}
/* ============================================================
   HEADER
   ============================================================ */

.pasha-header {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 74px;

    margin: 0 auto 12px;

    text-align: center;
}


.brand {
    width: fit-content;
    max-width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    text-align: center;
}


/* ============================================================
   ROW 1
   Logo → SilverSun
   ============================================================ */

.brand-top {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    direction: ltr;

    text-align: left;
}


.brand-logo {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    object-fit: contain;
}


.brand-name {
    margin: 0;

    color: #c7c4d9;

    font-size: clamp(29px, 5.7vw, 32px);
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    transform: translateY(4px);
}

.brand-name span {
    color: #ffffff;
}
/* ============================================================
   ROW 2
   Subtitle
   ============================================================ */

.brand-subtitle {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: clamp(8px, 2.4vw, 10px);
    font-weight: 400;

    line-height: 1.4;

    text-align: center;

    white-space: nowrap;
}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 349px) {

    .pasha-header {
        min-height: 68px;
    }

    .brand-top {
        gap: 6px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-subtitle {
        font-size: 7.5px;
    }

}
/* ==========================================================
   5. CONNECTION STATUS
   ========================================================== */

.market-status {
    flex: 0 0 auto;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 6px 9px;

    border: 1px solid var(--border-light);

    border-radius: 999px;

    background: var(--bg-soft);

    color: var(--text-muted);

    font-size: clamp(9px, 2.6vw, 11px);
    font-weight: 500;

    white-space: nowrap;
}

.connection-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--text-muted);
}

.connection-dot.online {
    background: var(--status-online);

    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.10);
}

.connection-dot.offline {
    background: var(--status-offline);

    box-shadow:
        0 0 0 3px rgba(239, 68, 68, 0.10);
}

.connection-dot.loading {
    background: var(--color-primary);

    animation: status-pulse 1.2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}


/* ==========================================================
   6. SALE CLOSED BANNER
   ========================================================== */

.sale-closed-banner {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 14px;
    padding: 12px 14px;

    border: 1px solid rgba(224,82,82,.28);
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(224,82,82,.16),
            rgba(224,82,82,.07)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 6px 18px rgba(0,0,0,.12);

    color: #f2aaaa;
}

.sale-closed-icon {
    flex: 0 0 auto;

    font-size: 17px;
    line-height: 1;
}

.sale-closed-title {
    font-size: clamp(11px, 3.3vw, 13px);
    font-weight: 800;
    line-height: 1.5;
    color: #f07b7b;
}

.sale-closed-subtitle {

    color: var(--danger);

    font-size: clamp(8px, 2.5vw, 10px);

    font-weight: 400;

    line-height: 1.5;
}
.sale-closed-banner strong {
    font-size: clamp(11px, 3.3vw, 13px);
    font-weight: 700;

    line-height: 1.6;
}

.sale-closed-banner small {
    color: var(--danger);

    font-size: clamp(8px, 2.5vw, 10px);
    font-weight: 400;

    line-height: 1.5;
}


/* ==========================================================
   7. PRICE SECTIONS
   ========================================================== */

.price-section {
    width: 100%;

    margin-bottom: 13px;

    overflow: hidden;

    border: 1px solid var(--border-light);

    border-radius: var(--radius-lg);

    background: var(--bg-card);

    box-shadow: var(--shadow-card);
}


/* ==========================================================
   8. SECTION HEADING
   ========================================================== */

.section-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 13px 14px 10px;
}

.section-heading > div {
    min-width: 0;
}

.section-heading h2 {
    margin: 0;

    color: var(--text-strong);

    font-size: clamp(14px, 4vw, 17px);
    font-weight: 700;

    line-height: 1.5;
}

.purity-text {
    color: var(--price-ounce);
}

.section-heading h2::before {
    content: "";

    display: inline-block;

    width: 4px;
    height: 14px;

    margin-left: 7px;

    vertical-align: -2px;

    border-radius: 999px;

background: #0077b6;
}

.section-heading p {
    margin: 2px 11px 0 0;

    color: var(--text-muted);

    font-size: clamp(9px, 2.6vw, 11px);
    font-weight: 400;
}


/* ==========================================================
   9. PRICE TABLE
   ========================================================== */

.price-table {
    width: 100%;

    padding: 0 8px;
}


/* ==========================================================
   10. TABLE HEADER
   ========================================================== */

.price-table-header {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(52px, 0.66fr)
        minmax(0, 1.42fr)
        minmax(0, 1.42fr);

    align-items: center;

    min-height: 32px;

    padding: 0 7px;

    border-radius: 9px;
    background: #332d70;
    color: #c7c4d9;

    font-size: clamp(9px, 2.6vw, 11px);
    font-weight: 600;
}

.price-table-header > div {
    min-width: 0;

    text-align: center;
}

.price-table-header .weight-column {
    text-align: right;
}


/* ==========================================================
   11. BAR PRICE ROW
   ========================================================== */

.bar-price-table > .price-row {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(52px, 0.66fr)
        minmax(0, 1.42fr)
        minmax(0, 1.42fr);

    align-items: center;

    min-height: clamp(46px, 12vw, 54px);

    padding: 0 7px;

    border-bottom: 1px solid var(--border-light);
}

.bar-price-table > .price-row:last-child {
    border-bottom: 0;
}


/* ==========================================================
   12. WEIGHT
   ========================================================== */

.weight-cell {
    min-width: 0;

    display: flex;

    align-items: baseline;

    gap: 3px;

    white-space: nowrap;
}

.weight-cell strong {
    color: #ffffff;

    font-size: clamp(12px, 3.6vw, 15px);
    font-weight: 700;

    line-height: 1;
}

.weight-cell span {
    color: var(--text-muted);

    font-size: clamp(8px, 2.5vw, 10px);
    font-weight: 400;
}


/* ==========================================================
   13. PRICE CELL
   ========================================================== */

.price-cell {
    min-width: 0;

    overflow: hidden;

    text-align: center;

    white-space: nowrap;

    font-size: clamp(13px, 4.15vw, 19px);
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -0.25px;

    font-variant-numeric: tabular-nums;
}

.sell-price {
    color: var(--price-sell);
}

.buy-price {
    color: var(--price-buy);
}


/* ==========================================================
   14. UNIT NOTE
   ========================================================== */

.price-unit-note {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 5px;

    padding: 7px 14px 10px;

    color: var(--text-muted);

    font-size: 9px;
}

.price-unit-note strong {
    color: var(--text-main);

    font-size: 10px;
    font-weight: 700;
}

/* ============================================================
   SHOT TABLE HEADER
   هماهنگ با جدول شمش: عیار | فروش | خرید
   ============================================================ */

.shot-price-table .shot-header {
    grid-template-columns:
        minmax(52px, 0.66fr)
        minmax(0, 1.42fr)
        minmax(0, 1.42fr);
}

.shot-header > div {
    min-width: 0;
    text-align: center;
}

.shot-header > div:first-child {
    text-align: right;
}
/* ============================================================
   SHOT ROW
   هماهنگ کامل با ردیف‌های شمش
   ============================================================ */

.shot-price-table > .shot-row {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(52px, 0.66fr)
        minmax(0, 1.42fr)
        minmax(0, 1.42fr);

    align-items: center;

    min-height: clamp(46px, 12vw, 54px);

    padding: 0 7px;

    border-bottom: 1px solid var(--border-light);
}

.shot-price-table > .shot-row:last-child {
    border-bottom: 0;
}


/* ============================================================
   PURITY
   ============================================================ */

.shot-purity {
    min-width: 0;

    direction: ltr;

    text-align: right;
}

.shot-purity strong {
    color: var(--text-strong);

    font-family:
        Arial,
        "Helvetica Neue",
        sans-serif;

    font-size: clamp(12px, 3.6vw, 15px);
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;
}


/* ============================================================
   SHOT PRICE
   ============================================================ */

.shot-price {
    min-width: 0;

    overflow: hidden;

    text-align: center;

    white-space: nowrap;

    font-size: clamp(13px, 4.15vw, 19px);
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -0.25px;

    font-variant-numeric:
        tabular-nums;

    direction: rtl;
}


/* فروش */
.shot-price.sell-price {
    color: var(--price-sell);
}


/* خرید */
.shot-price.buy-price {
    color: var(--price-buy);
}

/* ==========================================================
   17. MARKET INFO SECTION
   ========================================================== */

.market-info-section {
    width: 100%;

    display: grid;

    grid-template-columns: 0.92fr 1.55fr;

    gap: 8px;

    margin-bottom: 12px;
}


/* ==========================================================
   18. OUNCE CARD
   ========================================================== */

.ounce-card {
    min-width: 0;
    min-height: 82px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 10px 7px;

    border: 1px solid rgba(220,223,232,.22);
    border-radius: var(--radius-md);


    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.12),
            rgba(210,214,224,.055)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 6px 18px rgba(0,0,0,.12);

    text-align: center;
}
.info-label {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-bottom: 5px;

    color: var(--text-muted);

    font-size: clamp(9px, 2.7vw, 11px);
    font-weight: 500;

    white-space: nowrap;
}

.info-icon {
    color: #cfd2dc;
    font-size: 7px;
}
.ounce-value {
    max-width: 100%;

    direction: ltr;

    color: #f4f4f7;

    font-family:
        Arial,
        "Helvetica Neue",
        sans-serif;

    font-size: clamp(16px, 5vw, 21px);
    font-weight: 700;

    line-height: 1.2;

    white-space: nowrap;

    font-variant-numeric: tabular-nums;

    text-shadow:
        0 1px 8px rgba(255,255,255,.10);
}

/* ==========================================================
   19. DATE / TIME
   ========================================================== */
.datetime-card {
    min-width: 0;
    min-height: 82px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        1px
        minmax(0, 0.8fr);

    align-items: center;

    padding: 8px 6px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius-md);

    background: #29245d;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03);
}
.datetime-item {
    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    text-align: center;
}

.datetime-label {
    color: var(--text-muted);

    font-size: clamp(8px, 2.5vw, 10px);
    font-weight: 500;
}

.datetime-value {
    max-width: 100%;

    color: var(--text-strong);

    font-size: clamp(10px, 3.2vw, 13px);
    font-weight: 700;

    line-height: 1.3;

    white-space: nowrap;

    font-variant-numeric: tabular-nums;

    direction: ltr;
    unicode-bidi: isolate;
    text-align: center;
}

.datetime-divider {
    width: 1px;
    height: 34px;

    background: var(--border-light);
}

/* ==========================================================
   20. PRICE META
   ========================================================== */

.price-meta {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 3px;
    padding: 8px 4px;

    color: var(--text-muted);

    font-size: clamp(8px, 2.35vw, 10px);
    font-weight: 400;

    line-height: 1.6;

    white-space: nowrap;
}

.price-meta-validity {
    flex: 0 0 auto;
}

.price-meta-divider {
    width: 1px;
    height: 14px;

    flex: 0 0 auto;

    background: var(--border-medium);
}

.price-meta-source {
    min-width: 0;
    text-align: center;
}
/* ==========================================================
   22. OFFLINE BANNER
   ========================================================== */

.offline-banner {
    width: 100%;

    margin-top: 10px;

    padding: 9px 12px;

    border: 1px solid var(--warning-soft);

    border-radius: var(--radius-sm);

    background: var(--warning-soft);

    color: var(--warning);

    text-align: center;

    font-size: clamp(10px, 3vw, 12px);
    font-weight: 700;
}


/* ==========================================================
   23. INITIAL LOAD ERROR
   ========================================================== */

.initial-error {
    width: min(100%, 330px);

    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;

    color: var(--text-main);
}

.initial-error-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 50%;

    background: var(--danger-soft);

    color: var(--danger);

    font-size: 24px;
    font-weight: 700;
}

.initial-error strong {
    font-size: 15px;
}

.initial-error p {
    margin: 8px 0 18px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.8;
}

.retry-button {
    min-width: 120px;

    padding: 10px 18px;

    border: 0;

    border-radius: var(--radius-sm);

    background: var(--color-primary);

    color: var(--white);

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.retry-button:disabled {
    opacity: 0.65;

    cursor: default;
}


/* ==========================================================
   24. SALE CLOSED MODE
   ========================================================== */

body.sale-closed-mode .price-section {
    opacity: 0.94;
}


/* ==========================================================
   25. VERY SMALL PHONES
   320px - 349px
   ========================================================== */

@media (max-width: 349px) {

    .pasha-app {
        padding-left: 7px;
        padding-right: 7px;
    }

    .pasha-header {
        gap: 6px;

        min-height: 56px;
    }

    .brand {
        gap: 7px;
    }

	.brand-logo {
	    width: 58px;
	    height: 58px;
	}
	
	.brand-copy h1 {
	    font-size: 18px;
	}
    .brand-copy p {
        font-size: 8px;
    }

    .market-status {
        gap: 4px;

        padding: 5px 6px;

        font-size: 8px;
    }

    .connection-dot {
        width: 6px;
        height: 6px;
    }

    .price-section {
        border-radius: 14px;
    }

    .section-heading {
        padding: 10px 10px 8px;
    }

    .section-heading h2 {
        font-size: 13px;
    }

    .section-heading p {
        font-size: 8px;
    }

    .price-table {
        padding-left: 4px;
        padding-right: 4px;
    }

    .price-table-header,
    .bar-price-table > .price-row {
        grid-template-columns:
            43px
            minmax(0, 1fr)
            minmax(0, 1fr);

        padding-left: 3px;
        padding-right: 3px;
    }

    .price-table-header {
        font-size: 8px;
    }

    .bar-price-table > .price-row {
        min-height: 42px;
    }

    .weight-cell {
        gap: 2px;
    }

    .weight-cell strong {
        font-size: 11px;
    }

    .weight-cell span {
        font-size: 7px;
    }

    .price-cell {
        font-size: 12px;

        letter-spacing: -0.45px;
    }

    .price-unit-note {
        padding-left: 9px;
        padding-right: 9px;
    }

    .shot-price-table .shot-header,
    .shot-price-table > .shot-row {
        grid-template-columns:
            70px
            minmax(0, 1fr);
    }

    .shot-price-table > .shot-row {
        min-height: 43px;
    }

    .shot-purity strong {
        font-size: 12px;
    }

    .shot-price {
        font-size: 13px;
    }

    .market-info-section {
        gap: 5px;
    }

    .ounce-card,
    .datetime-card {
        min-height: 72px;

        border-radius: 13px;
    }

    .ounce-value {
        font-size: 15px;
    }

    .datetime-value {
        font-size: 9px;
    }

}


/* ==========================================================
   26. NORMAL SMALL PHONES
   350px - 380px
   ========================================================== */

@media (min-width: 350px) and (max-width: 380px) {

    .pasha-app {
        padding-left: 9px;
        padding-right: 9px;
    }

    .price-table-header,
    .bar-price-table > .price-row {
        grid-template-columns:
            48px
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

    .price-cell {
        font-size: clamp(12.5px, 3.9vw, 15px);
    }

}


/* ==========================================================
   27. LARGE PHONES
   431px+
   ========================================================== */

@media (min-width: 431px) {

    .pasha-app {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pasha-header {
        min-height: 72px;
    }

    .price-section {
        margin-bottom: 15px;
    }

    .bar-price-table > .price-row {
        min-height: 54px;
    }

    .price-cell {
        font-size: 18px;
    }

}


/* ==========================================================
   28. TABLET / DESKTOP
   PWA remains mobile-width
   ========================================================== */

@media (min-width: 700px) {

    html,
    body {
        background: var(--bg);
    }

    .pasha-app {
        min-height: auto;

        margin-top: 22px;
        margin-bottom: 22px;

        border: 1px solid var(--border-soft);

        border-radius: 24px;

        box-shadow:
            0 12px 45px rgba(0, 0, 0, 0.055);
    }

}


/* ==========================================================
   29. PREVENT PRICE OVERFLOW
   Emergency protection for unusually long values
   ========================================================== */

@media (max-width: 380px) {

    #bar250-sell,
    #bar250-buy,
    #bar500-sell,
    #bar500-buy,
    #bar1000-sell,
    #bar1000-buy {
        font-size: clamp(11.5px, 3.65vw, 14px);
        letter-spacing: -0.6px;
    }

}


/* ==========================================================
   30. ACCESSIBILITY
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}


/* ==========================================================
   STORE INFO
   ========================================================== */

.store-info {
    width: 100%;

    margin: 8px 0 4px;
    padding: 11px 12px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);

    background: var(--bg-soft);

    color: var(--text-main);
}

.store-address {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    text-align: center;

    font-size: clamp(9px, 2.8vw, 11px);
    font-weight: 500;

    line-height: 1.7;
}

.store-info-label {
    color: var(--color-primary);
    font-weight: 700;
}

.store-phones {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    direction: ltr;
}

.store-phones a {
    color: var(--text-strong);

    font-family: Arial, sans-serif;
    font-size: clamp(10px, 3vw, 12px);
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;
}

.store-info-divider {
    width: 1px;
    height: 13px;

    background: var(--border-medium);
}

/* ==========================================================
   STORE INFO
   ========================================================== */

.store-info {
    width: 100%;

    margin: 8px 0 6px;

    padding: 4px 12px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);

    background: var(--bg-soft);
}


/* هر ردیف */

.store-info-row {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 9px;

    min-height: 48px;

    padding: 8px 2px;

    border-bottom: 1px solid var(--border-light);
}

.store-info-row:last-child {
    border-bottom: 0;
}


/* نقطه نارنجی */

.store-info-icon {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    overflow: hidden;

    border-radius: 50%;

    background: var(--color-primary);

    color: transparent;
}


/* محتوای هر ردیف */

.store-info-content {
    min-width: 0;

    flex: 1;

    display: flex;
    align-items: center;

    gap: 9px;
}


/* عنوان */

.store-info-title {
    flex: 0 0 auto;

    color: var(--text-muted);

    font-size: clamp(9px, 2.7vw, 11px);
    font-weight: 500;

    white-space: nowrap;
}


/* مقدار */

.store-info-value {
    min-width: 0;

    color: var(--text-main);

    font-size: clamp(9px, 2.8vw, 11px);
    font-weight: 600;

    line-height: 1.7;
}


/* =========================
   PHONE
   ========================= */

.store-phone-list {
    min-width: 0;

    flex: 1;

    display: flex;
    align-items: center;

    gap: 8px;
}

.store-phone-list a {
    display: flex;
    align-items: center;

    gap: 5px;

    color: var(--text-strong);

    text-decoration: none;

    white-space: nowrap;
}

.phone-owner {
    color: var(--text-main);

    font-size: clamp(9px, 2.7vw, 11px);
    font-weight: 700;
}

.phone-number {
    direction: ltr;

    font-family: Arial, sans-serif;

    font-size: clamp(10px, 2.9vw, 12px);
    font-weight: 600;
}

.store-phone-divider {
    width: 1px;
    height: 14px;

    flex: 0 0 auto;

    background: var(--border-medium);
}


/* =========================
   INSTAGRAM
   ========================= */

.instagram-link {
    direction: ltr;

    display: inline-block;

    color: var(--color-primary);

    font-family: Arial, sans-serif;

    font-size: clamp(10px, 3vw, 12px);
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}

.instagram-link:active {
    opacity: 0.65;
}


/* ==========================================================
   VERY SMALL PHONES
   ========================================================== */

@media (max-width: 349px) {

    .store-info {
        padding-left: 8px;
        padding-right: 8px;
    }

    .store-info-row {
        gap: 6px;
    }

    .store-info-content {
        gap: 6px;
    }

    .store-phone-list {
        gap: 5px;
    }

    .phone-number {
        font-size: 9px;
    }

    .phone-owner {
        font-size: 8px;
    }

}
/* ============================================================
   SILVERSUN SPECIFIC OVERRIDES
   ============================================================ */

/* Current API price IDs */
#bar1000-nader-sell,
#bar1000-nader-buy,
#bar1000-uae-sell,
#bar1000-uae-buy,
#bar1000-iran-sell,
#bar1000-iran-buy,
#bar500-sell,
#bar500-buy,
#bar250-sell,
#bar250-buy,
#bar100-sell,
#bar100-buy,
#bar50-sell,
#bar50-buy,
#bar20-sell,
#bar20-buy,
#bar10-sell,
#bar10-buy,
#bar5-sell,
#bar5-buy,
#shot999-sell,
#shot999-buy,
#shot995-sell,
#shot995-buy {
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

/* Connection/status colors from the panel */
#connection-dot.online {
    background: var(--success);
}

#connection-dot.offline {
    background: var(--danger);
}

#connection-dot.loading {
    background: var(--brand-2);
}

/* Panel-consistent warning/offline surfaces */
.offline-banner {
    border-color: rgba(214,129,19,.20);
    background: var(--warning-soft);
    color: var(--warning);
}

/* Panel-consistent closed market banner */
.sale-closed-banner {
    border-color: var(--sale-closed-border);
    background: var(--sale-closed-bg);
    color: var(--sale-closed-text);
}

/* Last update */
#last-update-text {
    color: var(--muted);
}

/* Protect long 1kg prices on very small phones */
@media (max-width: 380px) {
    #bar1000-nader-sell,
    #bar1000-nader-buy,
    #bar1000-uae-sell,
    #bar1000-uae-buy,
    #bar1000-iran-sell,
    #bar1000-iran-buy {
        font-size: clamp(11.5px, 3.65vw, 14px);
        letter-spacing: -0.6px;
    }
}

/* Desktop/tablet shell follows the panel palette */
@media (min-width: 700px) {
    html,
    body {
        background: var(--bg);
    }

    .pasha-app {
        border-color: var(--border);
        box-shadow:
            0 12px 45px rgba(23,21,43,.055);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   CONTACT SECTION
============================================================ */

.contact-section {
    width: 100%;
    margin-top: 18px;
}

.contact-heading {
    width: 100%;

    margin: 4px 0 12px;

    padding: 12px 14px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.025)
        );

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 14px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 6px 18px rgba(0,0,0,.10);
}

.contact-heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    line-height: 1.6;

    text-align: center;
}

.contact-heading h2 span {
    color: var(--brand-2);

    direction: ltr;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-weight: 700;

    margin-right: 4px;
}

.contact-heading p {
    margin: 4px 0 0;

   color: #878497;

    font-size: 9px;
    font-weight: 400;

    line-height: 1.5;

    text-align: center;
}
/* ============================================================
   MAIN CONTACT CARD
============================================================ */
.contact-card {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 58px;

    padding: 9px 11px;

    margin-bottom: 7px;

    text-decoration: none;

    background: #29245d;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 13px;

    color: inherit;

    transition:
        transform .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}
.contact-card:active {
    transform: scale(.985);
}

.contact-card:hover {
    border-color: rgba(255,255,255,.18);

    box-shadow:
        0 6px 20px rgba(0,0,0,.16);
}

/* ============================================================
   ICON
============================================================ */
.contact-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: 9px;

    border-radius: 10px;

    overflow: hidden;

    background: rgba(255,255,255,.07);
}
.contact-icon img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.contact-icon-svg {
    background: rgba(255,255,255,.07);
    color: #c7c4d9;
}
.contact-icon-svg svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   CONTENT
============================================================ */

.contact-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;

    flex: 1;
}

.contact-content strong {
    font-size: 10px;
    font-weight: 800;

    color: #ffffff;
}

.contact-content span {
    font-size: 10px;
    font-weight: 600;

    color: #aaa8bb;

    line-height: 1.5;
}

/* ============================================================
   LABEL + VALUE ON SAME LINE
============================================================ */

.contact-inline {
    flex-direction: row;
    align-items: center;

    justify-content: flex-start;

    gap: 16px;
}

.contact-inline strong {
    flex: 0 0 auto;

    min-width: 72px;

    color: #ffffff;
}
.contact-inline span {
    position: relative;

    padding-right: 16px;

    color: #d7d6df;

    font-weight: 700;
}

/* separator */

.contact-inline span::before {
    content: "";

    position: absolute;

    right: 0;
    top: 50%;

    width: 1px;
    height: 20px;

    transform: translateY(-50%);

    background: rgba(255,255,255,.10);
}


/* ============================================================
   ARROW
============================================================ */

.contact-arrow {
    flex: 0 0 auto;

    margin-right: 8px;

    color: #aab4bb;

    font-size: 12px;
}


/* ============================================================
   SALES + ACCOUNTING
============================================================ */
.contact-pair {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 5px;
}

.contact-pair .contact-card {
    min-width: 0;
    padding: 0px 0px;
}

.contact-pair .contact-content span {
    font-size: 7px !important;
    white-space: nowrap !important;
}

/* ============================================================
   SOCIAL
============================================================ */

.contact-social-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 7px;

    margin-top: 7px;
}
.contact-social {
    min-height: 58px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 7px;

    text-decoration: none;

    background:
        linear-gradient(
            145deg,
            #302a68,
            #262158
        );

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 13px;

    color: #ffffff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 5px 14px rgba(0,0,0,.10);

    transition:
        transform .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.contact-social:hover {
    border-color: rgba(255,255,255,.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 7px 18px rgba(0,0,0,.14);
}
.contact-social:active {
    transform: scale(.97);
}

.contact-social img {
    width: 28px;
    height: 28px;

    object-fit: contain;

    display: block;
}

.contact-social span {
    font-size: 8px;
    font-weight: 700;

    color: #aaa8bb;
}

/* ============================================================
   MOBILE
============================================================ */
/* ============================================================
   MOBILE — CONTACT
============================================================ */

@media (max-width: 430px) {

    /* ========================================================
       CONTACT SECTION
    ======================================================== */

    .contact-section {
        width: 100%;

        margin-top: 14px;
    }


    /* ========================================================
       CONTACT HEADING
    ======================================================== */

.contact-heading {
    width: 100%;
    margin: 0 0 12px;

    padding: 13px 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

background:
    linear-gradient(
        135deg,
        rgba(255,255,255,.06),
        rgba(255,255,255,.025)
    );

border: 1px solid rgba(255,255,255,.08);

box-shadow:
    0 4px 14px rgba(0,0,0,.10);
}
    .contact-heading h2 {
        margin: 0;

        font-size: 13px;
        font-weight: 800;

        line-height: 1.6;

        text-align: center;
    }


    .contact-heading h2 span {
        margin-right: 3px;

        color: var(--brand-2);

        direction: ltr;

        font-family:
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            sans-serif;

        font-weight: 700;
    }


    .contact-heading p {
        margin:
            3px 0 0;

        font-size: 8px;
        font-weight: 400;

        line-height: 1.5;

       color: #878497;

        text-align: center;
    }


    /* ========================================================
       CONTACT CARDS
    ======================================================== */

    .contact-card {
        min-height: 54px;

        padding:
            8px 9px;

        border-radius: 12px;

        margin-bottom: 6px;
    }


    /* ========================================================
       CONTACT ICON
    ======================================================== */

    .contact-icon {
        width: 31px;
        height: 31px;

        flex: 0 0 31px;

        margin-left: 8px;

        border-radius: 9px;
    }


    .contact-icon img {
        width: 100%;
        height: 100%;

        object-fit: contain;

        display: block;
    }


    .contact-icon-svg svg {
        width: 16px;
        height: 16px;
    }


    /* ========================================================
       CONTACT TEXT
    ======================================================== */

    .contact-content {
        min-width: 0;
    }


    .contact-content strong {
        font-size: 9px;

        font-weight: 800;

        line-height: 1.4;
    }


    .contact-content span {
        font-size: 9px;

        font-weight: 600;

        line-height: 1.5;
    }


    /* ========================================================
       INLINE LABEL + VALUE
    ======================================================== */

    .contact-inline {
        gap: 10px;

        align-items: center;
    }


    .contact-inline strong {
        min-width: 58px;
    }


    .contact-inline span {
        padding-right: 10px;
    }


    .contact-inline span::before {
        height: 18px;
    }


    /* ========================================================
       ARROW
    ======================================================== */

    .contact-arrow {
        font-size: 10px;

        margin-right: 5px;
    }

/* ============================================================
   MANAGEMENT / SALES / ACCOUNTING
   3 CARDS
   <= 760px:
   ICON + TITLE ON TOP ROW
   PHONE CENTERED BELOW
============================================================ */

.contact-pair {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 6px;
}


/* =========================
   CARD
========================= */

.contact-pair .contact-card {
    min-width: 0;
    min-height: 72px;

    margin: 0;
    padding: 8px 4px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    text-align: center;

    overflow: hidden;

    border-radius: 13px;

    cursor: pointer;
}


/* =========================
   TOP ROW
   ICON + TITLE
========================= */

.contact-pair .contact-card > .contact-icon {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    margin: 0;

    border-radius: 8px;
}


/* =========================
   CONTENT
   TITLE + PHONE
========================= */

.contact-pair .contact-content {
    width: auto;
    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 2px;

    text-align: center;
}


/* =========================
   TITLE
========================= */

.contact-pair .contact-content strong {
    display: block;

    width: auto;

    margin: 0;

    color: var(--text-main);

    font-size: 9px;
    font-weight: 700;

    line-height: 1.4;

    white-space: nowrap;

    text-align: center;
}


/* =========================
   PHONE
========================= */

.contact-pair .contact-content span {
    display: block;

    width: 100%;

    margin: 0;

    color: var(--text-strong);

    font-family: Arial, sans-serif;

    font-size: 9px !important;
    font-weight: 700;

    line-height: 1.3;

    direction: ltr;
    unicode-bidi: isolate;

    text-align: center;

    white-space: nowrap !important;

    overflow: hidden;
}


/* =========================
   REMOVE ARROW
========================= */

.contact-pair .contact-arrow {
    display: none;
}


/* ============================================================
   IMPORTANT:
   ICON + TITLE MUST BE ONE ROW
============================================================ */

@media (max-width: 760px) {

    .contact-pair {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-pair .contact-card {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /*
       Put icon + content side by side.
       Because page is RTL:
       icon appears on the RIGHT
       title appears on the LEFT.
    */

    .contact-pair .contact-card {
        position: relative;
    }

    .contact-pair .contact-icon {
        position: absolute;

        top: 9px;
        right: 50%;

        transform: translateX(38px);
    }

    .contact-pair .contact-content {
        width: 100%;

        padding-top: 0;

        display: flex;
        flex-direction: column;

        align-items: center;

        gap: 2px;
    }

    .contact-pair .contact-content strong {
        position: relative;

        margin-right: 22px;

        width: auto;
    }

    .contact-pair .contact-content span {
        width: 100%;

        margin-top: 1px;

        text-align: center;
    }

}
	/* ============================================================
   MANAGEMENT / SALES / ACCOUNTING
   ALL MOBILE WIDTHS
   ============================================================ */

.contact-pair {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 6px;
}


/* هر سه کارت */

.contact-pair .contact-card {
    min-width: 0;
    min-height: 88px;

    margin: 0;
   padding: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;

    border-radius: 13px;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}


/* آیکون بالا */

.contact-pair .contact-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    margin: 0 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
}


/* SVG */

.contact-pair .contact-icon-svg {
    background: rgba(0,0,0,.10)
    color: var(--brand-2);
}

.contact-pair .contact-icon-svg svg {
    width: 17px;
    height: 17px;
}


/* محتوا */

.contact-pair .contact-content {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 3px;

    text-align: center;
}


/* سمت */

.contact-pair .contact-content strong {
    display: block;

    width: 100%;

    color: var(--text-strong);

    font-size: 9px;
    font-weight: 700;

    line-height: 1.4;

    white-space: nowrap;
}


/* شماره بزرگ */

.contact-pair .contact-content span {
    display: block;

    width: 100%;

    color: var(--text-strong);

    font-family: Arial, sans-serif;

    font-size: 11px !important;
    font-weight: 700;

    line-height: 1.3;

    direction: ltr;
    unicode-bidi: isolate;

    text-align: center;

    white-space: nowrap !important;

    overflow: hidden;
}


/* فلش حذف شود */

.contact-pair .contact-arrow {
    display: none;
}


/* حالت لمس */

.contact-pair .contact-card:active {
    transform: scale(.97);
}

    /* ========================================================
       SOCIAL CHANNELS
    ======================================================== */

    .contact-social-grid {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 6px;

        margin-top: 6px;
    }


    .contact-social {
        min-height: 54px;

        display: flex;

        flex-direction: row;

        align-items: center;
        justify-content: center;

        gap: 7px;

        padding: 6px;

        border-radius: 13px;
    }


    .contact-social img {
        width: 25px;
        height: 25px;

        object-fit: contain;

        display: block;
    }


    .contact-social span {
        font-size: 8px;

        font-weight: 700;
    }

}
/* ============================================================
   CONTACT CARDS — FINAL
   Icon beside title
   Phone directly below title
   Same layout on desktop + mobile
============================================================ */

.contact-pair {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    direction: rtl;
}

.contact-pair .contact-card {
    width: 100%;
    min-width: 0;
    min-height: 58px;

    margin: 0;
    padding: 0px 0px;

    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: center;

    gap: 6px;

    direction: rtl;
}


/* =========================
   ICON
========================= */

.contact-pair .contact-icon {
    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    margin: 0;

    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-pair .contact-icon svg {
    width: 12px;
    height: 12px;
}


/* =========================
   TEXT SIDE
========================= */

.contact-pair .contact-content {
    min-width: 0;

    flex: 0 1 auto;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    gap: 1px;

    text-align: right;
}


/* عنوان */

.contact-pair .contact-content strong {
    display: block;

    margin: 0;

    font-size: 9px;
    font-weight: 800;

    line-height: 1.25;

    white-space: nowrap;
}


/* شماره */

.contact-pair .contact-content span {
    display: block;

    margin: 0;

    font-family: Arial, sans-serif;

    font-size: 8px !important;
    font-weight: 600;

    line-height: 1.25;

    direction: ltr;
    unicode-bidi: isolate;

    text-align: right;

    white-space: nowrap !important;
}


/* فلش حذف شود */

.contact-pair .contact-arrow {
    display: none !important;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 430px) {

    .contact-pair {
        gap: 5px;
    }

    .contact-pair .contact-card {
        min-height: 54px;

        padding: 0px 0px;

        gap: 5px;
    }

    .contact-pair .contact-icon {
        width: 20px;
        height: 20px;

        flex-basis: 20px;

        border-radius: 6px;
    }

    .contact-pair .contact-icon svg {
        width: 11px;
        height: 11px;
    }

    .contact-pair .contact-content strong {
        font-size: 8.5px;
    }

    .contact-pair .contact-content span {
        font-size: 7px !important;
    }
}

/* ============================================================
   OUNCE CARD — WHITE + SOFT GRAY BORDER
============================================================ */

/* ============================================================
   OUNCE CARD — WHITE + SOFT GRAY BORDER
============================================================ */

/* ============================================================
   CONTACT PHONE CARDS — FINAL SIZE
   3 CARDS / ICON + ROLE TOP / PHONE BELOW
============================================================ */

.contact-pair {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}


/* شماره — زیر آیکون و سمت */

.contact-pair .contact-content span {
    grid-column: 1 / -1;
    grid-row: 2;

    display: block;

    width: 100% !important;
    min-width: 0;

    margin: 0;

    font-family: Arial, "Helvetica Neue", sans-serif;

    font-size: clamp(9.5px, 2.2vw, 10px) !important;
    font-weight: 600;

    line-height: 1.3;

    direction: ltr;
    unicode-bidi: isolate;

    text-align: center;

    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;

    letter-spacing: -0.3px;

    color: var(--text-strong);

    overflow: visible !important;
}
/* ==========================================================
   SALE CLOSED / WAITING RATE ICON IMAGE
========================================================== */

.sale-closed-img {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    object-fit: contain;
}

.sale-closed-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.sale-closed-title {
    color: #f07b7b;

    font-size: clamp(11px, 3.3vw, 13px);
    font-weight: 800;

    line-height: 1.5;
}
.sale-closed-subtitle {
    color: #d89a9a;

    font-size: clamp(8px, 2.5vw, 10px);
    font-weight: 400;

    line-height: 1.5;

    width: 100%;
    text-align: center;
}
/* ============================================================
   PRICE TABLES — CARD SEPARATION
============================================================ */

.price-section {
    background: #29245d !important;

    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 16px !important;

    box-shadow:
        0 8px 24px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.03);
}


/* تیتر هر بخش */

.price-section .section-heading {
    background: transparent !important;
    border: 0 !important;
}

.price-section .section-heading h2 {
    color: #ffffff !important;
}

.price-section .section-heading p,
.price-section .section-subtitle {
    color: #aaa8bb !important;
}

.price-section .purity-text {
    color: #c7c4d9 !important;
}


/* جدول داخلی */

.price-section .price-table {
    background: transparent !important;
    border: 0 !important;
}


/* هدر جدول */

.price-section .price-table-header {
    background: #332d70 !important;
    color: #c7c4d9 !important;

    border: 1px solid rgba(255,255,255,.06);
}


/* تمام ردیف‌ها */

.price-section .price-row {
    background: transparent !important;

    border-color:
        rgba(255,255,255,.08) !important;
}


/* وزن / عیار */

.price-section .weight-cell strong,
.price-section .shot-purity strong {
    color: #ffffff !important;
}

.price-section .weight-cell span {
    color: #aaa8bb !important;
}


/* فروش */

.price-section .sell-price {
    color: #ffffff !important;
}


/* خرید */

.price-section .buy-price {
    color: #cccccc !important;
}


/* ساچمه */

.price-section .shot-price {
    color: #ffffff !important;
}

.price-section .shot-price.buy-price {
    color: #cccccc !important;
}


/* خطوط داخلی */

.price-section .price-row + .price-row {
    border-top:
        1px solid rgba(255,255,255,.08) !important;
}

/* واحد قیمت */

.price-section .price-unit-note {
    background: #262156 !important;

    border: 1px solid rgba(255,255,255,.04) !important;
    border-radius: 9px;

    margin:
        0 8px 8px;

    color: #aaa8bb !important;
}

.price-section .price-unit-note span {
    color: #aaa8bb !important;
}

.price-section .price-unit-note strong {
    color: #e8e7ef !important;
}

/* ============================================================
   SMART APP INSTALL
============================================================ */

.smart-install-wrap {
    width: 100%;

    display: flex;
    justify-content: center;

    margin:
        0
        0
        14px;
}


.smart-install-btn {
    width: 100%;

    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding:
        0 16px;

    border:
        1px solid
        rgba(0,150,199,.42);

    border-radius:
        13px;

    background:
        linear-gradient(
            135deg,
            #1F1A4E 0%,
            #0077B6 52%,
            #0096C7 100%
        );

    color:
        #FFFFFF;

    font-family:
        inherit;

    font-size:
        11px;

    font-weight:
        800;

    cursor:
        pointer;

    box-shadow:
        0 7px 18px
        rgba(0,150,199,.16);

    transition:
        transform .16s ease,
        filter .16s ease,
        box-shadow .16s ease;
}


.smart-install-btn:hover {
    transform:
        translateY(-1px);

    filter:
        brightness(1.05);

    box-shadow:
        0 10px 24px
        rgba(0,150,199,.22);
}


.smart-install-btn:active {
    transform:
        translateY(0);
}


.smart-install-icon {
    width: 25px;
    height: 25px;

    flex:
        0 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius:
        8px;

    background:
        rgba(255,255,255,.13);
}


.smart-install-icon svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke:
        #FFFFFF;

    stroke-width:
        2;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


/* ============================================================
   IOS INSTALL MODAL
============================================================ */

.smart-install-modal {
    position: fixed;

    inset: 0;

    z-index:
        12000;
}


.smart-install-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.58);

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);
}


.smart-install-card {
    position: absolute;

    left: 50%;
    top: 50%;

    width:
        min(
            calc(100% - 28px),
            390px
        );

    max-height:
        calc(100dvh - 36px);

    overflow-y:
        auto;

    transform:
        translate(-50%, -50%);

    padding:
        24px
        18px
        18px;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius:
        20px;

    background:
        #29245D;

    color:
        #FFFFFF;

    text-align:
        center;

    box-shadow:
        0 24px 70px
        rgba(0,0,0,.42);
}


.smart-install-close {
    position:
        absolute;

    top:
        10px;

    left:
        10px;

    width:
        34px;

    height:
        34px;

    border:
        0;

    border-radius:
        9px;

    background:
        rgba(255,255,255,.06);

    color:
        #AAA8BB;

    font-size:
        22px;

    line-height:
        1;

    cursor:
        pointer;
}


.smart-install-icon-large {
    width:
        66px;

    height:
        66px;

    margin:
        0 auto 12px;

    padding:
        7px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(0,150,199,.32);

    border-radius:
        17px;

    background:
        #1F1A4E;
}


.smart-install-icon-large img {
    width:
        100%;

    height:
        100%;

    object-fit:
        contain;
}


.smart-install-card h3 {
    margin:
        0 0 5px;

    color:
        #FFFFFF;

    font-size:
        17px;

    font-weight:
        900;
}


.smart-install-intro {
    margin:
        0 0 16px;

    color:
        #AAA8BB;

    font-size:
        10px;

    line-height:
        1.8;

    font-weight:
        500;
}


.smart-install-steps {
    display:
        grid;

    gap:
        9px;

    text-align:
        right;
}


.smart-install-step {
    min-height:
        52px;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    padding:
        9px 10px;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius:
        12px;

    background:
        #332D70;

    color:
        #E8E7EF;

    font-size:
        10px;

    line-height:
        1.7;
}


.smart-install-step-number {
    width:
        28px;

    height:
        28px;

    flex:
        0 0 28px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        9px;

    background:
        #0096C7;

    color:
        #FFFFFF;

    font-size:
        11px;

    font-weight:
        900;
}


.smart-install-step-icon {
    width:
        28px;

    height:
        28px;

    flex:
        0 0 28px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        9px;

    background:
        rgba(0,150,199,.12);

    color:
        #0096C7;

    font-size:
        16px;

    font-weight:
        900;
}


.smart-install-close-bottom {
    width:
        100%;

    min-height:
        43px;

    margin-top:
        14px;

    border:
        1px solid
        rgba(0,150,199,.28);

    border-radius:
        11px;

    background:
        #0096C7;

    color:
        #FFFFFF;

    font:
        inherit;

    font-size:
        11px;

    font-weight:
        800;

    cursor:
        pointer;
}


@media (max-width: 380px) {

    .smart-install-btn {
        min-height:
            46px;

        font-size:
            10px;
    }


    .smart-install-card {
        width:
            calc(100% - 20px);

        padding:
            21px
            14px
            14px;
    }

}


/* ============================================================
   SILVERSUN — FINAL ANDROID / MOBILE UI OVERRIDE
   آخرین لایه استایل
   ============================================================ */


/* ============================================================
   1. HEADER / LOGO
   ============================================================ */

.pasha-header {
    min-height: 70px;
    margin: 0 auto 12px;
}

.brand {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-top {
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: ltr;
}

.brand-logo {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    margin: 0 !important;
    object-fit: contain;
}

.brand-name {
    margin: 0 !important;
    padding: 0 !important;

    font-size: clamp(27px, 7vw, 32px) !important;
    font-weight: 700 !important;

    line-height: 1 !important;
    white-space: nowrap;

    transform: none !important;

    color: #c7c4d9;
}

.brand-name span {
    color: #ffffff;
}

.brand-subtitle {
    width: 100%;
    max-width: 100%;

    margin: 6px 0 0 !important;
    padding: 0 !important;

    color: var(--muted);

    font-size: clamp(8px, 2.5vw, 10px) !important;
    font-weight: 400;

    line-height: 1.5;

    text-align: center;

    white-space: nowrap;
}


/* ============================================================
   VERY SMALL PHONES — HEADER
   ============================================================ */

@media (max-width: 349px) {

    .pasha-header {
        min-height: 64px;
    }

    .brand-top {
        gap: 6px;
    }

    .brand-logo {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }

    .brand-name {
        font-size: 23px !important;
    }

    .brand-subtitle {
        font-size: 7.5px !important;
    }
}


/* ============================================================
   2. MANAGEMENT / SALES / ACCOUNTING
   ------------------------------------------------------------
   هدف:
   آیکن کنار عنوان
   شماره دقیقاً زیر عنوان
   بدون absolute
   بدون transform
   بدون margin-right مصنوعی
   ============================================================ */

.contact-pair {
    width: 100% !important;

    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 6px !important;

    direction: rtl;
}


/* کارت */

.contact-pair .contact-card {
    position: relative !important;

    width: 100% !important;
    min-width: 0 !important;

    min-height: 72px !important;

    margin: 0 !important;

    padding: 8px 5px !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 4px !important;

    text-align: center !important;

    overflow: hidden;

    border-radius: 13px;
}


/* ============================================================
   ICON
   ============================================================ */

.contact-pair .contact-icon {
    position: static !important;

    top: auto !important;
    right: auto !important;

    transform: none !important;

    width: 26px !important;
    height: 26px !important;

    flex: 0 0 26px !important;

    margin: 0 !important;

    border-radius: 8px;

    display: flex !important;

    align-items: center;
    justify-content: center;
}


/* SVG */

.contact-pair .contact-icon-svg {
    background: rgba(255,255,255,.07) !important;
    color: var(--brand-2) !important;
}

.contact-pair .contact-icon-svg svg {
    width: 15px !important;
    height: 15px !important;
}


/* ============================================================
   CONTENT
   ============================================================ */

.contact-pair .contact-content {
    width: 100% !important;
    min-width: 0 !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 2px !important;

    text-align: center !important;
}


/* عنوان */

.contact-pair .contact-content strong {
    position: static !important;

    width: auto !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-size: 9px !important;
    font-weight: 800 !important;

    line-height: 1.4 !important;

    white-space: nowrap;
}


/* شماره */

.contact-pair .contact-content span {
    position: static !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-family:
        Arial,
        "Helvetica Neue",
        sans-serif !important;

    font-size: 10px !important;
    font-weight: 700 !important;

    line-height: 1.3 !important;

    direction: ltr !important;
    unicode-bidi: isolate;

    text-align: center !important;

    white-space: nowrap !important;

    overflow: visible !important;
}


/* جداکننده‌ای که قبلاً برای layout قدیمی بود حذف شود */

.contact-pair .contact-content span::before {
    display: none !important;
}


/* Arrow حذف */

.contact-pair .contact-arrow {
    display: none !important;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 430px) {

    .contact-pair {
        gap: 5px !important;
    }

    .contact-pair .contact-card {
        min-height: 68px !important;
        padding: 7px 3px !important;

        gap: 3px !important;
    }

    .contact-pair .contact-icon {
        width: 24px !important;
        height: 24px !important;
        flex-basis: 24px !important;

        border-radius: 7px !important;
    }

    .contact-pair .contact-icon-svg svg {
        width: 14px !important;
        height: 14px !important;
    }

    .contact-pair .contact-content strong {
        font-size: 8.5px !important;
    }

    .contact-pair .contact-content span {
        font-size: 9px !important;
    }
}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 349px) {

    .contact-pair {
        gap: 4px !important;
    }

    .contact-pair .contact-card {
        min-height: 64px !important;
        padding: 6px 2px !important;
    }

    .contact-pair .contact-icon {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px !important;
    }

    .contact-pair .contact-icon-svg svg {
        width: 13px !important;
        height: 13px !important;
    }

    .contact-pair .contact-content strong {
        font-size: 8px !important;
    }

    .contact-pair .contact-content span {
        font-size: 8px !important;
    }
}


/* ============================================================
   3. SOCIAL ICONS
   ============================================================ */

.contact-social-grid {
    display: grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    gap: 6px !important;
}

.contact-social {
    min-height: 58px !important;

    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 7px !important;

    padding: 6px !important;
}

.contact-social img {
    width: 26px !important;
    height: 26px !important;

    object-fit: contain;
}

.contact-social span {
    font-size: 9px !important;
    font-weight: 700 !important;
}


/* ============================================================
   4. REMOVE OLD FLOATING POSITIONING
   ============================================================ */

.contact-pair .contact-card,
.contact-pair .contact-icon,
.contact-pair .contact-content,
.contact-pair .contact-content strong,
.contact-pair .contact-content span {
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}


/* ============================================================
   5. ANDROID WEBVIEW FONT CONSISTENCY
   ============================================================ */

html,
body,
button,
input,
textarea,
select {
    font-family:
        "Vazirmatn",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}


/* ============================================================
   END — FINAL MOBILE OVERRIDE
   ============================================================ */

/* ============================================================
   SILVERSUN — FORCE FIXED THEME
   NEVER SWITCH TO SYSTEM DARK/LIGHT MODE
   ============================================================ */

/* جلوگیری از تغییر خودکار توسط مرورگر */
:root {
    color-scheme: only dark;
}

/* رنگ ثابت کل صفحه */
html,
body {
    background: #1f1a4e !important;
    color: #ffffff !important;
}

/* اپ اصلی */
.pasha-app {
    background: #1f1a4e !important;
    color: #ffffff !important;
}

/* کارت‌ها */
.price-section,
.contact-card,
.datetime-card,
.store-info {
    background-color: #29245d !important;
    color: #ffffff !important;
}

/* سطوح ثانویه */
.price-table-header,
.market-status,
.store-info,
.contact-social {
    background-color: #332d70 !important;
}

/* متن */
body,
h1,
h2,
h3,
strong {
    color: #ffffff;
}

/* متن‌های ثانویه */
.section-heading p,
.section-subtitle,
.price-unit-note,
.contact-content span,
.contact-social span,
.datetime-label,
.info-label,
.price-meta,
.store-info-title {
    color: #aaa8bb;
}

/* جلوگیری از تغییر رنگ input/button توسط مرورگر */
button,
input,
textarea,
select {
    color-scheme: only dark;
}

/* جلوگیری از highlight/auto-color عجیب WebView */
html {
    forced-color-adjust: none;
    -webkit-text-size-adjust: 100%;
}

/* iOS / Safari */
body {
    -webkit-appearance: none;
}

/* Android WebView / Chrome */
* {
    forced-color-adjust: none;
}

/* ============================================================
   NATIVE SILVERSUN APP
   دکمه نصب داخل APK هرگز نمایش داده نشود
   ============================================================ */

body.native-silversun-app #smart-install-wrap {
    display: none !important;
}


/* ============================================================
   SOCIAL ICONS — VERTICAL + ALIGNED
============================================================ */

.contact-social-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

.contact-social {
    min-height: 58px !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 4px !important;

    padding: 7px !important;
}

.contact-social img {
    width: 28px !important;
    height: 28px !important;

    object-fit: contain !important;
    display: block !important;
}

.contact-social span {
    font-size: 8px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.footer-brand {
    color: #ffffff;
    font-weight: 600;
}