/* 
 * Depox Website - Main Stylesheet
 * فایل استایل اصلی وبسایت دپوکس
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pepsi: #004b93;
    --miranda: #ff6600;
    --dew: #00a651;
    --shani: #f5a623;
    --primary-color: #3b9eff;
    --primary-dark: #2563eb;
    --secondary-color: #0a0b0f;
    --secondary-light: #14161c;
    --warehouse-dark: #060708;
    --warehouse-mid: #101218;
    --gold-glow: rgba(255, 184, 60, 0.12);
    --floor-glow: rgba(30, 38, 52, 0.5);
    --text-light: #eef2f8;
    --text-muted: #9aa8bc;
    --text-dark: #0f1419;
    --danger: #ff5c6c;
    --success: #3dd68c;
    --info: #6eb5ff;
    --warning: #ffc857;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --glass-bg: rgba(18, 20, 28, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --header-h: 72px;
    --font: 'Vazirmatn', Tahoma, sans-serif;
}

body {
    font-family: var(--font);
    background-color: var(--warehouse-dark);
    color: var(--text-light);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    text-align: center;
}

/* جلوگیری از کپی متن و تصویر */
.site-protected,
.site-protected *:not(input):not(textarea):not(select) {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.site-protected input,
.site-protected textarea,
.site-protected select {
    -webkit-user-select: text;
    user-select: text;
}

.site-protected img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    background-color: var(--warehouse-dark);
    background-image:
        linear-gradient(180deg, rgba(6, 7, 8, 0.97) 0%, rgba(10, 12, 16, 0.92) 45%, rgba(8, 9, 12, 0.98) 100%),
        var(--depox-bg-image, none);
    background-size: cover, cover;
    background-position: center 20%, center 15%;
    background-repeat: no-repeat;
    filter: brightness(0.28) saturate(0.75) blur(2px);
    transform: scale(1.06);
    animation: warehouseBgDrift 32s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 55% at 50% 8%, rgba(255, 195, 80, 0.14) 0%, transparent 52%),
        radial-gradient(ellipse 70% 40% at 50% 95%, rgba(20, 28, 42, 0.65) 0%, transparent 55%),
        radial-gradient(ellipse 35% 80% at 8% 50%, rgba(12, 16, 24, 0.75) 0%, transparent 50%),
        radial-gradient(ellipse 35% 80% at 92% 50%, rgba(12, 16, 24, 0.75) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 70%, rgba(0, 0, 0, 0.55) 100%);
    animation: warehouseLightPulse 24s ease-in-out infinite;
}

@keyframes warehouseBgDrift {
    0% { transform: scale(1.06) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, 1%); }
}

@keyframes warehouseLightPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.88; }
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 0.5rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ========== Navbar ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 0.85rem 0;
    background: rgba(6, 7, 10, 0.82);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand:hover {
    color: #fff;
    opacity: 0.92;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-right: auto;
    margin-left: 1rem;
}

.navbar-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
}

.navbar-links a:hover {
    color: #fff;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.cart-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-width: 48px;
    padding: 0.35rem 0.5rem;
    height: auto;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 1.15rem;
    transition: background 0.25s ease, transform 0.25s ease;
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-1px);
}

.cart-count {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: linear-gradient(135deg, var(--miranda), var(--shani));
    color: #fff;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    max-width: 160px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    color: var(--text-light);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.25s ease;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-menu-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    padding: 0.35rem;
    background: rgba(14, 18, 32, 0.96);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 300;
}

.user-menu-dropdown.active {
    display: block;
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.user-menu-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.user-menu-dropdown .logout-link {
    color: var(--danger);
}

/* ========== Main Content ========== */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #4a9eff, #2d7ee8);
    color: #fff;
    box-shadow: 0 6px 20px rgba(45, 126, 232, 0.35);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(45, 126, 232, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: rgba(255, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background: rgba(255, 68, 68, 0.3);
}

.btn-info {
    background: rgba(136, 204, 255, 0.2);
    color: var(--info);
    border: 1px solid var(--info);
}

.btn-info:hover {
    background: rgba(136, 204, 255, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="file"],
textarea,
select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 140, 0, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

small {
    font-size: 0.85rem;
    color: #aaa;
}

/* ========== Alerts ========== */
#alertContainer {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: rgba(68, 255, 136, 0.1);
    border: 1px solid rgba(68, 255, 136, 0.3);
    color: var(--success);
}

.alert-danger {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--danger);
}

.alert-info {
    background: rgba(136, 204, 255, 0.1);
    border: 1px solid rgba(136, 204, 255, 0.3);
    color: var(--info);
}

/* ========== Home Hero ========== */
.home-hero {
    text-align: center;
    margin: 0 0 2rem;
    padding: 0 1rem 1rem;
    width: 100%;
}

.home-hero__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-hero__visual {
    width: 100%;
    line-height: 0;
}

.home-hero__banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.home-hero__copy {
    padding: 0 0.5rem 0.5rem;
    max-width: 520px;
}

.home-hero-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
}

.home-hero h1 {
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    color: #fff;
}

.home-hero-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 auto 1.15rem;
    line-height: 1.75;
    max-width: 420px;
}

.home-hero__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

@media (min-width: 992px) {
    .home-hero {
        padding: 0 1.5rem 1.5rem;
    }

    .home-hero__grid {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        direction: ltr;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .home-hero__visual {
        order: 1;
    }

    .home-hero__copy {
        order: 2;
        direction: rtl;
        max-width: none;
        padding: 1rem 0;
    }

    .home-hero__banner {
        border-radius: var(--radius);
    }
}

.main-content .product-info,
.main-content .product-card,
.main-content .cart-summary,
.main-content .checkout-form,
.main-content .order-details,
.main-content .order-card,
.main-content .page-header,
.main-content .empty-cart,
.main-content .quantity-selector {
    text-align: center;
}

.main-content .quantity-selector {
    justify-content: center;
}

.main-content label {
    text-align: center;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.35rem;
}

.page-header p {
    color: var(--text-muted);
    margin: 0;
}

/* ========== Features Section ========== */
.features {
    margin: 3rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(255, 140, 0, 0.05);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

/* ========== Products Grid ========== */
.products-section {
    margin: 3rem 0;
}

.products-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.products-grid--four {
    /* kept for backward compatibility */
}

.products-grid--dynamic {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

@media (min-width: 480px) {
    .products-grid--dynamic {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.35rem;
    }
}

@media (min-width: 768px) {
    .products-grid--dynamic {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1100px) {
    .products-grid--home {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.product-card:hover:not(.product-card--sold-out) {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.product-in-cart--inline {
    display: block;
    position: static;
    margin-bottom: 0.75rem;
    border-radius: 8px;
}

.product-in-cart {
    position: absolute;
    bottom: 10px;
    right: 10px;
    left: 10px;
    text-align: center;
    padding: 0.35rem 0.6rem;
    background: linear-gradient(135deg, rgba(61, 214, 140, 0.95), rgba(45, 126, 232, 0.9));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-admin-header {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--miranda), var(--shani));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
}

.btn-admin-header:hover {
    color: #fff;
    transform: translateY(-1px);
}

.cart-packages-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1;
}

.register-fields .auth-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: -0.5rem 0 1rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.25rem 0;
    line-height: 1.6;
}

.footer-tagline-sub {
    color: var(--shani);
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-content--rich {
    grid-template-columns: 1.2fr 1fr 0.9fr;
}

@media (max-width: 768px) {
    .footer-content--rich {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .btn-admin-header span { display: none; }
}

.product-card--pepsi { border-top: 3px solid var(--pepsi); }
.product-card--miranda { border-top: 3px solid var(--miranda); }
.product-card--dew { border-top: 3px solid var(--dew); }
.product-card--shani { border-top: 3px solid var(--shani); }

.product-card--sold-out {
    opacity: 0.72;
}

.product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 248, 252, 0.92) 100%);
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 14, 26, 0.85);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-badge--out {
    background: rgba(255, 92, 106, 0.9);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.brand {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.package-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quantity-selector label {
    margin: 0;
}

.quantity-selector input {
    width: 60px;
}

.product-card .btn {
    width: 100%;
    justify-content: center;
}

/* ========== Cart ========== */
.empty-cart {
    text-align: center;
    padding: 3rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.empty-cart i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-cart p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.cart-items {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background: rgba(255, 140, 0, 0.1);
    border-bottom: 2px solid rgba(255, 140, 0, 0.2);
}

.cart-table th {
    padding: 1rem;
    text-align: right;
    color: var(--primary-color);
    font-weight: 600;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
}

.item-name {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}

.item-name img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.item-name h4 {
    margin-bottom: 0.25rem;
}

.item-name small {
    color: #aaa;
}

.item-price,
.item-subtotal {
    color: var(--primary-color);
    font-weight: 600;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 140, 0, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 140, 0, 0.2);
    width: fit-content;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: rgba(255, 140, 0, 0.2);
}

.qty-value {
    width: 40px;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 0 0.5rem;
}

.item-remove {
    text-align: center;
}

.cart-summary {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-light);
}

.summary-divider {
    border-top: 1px solid rgba(255, 140, 0, 0.2);
    margin: 1rem 0;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.cart-summary .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
}

/* ========== Order Confirmation ========== */
.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
}

.confirmation-success {
    background: linear-gradient(135deg, rgba(68, 255, 136, 0.1), rgba(26, 31, 58, 0.5));
    border: 1px solid rgba(68, 255, 136, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.confirmation-success i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.order-details {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-item span {
    color: var(--primary-color);
    font-weight: 600;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.order-items-table th {
    text-align: right;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    color: var(--primary-color);
}

.order-items-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    text-align: right;
}

.order-total {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 140, 0, 0.05);
    border-radius: 8px;
    margin: 1.5rem 0;
}

.total-amount {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.confirmation-actions .btn {
    flex: 1;
    justify-content: center;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 221, 68, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 221, 68, 0.3);
}

.status-processing {
    background: rgba(136, 204, 255, 0.1);
    color: var(--info);
    border: 1px solid rgba(136, 204, 255, 0.3);
}

.status-shipped {
    background: rgba(100, 200, 255, 0.1);
    color: #64c8ff;
    border: 1px solid rgba(100, 200, 255, 0.3);
}

.status-delivered {
    background: rgba(68, 255, 136, 0.1);
    color: var(--success);
    border: 1px solid rgba(68, 255, 136, 0.3);
}

.status-cancelled {
    background: rgba(255, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

/* ========== Authentication Pages ========== */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.auth-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 16px;
    padding: 3rem;
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #ffaa33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form {
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.demo-info {
    background: rgba(136, 204, 255, 0.05);
    border: 1px solid rgba(136, 204, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: var(--info);
}

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(26, 31, 58, 0.5));
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid rgba(255, 140, 0, 0.2);
    backdrop-filter: blur(10px);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* ========== Section Footer ========== */
.section-footer {
    text-align: center;
    margin-top: 2rem;
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: #aaa;
    font-size: 1.2rem;
}

/* ========== Footer ========== */
.footer {
    background: rgba(10, 14, 39, 0.8);
    border-top: 1px solid rgba(255, 140, 0, 0.2);
    padding: 3rem 2rem 1rem;
    margin-top: auto;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
    color: #aaa;
}

/* ========== Admin Styles ========== */
.admin-container {
    display: grid;
    grid-template-columns: minmax(200px, 220px) 1fr;
    gap: 1.25rem;
    max-width: 100%;
    text-align: center;
}

.admin-sidebar {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.admin-menu h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.admin-menu ul {
    list-style: none;
    margin-bottom: 2rem;
}

.admin-menu li {
    margin-bottom: 0.5rem;
}

.admin-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(255, 140, 0, 0.2);
    color: var(--primary-color);
}

.admin-logout {
    text-align: center;
}

.admin-logout .btn {
    width: 100%;
    justify-content: center;
}

.admin-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    backdrop-filter: blur(10px);
    min-width: 0;
    font-size: 0.9rem;
}

.admin-content h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.admin-content h2 {
    font-size: 1.05rem;
}

.content-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.content-header h1 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

/* ========== Stats Grid ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(26, 31, 58, 0.5));
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    backdrop-filter: blur(10px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-products {
    background: rgba(255, 140, 0, 0.2);
    color: var(--primary-color);
}

.stat-orders {
    background: rgba(136, 204, 255, 0.2);
    color: var(--info);
}

.stat-users {
    background: rgba(200, 150, 255, 0.2);
    color: #c896ff;
}

.stat-revenue {
    background: rgba(68, 255, 136, 0.2);
    color: var(--success);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0;
}

/* ========== Admin Tables ========== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.admin-table thead {
    background: rgba(255, 140, 0, 0.1);
    border-bottom: 2px solid rgba(255, 140, 0, 0.2);
}

.admin-table th {
    padding: 0.65rem 0.5rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.admin-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    text-align: center;
    font-size: 0.82rem;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(255, 140, 0, 0.05);
}

.product-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
}

/* ========== Modals ========== */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--secondary-light);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-large {
    max-width: 700px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    margin-bottom: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
}

.order-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-section {
    margin-top: 3rem;
}

.recent-section h2 {
    margin-bottom: 1.5rem;
}

/* Login overlay — جدا از .modal ادمین */
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.login-modal.is-open {
    display: flex;
    pointer-events: auto;
}

.login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 12, 0.82);
    backdrop-filter: blur(10px);
}

.login-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: rgba(18, 22, 38, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

body.modal-open {
    overflow: hidden;
}

.auth-status {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.auth-step {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 140, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-group input::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

#userStatusText {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    text-align: center;
    color: var(--text-light);
}

.btn-login-header {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    color: #fff;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.btn-login-header:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.footer-content--minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem;
}

.footer-brand {
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
}

.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.footer-nav {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin: 0.5rem 0;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-contact {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* ========== Responsive Design ========== */
/* ========== About Page ========== */
.about-hero {
    text-align: center;
    padding: 2rem 1rem 2.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.about-hero,
.about-story__text,
.about-pillars,
.trust-card {
    text-align: center;
}

.about-hero__logo-wrap {
    margin-bottom: 1.25rem;
}

.about-hero__logo {
    width: min(280px, 72vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 32px rgba(0, 0, 0, 0.45));
}

.about-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

.about-hero__lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.trust-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.trust-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.trust-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 75, 147, 0.35), rgba(255, 102, 0, 0.25));
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.trust-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.trust-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 0;
}

.about-trust {
    padding: 2rem 0 3rem;
}

.about-story {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--glass-border);
}

.about-story__inner {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

.about-story__text p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.about-pillars {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-pillars li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-pillars li span {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.about-cta {
    padding: 2.5rem 0 1rem;
}

.about-cta__inner {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.about-cta__inner h2 {
    margin-bottom: 0.5rem;
}

.about-cta__inner p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .navbar-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 0;
        padding-top: 0.35rem;
        border-top: 1px solid var(--glass-border);
        gap: 1.5rem;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .btn-login-header span {
        display: none;
    }

    .user-menu-name {
        display: none;
    }

    .home-hero {
        padding-top: 1.5rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .about-story__inner {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1.25rem 1rem 2rem;
    }

    .admin-container {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .cart-wrapper {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    #alertContainer {
        max-width: 90%;
        right: 5%;
        left: 5%;
    }

    .modal {
        width: 95%;
        padding: 1.5rem;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-cart {
        margin-right: 1rem;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-table {
        font-size: 0.9rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 0.5rem;
    }

    .item-name {
        gap: 0.5rem;
    }

    .item-name img {
        width: 40px;
        height: 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.9rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

/* Cart & Checkout */
.cart-timer {
    text-align: center;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: var(--radius);
    color: var(--warning);
    font-size: 0.95rem;
}

.cart-timer-sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.cart-item-qty-label {
    font-size: 1rem;
    margin: 0.5rem 0 0.75rem;
    color: var(--text-light);
}

.cart-item-qty-num {
    color: var(--success);
    font-size: 1.15rem;
    margin: 0 0.15rem;
}

.cart-item-unit-price {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.35rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.qty-control .qty-value {
    width: 56px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.cart-item-card__img img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
}

.cart-item-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.checkout-steps span {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: var(--glass-bg);
    color: var(--text-muted);
}

.checkout-steps .active {
    background: rgba(74, 158, 255, 0.2);
    color: #fff;
}

.checkout-steps .done {
    color: var(--success);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.checkout-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.req { color: var(--danger); }

.checkout-items {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.checkout-items li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.checkout-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.payment-result {
    text-align: center;
    padding: 3rem 1rem;
}

.payment-result i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.payment-result--success i { color: var(--success); }
.payment-result--error i { color: var(--danger); }

.footer-content--rich {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 1200px) {
    .footer-content--rich {
        text-align: right;
    }

    .footer-col--brand,
    .footer-col--contact,
    .footer-col--enamad {
        text-align: inherit;
    }
}

.footer-col h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-link:hover { color: #fff; }

.footer-link--rubika { color: #e8a317; }

.enamad-placeholder {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px dashed var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.accounting-stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.month-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-scroll { overflow-x: auto; }

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cart-item-card { grid-template-columns: 64px 1fr; }
    .cart-item-card__side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
}

/* ========== Visual polish (layout & content unchanged) ========== */
html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(74, 158, 255, 0.35);
    color: #fff;
}

.navbar--scrolled {
    background: rgba(6, 9, 18, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.navbar-brand .brand-logo {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 6px 18px rgba(74, 158, 255, 0.25);
}

.navbar-links a {
    position: relative;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--shani));
    transition: width 0.25s ease;
}

.navbar-links a:hover::after {
    width: 100%;
}

.cart-count {
    animation: cartPulse 2.5s ease-in-out infinite;
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.product-card {
    position: relative;
    isolation: isolate;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        125deg,
        transparent 40%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 60%
    );
    transform: translateX(-120%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.product-card:hover:not(.product-card--sold-out)::before {
    transform: translateX(120%);
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-image {
    transition: background 0.35s ease;
}

.product-card:hover:not(.product-card--sold-out) .product-image {
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover:not(:disabled)::after {
    transform: translateX(100%);
}

.home-hero-inner {
    animation: heroFadeIn 0.8s ease both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trust-card,
.feature-card,
.cart-item-card,
.checkout-form,
.about-cta__inner {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--miranda), transparent);
    opacity: 0.6;
}

.login-modal__panel {
    animation: modalPop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(74, 158, 255, 0.65);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body::before,
    body::after,
    .cart-count,
    .home-hero-inner,
    .login-modal__panel,
    .product-card::before,
    .btn-primary::after {
        animation: none;
        transition: none;
    }
    .product-card:hover:not(.product-card--sold-out)::before {
        transform: none;
    }
}

@media (max-width: 767px) {
    .page-header--split {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .confirmation-actions,
    .order-view-actions {
        flex-direction: column;
    }

    .order-view-actions .btn,
    .confirmation-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .order-quick-actions {
        justify-content: center;
    }

    .home-hero__banner {
        border-radius: 0;
    }
}

/* ========== User orders ========== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.order-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.order-card:hover {
    border-color: rgba(74, 158, 255, 0.35);
    transform: translateY(-2px);
}

.order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.order-card__label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.order-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.order-card__total {
    color: #fff;
    font-weight: 700;
}

.order-card__address {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.order-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.order-card__hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 100%;
}

.order-card__hint--danger {
    color: var(--danger);
}

.orders-empty {
    max-width: 420px;
    margin: 0 auto;
}

.page-header--split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.order-view-date {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.order-view-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.order-details--profile {
    margin-top: 0.5rem;
}

.order-status-hint {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.order-status-hint--info {
    background: rgba(110, 181, 255, 0.12);
    border: 1px solid rgba(110, 181, 255, 0.35);
    color: var(--info);
}

.order-status-hint--success {
    background: rgba(61, 214, 140, 0.12);
    border: 1px solid rgba(61, 214, 140, 0.35);
    color: var(--success);
}

.order-status-hint--danger {
    background: rgba(255, 92, 108, 0.12);
    border: 1px solid rgba(255, 92, 108, 0.35);
    color: var(--danger);
}

.order-status-hint--warning {
    background: rgba(255, 200, 87, 0.12);
    border: 1px solid rgba(255, 200, 87, 0.35);
    color: var(--warning);
}

.status-paid { background: rgba(61, 214, 140, 0.15); color: var(--success); border: 1px solid rgba(61, 214, 140, 0.35); }
.status-shipped { background: rgba(110, 181, 255, 0.15); color: var(--info); border: 1px solid rgba(110, 181, 255, 0.35); }
.status-delivered { background: rgba(61, 214, 140, 0.2); color: #7dffb8; border: 1px solid rgba(61, 214, 140, 0.45); }
.status-cancelled { background: rgba(255, 92, 108, 0.15); color: var(--danger); border: 1px solid rgba(255, 92, 108, 0.35); }
.status-expired { background: rgba(255, 200, 87, 0.12); color: var(--warning); border: 1px solid rgba(255, 200, 87, 0.35); }

.admin-subtitle {
    color: var(--text-muted);
    margin: -0.5rem 0 1.25rem;
    font-size: 0.92rem;
}

.order-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.rubika-setup-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.rubika-steps {
    margin: 1rem 0 1.25rem;
    padding-right: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.rubika-hint {
    color: var(--warning);
    margin: 1rem 0;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

.rubika-test-form {
    margin-top: 1.5rem;
    max-width: 480px;
}

@media (min-width: 768px) {
    .order-card__actions {
        justify-content: flex-start;
    }

    .orders-list {
        max-width: 100%;
    }
}

/* ========== User orders (profile) ========== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 760px;
    margin: 0 auto;
}

.order-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.order-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.order-card__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    text-align: center;
}

.order-card__label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.order-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
    text-align: center;
}

.order-card__total {
    color: #fff;
    font-weight: 700;
}

.order-card__address {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 1rem;
    line-height: 1.6;
    text-align: center;
}

.order-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.order-card__hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-card__hint--danger { color: #ff8a96; }

.order-status-hint {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.order-status-hint--info {
    background: rgba(110, 181, 255, 0.12);
    border: 1px solid rgba(110, 181, 255, 0.35);
    color: var(--info);
}

.order-status-hint--success {
    background: rgba(61, 214, 140, 0.12);
    border: 1px solid rgba(61, 214, 140, 0.35);
    color: var(--success);
}

.order-status-hint--danger {
    background: rgba(255, 92, 106, 0.12);
    border: 1px solid rgba(255, 92, 106, 0.35);
    color: var(--danger);
}

.order-status-hint--warning {
    background: rgba(255, 200, 87, 0.12);
    border: 1px solid rgba(255, 200, 87, 0.35);
    color: var(--warning);
}

.page-header--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-view-date {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.order-view-status {
    align-self: flex-start;
}

.order-details--profile {
    margin-bottom: 1.5rem;
}

.order-view-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.status-paid { background: rgba(61, 214, 140, 0.15); color: var(--success); border: 1px solid rgba(61, 214, 140, 0.35); }

/* ========== Admin orders quick actions ========== */
.admin-subtitle {
    color: var(--text-muted);
    margin: -0.5rem 0 1.25rem;
    font-size: 0.92rem;
}

.order-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.order-quick-actions .btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
}

.admin-table--orders td {
    vertical-align: top;
    min-width: 140px;
}

.rubika-setup-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.rubika-steps {
    margin: 1rem 0 1.25rem;
    padding-right: 1.25rem;
    color: var(--text-muted);
    line-height: 1.85;
}

.rubika-steps code {
    background: rgba(0, 0, 0, 0.35);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.rubika-hint {
    color: var(--warning);
    font-size: 0.9rem;
}

.rubika-test-form {
    margin-top: 1.25rem;
    max-width: 420px;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

.main-content > .home-hero:first-child {
    width: calc(100% + 3rem);
    max-width: none;
    margin: -2rem -1.5rem 2rem;
    padding: 0;
}

.order-info-grid .info-item {
    text-align: center;
    align-items: center;
}

.order-items-table th,
.order-items-table td {
    text-align: center;
}

.summary-row {
    justify-content: center;
}

.cart-table th,
.cart-table td {
    text-align: center;
}

@media (max-width: 991px) {
    .main-content {
        padding-top: 1rem;
    }

    .main-content > .home-hero:first-child {
        width: calc(100% + 2rem);
        margin: -1rem -1rem 1.5rem;
    }
}

@media (max-width: 1024px) {
    .admin-container {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
        margin-bottom: 1rem;
    }

    .admin-menu li {
        margin: 0;
    }

    .admin-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.82rem;
    }

    .admin-logout {
        margin-top: 0.5rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-number {
        font-size: 1.35rem;
    }
}

@media (min-width: 768px) {
    .order-status-hint {
        justify-content: center;
    }
}

/* ========== Footer mobile/tablet center ========== */
@media (max-width: 1199px) {
    .footer-content--rich,
    .footer-col,
    .footer-col--brand,
    .footer-col--contact,
    .footer-col--enamad {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-link {
        justify-content: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col--brand .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .enamad-box,
    .enamad-placeholder {
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }

    .footer-col h4 {
        text-align: center;
        width: 100%;
    }
}

/* ========== No zoom (عمومی) / زوم آزاد در پنل ادمین ========== */
body.no-pinch-zoom,
body.no-pinch-zoom html {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

body.admin-panel-viewport {
    touch-action: auto;
    -ms-touch-action: auto;
}

html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

input,
textarea,
select,
.qty-input {
    font-size: 16px !important;
}

.stock-qty {
    font-size: 1.1rem;
    color: #fff;
    display: block;
}

.stock-qty-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stock-status.in-stock { color: var(--success); }
.stock-status.out-of-stock { color: var(--danger); }

.product-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card:hover:not(.product-card--sold-out) {
    border-color: rgba(255, 255, 255, 0.16);
}

.section-title {
    position: relative;
    padding-bottom: 0.5rem;
}

.trust-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    text-align: center;
}

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.btn {
    letter-spacing: 0.01em;
}

.home-hero__banner {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.home-hero__visual:hover .home-hero__banner {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__visual:hover .home-hero__banner {
        transform: none;
    }
}

/* ========== FAQ Page ========== */
.faq-hero {
    padding: 1.5rem 1rem 2rem;
    margin: 0;
    background: transparent;
}

.faq-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    max-width: 1100px;
    margin: 0 auto;
}

/* RTL: ستون اول = راست (عنوان)، ستون دوم = چپ (عکس) */
.faq-hero__content {
    text-align: right;
    order: 1;
}

.faq-hero__visual {
    order: 2;
    line-height: 0;
}

.faq-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    margin: 0 0 0.75rem;
    line-height: 1.35;
    background: linear-gradient(135deg, #fff8e7 0%, #f5d78e 35%, #c9a227 70%, #8b6914 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 12px rgba(201, 162, 39, 0.25));
}

.faq-hero__subtitle {
    color: var(--text-muted);
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.8;
    max-width: 36ch;
}

.faq-hero__banner {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    margin-inline-start: auto;
    margin-inline-end: 0;
    object-fit: contain;
    border-radius: calc(var(--radius) - 4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    pointer-events: auto;
}

.faq-section {
    padding: 0 1rem 4rem;
}

.faq-section__inner {
    max-width: 820px;
    margin: 0 auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: rgba(15, 20, 32, 0.85);
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
    border-color: rgba(201, 162, 39, 0.45);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.faq-item__question {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: right;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.35), rgba(139, 105, 20, 0.2));
    color: #f5d78e;
    font-size: 0.9rem;
    font-weight: 700;
}

.faq-item__text {
    flex: 1;
    line-height: 1.5;
}

.faq-item__icon {
    flex-shrink: 0;
    color: #c9a227;
    transition: transform 0.25s ease;
    font-size: 0.85rem;
}

.faq-item[open] .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 0.95rem;
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0 1.25rem;
    padding-top: 1rem;
}

.faq-item__answer p {
    margin: 0 0 0.75rem;
}

.faq-product-list {
    margin: 0;
    padding: 0 1.25rem 0 0;
    list-style: none;
}

.faq-product-list li {
    position: relative;
    padding: 0.35rem 0;
    padding-right: 1rem;
}

.faq-product-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9a227;
}

.faq-cta {
    margin-top: 2.5rem;
    text-align: center;
    padding: 1.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.faq-cta p {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
}

.faq-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (max-width: 767px) {
    .faq-hero {
        padding: 0 0 1.5rem;
    }

    .faq-hero__inner {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        padding: 0;
    }

    /* موبایل: عکس زیر هدر، عنوان زیر عکس */
    .faq-hero__visual {
        order: 1;
        width: 100%;
    }

    .faq-hero__content {
        order: 2;
        text-align: center;
        padding: 0 0.5rem;
    }

    .faq-hero__subtitle {
        max-width: none;
        margin: 0 auto;
    }

    .faq-hero__banner {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 600px) {
    .faq-item__question {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-cta__actions .btn {
        width: 100%;
    }
}
