:root{
  --tc:#0f172a;
  --tc-deep:#07111f;
  --tc2:#2563eb;
  --tc3:#1d4ed8;
  --accent:#22c55e;
  --muted:#64748b;
  --bg:#f5f7fb;
  --line:#e7ebf1;
  --soft:#f8fafc;
  --sidebar:#0b1324;
  --sidebar-2:#111c31;
  --shadow:0 12px 34px rgba(15,23,42,.07);
}
*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body{margin:0;background:var(--bg);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#111827;-webkit-font-smoothing:antialiased}
a{transition:.18s ease}
.brand-dot{display:inline-block;width:.62rem;height:.62rem;background:var(--accent);border-radius:50%;margin-left:.22rem;box-shadow:0 0 0 4px rgba(34,197,94,.12)}
.portal-shell{min-height:100vh}
.portal-main{min-width:0;background:linear-gradient(180deg,#f8faff 0,#f5f7fb 220px)}

/* desktop sidebar */
.sidebar{
  min-height:100vh;background:linear-gradient(180deg,var(--sidebar) 0%,#0d1729 100%);color:#fff;
  position:sticky;top:0;height:100vh;overflow-y:auto;border-right:1px solid rgba(255,255,255,.04)
}
.sidebar-inner{display:flex;flex-direction:column;min-height:calc(100vh - 32px)}
.sidebar .brand{display:flex;align-items:center;color:#fff;text-decoration:none;font-size:1.25rem;letter-spacing:-.02em}
.sidebar-user{display:flex;align-items:center;gap:.72rem;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.07);border-radius:1rem;padding:.75rem .8rem;margin:.9rem .35rem 1.1rem}
.sidebar-user-avatar,.mobile-user-avatar{width:38px;height:38px;border-radius:.85rem;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2563eb,#3b82f6);font-weight:800;color:#fff;flex:0 0 auto}
.sidebar-user-name{font-size:.86rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}
.sidebar-user-caption{font-size:.72rem;color:#94a3b8}
.menu-section-title{font-size:.66rem;text-transform:uppercase;letter-spacing:.11em;color:#64748b;font-weight:800;padding:.55rem .9rem .28rem}
.sidebar .menu{display:block}
.sidebar .menu a,.mobile-nav a{
  display:flex;gap:.78rem;align-items:center;color:#b9c4d5;text-decoration:none;padding:.72rem .82rem;border-radius:.82rem;margin:.16rem .25rem;font-size:.89rem;font-weight:600
}
.sidebar .menu a i,.mobile-nav a i{font-size:1.08rem;width:20px;text-align:center;opacity:.92}
.sidebar .menu a:hover,.sidebar .menu a.active,.mobile-nav a:hover,.mobile-nav a.active{background:rgba(37,99,235,.17);color:#fff}
.sidebar .menu a.active{box-shadow:inset 3px 0 0 #60a5fa}
.sidebar-footer{margin-top:auto;padding-top:1rem}

/* mobile header and drawer */
.mobile-topbar{
  background:rgba(11,19,36,.97);backdrop-filter:blur(10px);color:#fff;min-height:68px;position:sticky;top:0;z-index:1030;
  box-shadow:0 8px 28px rgba(2,6,23,.16);border-bottom:1px solid rgba(255,255,255,.06)
}
.mobile-brand{font-weight:850;letter-spacing:-.02em;font-size:1.08rem}
.mobile-topbar .btn-menu{width:44px;height:44px;border:1px solid rgba(255,255,255,.12);border-radius:13px;color:#fff;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.06);font-size:1.25rem}
.mobile-topbar .btn-menu:active{transform:scale(.97)}
.mobile-cart{position:relative;width:44px;height:44px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#0f172a;text-decoration:none;font-size:1.08rem}
.mobile-cart-count{position:absolute;right:-4px;top:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#2563eb;color:#fff;font-size:.67rem;display:flex;align-items:center;justify-content:center;font-weight:800;border:2px solid #0b1324}
.mobile-menu.offcanvas{background:#0b1324;color:#fff;width:min(88vw,350px);border-right:0}
.mobile-menu .offcanvas-header{padding:1.05rem 1.1rem;border-bottom:1px solid rgba(255,255,255,.07)}
.mobile-menu .btn-close{filter:invert(1);opacity:.85}
.mobile-menu .offcanvas-body{padding:0 1rem 1rem}
.mobile-user-card{display:flex;align-items:center;gap:.8rem;background:linear-gradient(135deg,rgba(37,99,235,.22),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.08);border-radius:1rem;padding:.9rem;margin:1rem 0}
.mobile-user-name{font-weight:750;font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}
.mobile-user-caption{font-size:.73rem;color:#94a3b8}
.mobile-nav a{padding:.82rem .88rem;margin:.18rem 0;border:1px solid transparent}
.mobile-nav a.active{border-color:rgba(96,165,250,.18)}
.mobile-nav .nav-badge{margin-left:auto;background:rgba(255,255,255,.09);color:#dbeafe;border-radius:999px;padding:.16rem .46rem;font-size:.68rem}
.mobile-menu-bottom{border-top:1px solid rgba(255,255,255,.07);margin-top:.9rem;padding-top:.8rem}

/* generic UI */
.card{border:1px solid rgba(226,232,240,.8);border-radius:1.05rem;box-shadow:0 5px 20px rgba(15,23,42,.045);background:#fff}
.stat{font-size:1.7rem;font-weight:850}.muted{color:var(--muted)}
.btn{border-radius:.75rem;font-weight:650}.form-control,.form-select{border-radius:.75rem;min-height:44px;border-color:#dbe1e9}.form-control:focus,.form-select:focus{border-color:#93b4fa;box-shadow:0 0 0 .22rem rgba(37,99,235,.10)}
.table>:not(caption)>*>*{padding:.9rem .75rem}.price{font-weight:800}.badge{border-radius:999px;padding:.45rem .65rem}
.login-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0f172a,#1d4ed8)}.login-card{max-width:460px;width:100%;border-radius:1.3rem}
.page-heading{min-width:0}.page-heading h4{font-weight:850;letter-spacing:-.025em}.page-subtitle{color:#64748b;font-size:.86rem}
.portal-page-head{background:#fff;border:1px solid #e7ebf1;border-radius:1rem;padding:1rem 1.1rem;box-shadow:0 4px 18px rgba(15,23,42,.035)}
.discount-chip{display:inline-flex;align-items:center;gap:.4rem;background:#eff6ff;color:#1d4ed8;border:1px solid #dbeafe;border-radius:999px;padding:.48rem .72rem;font-weight:750;font-size:.82rem;white-space:nowrap}

/* product catalogue */
.product-grid{--bs-gutter-x:1rem;--bs-gutter-y:1rem;align-items:stretch}
.product-grid>[class*="col-"]{display:flex}
.product-card{width:100%;overflow:hidden;border:1px solid #e7ebf1;box-shadow:0 9px 26px rgba(15,23,42,.055);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;display:flex;flex-direction:column;background:#fff}
.product-card:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(15,23,42,.10);border-color:#d7e0ec}
.product-image-wrap{position:relative;aspect-ratio:4/3;min-height:220px;background:linear-gradient(180deg,#fff,#fbfcfe);display:flex;align-items:center;justify-content:center;overflow:hidden;border-bottom:1px solid #eef2f6;padding:18px}
.product-image{width:100%;height:100%;object-fit:contain;display:block;transition:transform .28s ease}
.product-card:hover .product-image{transform:scale(1.025)}
.product-card-body{padding:1rem;display:flex;flex-direction:column;flex:1;min-width:0}
.product-topline{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.45rem}
.product-code{font-size:.68rem;text-transform:uppercase;letter-spacing:.07em;color:#94a3b8;font-weight:800}
.product-stock-chip{font-size:.67rem;color:#15803d;background:#f0fdf4;border:1px solid #dcfce7;border-radius:999px;padding:.22rem .48rem;font-weight:700}
.product-card h5{font-size:1rem;line-height:1.38;font-weight:800;margin:0 0 .52rem;min-height:2.76rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#172033}
.product-description{color:#64748b;font-size:.8rem;line-height:1.45;margin-bottom:.85rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.3rem}
.product-price-box{margin-top:auto;background:#f8fafc;border:1px solid #edf1f5;border-radius:.9rem;padding:.78rem .82rem}
.product-retail-line{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding-bottom:.58rem;margin-bottom:.62rem;border-bottom:1px dashed #dfe5ec}
.product-retail-label{font-size:.7rem;color:#64748b;font-weight:650}
.product-retail{text-align:right;font-size:.79rem;white-space:nowrap}.old-price{color:#94a3b8;text-decoration:line-through;margin-right:.35rem}.sale-price{font-weight:750;color:#334155}
.product-dealer-label{font-size:.7rem;color:#64748b;margin-bottom:.18rem}
.product-dealer-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.product-dealer-price{font-size:1.28rem;line-height:1.08;font-weight:900;color:#1d4ed8;letter-spacing:-.02em;white-space:nowrap}
.product-discount{font-size:.7rem;color:#15803d;background:#ecfdf3;border:1px solid #d1fae5;border-radius:999px;padding:.28rem .48rem;font-weight:800;white-space:nowrap}
.product-order-form{display:grid;grid-template-columns:92px minmax(0,1fr);gap:.55rem;margin-top:.75rem}
.qty-wrap{position:relative}.qty-wrap:before{content:"Adet";position:absolute;left:10px;top:5px;font-size:.58rem;color:#94a3b8;z-index:1}.qty-wrap .form-control{padding-top:16px;font-weight:750;text-align:center}
.product-order-form .form-control{height:46px;min-height:46px}.product-order-form .btn{height:46px;min-height:46px;font-size:.86rem;display:flex;align-items:center;justify-content:center;gap:.4rem}
.admin-product-thumb{width:64px;height:64px;object-fit:contain;border:1px solid var(--line);border-radius:.65rem;background:#fff}.product-edit-preview{width:180px;height:180px;object-fit:contain;border:1px solid var(--line);border-radius:.8rem;background:#fff}

/* payment and order */
.payment-method-card{border:1px solid #e4e9f0;border-radius:1rem;padding:1rem;height:100%;background:#fff}.payment-method-card h6{font-weight:800}.payment-method-icon{width:42px;height:42px;border-radius:.8rem;display:flex;align-items:center;justify-content:center;background:#eff6ff;color:#2563eb;font-size:1.18rem}
.order-file-list .file-row{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.78rem 0;border-bottom:1px solid #eef2f6}.order-file-list .file-row:last-child{border-bottom:0}
.file-type-pill{font-size:.67rem;background:#f1f5f9;color:#475569;border-radius:999px;padding:.2rem .45rem;font-weight:750}.status-panel{border-radius:1rem;padding:1rem;background:#f8fafc;border:1px solid #e9eef5}

@media(min-width:992px){.portal-main{padding:1.5rem 1.6rem!important}}
@media(min-width:1600px){.portal-main{padding-left:2rem!important;padding-right:2rem!important}.product-grid{--bs-gutter-x:1.15rem;--bs-gutter-y:1.15rem}}
@media(max-width:1199.98px){.product-image-wrap{min-height:210px}}
@media(max-width:991.98px){.portal-main{width:100%;padding:1rem!important}.page-top-actions{gap:.5rem;flex-wrap:wrap}.portal-page-head{margin-top:.1rem}}
@media(max-width:767.98px){
  body{background:#f6f8fc}.portal-main{padding:12px!important}.portal-page-head{align-items:flex-start!important;gap:.75rem;flex-direction:column;padding:.9rem}.discount-chip{font-size:.78rem}.product-grid{--bs-gutter-x:.75rem;--bs-gutter-y:.75rem}.product-image-wrap{min-height:205px;aspect-ratio:16/11}.product-card-body{padding:.88rem}.product-card h5{min-height:auto;font-size:.98rem}.product-description{min-height:auto}.product-order-form{grid-template-columns:88px 1fr}
}
@media(max-width:575.98px){
  .product-grid>[class*="col-"]{width:100%}.product-image-wrap{min-height:235px;aspect-ratio:4/3;padding:16px}.product-card{border-radius:1rem}.product-card-body{padding:.95rem}.product-dealer-price{font-size:1.32rem}.product-order-form{grid-template-columns:92px 1fr}.portal-page-head{border-radius:.9rem}.mobile-topbar{min-height:64px}.mobile-topbar .container-fluid{min-height:64px!important}
}

/* ===== V1.5 visual polish ===== */
@media(max-width:991.98px){
  body{padding-bottom:76px}
  .mobile-topbar{background:rgba(255,255,255,.94);color:#0f172a;min-height:64px;border-bottom:1px solid #e8edf4;box-shadow:0 5px 22px rgba(15,23,42,.07);backdrop-filter:blur(16px)}
  .mobile-topbar .container-fluid{min-height:64px}
  .mobile-topbar .btn-menu{width:42px;height:42px;background:#f2f5f9;color:#0f172a;border:1px solid #e5eaf1;border-radius:14px;font-size:1.12rem}
  .mobile-brand{display:flex;align-items:center;gap:.48rem;color:#0f172a!important;font-size:1rem;font-weight:850}
  .mobile-brand-mark,.mobile-menu-logo{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,#16a34a,#22c55e);color:#fff;font-weight:900;box-shadow:0 6px 14px rgba(34,197,94,.22)}
  .mobile-brand small{font-size:.62rem;color:#64748b;font-weight:750;background:#f1f5f9;border:1px solid #e6ebf1;border-radius:999px;padding:.2rem .4rem}
  .mobile-cart{width:42px;height:42px;border-radius:14px;background:#2563eb;color:#fff;box-shadow:0 7px 16px rgba(37,99,235,.22)}
  .mobile-cart-count{border-color:#fff;background:#0f172a}
  .mobile-menu.offcanvas{width:min(91vw,390px);background:#f7f9fc;color:#172033;border:0;box-shadow:22px 0 50px rgba(15,23,42,.18)}
  .mobile-menu-hero{padding:1.15rem 1.1rem 1.25rem;background:linear-gradient(135deg,#0f172a 0%,#172554 48%,#1d4ed8 100%);color:#fff;border-radius:0 0 28px 0;box-shadow:0 12px 30px rgba(30,64,175,.16)}
  .mobile-menu-eyebrow{font-size:.68rem;color:#bfdbfe;margin-top:.15rem}
  .mobile-menu-logo{width:36px;height:36px;border-radius:11px}
  .mobile-close{width:38px;height:38px;border:1px solid rgba(255,255,255,.17);border-radius:12px;background:rgba(255,255,255,.10);color:#fff;display:inline-flex;align-items:center;justify-content:center}
  .mobile-user-card{margin:0;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.14);border-radius:17px;padding:.82rem .85rem;box-shadow:none}
  .mobile-user-avatar{width:42px;height:42px;background:#fff;color:#1d4ed8;border-radius:13px}
  .mobile-user-name{color:#fff;max-width:220px;font-size:.9rem}
  .mobile-user-caption{color:#bfdbfe}
  .mobile-profile-link{color:#fff;text-decoration:none;width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.08)}
  .mobile-menu .offcanvas-body{padding:1rem 1rem 1.3rem;overflow-y:auto}
  .mobile-nav-group{background:#fff;border:1px solid #e8edf4;border-radius:18px;padding:.45rem;margin-bottom:.75rem;box-shadow:0 4px 16px rgba(15,23,42,.035)}
  .mobile-nav-group .menu-section-title{padding:.55rem .65rem .32rem;color:#94a3b8;font-size:.61rem}
  .mobile-nav a{color:#334155;margin:.05rem 0;padding:.68rem .65rem;border-radius:13px;gap:.68rem;font-size:.86rem}
  .mobile-nav a:hover,.mobile-nav a.active{background:#eff6ff;color:#1d4ed8}
  .mobile-nav-icon{width:36px;height:36px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;color:#475569;flex:0 0 auto}
  .mobile-nav a.active .mobile-nav-icon{background:#2563eb;color:#fff;box-shadow:0 6px 13px rgba(37,99,235,.20)}
  .mobile-nav a i{width:auto;font-size:1rem}
  .mobile-nav-arrow{margin-left:auto!important;color:#c0cad7;font-size:.75rem!important}
  .mobile-nav .nav-badge{margin-left:auto;background:#2563eb;color:#fff}
  .mobile-logout{display:flex;align-items:center;justify-content:center;gap:.55rem;text-decoration:none;color:#b42318;background:#fff;border:1px solid #f3d7d3;border-radius:15px;padding:.8rem;font-weight:700;font-size:.85rem}
  .mobile-bottom-nav{position:fixed;z-index:1025;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));height:62px;background:rgba(255,255,255,.96);border:1px solid rgba(226,232,240,.95);border-radius:20px;box-shadow:0 13px 36px rgba(15,23,42,.17);backdrop-filter:blur(14px);display:grid;grid-template-columns:repeat(5,1fr);padding:5px}
  .mobile-bottom-nav a,.mobile-bottom-nav button{border:0;background:transparent;text-decoration:none;color:#8190a4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:.61rem;font-weight:700;border-radius:14px;padding:2px}
  .mobile-bottom-nav i{font-size:1.08rem;line-height:1.2}
  .mobile-bottom-nav a.active{background:#eff6ff;color:#2563eb}
}

/* cleaner commerce cards */
.product-grid{--bs-gutter-x:.9rem;--bs-gutter-y:.9rem}
.product-card{border-radius:16px;box-shadow:0 6px 22px rgba(15,23,42,.055);border-color:#e6ebf2}
.product-image-wrap{aspect-ratio:auto;height:185px;min-height:185px;padding:14px;background:#fff;border-bottom:1px solid #eef2f6}
.product-image-wrap:after{content:"";position:absolute;left:0;right:0;bottom:0;height:36px;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(248,250,252,.72));pointer-events:none}
.product-image-badges{position:absolute;z-index:2;top:10px;left:10px;right:10px;display:flex;align-items:center;justify-content:space-between;gap:.4rem;pointer-events:none}
.product-code-badge,.product-ready-badge{font-size:.59rem;line-height:1;border-radius:999px;padding:.38rem .5rem;font-weight:800;letter-spacing:.02em;box-shadow:0 3px 9px rgba(15,23,42,.06)}
.product-code-badge{background:rgba(255,255,255,.94);border:1px solid #e5eaf1;color:#64748b;max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-ready-badge{background:#ecfdf3;border:1px solid #d1fae5;color:#15803d;white-space:nowrap}
.product-image{position:relative;z-index:1;max-width:100%;max-height:100%;object-fit:contain}
.product-empty-image{display:flex;flex-direction:column;align-items:center;gap:.35rem;color:#94a3b8;font-size:.75rem}.product-empty-image i{font-size:1.8rem}
.product-card-body{padding:.85rem .9rem .9rem}
.product-card h5{font-size:.91rem;line-height:1.32;min-height:2.42rem;margin-bottom:.36rem;color:#182235}
.product-description{font-size:.72rem;line-height:1.35;min-height:1.95rem;margin-bottom:.62rem;-webkit-line-clamp:2}
.product-price-box{padding:.66rem .7rem;border-radius:12px;background:#f8fafc;border-color:#edf1f5}
.product-list-price,.product-sale-row{display:flex;justify-content:space-between;align-items:center;gap:.4rem;font-size:.66rem;color:#7b8797}
.product-list-price del{font-size:.7rem;color:#a1abba}.product-sale-row{margin-top:.18rem}.product-sale-row strong{font-size:.76rem;color:#475569}
.product-dealer-divider{height:1px;background:#e7ecf2;margin:.52rem 0}
.product-dealer-row{align-items:flex-end}
.product-dealer-label{font-size:.62rem;margin-bottom:.1rem}
.product-dealer-price{font-size:1.16rem;color:#0f5bd8}
.product-discount{font-size:.62rem;padding:.26rem .42rem;background:#eafbf0;border-color:#d0f4dc}
.product-tier-note{font-size:.59rem;color:#66758a;margin-top:.48rem;display:flex;gap:.25rem;align-items:center}.product-tier-note i{color:#f59e0b}
.product-order-form{grid-template-columns:100px minmax(0,1fr);gap:.45rem;margin-top:.58rem}
.qty-wrap{display:grid;grid-template-columns:29px 1fr 29px;align-items:center;border:1px solid #dce3eb;border-radius:11px;background:#fff;height:42px;overflow:hidden}
.qty-wrap:before{display:none}.qty-wrap .form-control{border:0!important;border-radius:0!important;box-shadow:none!important;text-align:center;padding:.2rem!important;height:40px!important;min-height:40px!important;font-size:.82rem;font-weight:800;background:transparent}
.qty-wrap input[type=number]::-webkit-inner-spin-button,.qty-wrap input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.qty-wrap input[type=number]{-moz-appearance:textfield}
.qty-btn{border:0;background:#f7f9fc;color:#64748b;height:100%;font-size:1rem;font-weight:700;line-height:1}.qty-btn:hover{background:#eef2f7;color:#1d4ed8}
.product-order-form .btn{height:42px;min-height:42px;border-radius:11px;font-size:.76rem;box-shadow:0 5px 12px rgba(37,99,235,.15)}
.product-add-btn span{white-space:nowrap}

@media(min-width:1200px){.product-image-wrap{height:178px;min-height:178px}.product-card-body{padding:.82rem}.product-card h5{font-size:.86rem}.product-dealer-price{font-size:1.08rem}.product-order-form{grid-template-columns:92px 1fr}}
@media(min-width:1600px){.product-image-wrap{height:195px;min-height:195px}.product-card h5{font-size:.93rem}.product-dealer-price{font-size:1.18rem}}
@media(max-width:991.98px){.product-image-wrap{height:205px;min-height:205px}.portal-page-head{box-shadow:0 3px 15px rgba(15,23,42,.04)}}
@media(max-width:575.98px){
  .portal-main{padding:10px!important}.portal-page-head{padding:.85rem;border-radius:16px}.portal-page-head h4{font-size:1.08rem}.page-subtitle{font-size:.75rem;line-height:1.4}.discount-chip{font-size:.7rem;padding:.4rem .58rem}
  .product-grid{--bs-gutter-y:.72rem}.product-image-wrap{height:218px;min-height:218px;padding:12px}.product-card{border-radius:17px}.product-card-body{padding:.86rem}.product-card h5{font-size:.98rem;min-height:auto}.product-description{font-size:.75rem;min-height:auto}.product-dealer-price{font-size:1.28rem}.product-order-form{grid-template-columns:108px 1fr}.product-order-form .btn{font-size:.8rem}
}

/* v1.6 - tasarım akışı / mesajlaşma */
.order-message-list{display:flex;flex-direction:column;gap:10px;max-height:420px;overflow:auto;padding:4px}
.message-bubble{max-width:86%;border-radius:16px;padding:11px 13px;line-height:1.45;border:1px solid #e5e7eb;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.message-bubble.from-dealer{align-self:flex-start;background:#f8fafc}
.message-bubble.from-team{align-self:flex-end;background:#eef6ff;border-color:#cfe4ff}
.status-panel{border:1px solid #e5e7eb;border-radius:16px;padding:16px;background:#fff}
@media(max-width:767.98px){.message-bubble{max-width:96%}.status-panel{padding:13px}.table>thead{font-size:12px}.table>tbody{font-size:13px}}

/* v1.7 cart / card management */
.cart-thumb{width:58px;height:58px;object-fit:contain;border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:5px}.cart-qty{width:78px}.card-id-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:700;letter-spacing:.04em}.kart-row-expired{background:rgba(220,53,69,.035)}.qr-action-group .btn{white-space:nowrap}.assignment-card{border:1px solid #e8ebf0;border-radius:16px;background:#fff;overflow:hidden}.assignment-card-head{padding:16px 18px;background:#f8fafc;border-bottom:1px solid #e8ebf0}.assignment-progress{height:7px;border-radius:99px;background:#e9ecef;overflow:hidden}.assignment-progress>span{display:block;height:100%;background:#111827;border-radius:99px}.assignment-table input.form-control{min-width:140px}.bulk-format{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:10px;padding:10px;font-size:.82rem}.qr-preview-card{max-width:720px;margin:0 auto}.qr-stage{min-height:320px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:24px}.qr-stage svg{max-width:100%;height:auto}.renew-card-list{max-height:430px;overflow:auto}.renew-card-item{padding:12px 0;border-bottom:1px solid #eef0f3}.renew-card-item:last-child{border-bottom:0}
@media(max-width:767.98px){.cart-table thead{display:none}.cart-table,.cart-table tbody,.cart-table tr,.cart-table td{display:block;width:100%}.cart-table tr{border:1px solid #e7e9ee;border-radius:14px;margin-bottom:12px;padding:10px}.cart-table td{border:0!important;padding:7px 4px!important}.cart-table td:last-child{text-align:left!important}.cart-table tfoot{display:block}.cart-table tfoot tr{border:0}.assignment-table thead{display:none}.assignment-table,.assignment-table tbody,.assignment-table tr,.assignment-table td{display:block;width:100%}.assignment-table tr{border:1px solid #e7e9ee;border-radius:12px;margin-bottom:10px;padding:10px}.assignment-table td{border:0!important;padding:6px 2px!important}.qr-action-group{display:grid!important;grid-template-columns:1fr 1fr}.qr-action-group .btn:last-child{grid-column:1/-1}}


/* Brand logos */
.brand-logo{display:block;max-width:100%;height:auto}
.brand-logo-lg{width:min(250px,100%)}
.brand-logo-sidebar{width:168px}
.brand-logo-admin{width:150px}
.brand-logo-mobile{width:132px}
.brand-logo-mobile-menu{width:132px}
.admin-topbar .navbar-brand{padding-top:.15rem;padding-bottom:.15rem}

/* Modern auth pages */
.auth-body{min-height:100vh;background:radial-gradient(circle at top left, rgba(59,130,246,.2), transparent 28%),linear-gradient(135deg,#eef4ff 0%,#f8fbff 40%,#f3f6fb 100%)}
.auth-soft-body{background:linear-gradient(180deg,#f5f8ff 0%,#f6f8fc 100%)}
.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.auth-shell-single{max-width:1000px;margin:0 auto}
.auth-split{display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border:1px solid rgba(226,232,240,.9);border-radius:28px;overflow:hidden;box-shadow:0 22px 70px rgba(15,23,42,.12);min-height:720px;width:min(1180px,100%)}
.auth-split-wide{grid-template-columns:1.15fr .85fr}
.auth-hero{position:relative;background:#0f172a;color:#fff;overflow:hidden}
.auth-hero::before,.auth-hero::after{content:"";position:absolute;border-radius:999px;filter:blur(4px)}
.auth-hero::before{width:340px;height:340px;background:rgba(59,130,246,.22);top:-90px;right:-70px}
.auth-hero::after{width:260px;height:260px;background:rgba(37,99,235,.28);bottom:-100px;left:-40px}
.auth-carousel,.auth-carousel .carousel-inner{height:100%}
.auth-hero-slide{height:100%;padding:54px 54px 72px;display:flex;align-items:flex-end;position:relative;background-size:cover;background-position:center}
.auth-slide-1{background:linear-gradient(135deg,rgba(2,6,23,.92),rgba(29,78,216,.83)),radial-gradient(circle at top right,rgba(96,165,250,.35),transparent 30%)}
.auth-slide-2{background:linear-gradient(135deg,rgba(15,23,42,.93),rgba(37,99,235,.84)),radial-gradient(circle at 15% 15%,rgba(255,255,255,.12),transparent 20%)}
.auth-slide-3{background:linear-gradient(135deg,rgba(7,17,31,.94),rgba(30,64,175,.83)),radial-gradient(circle at bottom right,rgba(96,165,250,.33),transparent 28%)}
.auth-slide-admin{background:linear-gradient(135deg,rgba(2,6,23,.94),rgba(30,64,175,.86)),radial-gradient(circle at top left,rgba(96,165,250,.3),transparent 25%)}
.auth-hero-content{position:relative;z-index:2;max-width:600px}
.auth-kicker{display:inline-flex;align-items:center;gap:.45rem;padding:.45rem .8rem;border-radius:999px;background:rgba(255,255,255,.12);backdrop-filter:blur(8px);font-size:.76rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:1rem}
.auth-hero-content h1{font-size:clamp(2rem,4vw,3.1rem);line-height:1.08;letter-spacing:-.03em;font-weight:850;margin:0 0 1rem}
.auth-hero-content p{font-size:1.02rem;line-height:1.7;color:rgba(255,255,255,.84);max-width:540px;margin:0}
.auth-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:1.7rem}
.auth-feature,.auth-mini-card{display:flex;align-items:center;gap:.65rem;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);padding:.85rem .95rem;border-radius:16px;backdrop-filter:blur(8px);font-weight:600}
.auth-feature i,.auth-mini-card i{font-size:1.08rem;color:#bfdbfe}
.auth-stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:1.7rem}
.auth-stat-box{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:1rem 1rem .9rem;backdrop-filter:blur(8px)}
.auth-stat-box strong{display:block;font-size:1.02rem}
.auth-stat-box small{display:block;margin-top:.25rem;color:rgba(255,255,255,.72)}
.auth-mini-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:1.7rem}
.auth-indicators{justify-content:flex-start;gap:8px;padding-left:42px;bottom:26px;margin:0}
.auth-indicators [data-bs-target]{width:10px;height:10px;border:0;border-radius:50%;background:rgba(255,255,255,.4);opacity:1}
.auth-indicators .active{background:#fff}
.auth-panel{display:flex;align-items:center;justify-content:center;background:#fff;position:relative}
.auth-panel::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(37,99,235,.04),transparent 35%);pointer-events:none}
.auth-panel-single{max-width:520px;margin:0 auto;border-radius:28px;box-shadow:0 22px 70px rgba(15,23,42,.12);border:1px solid rgba(226,232,240,.9)}
.auth-panel-inner{position:relative;z-index:1;width:min(460px,100%);padding:44px 42px}
.auth-copy h2{font-size:1.8rem;font-weight:850;letter-spacing:-.03em;margin:0 0 .45rem;color:#0f172a}
.auth-copy p{margin:0 0 1.55rem;color:#64748b;line-height:1.65}
.auth-logo-link{display:inline-flex;align-items:center;margin-bottom:1.5rem}
.auth-form .form-label{font-size:.88rem;font-weight:700;color:#334155}
.auth-input .input-group-text{background:#f8fafc;border-color:#dbe4f0;color:#64748b;border-radius:.9rem 0 0 .9rem;padding:0 .95rem}
.auth-input .form-control{border-left:0;border-radius:0 .9rem .9rem 0;min-height:52px}
.auth-input .form-control:focus{box-shadow:none}
.auth-input:focus-within .input-group-text,.auth-input:focus-within .form-control{border-color:#93b4fa;box-shadow:0 0 0 .22rem rgba(37,99,235,.08)}
.auth-submit{min-height:52px;border-radius:.95rem;font-size:1rem}
.auth-footer-links{display:flex;gap:.6rem;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:1.3rem;color:#94a3b8;font-size:.92rem}
.auth-footer-links a{text-decoration:none;font-weight:600}
.auth-standalone-card{max-width:860px}

/* Sidebar/mobile brand tune */
.sidebar .brand{padding-top:.35rem;padding-bottom:.55rem}
.mobile-brand{display:inline-flex;align-items:center}
.mobile-menu-eyebrow{font-size:.74rem;color:#94a3b8;margin-top:2px}
.mobile-menu-logo{display:inline-flex}

@media (max-width: 991.98px){
  .auth-shell{padding:14px}
  .auth-split,.auth-split-wide{grid-template-columns:1fr;min-height:auto}
  .auth-hero{min-height:440px}
  .auth-hero-slide{padding:34px 24px 58px}
  .auth-hero-content h1{font-size:2rem}
  .auth-panel-inner{width:100%;padding:30px 24px}
  .auth-feature-grid,.auth-mini-cards,.auth-stat-row{grid-template-columns:1fr 1fr}
  .auth-indicators{padding-left:18px}
}
@media (max-width: 575.98px){
  .auth-feature-grid,.auth-mini-cards,.auth-stat-row{grid-template-columns:1fr}
  .brand-logo-lg{width:210px}
  .auth-panel-inner{padding:26px 18px}
  .auth-copy h2{font-size:1.55rem}
}
