﻿/* TAMILAN FIT — Unified Black / Crimson Design System v100
   Visual-only global layer. Existing app logic, forms, navigation targets,
   wallet, orders, stock, payment and admin authorization are preserved. */
:root{
 color-scheme:dark!important;
 --tf-bg:#08090d;--tf-surface:#11131a;--tf-surface-2:#181b24;--tf-surface-3:#202431;
 --tf-line:#303746;--tf-line-strong:#465064;--tf-text:#f5f6fa;--tf-muted:#aeb6c6;
 --tf-red:#f02d48;--tf-red-dark:#a80d27;--tf-red-soft:#39131e;
 --tf-green:#35d69a;--tf-amber:#f3c56b;--tf-radius:17px;
}
*{box-sizing:border-box}
html{background:var(--tf-bg)!important;color-scheme:dark!important;scroll-behavior:smooth;scroll-padding-top:88px}
body{background:radial-gradient(ellipse at 12% -12%,#35101b 0,transparent 38%),radial-gradient(ellipse at 100% 35%,#1b1119 0,transparent 35%),var(--tf-bg)!important;color:var(--tf-text)!important;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,"Noto Sans Tamil",sans-serif!important;overflow-x:hidden}
body :is(h1,h2,h3,h4,h5,h6,strong,b,legend){color:var(--tf-text)!important}
body :is(p,small,label,dt,.muted,.help,.subtitle,.description,.cc-muted,.cc-help){color:var(--tf-muted)}
body a{color:#ff8292}
body a:hover{color:#fff}
body :is(header,.site-header,.cc-top,.topbar,.top,.topnav,.store-nav,.nav-header,.admin-header,.reseller-header){
 background:rgba(10,11,16,.94)!important;color:var(--tf-text)!important;border-color:#3b2630!important;
 box-shadow:0 8px 28px #0008!important;backdrop-filter:blur(18px)!important
}
body :is(.site-header,.top,.cc-top,.topbar){border-bottom:1px solid #44232d!important}
body :is(.brand,.logo,.cc-brand,.site-header .brand,.site-header .brand strong,.top .brand){color:#fff!important}
body :is(.brand small,.logo small,.cc-brand small,.site-header .brand small){color:#aeb6c6!important}
body :is(nav,.nav,.navbar,.site-nav,.topnav,.cc-links,.cc-tabs,.tabs,.tabbar,.sidebar,.menu,.admin-menu,.reseller-menu){
 color:var(--tf-text)!important
}
body :is(nav a,.nav a,.navbar a,.site-nav a,.topnav a,.cc-links a,.sidebar a,.menu a){color:#d7dbe4!important}
body :is(nav a:hover,.nav a:hover,.navbar a:hover,.site-nav a:hover,.topnav a:hover,.cc-links a:hover,.sidebar a:hover,.menu a:hover){color:#fff!important}
body :is(.panel,.card,.stat,.tile,.widget,.section-card,.admin-panel,.admin-card,.profile-card,.summary-card,.dashboard-card,.wallet-card,.payment-card,.auth-card,.cc-panel,.cc-card,.cc-stat,.cc-row,.product-card,.order-card,.service-card,.reseller-card,.uid-card,.nova-card,.nova-counter,.nova-notice,.nova-stock-overview,.hero,.cc-hero){
 background:linear-gradient(145deg,rgba(25,28,38,.98),rgba(13,15,21,.98))!important;color:var(--tf-text)!important;
 border:1px solid var(--tf-line)!important;border-radius:var(--tf-radius)!important;box-shadow:0 10px 30px #0007!important
}
body :is(.cc-hero,.hero){border-color:#5a2936!important;background:linear-gradient(115deg,#30111b,#151720 62%,#1b1620)!important}
body :is(.panel h1,.panel h2,.panel h3,.card h1,.card h2,.card h3,.cc-card h2,.cc-card h3){color:#fff!important}
body :is(button,.btn,.button,.action-btn,.tab-btn,.menu-btn,.icon-btn,.cc-btn){
 font-family:inherit!important;border-radius:11px!important;font-weight:750!important;transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease!important;touch-action:manipulation
}
body button:not(:disabled),body .btn,body .button,body .action-btn,body .tab-btn{
 border-color:#4b5261!important
}
body button:not(:disabled):active,body .btn:active,body .button:active{transform:translateY(1px) scale(.985)!important}
body :is(.primary,.btn-primary,.button-primary,.cc-btn:not(.cc-secondary),.buy-btn,.checkout-btn,.submit-btn,button[type=submit],.active-tab,.tab.active,.nav-link.active){
 background:linear-gradient(120deg,var(--tf-red),var(--tf-red-dark))!important;color:#fff!important;border:1px solid #ff6478!important;box-shadow:0 5px 18px #ed27452b!important
}
body :is(.secondary,.outline,.ghost,.cc-secondary,.btn-secondary,.button-secondary,.icon-btn,.chip,.pill,.badge,.cc-pill){
 background:#1c202a!important;color:#e9edf5!important;border:1px solid #485163!important;box-shadow:none!important
}
body :is(.active,.selected,[aria-selected=true],[aria-current=page]){border-color:#ef4059!important}
body :is(input,textarea,select){
 background:#0c0e14!important;color:#f4f6fb!important;border:1px solid #414a5b!important;border-radius:10px!important;max-width:100%;accent-color:var(--tf-red)
}
body :is(input,textarea,select)::placeholder{color:#8993a5!important;opacity:1}
body :is(input,textarea,select):focus-visible,body button:focus-visible,body a:focus-visible{
 outline:2px solid #ff6478!important;outline-offset:2px!important;border-color:#f0445d!important
}
body :is(table,thead,tbody,tr,th,td){border-color:#303746!important}
body table{width:100%;border-collapse:collapse;color:var(--tf-text)!important}
body :is(th,td){padding:10px 12px}
body th{background:#1b202b!important;color:#f5f6fa!important}
body tr:nth-child(even){background:#ffffff05!important}
body :is(.notice,.alert,.info-box,.cc-notice,.bank-details,.receipt-box,.key-box,.delivery-box,.order-summary,.wallet-summary,.cc-picked){
 background:#171b25!important;color:#e9edf5!important;border:1px solid #3a4557!important;border-radius:12px!important
}
body :is(.success,.notice.good,.alert-success,.cc-amount-plus){color:var(--tf-green)!important}
body :is(.danger,.error,.notice.bad,.alert-danger,.cc-amount-minus){color:#ff8795!important}
body :is(.badge,.status,.status-badge,.cc-pill){border-radius:999px!important}
body img,body video{max-width:100%}
body hr,.divider,.cc-rule{border-color:#303746!important;background-color:#303746!important}
body :is(.modal,.dialog,.drawer,.dropdown-menu,.popover,.auth-dialog){
 background:#12151d!important;color:var(--tf-text)!important;border:1px solid #424b5c!important;border-radius:18px!important;box-shadow:0 20px 60px #000c!important
}
body :is(.mobile-bar,#tf81BottomNav,.bottom-nav,.mobile-nav){
 background:rgba(9,11,16,.96)!important;border-color:#343b49!important;box-shadow:0 -8px 25px #000b!important;backdrop-filter:blur(18px)!important
}
body :is(.mobile-bar button,#tf81BottomNav button,.bottom-nav button,.mobile-nav button){background:transparent!important;color:#c5ccda!important;border:0!important}
body :is(.mobile-bar button.active,#tf81BottomNav button.active,.bottom-nav button.active,.mobile-nav button.active){color:#fff!important;background:#35131e!important}
body :is(.cc-tabs button,.tabs button,.tabbar button,.sidebar button){background:#171b24!important;color:#dfe4ed!important;border:1px solid #394252!important}
body :is(.cc-tabs button.active,.tabs button.active,.tabbar button.active,.sidebar button.active){background:linear-gradient(120deg,#ed2b46,#9f0d26)!important;color:#fff!important;border-color:#ff6578!important}
body :is(.cc-link-list a,.cc-help-grid a,.list-item,.order-row,.customer-row,.product-row){
 background:#141821!important;border-color:#333e4e!important;border-radius:12px!important
}
body :is(.cc-stat span,.cc-stat small,.cc-row small,.cc-muted){color:#aeb6c6!important}
body :is(.cc-kicker,.eyebrow,.section-kicker,.panel-kicker){color:#ff7d8e!important}
body :is(.cc-big-balance,.price,.wallet-balance){color:#fff!important}
@media(max-width:760px){
 body{font-size:14px!important}
 body :is(.cc-wrap,.container,.page-wrap,.main-wrap){width:calc(100% - 20px)!important;max-width:100%!important}
 body :is(.cc-card,.card,.panel,.admin-panel,.admin-card){padding:14px!important}
 body :is(table){display:block;max-width:100%;overflow-x:auto;white-space:nowrap}
 body :is(.cc-tabs,.tabs,.tabbar,.nav,.site-nav){max-width:100%;overflow-x:auto;scrollbar-width:thin}
 body :is(button,.btn,.button,.cc-btn){min-height:42px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
