/* Reference-matched support layout; OMNEX palette and Cairo typography. */
.support-main{--support-accent:#ed203a;--support-soft:#ff8293;--support-surface:#1e1e26;--support-border:#30303b;max-width:820px;margin:0 auto;padding:28px 20px 48px;min-height:78vh;color:#f4f4f6;font-family:Cairo,sans-serif}
.support-main *{box-sizing:border-box}.support-main [hidden]{display:none!important}.support-main svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.support-main h1,.support-main h2,.support-main h3,.support-main p{margin:0}.support-main p{color:#aaaab6;line-height:1.8;font-size:13px}.support-main h2{font-size:16px;font-weight:900;margin-bottom:12px}.support-main h1{font-size:24px;font-weight:900}
#supportHome{display:flex;flex-direction:column;gap:22px;animation:support-home-in .4s ease}.support-hero{display:flex;align-items:center;gap:16px;padding:20px;border-radius:20px;border:1px solid #ed203a38;background:linear-gradient(135deg,#ed203a24,#ed203a05 60%),var(--support-surface)}.support-hero>div{flex:1;min-width:0}.support-hero p{margin-top:6px;line-height:1.6}.support-emblem{display:grid;place-items:center;width:56px;height:56px;flex-shrink:0;background:#ed203a29;color:var(--support-soft);border-radius:16px}.support-emblem svg{width:26px;height:26px}
.support-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border:0;border-radius:14px;background:var(--support-accent);color:white;font:900 14px Cairo,sans-serif;cursor:pointer;white-space:nowrap;transition:opacity .2s,transform .15s}.support-primary:not(:disabled):hover{opacity:.9}.support-primary:not(:disabled):active{transform:scale(.97)}.support-primary:disabled{opacity:.45;cursor:default}.support-empty .support-primary{min-height:40px;font-size:13px;padding:0 16px;margin-top:8px}
.support-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:32px 20px;border:1px solid var(--support-border);border-radius:18px;background:var(--support-surface);text-align:center}.support-empty-icon{display:grid;place-items:center;color:var(--support-soft);margin:0 auto 4px}.support-empty-icon svg{width:38px;height:38px;stroke-width:1.4}.support-empty h3{font-size:15px;font-weight:800}.support-empty p{max-width:360px;font-size:12.5px;line-height:1.7}
.support-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.support-link{--brand-color:#ff8293;display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--support-border);border-radius:16px;background:var(--support-surface);color:#f4f4f6;text-decoration:none;transition:border-color .2s,transform .2s}.support-link strong{flex:1;min-width:0;font-size:14px;font-weight:700;line-height:1.6}.support-link:hover{border-color:#ed203a73;transform:translateY(-2px)}.support-brand-icon{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;padding:7px;border-radius:12px;background:#0003;color:var(--brand-color)}.support-brand-icon svg{width:26px;height:26px}.support-brand-icon svg[fill="currentColor"]{stroke:none;fill:currentColor}.support-whatsapp{--brand-color:#40d780}.support-telegram{--brand-color:#47b8ee}.support-facebook{--brand-color:#5796ff}.support-discord{--brand-color:#989eff}.support-tiktok{--brand-color:#ff7d99}.whatsapp-phone{fill:currentColor;stroke:none}.support-arrow{display:grid;place-items:center;color:#9a9aa8;transition:color .2s,transform .2s}.support-arrow svg{width:12px;height:12px}.support-link:hover .support-arrow{color:var(--support-soft);transform:translateX(-3px)}
.support-ticket{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:14px;margin-bottom:10px;border:1px solid var(--support-border);border-radius:16px;background:var(--support-surface);color:inherit;text-align:start;font:800 14px Cairo,sans-serif;cursor:pointer;transition:border-color .2s,transform .2s,box-shadow .2s}.support-ticket:hover{border-color:#ed203a80;transform:translateY(-2px);box-shadow:0 10px 20px #0003}.support-ticket strong{overflow-wrap:anywhere}.support-ticket span{font-size:12px;color:#b3b3c1;flex-shrink:0}.support-pages{display:flex;align-items:center;justify-content:center;gap:18px;margin:15px}.support-pages button,.support-retry{background:#272731;border:1px solid #484854;color:white;padding:8px 18px;border-radius:12px;font:700 13px Cairo,sans-serif;cursor:pointer}.support-retry{margin-top:12px}#supportTickets{font-size:13px;line-height:1.8;color:#bcbcca}
.support-chat-open .support-main{max-width:820px;padding:0;margin:0 auto;min-height:0}.support-chat-open .omnex-footer,.support-chat-open .mobile-bottom-nav,.support-chat-open .mobile-nav,.support-chat-open .bottom-nav{display:none!important}.support-composer{display:flex;flex-direction:column;width:100%;height:calc(100dvh - var(--support-header-height,80px));min-height:420px;border-inline:1px solid var(--support-border);background:radial-gradient(ellipse 80% 40% at 90% 0%,#ed203a12,transparent 60%),#13131b}.support-composer header{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--support-border);background:var(--support-surface);flex-shrink:0}.support-composer header>div{flex:1;min-width:0}.support-composer header h1{font-size:15px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-composer header p{font-size:12px;margin-top:2px}.support-composer header .support-emblem{width:40px;height:40px;border-radius:50%}.support-composer header .support-emblem svg{width:20px;height:20px}#supportBack{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border:1px solid var(--support-border);border-radius:12px;background:transparent;color:#f4f4f6;cursor:pointer;transition:border-color .2s,color .2s}#supportBack:hover{border-color:#ed203a99;color:var(--support-soft)}
.support-welcome{margin:auto 0;padding:20px 8px;text-align:center}.support-welcome .support-empty-icon{width:64px;height:64px;border-radius:50%;background:#ed203a24;margin-bottom:12px}.support-welcome .support-empty-icon svg{width:28px;height:28px}.support-welcome h2{font-size:18px;margin:0;font-weight:900}.support-welcome>p{max-width:420px;margin:8px auto 0;font-size:13px;line-height:1.8}.support-welcome #topicLabel{margin-top:20px;margin-bottom:8px;font-size:12px;font-weight:800}.support-topics{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.support-topics button{padding:8px 14px;border:1px solid var(--support-border);border-radius:12px;background:var(--support-surface);color:#dddde5;font:700 12.5px Cairo,sans-serif;cursor:pointer;transition:border-color .2s,background-color .2s,color .2s}.support-topics button:hover{border-color:#ed203a80}.support-topics button[aria-pressed="true"]{border-color:var(--support-accent);background:#ed203a24;color:var(--support-soft)}
.support-composer form{flex-shrink:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--support-border);background:var(--support-surface)}.support-message-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.support-input-row{display:flex;align-items:flex-end;gap:8px}.support-input-row textarea{flex:1;min-width:0;width:0;min-height:44px;max-height:140px;padding:11px 14px;border:1px solid var(--support-border);border-radius:14px;background:#12121a;color:#f4f4f6;font:14px/1.5 Cairo,sans-serif;resize:none;outline:none;transition:border-color .2s;caret-color:var(--support-soft)}.support-input-row textarea:focus{border-color:var(--support-accent)}.support-input-row textarea::placeholder{color:#aaaab6}.support-input-row #supportAttach,.support-input-row #supportSend{display:grid;place-items:center;width:44px;height:44px;min-height:44px;flex-shrink:0;border-radius:14px;padding:0;cursor:pointer;transition:opacity .2s,transform .15s,border-color .2s,color .2s}#supportAttach{border:1px solid var(--support-border);background:transparent;color:#c4c4d0}#supportAttach:not(:disabled):hover{border-color:#ed203a99;color:var(--support-soft)}#supportAttach:disabled{opacity:.45;cursor:default}#supportAttach:not(:disabled):active,#supportSend:not(:disabled):active{transform:scale(.94)}.support-input-row svg{width:19px;height:19px}.support-composer form>small{display:block;margin-top:6px;font-size:11px;color:#aaaab6;text-align:center}
#supportAttachment{display:flex;align-items:center;gap:10px;margin-bottom:8px;padding:6px;border:1px solid var(--support-border);border-radius:12px;background:#252530}#supportAttachmentPreview{width:48px;height:48px;object-fit:cover;border-radius:8px}#supportRemoveAttachment{background:#ef444424;color:#ff9292;border:0;border-radius:10px;padding:7px 12px;font:12px Cairo,sans-serif;cursor:pointer}#supportError{padding:0 16px;color:#ffa0ad;font-size:13px;flex-shrink:0}
.support-messages{display:flex;flex-direction:column;gap:16px;flex:1;min-height:0;overflow-y:auto;padding:24px;scrollbar-color:#6a3444 #191922}.support-bubble{max-width:84%;border-radius:16px;padding:12px 16px;background:#30212b;align-self:flex-start;overflow-wrap:anywhere}.support-bubble.admin{background:#252530;align-self:flex-end}.support-bubble small{display:block;color:#b9b9c6;font-size:12px;margin-bottom:6px}.support-bubble p{white-space:pre-wrap;color:#f1f1f6}.support-bubble img{max-width:100%;max-height:300px;display:block;border-radius:10px;margin-top:10px}.support-main :focus-visible{outline:2px solid var(--support-soft);outline-offset:3px}.support-main textarea:focus-visible{outline:none}.support-main ::selection{background:#8b233a;color:white}
@keyframes support-home-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){.support-main{padding:20px 16px 36px}.support-hero{flex-wrap:wrap;padding:18px;gap:12px}.support-hero .support-emblem{width:48px;height:48px}.support-main h1{font-size:21px}.support-hero>.support-primary{width:100%;margin-top:4px}.support-list{grid-template-columns:1fr}.support-link strong{font-size:13px}.support-chat-open .support-main{padding:0}.support-composer{height:calc(100dvh - var(--support-header-height,65px));min-height:360px}.support-composer header h1{font-size:15px}.support-welcome{padding:20px 16px}.support-messages{padding:16px}.support-bubble{max-width:92%}.support-ticket strong{font-size:13px}}
/* Keep the requested support motion even when the device requests reduced motion. */
.account-page #supportHome{animation:support-home-in .4s ease!important}
.account-page .support-main button{transition-duration:.2s,.15s,.2s,.2s!important}

/* Isolate support hover states from the shared account theme. */
.account-page .support-main .support-link{cursor:pointer;background:var(--support-surface);border-color:var(--support-border);box-shadow:none;transition:border-color .2s ease,transform .2s ease}
.account-page .support-main .support-link *{cursor:inherit}
.account-page .support-main .support-link:hover{background:var(--support-surface);border-color:rgba(237,32,58,.45);box-shadow:none;transform:translateY(-2px)}
.account-page .support-main .support-brand-icon,.account-page .support-main .support-link:hover .support-brand-icon{background:rgba(0,0,0,.2);border:0;box-shadow:none;transform:none}
.account-page .support-main .support-arrow{background:transparent;border:0;box-shadow:none;color:#aaaab6;transition:color .2s ease,transform .2s ease}
.account-page .support-main .support-link:hover .support-arrow{background:transparent;border:0;box-shadow:none;color:var(--support-accent);transform:translateX(-3px)}
.account-page .support-main .support-link strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:640px){
 body.support-chat-open{overflow:hidden}
 .support-chat-open .main-header{position:fixed;inset:0 0 auto;z-index:30}
 .support-chat-open .support-main{position:fixed;top:var(--support-header-height,65px);inset-inline:0;width:100%;max-width:none;height:calc(var(--support-viewport-height,100dvh) - var(--support-header-height,65px));margin:0;min-height:0;z-index:20}
 .support-chat-open .support-composer{height:100%;min-height:0;border-inline:0}
 .support-composer header{padding:10px 12px}.support-composer header p{font-size:11px}
 .support-composer .support-welcome{flex:1;min-height:0;margin:0;overflow:auto;display:flex;flex-direction:column;justify-content:safe center;padding:24px 16px}
 .support-composer .support-messages{min-height:0;flex:1;gap:12px;padding:14px 12px}.support-composer .support-bubble{max-width:90%;min-width:0}.support-bubble img{max-height:240px;object-fit:contain}
 .support-composer form{padding:10px 10px max(10px,env(safe-area-inset-bottom));min-width:0}.support-input-row textarea{font-size:16px;max-height:110px;padding:10px 12px}.support-input-row{gap:7px}.support-composer form>small{font-size:10px}
 .support-main .support-ticket{flex-wrap:wrap;gap:8px}.support-ticket strong{min-width:0;max-width:100%}
}
@media(max-height:500px) and (max-width:640px){.support-welcome .support-empty-icon,.support-welcome>h2,.support-welcome>p:not(#topicLabel){display:none}.support-composer .support-welcome{padding:10px 12px}.support-welcome #topicLabel{margin-top:0}.support-topics{gap:5px}.support-topics button{padding:6px 9px}}

.support-open-notice{padding:18px;margin-bottom:16px;border:1px solid #83404e;border-radius:14px;background:#30202a}.support-open-notice p{color:#ffb0bd;margin-bottom:12px;font-size:14px;font-weight:700}

/* Match the storefront's circular back control without affecting chat navigation. */
.support-main .support-page-back{display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0 0 20px;border:1px solid #e5263640;border-radius:50%;background:#e5263612;color:#ff7180;cursor:pointer;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.support-page-back svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.support-main .support-page-back:hover{background:#e5263626;border-color:#ff7180;transform:translateY(-2px)}
.support-page-back:hover svg{transform:translateX(3px)}
.support-main .support-page-back:active{transform:translateY(0) scale(.96)}
.support-main .support-page-back:focus-visible{outline:2px solid #ff7180;outline-offset:4px}
#supportHome:not([data-tickets="enabled"]) .support-hero > [data-start-chat],
#supportHome:is([data-tickets="pending"],[data-tickets="disabled"]) .support-conversations{display:none}
#supportHome[data-tickets="disabled"] .support-list{grid-template-columns:minmax(0,1fr)}
.support-instagram{--brand-color:#f292c0}
@media(max-width:640px){.support-main .support-page-back{width:36px;height:36px;margin-bottom:16px}}
