/* مركز الدعم — Dark premium، بنفس هوية المتجر */
.store-main--support-center {
    padding-bottom: var(--space-section-y-lg);
}

.support-page {
    position: relative;
}

.support-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-section-y);
}

.support-hero__aurora {
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 120%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(168, 85, 247, 0.35), transparent 55%),
        radial-gradient(ellipse at 70% 60%, rgba(124, 58, 237, 0.28), transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(245, 199, 107, 0.12), transparent 45%);
    animation: support-aurora-shift 14s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes support-aurora-shift {
    from { transform: translateY(0) scale(1); opacity: 1; }
    to { transform: translateY(-12px) scale(1.04); opacity: 0.92; }
}

.support-hero__inner {
    position: relative;
    z-index: 1;
}

.support-crumb {
    font-size: var(--fluid-text-sm);
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.support-crumb a {
    color: var(--accent-glow);
    text-decoration: none;
}

.support-crumb a:hover {
    text-decoration: underline;
}

.support-hero__title {
    font-size: clamp(1.55rem, 4vw, 2.35rem);
    font-weight: 900;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #faf5ff, #e9d5ff 55%, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html:not(.dark) .support-hero__title {
    background: linear-gradient(135deg, #4c1d95, #7c3aed 55%, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
}

.support-hero__lead {
    margin: 0 0 1.5rem;
    max-width: 52ch;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: var(--fluid-text-md);
}

.glass-support {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: var(--radius-lg);
    box-shadow: var(--glow-accent-strong), var(--shadow-card);
    backdrop-filter: blur(14px);
}

html:not(.dark) .glass-support {
    background: var(--color-glass);
    border-color: rgba(124, 58, 237, 0.18);
    box-shadow: var(--shadow-md);
}

.support-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 560px;
    padding: 0.85rem 1.1rem;
    color: var(--text-soft);
}

.support-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    outline: none;
}

.support-body {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.support-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    padding: 1.25rem 1.35rem;
    color: inherit;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    cursor: pointer;
    border: none;
    font: inherit;
}

.support-card:hover:not(.support-card--disabled),
.support-card:focus-visible:not(.support-card--disabled) {
    transform: translateY(-3px);
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: var(--glow-accent-strong), 0 18px 48px rgba(15, 23, 42, 0.35);
}

.support-card--disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.support-card__ic {
    font-size: 1.75rem;
    margin-bottom: 0.65rem;
}

.support-card__ic--wa {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: linear-gradient(145deg, #25d366, #128c7e);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.support-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 800;
}

.support-card__desc {
    margin: 0 0 1rem;
    font-size: var(--fluid-text-sm);
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
}

.support-card__cta {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--accent-glow);
}

.support-faq-head {
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
}

.support-faq-head h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.support-faq-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fluid-text-sm);
}

.support-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-faq-item.support-faq-item--hidden {
    display: none;
}

.support-faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: right;
}

.support-faq-chev {
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.support-faq-item.is-open .support-faq-chev {
    transform: rotate(135deg);
}

.support-faq-a {
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.support-faq-a__inner {
    padding: 0 1.25rem 1.15rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: var(--fluid-text-sm);
}

.support-empty {
    padding: 1.5rem;
    color: var(--text-muted);
}

/* Chat overlay */
.support-chat-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.support-chat-overlay[hidden] {
    display: none;
}

.support-chat-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 18, 0.72);
    backdrop-filter: blur(6px);
}

.support-chat-panel {
    position: relative;
    width: min(440px, 100%);
    margin: 0;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    overflow: hidden;
    animation: support-slide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes support-slide-in {
    from { transform: translateX(100%); opacity: 0.6; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 540px) {
    .support-chat-panel {
        width: 100%;
        border-radius: 0;
    }
}

.support-chat-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.support-chat-back {
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.support-chat-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.support-chat-status {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.support-chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
}

.support-chat-thread {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 220px;
    max-height: min(52vh, 480px);
}

.support-msg {
    max-width: 92%;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: var(--fluid-text-sm);
    line-height: 1.55;
}

.support-msg--bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.18);
}

.support-msg--user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(168, 85, 247, 0.75));
    color: #faf5ff;
}

.support-msg--err {
    align-self: center;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.support-chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0 1rem 0.65rem;
}

.support-chat-quick button {
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    cursor: pointer;
}

.support-chat-quick button:active {
    transform: scale(0.97);
}

.support-chat-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    align-items: flex-end;
}

.support-chat-form textarea {
    flex: 1;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(168, 85, 247, 0.22);
    background: rgba(0, 0, 0, 0.18);
    color: var(--text);
    padding: 0.65rem 0.85rem;
    font: inherit;
}

.support-chat-send {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-glow));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--glow-accent);
}

.support-chat-send:disabled {
    opacity: 0.5;
    cursor: wait;
}

.support-chat-footnote {
    margin: 0;
    padding: 0 1rem 0.85rem;
    font-size: 0.68rem;
    color: var(--text-soft);
    text-align: center;
}

/* صفحة اتصل بنا */
.store-main--contact-premium {
    padding-bottom: var(--space-section-y-lg);
}

.contact-premium-page {
    padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.contact-premium__title {
    font-size: clamp(1.45rem, 3.5vw, 2.1rem);
    font-weight: 900;
    margin: 0 0 0.5rem;
}

.contact-premium__lead {
    color: var(--text-muted);
    max-width: 54ch;
    line-height: 1.7;
}

.contact-premium__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.contact-mini-card {
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.contact-mini-card:hover {
    transform: translateY(-2px);
}

.contact-mini-card .contact-mini-card__ic {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

.contact-form-panel.glass-support {
    padding: 1.5rem;
    position: relative;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-field span {
    font-weight: 700;
    font-size: 0.88rem;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    border-radius: var(--radius-md);
    border: 1px solid rgba(168, 85, 247, 0.22);
    background: rgba(0, 0, 0, 0.15);
    color: var(--text);
    padding: 0.65rem 0.85rem;
    font: inherit;
}

html:not(.dark) .contact-field input,
html:not(.dark) .contact-field select,
html:not(.dark) .contact-field textarea {
    background: #fff;
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-submit-row {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.contact-preview {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.contact-preview img {
    max-width: 160px;
    border-radius: var(--radius-sm);
    margin-top: 0.35rem;
}

/* Honeypot — إخفاء بصري عن المستخدمين الحقيقيين */
.support-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
