/* Arcangel US — shared navy/violet visual theme, without altering layout or actions. */
body:has(.admin-shell){--premium-page:#030914;--premium-surface:linear-gradient(125deg,#0d1832,#111029 75%,#1c1030);--premium-border:#2b355b;--premium-text:#f0f4ff;background:radial-gradient(ellipse at 42% 0%,#15134488,transparent 48%),radial-gradient(ellipse at 95% 10%,#480d3938,transparent 40%),#030914!important;color:#f0f4ff}
body #app{--accent:#8253ee;--accent-2:#c4a5ff;--accent-dim:#33235355;--text:#f0f4ff;--text-2:#c7d6f2;--border:#2b355b}
body:has(#app) .catalog-sidebar{background:radial-gradient(ellipse at top,#29184c55,transparent 65%),linear-gradient(180deg,#0e1027,#080e1d 70%,#130e25)!important;border-color:#292a51!important}
body:has(#app) .catalog-sidebar .filter-chip{background:linear-gradient(125deg,#12203b,#18112e)!important;border-color:#30395e!important;color:#e8efff!important;box-shadow:none!important}
body:has(#app) .catalog-sidebar .filter-chip.active{background:linear-gradient(110deg,#352259,#441c59)!important;border-color:#a46ade!important;color:#f5e7ff!important;box-shadow:inset 3px 0 #bc7bf0!important}
body:has(#app) .catalog-sidebar .filters-section{scrollbar-color:#7953b0 transparent}
body #app .header:not([class*="season-"]){background:linear-gradient(105deg,#071329,#10112b 53%,#25102d)!important;border-bottom-color:#30294f!important}
body #app :is(.search-box,.search-row select,.sort-select,.sort-box,.catalog-toolbar,.filter-bar){background:linear-gradient(120deg,#0b1730,#15112a)!important;border-color:#35436c!important;color:#edf3ff!important;border-radius:12px}
body #app #searchInput{background:transparent!important;color:#edf3ff!important}
body #app #searchInput::placeholder{color:#a7bee5!important}
body #app .search-box:focus-within{border-color:#77699b!important;box-shadow:none!important}
body #app #grid .card{background:radial-gradient(ellipse at top right,#32184b3a,transparent 65%),linear-gradient(135deg,#0c172d,#080f21)!important;border-color:#2c3a62!important;box-shadow:0 8px 28px #01051255,inset 0 1px 0 #aa99df0a!important}
body #app #grid .card:hover{border-color:#7255a1!important}
body #app #grid :is(.card-body,.card-footer){background:transparent!important}
body #app #grid .card-banner{background:#081226!important;border-color:#2b355b!important}
body #app #grid .card-name{color:#f2f4ff!important}
body #app #grid .card-desc{color:#bdcdea!important}
body #app #grid .card-btn{background:linear-gradient(115deg,#25204c,#361c50)!important;border-color:#625085!important;color:#efe7ff!important;box-shadow:none!important}
body #app #grid .card-btn:hover{background:linear-gradient(115deg,#5431a0,#742da2)!important;border-color:#ad7ee8!important}
body #app #grid .card:has(.price-signin:is(:hover,:focus,:active)) .card-btn{background:linear-gradient(115deg,#25204c,#361c50)!important;border-color:#625085!important;box-shadow:none!important;color:#efe7ff!important}
body #app :is(.customer-account-link,.customer-wallet-link,.header-action){border-color:#3a3c66!important;background-color:#0e1730!important;color:#f0f3ff!important}
body #app :is(.modal-panel,.modal-content,.product-modal,.checkout-panel){background:var(--premium-surface)!important;border-color:#3b3862!important}

/* Administration surfaces keep semantic status, destructive-action and product colors. */
body:has(.admin-shell){--panel:#0d1630;--line:#2b355b;--muted:#bacbe7}
body .admin-shell .workspace{background:transparent!important}
body .admin-shell .sidebar{background:radial-gradient(ellipse at top,#29184c55,transparent 60%),linear-gradient(180deg,#0e1027,#080e1d 70%,#130e25)!important;border-color:#292a51!important}
body .admin-shell .nav-button{color:#e6edff;border-radius:10px}
body .admin-shell .nav-button:hover{background:#46336328!important}
body .admin-shell .nav-button.active{background:linear-gradient(110deg,#352259,#27183e)!important;color:#e3b9ff!important;box-shadow:inset 3px 0 #ac69e3!important}
body .admin-shell :is(.admin-topbar,.sales-alert,.notification-controls){background:linear-gradient(105deg,#0c152c,#171132 65%,#24102f)!important;border-color:#30294f!important}
body .admin-shell :is(.settings-card,.stat,.catalog-panel,.category-card,.mail-rule-item,.yape-event,.yape-activity-card,.mini-preview,.image-editor,.inventory-create,.customer-stat-card,.sales-card){background:var(--premium-surface)!important;border-color:var(--premium-border)!important;box-shadow:0 8px 28px #02061433,inset 0 1px 0 #b6a3ff09!important}
body .admin-shell :is(.catalog-toolbar,.sales-table-tools,.inventory-reference-header,.inventory-reference-manage,.customer-reference-header,.admin-stock-chip){background:linear-gradient(125deg,#0c1830,#18112d)!important;border-color:#303b60!important}
body .admin-shell :is(.table-wrap,.inventory-table-wrap,.sales-table-wrap,.customer-table-wrap){border-color:#303b60!important;background:#091226!important}
body .admin-shell table th{background:#111c35!important;color:#dce8ff!important;border-color:#303b60!important}
body .admin-shell table td{border-color:#253252!important}
body .admin-shell table tbody tr{background:#091225!important}
body .admin-shell table tbody tr:nth-child(even){background:#0d172d!important}
body .admin-shell table tbody tr:hover td{background:#34254d33!important}
body .admin-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),select,textarea){background:#081226!important;border-color:#37466f!important;color:#f0f4ff!important}
body .admin-shell :is(input,select,textarea):focus{outline:1px solid #8972b6;outline-offset:1px;box-shadow:none}
body .admin-shell .button.primary:not(.danger){background:linear-gradient(115deg,#6540e6,#982ac0)!important;border-color:#9670df!important;color:white!important;box-shadow:none!important}
body .admin-shell :is(.button.secondary,.button.ghost):not(.danger){background:linear-gradient(125deg,#14203b,#1e1534)!important;border-color:#3c4772!important;color:#edf1ff!important}
body .admin-shell :is(.commerce-tabs,.codes-section-tabs) .button.primary{background:linear-gradient(115deg,#3e295f,#53215c)!important;border-color:#9d68c9!important}
body .admin-shell :is(.eyebrow,.nav-label){color:#c49be7!important}
body .admin-shell .admin-refresh-icon{color:#d2aeff!important;background-color:#7147a222!important}
body:has(.admin-shell) :is(.editor-dialog,.admin-dialog,.customer-action-dialog,.sales-details-modal,dialog){background:linear-gradient(125deg,#0d1832,#17102b)!important;border-color:#4c416e!important;color:#eef4ff}
body:has(.admin-shell) :is(.editor-header,.editor-footer,.settings-save){background:linear-gradient(120deg,#121c34,#1d142e)!important;border-color:#343958!important}
body:has(.admin-shell) .login-screen{background:radial-gradient(ellipse at top,#2b1b4c77,transparent 60%),#030914!important}
body:has(.admin-shell) .login-card{background:linear-gradient(125deg,#0d1832,#17102b)!important;border-color:#49416f!important}
body:has(.admin-shell) .login-card .button.primary{background:linear-gradient(115deg,#6540e6,#982ac0)!important;border-color:#9670df!important}
@media(prefers-reduced-motion:reduce){body #app .card{transition:none!important}}
body .admin-shell .sidebar nav{scrollbar-color:#7953b0 #14182a}
body .admin-shell .sidebar nav::-webkit-scrollbar-thumb{background:#7953b0!important}
/* Catalog waves retain their original animation, recolored to the navy/violet cards. */
body:has(#app){background:radial-gradient(ellipse at 75% 8%,rgba(89,48,145,.28),transparent 35%),linear-gradient(135deg,#070e1d 0%,#131026 46%,#080d19 100%)!important}
body:has(#app) #bgWave{filter:grayscale(1) sepia(1) saturate(4.5) hue-rotate(190deg);opacity:1}
/* Selection is conveyed by the colored tile, without an underline below its icon. */
body:has(#app) .catalog-sidebar .filter-chip.active::after{content:none!important;display:none!important}

/* Administration adopts the same dark/red surfaces as the storefront. */
body:has(.admin-shell){background:#090b12!important;--premium-page:#090b12;--premium-surface:linear-gradient(135deg,#17131c,#0e1119);--premium-border:#4c2b36;--panel:#101219;--line:#432a33;--muted:#c9c3c8}
body .admin-shell .sidebar{background:#0b0d12!important;border-color:#43303a!important}
body .admin-shell .nav-button:hover{background:#40171c!important}
body .admin-shell .nav-button.active{background:linear-gradient(110deg,#e94040,#4b1515)!important;color:#fff!important;box-shadow:inset 3px 0 #ff7777!important}
body .admin-shell :is(.admin-topbar,.sales-alert,.notification-controls){background:rgba(7,8,18,.96)!important;border-color:#43303a!important}
body .admin-shell :is(.catalog-toolbar,.sales-table-tools,.inventory-reference-header,.inventory-reference-manage,.customer-reference-header,.admin-stock-chip){background:linear-gradient(120deg,#25131d,#10121b)!important;border-color:#643043!important}
body .admin-shell :is(.table-wrap,.inventory-table-wrap,.sales-table-wrap,.customer-table-wrap){background:#101219!important;border-color:#432a33!important}
body .admin-shell table th{background:#21131b!important;border-color:#432a33!important;color:#fff!important}
body .admin-shell table td{border-color:#432a33!important}
body .admin-shell table tbody tr{background:#101219!important}
body .admin-shell table tbody tr:nth-child(even){background:#17131c!important}
body .admin-shell table tbody tr:hover td{background:#40171c55!important}
body .admin-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),select,textarea){background:#10131d!important;border-color:#643043!important;color:#fff!important}
body .admin-shell :is(input,select,textarea):focus{outline-color:#e94040}
body .admin-shell .button.primary:not(.danger),body .admin-shell :is(.commerce-tabs,.codes-section-tabs) .button.primary{background:linear-gradient(115deg,#e94040,#ad2935)!important;border-color:#e94040!important;color:#fff!important}
body .admin-shell :is(.button.secondary,.button.ghost):not(.danger){background:linear-gradient(120deg,#25131d,#10121b)!important;border-color:#643043!important}
body .admin-shell :is(.eyebrow,.nav-label){color:#ff7373!important}
body .admin-shell .admin-refresh-icon{color:#ff9999!important;background-color:#e9404022!important}
body:has(.admin-shell) :is(.editor-dialog,.admin-dialog,.customer-action-dialog,.sales-details-modal,dialog,.login-card){background:var(--premium-surface)!important;border-color:#643043!important}
body:has(.admin-shell) :is(.editor-header,.editor-footer,.settings-save){background:#21131b!important;border-color:#432a33!important}
body:has(.admin-shell) .login-screen{background:#090b12!important}
body:has(.admin-shell) .login-card .button.primary{background:linear-gradient(115deg,#e94040,#ad2935)!important;border-color:#e94040!important}
body .admin-shell .sidebar nav{scrollbar-color:#74313e #101219}
body .admin-shell .sidebar nav::-webkit-scrollbar-thumb{background:#74313e!important}
