/* =====================================================================
   PERSIAN SHOP - SITE STYLESHEET
   Loaded after Bootstrap 5 RTL, so rules here override Bootstrap defaults.

   Table of contents:
   1.  Theme variables
   2.  Base / reset / typography
   3.  Utility classes
   4.  Loading spinner overlay
   5.  Header / navbar
   6.  Hero section
   7.  Buttons
   8.  Cards (hover zoom / lift / overlay)
   9.  Page sections (features, products, purchase, cta)
   10. Purchase form (floating labels, focus glow, validation)
   11. Footer
   12. Fade-in-on-scroll
   13. Responsive overrides
   14. Scrollbar
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. THEME VARIABLES
   --------------------------------------------------------------------- */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-elevated: #1f1f1f;

    --text-primary: #e8e8e8;
    --text-muted: #a0a0a0;

    --accent: #2D9CDB;
    --accent-hover: #1B6FA8;
    --accent-glow: rgba(45, 156, 219, 0.35);

    --danger: #e74c3c;
    --success: #2ecc71;

    --border-subtle: rgba(255, 255, 255, 0.07);

    --font-main: 'Vazirmatn', Tahoma, Arial, sans-serif;

    --radius-md: 12px;
    --radius-lg: 16px;

    --transition-fast: 0.2s ease;
    --transition-med: 0.35s ease;
}


/* ---------------------------------------------------------------------
   2. BASE / RESET / TYPOGRAPHY
   --------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.25; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.3; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p {
    line-height: 1.9;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    transition: color var(--transition-fast);
}

.main-content {
    display: block;
    min-height: 40vh;
}

::selection {
    background: var(--accent);
    color: #fff;
}


/* ---------------------------------------------------------------------
   3. UTILITY CLASSES
   --------------------------------------------------------------------- */
.text-accent { color: var(--accent) !important; }
.bg-elevated { background-color: var(--bg-elevated) !important; }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.section-title {
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    display: block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 14px auto 0;
    border-radius: 2px;
}
.text-center .section-title::after,
.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}


/* ---------------------------------------------------------------------
   4. LOADING SPINNER OVERLAY
   --------------------------------------------------------------------- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.loading-overlay.active {
    display: flex;
}
.spinner {
    width: 56px;
    height: 56px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ---------------------------------------------------------------------
   5. HEADER / NAVBAR
   --------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background-color var(--transition-med), padding var(--transition-med), box-shadow var(--transition-med), backdrop-filter var(--transition-med);
}
.site-header.scrolled {
    background-color: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5%;
    position: relative;
    transition: padding var(--transition-med);
}
.site-header.scrolled .header-inner {
    padding: 10px 5%;
}

/* Logo on the left, nav on the right (RTL-natural order via flex `order`) */
.main-nav { order: 1; }
.hamburger { order: 2; display: none; }
.site-logo { order: 3; flex-shrink: 0; }

.site-logo img {
    width: 200px;
    height: 100px;
    object-fit: contain;
    transition: width var(--transition-med), height var(--transition-med);
}
.site-header.scrolled .site-logo img {
    width: 140px;
    height: 68px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    color: var(--text-primary);
    font-weight: 500;
    padding-bottom: 6px;
    display: inline-block;
}
.nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-med);
}
.nav-link:hover {
    color: var(--accent);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link.active {
    color: var(--accent);
}
.nav-link.active::after {
    width: 100%;
}

/* Hamburger -> X animation */
.hamburger {
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.hamburger.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}


/* ---------------------------------------------------------------------
   6. HERO SECTION
   --------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 40px 20px;
    background: linear-gradient(-45deg, #121212, #1B6FA8, #2D9CDB, #121212);
    background-size: 400% 400%;
    animation: gradientShift 14s ease infinite;
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-content {
    opacity: 0;
    animation: heroFadeIn 1s ease forwards;
    animation-delay: 0.15s;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(232, 232, 232, 0.9);
    max-width: 620px;
    margin: 0 auto 32px;
}

/* Scroll-down cue pinned to the bottom of the hero */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}
.scroll-indicator:hover {
    color: var(--accent);
}
.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.scroll-dot {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    animation: scrollDotMove 1.6s ease infinite;
}
@keyframes scrollDotMove {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}
@media (max-width: 767.98px) {
    .scroll-indicator {
        bottom: 18px;
    }
}


/* ---------------------------------------------------------------------
   7. BUTTONS
   --------------------------------------------------------------------- */
.btn {
    border-radius: 8px;
    padding: 11px 28px;
    font-weight: 600;
    font-family: var(--font-main);
    transition: background-color var(--transition-med), border-color var(--transition-med), transform var(--transition-fast), box-shadow var(--transition-med), color var(--transition-med);
    border: 1px solid transparent;
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--accent-glow);
}
.btn-accent:active {
    transform: translateY(0);
}

.btn-outline-accent {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}
.btn-outline-accent:hover,
.btn-outline-accent:focus {
    background-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--accent-glow);
}
.btn-outline-accent:active {
    transform: translateY(0);
}

/* Diagonal shine sweep on hover */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    right: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(25deg);
    transition: right 0.65s ease;
}
.btn-shine:hover::before {
    right: 125%;
}


/* ---------------------------------------------------------------------
   8. CARDS (zoom / lift / shadow / overlay)
   --------------------------------------------------------------------- */
.card-hover {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
    height: 100%;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    line-height: 0;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.card-hover:hover .card-img-wrap img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-med);
}
.card-hover:hover .card-overlay {
    opacity: 1;
}
.overlay-text {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid #fff;
    padding: 10px 24px;
    border-radius: 8px;
}

.card-body-custom {
    padding: 20px;
}
.card-body-custom h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.product-price-sm {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0;
}

/* Multi-line feature list inside a product card */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.product-features li {
    position: relative;
    padding-right: 16px;
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}
.product-features li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* Sits a little higher than the other two cards on desktop/tablet */
@media (min-width: 768px) {
    .product-card-elevated {
        transform: translateY(-20px);
    }
    .product-card-elevated:hover {
        transform: translateY(-28px);
    }
}


/* ---------------------------------------------------------------------
   9. PAGE SECTIONS
   --------------------------------------------------------------------- */
.product-section,
.purchase-section,
.features-section,
.products-section,
.cta-banner {
    padding: 80px 0;
}

.features-section {
    background: var(--bg-secondary);
}

.feature-card {
    padding: 44px 24px;
}
.feature-icon {
    font-size: 2.75rem;
    color: var(--accent);
    margin-bottom: 18px;
    display: inline-block;
}

.cta-inner {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-secondary));
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 64px 30px;
}
.cta-inner p {
    max-width: 520px;
    margin: 0 auto 28px;
}

.product-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 18px;
}
.product-desc {
    margin-bottom: 22px;
}
.product-price {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--accent);
}
.product-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}


/* ---------------------------------------------------------------------
   10. PURCHASE FORM
   --------------------------------------------------------------------- */
.purchase-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 44px;
    max-width: 560px;
    margin: 0 auto;
}
.purchase-card .section-title {
    margin-bottom: 32px;
}

.form-floating > .form-control {
    background-color: var(--bg-secondary);
    border: 1px solid #333;
    color: var(--text-primary);
    border-radius: 10px;
    font-size: 1.15rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}
.form-floating > .form-control:focus {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.form-floating > label {
    color: #888;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--accent);
}
.form-floating .address-input {
    min-height: 110px;
    resize: vertical;
}

/* Autofill fix so browsers don't force a white background on dark inputs */
.form-floating > .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-secondary) inset;
    -webkit-text-fill-color: var(--text-primary);
}

/* Validation state: red border + shake, triggered via JS on invalid fields */
.invalid-feedback {
    color: var(--danger) !important;
    font-size: 0.85rem;
    margin-top: 6px;
}
.form-control.is-invalid {
    border-color: var(--danger) !important;
    background-color: rgba(231, 76, 60, 0.08) !important;
}
@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}
.shake {
    animation: shake 0.5s ease;
}

/* Small notes list under the continue button - add more <li> items anytime */
.form-notes {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}
.form-notes li {
    position: relative;
    padding-right: 18px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.8;
}
.form-notes li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Dropdown (form-floating + form-select), used on Buy.aspx step 1 */
.form-floating > .form-select {
    background-color: var(--bg-secondary);
    border: 1px solid #333;
    color: var(--text-primary);
    border-radius: 10px;
    font-size: 1.15rem;
}
.form-floating > .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.form-floating > .form-select ~ label {
    color: #888;
}
.form-floating > .form-select:focus ~ label {
    color: var(--accent);
}

/* Confirmation step (Buy.aspx step 2) */
.confirm-question {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 28px;
}
.confirm-details {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 30px;
}
.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.confirm-row:last-child {
    border-bottom: none;
}
.confirm-key {
    color: var(--text-muted);
    font-weight: 600;
}
.confirm-value {
    color: var(--accent);
    font-weight: 600;
}

.success-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
}
.success-message i {
    font-size: 3.5rem;
    color: var(--success);
    display: block;
    margin-bottom: 16px;
}


/* ---------------------------------------------------------------------
   11. FOOTER
   --------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-secondary);
    padding: 60px 0 24px;
    margin-top: 40px;
    border-top: 1px solid var(--border-subtle);
}
.footer-heading {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 1.05rem;
}
.footer-about-text {
    font-size: 0.92rem;
    margin-bottom: 0;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact li {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.footer-contact i {
    color: var(--accent);
    margin-left: 8px;
}
.social-icons {
    display: flex;
    gap: 12px;
}
.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 50%;
    color: var(--text-primary);
    transition: background-color var(--transition-med), color var(--transition-med), transform var(--transition-fast);
}
.social-icons a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}
.footer-divider {
    border-color: var(--border-subtle);
    margin: 32px 0 20px;
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}


/* ---------------------------------------------------------------------
   12. FADE-IN ON SCROLL
   --------------------------------------------------------------------- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------------------------------------------------------------------
   13. RESPONSIVE OVERRIDES
   --------------------------------------------------------------------- */

/* Tablet and below: collapse nav into a dropdown, show hamburger */
@media (max-width: 991.98px) {
    .hamburger {
        display: flex;
        order: 1;
    }
    .main-nav {
        order: 2;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--bg-secondary);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-med);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    }
    .main-nav.open {
        max-height: 420px;
    }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 6%;
    }
    .nav-list li {
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-list li:last-child {
        border-bottom: none;
    }
    .nav-link {
        display: block;
        padding: 14px 0;
    }
    .site-logo { order: 3; }
    .site-logo img {
        width: 150px;
        height: 75px;
    }
}

/* Mobile phones */
@media (max-width: 767.98px) {
    .product-section,
    .purchase-section,
    .features-section,
    .products-section,
    .cta-banner {
        padding: 50px 0;
    }
    .purchase-card {
        padding: 26px;
    }
    .hero {
        min-height: 58vh;
    }
    .site-logo img {
        width: 120px;
        height: 60px;
    }
    .cta-inner {
        padding: 44px 20px;
    }
}


/* =====================================================================
   HELP PAGE (tabs + step guides)
   ===================================================================== */
.help-section {
    padding: 80px 0;
}
.help-page-intro {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Tab nav - reskinned Bootstrap nav-tabs for the dark theme */
.help-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 36px;
}
.help-tabs .nav-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-family: var(--font-main);
    padding: 12px 20px;
    border-radius: 10px 10px 0 0;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}
.help-tabs .nav-link i {
    margin-left: 6px;
}
.help-tabs .nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-elevated);
}
.help-tabs .nav-link.active {
    color: var(--accent);
    background-color: var(--bg-elevated);
    border-bottom: 2px solid var(--accent);
}
.help-tabs .nav-link.help-tab-special {
    color: #f0a020;
}
.help-tabs .nav-link.help-tab-special:hover,
.help-tabs .nav-link.help-tab-special.active {
    color: #f0a020;
    background-color: rgba(240, 160, 32, 0.08);
    border-bottom-color: #f0a020;
}

.help-tab-title {
    margin-bottom: 18px;
}
.help-intro {
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* Numbered step blocks */
.help-step {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 26px 28px;
    margin-bottom: 22px;
}
.help-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.help-step-header h3 {
    margin: 0;
    font-size: 1.15rem;
}
.help-step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
}
.help-step-number-alt {
    background: #f0a020;
}
.help-step-body p {
    margin-bottom: 12px;
}
.help-step-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.help-step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.help-step-list li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
    line-height: 1.8;
}
.help-step-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Callout boxes (warning / danger / info) */
.help-callout {
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 16px 0;
    border-right: 4px solid;
}
.help-callout-title {
    font-weight: 700;
    margin-bottom: 8px;
}
.help-callout p,
.help-callout li {
    margin-bottom: 0;
}
.help-callout-warning {
    background: rgba(240, 160, 32, 0.1);
    border-color: #f0a020;
    color: #f0c674;
}
.help-callout-danger {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--danger);
    color: #f19c93;
}
.help-callout-info {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--text-primary);
}
.help-callout-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.help-callout-list li {
    margin-bottom: 6px;
}

/* Checkmark tip list */
.help-checklist {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}
.help-checklist li {
    position: relative;
    padding-right: 26px;
    margin-bottom: 10px;
    line-height: 1.8;
}
.help-checklist li::before {
    content: '\2714';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Download button */
.help-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.help-download-btn:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
}

/* Screenshots inside a help step */
.help-screenshot {
    margin: 16px 0;
    text-align: center;
}
.help-screenshot img {
    max-width: 280px;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}
.help-screenshot-row {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}
.help-screenshot-small {
    flex: 1;
    min-width: 200px;
}
.help-screenshot-small img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

/* "Coming soon" placeholder for OS tabs not filled in yet */
.help-coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.help-coming-soon i {
    font-size: 2.5rem;
    color: var(--accent);
    display: block;
    margin-bottom: 14px;
}

@media (max-width: 767.98px) {
    .help-section {
        padding: 50px 0;
    }
    .help-tabs .nav-link {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    .help-step {
        padding: 20px;
    }
}


/* =====================================================================
   RESELLER PANEL (ress-panel.aspx)
   ===================================================================== */
.ress-section {
    padding: 80px 0;
}
.ress-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 44px;
    max-width: 680px;
    margin: 0 auto;
}

.ress-balance {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 1.05rem;
    color: var(--text-muted);
}
.ress-balance-value {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.25rem;
}

.ress-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.ress-price-list-title {
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.ress-price-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.ress-price-list-items li {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
}
.ress-price-list-items li:last-child {
    border-bottom: none;
}

.ress-subtitle {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 24px;
}

.ress-note-text {
    color: var(--text-muted);
    line-height: 1.9;
    margin: 20px 0;
}

.ress-links-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.ress-links-list li {
    margin-bottom: 10px;
}
.ress-links-list a {
    color: var(--accent);
    text-decoration: underline;
}
.ress-links-list a:hover {
    color: var(--accent-hover);
}

.ress-columns-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
    direction: ltr;
    text-align: left;
    font-family: 'Courier New', monospace;
}
.ress-accounts-textarea {
    min-height: 280px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    direction: ltr;
    text-align: left;
    resize: vertical;
}

@media (max-width: 767.98px) {
    .ress-section {
        padding: 50px 0;
    }
    .ress-card {
        padding: 26px;
    }
}


/* =====================================================================
   14. SCROLLBAR (dark theme touch)
   ===================================================================== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-hover);
    border-radius: 10px;
}

/* =====================================================================
   RESELLER PANEL - ACCOUNTS TABLE (ViewAllAccounts on ress-panel.aspx)
   ===================================================================== */
.ress-accounts-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    margin-top: .25rem;
}

.ress-accounts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

.ress-accounts-table th,
.ress-accounts-table td {
    padding: .75rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    white-space: nowrap;
}

.ress-accounts-table thead th {
    background: rgba(45, 156, 219, 0.12);
    color: var(--accent);
    font-weight: 600;
}

.ress-accounts-table tbody tr:last-child td {
    border-bottom: none;
}

.ress-accounts-table tbody tr:hover {
    background: rgba(45, 156, 219, 0.06);
}

.ress-accounts-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 1.5rem 1rem !important;
    white-space: normal !important;
}

.ress-accounts-note {
    color: var(--text-muted);
    font-size: .85rem;
    text-align: center;
    margin-top: .75rem;
    margin-bottom: 0;
}


/* =====================================================================
   TELEGRAM ANNOUNCEMENT BAR (Site.Master, under the header)
   ===================================================================== */
.tg-announce {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(90deg, #1B6FA8, #2D9CDB);
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
}
.tg-announce i {
    font-size: 1.1rem;
}
.tg-announce a {
    color: #fff;
    font-weight: 600;
}
.tg-announce a:hover {
    color: #fff;
    text-decoration: underline;
}
@media (max-width: 767.98px) {
    .tg-announce {
        font-size: 0.85rem;
        padding: 8px 12px;
        gap: 6px;
    }
}


/* =====================================================================
   WELCOME MODAL (Site.Master, shown once per browser via site.js)
   ===================================================================== */
.welcome-modal .modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
}
.welcome-modal .modal-body {
    padding: 36px 28px;
    text-align: right;
}
.welcome-modal .welcome-icon {
    font-size: 2.5rem;
    color: var(--accent);
    display: block;
    margin-bottom: 18px;
    text-align: center;
}
.welcome-modal .welcome-line {
    color: var(--text-primary);
    line-height: 1.9;
    margin-bottom: 14px;
}
.welcome-modal .welcome-line a {
    color: var(--accent);
    font-weight: 600;
}
.welcome-modal .welcome-line a:hover {
    color: var(--accent-hover);
}
.welcome-modal .btn-accent {
    margin-top: 8px;
}


/* =====================================================================
   PRODUCTS SLIDER (Default.aspx)
   ===================================================================== */
.products-slider-wrap {
    position: relative;
}
.products-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-hover) transparent;
}
.products-slider::-webkit-scrollbar {
    height: 6px;
}
.products-slider::-webkit-scrollbar-track {
    background: transparent;
}
.products-slider::-webkit-scrollbar-thumb {
    background: var(--accent-hover);
    border-radius: 10px;
}
.product-slide {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    display: flex;
}
.product-slide .product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}
/* Two cards visible on tablet */
@media (max-width: 991.98px) {
    .product-slide {
        flex-basis: calc((100% - 24px) / 2);
    }
}
/* One card visible on phones */
@media (max-width: 767.98px) {
    .product-slide {
        flex-basis: 100%;
    }
}

/* Round prev/next arrows (RTL: prev on the right, next on the left) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}
.slider-btn.slider-prev {
    right: 10px;
}
.slider-btn.slider-next {
    left: 10px;
}
.slider-btn:hover {
    background: var(--accent);
    color: #fff;
}
.slider-btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}


/* =====================================================================
   PRODUCT CARD TITLE + IMAGE CREDIT (Default.aspx)
   ===================================================================== */
.product-name {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: var(--text-primary);
}
.img-credit {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}
.img-credit a {
    color: inherit;
    text-decoration: underline;
}

/* ===== 2026-09-16: reseller test-account block + footer links ===== */
.ress-test-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}
.ress-test-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin: 6px 0;
}
.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
}
.footer-contact a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== 2026-09-16: telegram channel box (animated multi-color ring) ===== */
.tg-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 18px rgba(45, 156, 219, 0.35);
}
.tg-box::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: 50%;
    top: 50%;
    width: 240%;
    height: 700%;
    transform: translate(-50%, -50%) rotate(0deg);
    background: conic-gradient(#2D9CDB, #9B51E0, #EB5757, #F2C94C, #27AE60, #2D9CDB);
    animation: tgRing 4s linear infinite;
}
.tg-box::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 3px;
    border-radius: 11px;
    background: rgba(9, 30, 45, 0.92);
}
.tg-box i {
    font-size: 1.25rem;
}
.tg-box a {
    color: #fff;
    font-weight: 700;
}
.tg-box a:hover {
    color: #fff;
    text-decoration: underline;
}
@keyframes tgRing {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .tg-box::before { animation: none; }
}
@media (max-width: 767.98px) {
    .tg-box {
        font-size: 0.92rem;
        padding: 8px 14px;
        gap: 7px;
    }
    .tg-box i { font-size: 1.05rem; }
}

/* ===== 2026-09-16: subscription-panel info box (ress-panel result view) ===== */
.panel-info-box {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
}
.panel-info-title {
    color: var(--danger);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.panel-info-sub {
    color: var(--accent);
    font-size: 0.98rem;
    font-weight: 500;
}
