/* === Base === */
*{margin:0;padding:0;box-sizing:border-box;font-family:'Poppins',sans-serif}
body{background:#fff;color:#222;line-height:1.5}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{max-width:1280px;margin:0 auto;padding:0 20px}

/* === Top bar === */
.topbar{background:#fff;border-bottom:1px solid #eee;padding:14px 0}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.logo img{height:46px}
.logo-text{font-size:24px;font-weight:800;color:#f7941d;letter-spacing:.5px}
.logo-text span{color:#222}
.nav-top{display:flex;gap:28px;align-items:center}
.nav-top a{font-size:14px;font-weight:500;color:#333}
.nav-top a:hover{color:#f7941d}
.auth-buttons{display:flex;gap:10px;align-items:center}
.user-chip{font-size:13px;color:#555;padding:6px 12px;background:#fff5e8;border-radius:20px}
.btn{display:inline-block;padding:9px 20px;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;border:none;transition:.2s;text-align:center}
.btn-outline{background:#fff;border:1.5px solid #f7941d;color:#f7941d}
.btn-outline:hover{background:#f7941d;color:#fff}
.btn-primary{background:#f7941d;color:#fff}
.btn-primary:hover{background:#e07d00}
.btn-ghost{background:transparent;color:#555}
.btn-ghost:hover{color:#f7941d}
.btn-danger{background:#e23b3b;color:#fff}
.btn-danger:hover{background:#b82d2d}
.btn-sm{padding:6px 14px;font-size:13px}
.menu-toggle{display:none;cursor:pointer;background:none;border:none}
.menu-toggle img{height:28px}

/* === Mega menu strip === */
.mega-strip{background:#1a1a1a;color:#fff}
.mega-strip ul{display:flex;justify-content:center;gap:32px;list-style:none;padding:12px 0;flex-wrap:wrap}
.mega-strip a{font-size:13px;font-weight:500;color:#ddd}
.mega-strip a:hover{color:#f7941d}

/* === Hero carousel === */
.hero{position:relative;overflow:hidden;background:#000}
.slides{position:relative;width:100%;height:480px}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .8s ease;background-size:cover;background-position:center}
.slide.active{opacity:1}
.hero-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#fff;background:linear-gradient(to bottom,rgba(0,0,0,.15),rgba(0,0,0,.4))}
.hero-overlay h1{font-size:48px;font-weight:800;text-shadow:0 2px 10px rgba(0,0,0,.5);margin-bottom:16px}
.hero-overlay p{font-size:18px;text-shadow:0 1px 6px rgba(0,0,0,.6);margin-bottom:24px}
.dots{position:absolute;bottom:16px;left:0;right:0;display:flex;justify-content:center;gap:8px;z-index:3}
.dot{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;border:none}
.dot.active{background:#f7941d}

/* === Booking form === */
.booking-wrap{background:#f5f7fa;padding:36px 0}
.booking-card{background:#fff;border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.06);padding:28px;margin-top:-80px;position:relative;z-index:2}
.tabs{display:flex;gap:8px;margin-bottom:22px;flex-wrap:wrap;align-items:center}
.tab{display:flex;align-items:center;gap:8px;padding:10px 22px;border:1px solid #e5e7eb;border-radius:30px;background:#fff;cursor:pointer;font-weight:500;color:#555;transition:.18s ease;font-size:14px}
.tab:hover{border-color:#f7941d;color:#f7941d}
.tab.active{border-color:#f7941d;color:#f7941d;background:#fff7ee;font-weight:600}
.tab img{height:22px}
.spot-cta{margin-left:auto;display:flex;align-items:center;gap:8px;padding:10px 18px;background:#fff5e8;color:#f7941d;border:none;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:.18s ease}
.spot-cta:hover{background:#fff0d6}
.spot-cta img{height:20px}

.booking-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:14px;align-items:end}

/* Standard, clean form-field styling */
.field{display:flex;flex-direction:column}
.field label{display:block;font-size:12px;color:#555;margin-bottom:8px;font-weight:600;letter-spacing:.2px}
.field input,
.field select,
.field textarea,
.promo-row input{
    width:100%;
    height:46px;
    padding:0 14px;
    border:1px solid #d4d4d8;
    border-radius:8px;
    font-size:14px;
    background:#fff;
    color:#222;
    outline:none;
    font-family:inherit;
    transition:border-color .15s ease, box-shadow .15s ease;
    box-shadow:0 1px 2px rgba(0,0,0,.02);
}
.field textarea{height:auto;padding:12px 14px;min-height:96px;resize:vertical}
.field input:hover,.field select:hover,.field textarea:hover,
.promo-row input:hover{border-color:#a1a1aa}
.field input:focus,
.field select:focus,
.field textarea:focus,
.promo-row input:focus{
    border-color:#f7941d;
    box-shadow:0 0 0 3px rgba(247,148,29,.15);
}
.field input:disabled,.field select:disabled{
    background:#f5f5f5;color:#999;cursor:not-allowed;
}

/* Custom dropdown chevron on <select> */
.field select{
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    padding-right:38px;
    background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat:no-repeat;
    background-position:right 12px center;
    background-size:16px;
}
.field select:focus{
    background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7941d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Datetime icon styling for webkit */
.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator{
    opacity:.5;cursor:pointer;transition:opacity .15s ease;
}
.field input[type="date"]:hover::-webkit-calendar-picker-indicator,
.field input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator{opacity:1}

.drive-btn{
    padding:0 28px;height:46px;background:#f7941d;color:#fff;border:none;
    border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;
    transition:.18s ease;box-shadow:0 2px 6px rgba(247,148,29,.25);
}
.drive-btn:hover{background:#e07d00;box-shadow:0 4px 10px rgba(247,148,29,.35)}
.same-loc{margin:0;font-size:13px;color:#555;display:flex;align-items:center;gap:8px;cursor:pointer}
.same-loc input[type="checkbox"]{width:16px;height:16px;accent-color:#f7941d;cursor:pointer}

/* === Advanced booking card === */
.chip-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.chip-label{font-size:11px;font-weight:600;color:#999;text-transform:uppercase;letter-spacing:.4px;margin-right:6px}
.chip{padding:6px 14px;border-radius:18px;border:1px solid #e5e7eb;background:#fff;font-size:13px;font-weight:500;color:#555;cursor:pointer;transition:all .15s ease;line-height:1.4}
.chip:hover{border-color:#f7941d;color:#f7941d}
.chip-active{background:#fff5e8;border-color:#f7941d;color:#f7941d;font-weight:600}
.chip-pulse{animation:chipPulse .3s ease}
@keyframes chipPulse{0%{transform:scale(1)}50%{transform:scale(1.08)}100%{transform:scale(1)}}

.booking-error{margin-top:14px;padding:10px 14px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca;border-radius:8px;font-size:13px;font-weight:500}

.booking-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid #f1f1f1}
.duration-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.promo-toggle{margin-left:auto;background:none;border:none;color:#f7941d;font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:6px;padding:0}
.promo-toggle span{display:inline-block;width:18px;height:18px;border-radius:50%;background:#fff5e8;color:#f7941d;font-size:14px;line-height:18px;text-align:center;font-weight:700}
.promo-toggle:hover{color:#e07d00}

.promo-row{display:flex;align-items:center;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid #f1f1f1;flex-wrap:wrap}
.promo-row input{flex:1;min-width:200px;max-width:280px;text-transform:uppercase;letter-spacing:.5px}
.promo-status{font-size:13px;font-weight:600}
.promo-status.ok{color:#155724}
.promo-status.err{color:#991b1b}

.trip-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:18px;padding:18px;background:#fafafa;border-radius:10px;border:1px solid #ececec}
.ts-item{display:flex;flex-direction:column;gap:4px}
.ts-label{font-size:10px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.5px}
.ts-value{font-size:14px;font-weight:600;color:#222}
.ts-value.ts-price{color:#f7941d;font-size:18px;font-weight:800}

@media(max-width:1024px){
  .trip-summary{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .trip-summary{grid-template-columns:1fr 1fr}
  .booking-toolbar{flex-direction:column;align-items:flex-start}
  .promo-toggle{margin-left:0}
}

/* === Section heading === */
section{padding:60px 0}
.section-title{text-align:center;margin-bottom:40px}
.section-title h2{font-size:32px;font-weight:700;color:#222;margin-bottom:10px}
.section-title p{color:#777;font-size:15px}

/* === Features === */
.features-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:24px}
.feature{text-align:center;padding:20px}
.feature-icon{width:64px;height:64px;background:#fff5e8;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;font-size:26px;color:#f7941d}
.feature h4{font-size:14px;font-weight:600;color:#333}

/* === Promotions === */
.promo-bg{background:#f9fafb}
.promo-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px}
.promo-card{border-radius:14px;overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,.06);background:#fff}
.promo-card img{width:100%;height:240px;object-fit:cover}

/* === Vehicles === */
.vehicles-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.vehicle-card{border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.07);overflow:hidden;transition:transform .2s;display:flex;flex-direction:column}
.vehicle-card:hover{transform:translateY(-4px)}
.vehicle-img{background:#f5f5f5;height:180px;display:flex;align-items:center;justify-content:center;padding:14px}
.vehicle-img img{max-height:100%;object-fit:contain}
.vehicle-img.placeholder{color:#bbb;font-size:48px;font-weight:700}
.vehicle-body{padding:18px;flex:1;display:flex;flex-direction:column}
.vehicle-body h3{font-size:17px;font-weight:600;margin-bottom:6px}
.tag{display:inline-block;font-size:11px;font-weight:600;padding:3px 10px;border-radius:12px;background:#fff5e8;color:#f7941d;text-transform:uppercase;margin-bottom:10px;align-self:flex-start}
.stars{color:#f7941d;font-size:13px;margin-bottom:10px}
.specs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px;font-size:12px;color:#666}
.specs span{padding:4px 10px;background:#f5f5f5;border-radius:14px}
.price-row{display:flex;align-items:center;justify-content:space-between;margin-top:auto}
.price{font-size:20px;font-weight:700;color:#f7941d}
.price small{font-size:12px;color:#888;font-weight:400}
.rent-btn{padding:8px 16px;background:#f7941d;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:600;font-size:13px;text-decoration:none;display:inline-block}
.rent-btn:hover{background:#e07d00}

/* === Connection === */
.connect-bg{background:#fff}
.connect-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.connect-card{background:#fff5e8;border-radius:16px;padding:28px;text-align:center}
.connect-card img{height:160px;margin:0 auto 16px;object-fit:contain}
.connect-card h3{font-size:18px;font-weight:700;margin-bottom:10px}
.connect-card p{color:#666;font-size:14px;margin-bottom:16px}
.connect-link{color:#f7941d;font-weight:600;font-size:14px}

/* === Testimonials === */
.testi-bg{background:#fafafa}
.testi-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.testi-card{background:#fff;border-radius:14px;padding:24px;box-shadow:0 4px 14px rgba(0,0,0,.05);position:relative}
.testi-icon{position:absolute;top:18px;right:18px;height:30px;opacity:.5}
.testi-text{color:#555;font-size:14px;margin-bottom:16px;font-style:italic}
.testi-author{display:flex;align-items:center;gap:12px}
.avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#f7941d,#ffb347);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:18px}
.testi-author h5{font-size:14px;font-weight:600}
.testi-author span{font-size:12px;color:#888}

/* === Subscribe === */
.subscribe{background:linear-gradient(90deg,#f7941d,#ffb347);padding:36px 0;color:#fff}
.subscribe-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.subscribe h3{font-size:22px;font-weight:600}
.subscribe form{display:flex;gap:10px;flex:1;max-width:520px}
.subscribe input{flex:1;padding:13px 16px;border-radius:8px;border:none;outline:none;font-size:14px;color:#222}
.subscribe button{background:#222;color:#fff;border:none;padding:13px 24px;border-radius:8px;font-weight:600;cursor:pointer}

/* === About copy === */
.about-section h2{font-size:30px;font-weight:700;margin-bottom:18px;color:#222}
.about-section p{color:#555;margin-bottom:14px;font-size:15px}

/* === Location cards === */
.loc-bg{background:#f9fafb}
.loc-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.loc-card{background:#fff;border-radius:10px;padding:18px;display:flex;align-items:center;gap:12px;box-shadow:0 2px 8px rgba(0,0,0,.04);cursor:pointer;transition:.2s}
.loc-card:hover{box-shadow:0 6px 18px rgba(247,148,29,.18);transform:translateY(-2px)}
.loc-icon{width:38px;height:38px;background:#fff5e8;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#f7941d;font-size:18px;flex-shrink:0}
.loc-card span{font-size:13px;font-weight:500;color:#333}

/* === Footer === */
footer{background:#1a1a1a;color:#bbb;padding:50px 0 20px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:34px;margin-bottom:30px}
.footer-col h4{color:#fff;font-size:15px;font-weight:600;margin-bottom:18px}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:10px;font-size:13px}
.footer-col a:hover{color:#f7941d}
.footer-logo img{height:54px;margin-bottom:14px;filter:brightness(0) invert(1)}
.footer-logo-text{font-size:26px;font-weight:800;color:#f7941d;margin-bottom:14px}
.footer-logo-text span{color:#fff}
.contact-info{font-size:13px;line-height:1.8}
.social{display:flex;gap:10px;margin-top:14px}
.social a{width:34px;height:34px;background:#333;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px}
.social a:hover{background:#f7941d}
.footer-bottom{border-top:1px solid #333;padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:12px}
.policies{display:flex;gap:18px;flex-wrap:wrap}

/* === Detail page (car) === */
.detail-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:36px;margin-top:30px;align-items:start}
.detail-img{background:#fff;border-radius:14px;padding:30px;box-shadow:0 4px 16px rgba(0,0,0,.05);height:380px;display:flex;align-items:center;justify-content:center}
.detail-img img{max-height:100%}
.detail-info{background:#fff;border-radius:14px;padding:28px;box-shadow:0 4px 16px rgba(0,0,0,.05)}
.detail-info h1{font-size:28px;margin-bottom:8px}
.spec-list{margin:20px 0;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.spec-list div{font-size:13px;color:#555}
.spec-list strong{display:block;color:#999;font-weight:500;font-size:11px;text-transform:uppercase;margin-bottom:2px}
.detail-price{font-size:32px;font-weight:800;color:#f7941d;margin:20px 0}
.detail-price small{font-size:14px;color:#999;font-weight:400}

/* === Forms === */
.form-card{max-width:560px;margin:50px auto;background:#fff;border-radius:14px;padding:34px;box-shadow:0 4px 16px rgba(0,0,0,.06)}
.form-card h2{margin-bottom:8px;font-size:24px}
.form-card .subtitle{color:#777;margin-bottom:26px;font-size:14px}
.form-group{margin-bottom:18px}

/* === Tables === */
.table-wrap{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,.05)}
table{width:100%;border-collapse:collapse}
th,td{padding:14px 16px;text-align:left;font-size:14px}
thead{background:#fafafa;color:#666;font-size:12px;text-transform:uppercase;letter-spacing:.4px}
tbody tr{border-top:1px solid #eee}
tbody tr:hover{background:#fafafa}

/* === Status badges === */
.badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.4px}
.badge-pending{background:#fff3cd;color:#856404}
.badge-confirmed{background:#d4edda;color:#155724}
.badge-cancelled{background:#f8d7da;color:#721c24}
.badge-completed{background:#d1ecf1;color:#0c5460}

/* === Alerts === */
.alert{padding:12px 16px;border-radius:8px;margin-bottom:18px;font-size:14px}
.alert-success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}
.alert-error{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}

/* === Admin dashboard cards === */
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-bottom:36px}
.stat-card{background:#fff;border-radius:14px;padding:24px;box-shadow:0 4px 16px rgba(0,0,0,.05)}
.stat-card h4{font-size:13px;color:#999;text-transform:uppercase;margin-bottom:10px;font-weight:500;letter-spacing:.4px}
.stat-card .num{font-size:32px;font-weight:800;color:#f7941d}

/* === Section header for admin === */
.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.page-header h1{font-size:24px}

/* === Responsive === */
@media(max-width:1024px){
  .features-grid{grid-template-columns:repeat(3,1fr)}
  .vehicles-grid{grid-template-columns:repeat(2,1fr)}
  .promo-grid,.connect-grid{grid-template-columns:1fr}
  .testi-grid{grid-template-columns:1fr}
  .loc-grid{grid-template-columns:repeat(2,1fr)}
  .booking-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .detail-grid{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .nav-top,.mega-strip{display:none}
  .menu-toggle{display:block}
  .hero-overlay h1{font-size:30px}
  .slides{height:340px}
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .vehicles-grid{grid-template-columns:1fr}
  .booking-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .section-title h2{font-size:24px}
}

/* ============================================================
   Futuristic Auth (login / register)
   ============================================================ */
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:40px 20px;background:#05060a;position:relative;overflow:hidden}
.auth-page::before,.auth-page::after{content:"";position:absolute;border-radius:50%;
  filter:blur(90px);opacity:.55;z-index:0;animation:authBlob 16s ease-in-out infinite}
.auth-page::before{width:540px;height:540px;
  background:radial-gradient(circle at 30% 30%,#f7941d,#ff5e3a);top:-130px;left:-110px}
.auth-page::after{width:500px;height:500px;
  background:radial-gradient(circle at 70% 70%,#7b5cff,#16a0ff);bottom:-150px;right:-130px;
  animation-delay:-8s}
@keyframes authBlob{0%,100%{transform:translate(0,0) scale(1)}
  50%{transform:translate(44px,-32px) scale(1.16)}}

.auth-shell{position:relative;z-index:1;display:grid;grid-template-columns:1.05fr .95fr;
  width:100%;max-width:1000px;min-height:600px;border-radius:24px;overflow:hidden;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
  box-shadow:0 30px 80px rgba(0,0,0,.55);backdrop-filter:blur(18px);
  animation:authRise .6s cubic-bezier(.2,.8,.2,1) both}
@keyframes authRise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}

/* Left brand panel */
.auth-aside{position:relative;padding:50px 46px;display:flex;flex-direction:column;
  color:#fff;overflow:hidden;
  background:linear-gradient(150deg,rgba(247,148,29,.96),rgba(255,94,58,.94)),
    radial-gradient(circle at 82% 12%,rgba(255,255,255,.30),transparent 60%)}
.auth-aside::after{content:"";position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.09) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.09) 1px,transparent 1px);
  background-size:34px 34px;
  -webkit-mask-image:radial-gradient(circle at 50% 40%,#000,transparent 75%);
  mask-image:radial-gradient(circle at 50% 40%,#000,transparent 75%);pointer-events:none}
.auth-brand{display:inline-flex;align-items:center;gap:10px;position:relative;z-index:1}
.auth-brand img{height:40px;filter:brightness(0) invert(1)}
/* middle copy block — vertically centered between logo and features */
.auth-copy{flex:1;display:flex;flex-direction:column;justify-content:center;
  gap:16px;position:relative;z-index:1;padding:34px 0}
.auth-eyebrow{align-self:flex-start;font-size:11px;font-weight:700;letter-spacing:1.4px;
  text-transform:uppercase;padding:6px 13px;border-radius:999px;
  background:rgba(255,255,255,.18);backdrop-filter:blur(4px)}
.auth-aside h1{font-size:37px;line-height:1.12;font-weight:800;letter-spacing:-.5px;margin:0}
.auth-aside .lead{margin:0;font-size:15px;line-height:1.6;opacity:.95;max-width:340px}
.auth-feats{list-style:none;margin:0;padding:22px 0 0;display:flex;flex-direction:column;
  gap:15px;position:relative;z-index:1;border-top:1px solid rgba(255,255,255,.22)}
.auth-feats li{display:flex;align-items:center;gap:13px;font-size:14px;font-weight:500;line-height:1.35}
.auth-feats .ic{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;
  background:rgba(255,255,255,.2);backdrop-filter:blur(4px);font-size:17px;flex:0 0 38px}

/* Right form panel */
.auth-main{background:rgba(10,12,20,.74);padding:50px 48px;display:flex;
  flex-direction:column;justify-content:center;color:#e8eaf0}
.auth-main h2{font-size:27px;font-weight:700;color:#fff;margin-bottom:6px}
.auth-main .subtitle{color:#9aa0b3;font-size:14px;margin-bottom:24px}

.social-btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;
  padding:12px;border-radius:12px;font-size:14px;font-weight:600;background:#fff;
  color:#1f2330;border:1px solid rgba(255,255,255,.15);transition:.2s;cursor:pointer}
.social-btn:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(0,0,0,.4)}
.social-btn svg{width:20px;height:20px;flex:0 0 auto}

.auth-divider{display:flex;align-items:center;gap:14px;margin:22px 0;color:#6b7184;
  font-size:11.5px;letter-spacing:.6px;text-transform:uppercase}
.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;
  background:rgba(255,255,255,.12)}

/* dark inputs scoped to auth */
.auth-main .form-group{margin-bottom:16px}
.auth-main .field label{color:#aeb4c6}
.auth-main .field input{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.14);
  color:#fff;border-radius:12px;padding:13px 15px}
.auth-main .field input::placeholder{color:#6b7184}
.auth-main .field input:hover{border-color:rgba(255,255,255,.28)}
.auth-main .field input:focus{border-color:#f7941d;
  box-shadow:0 0 0 3px rgba(247,148,29,.25);background:rgba(255,255,255,.08);outline:none}
.auth-main .btn-primary{width:100%;padding:13px;border-radius:12px;font-size:15px;
  background:linear-gradient(135deg,#f7941d,#ff5e3a);box-shadow:0 10px 26px rgba(247,148,29,.35);
  margin-top:4px}
.auth-main .btn-primary:hover{filter:brightness(1.07);transform:translateY(-1px);
  background:linear-gradient(135deg,#f7941d,#ff5e3a)}

.auth-foot{margin-top:22px;font-size:13px;color:#9aa0b3;text-align:center}
.auth-foot a{color:#f7941d;font-weight:600}

.auth-alert{padding:11px 14px;border-radius:10px;margin-bottom:16px;font-size:13.5px;
  border:1px solid}
.auth-alert.err{background:rgba(226,59,59,.12);border-color:rgba(226,59,59,.4);color:#ff9b9b}
.auth-alert.ok{background:rgba(46,204,113,.12);border-color:rgba(46,204,113,.4);color:#7ef0a6}

.auth-grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}

@media(max-width:860px){
  .auth-shell{grid-template-columns:1fr;max-width:460px;min-height:auto}
  .auth-aside{display:none}
  .auth-main{padding:40px 28px}
  .auth-grid2{grid-template-columns:1fr}
}

/* === Settings === */
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.settings-grid .form-card h2{font-size:18px}
small.err{color:#e23b3b;font-size:12px;margin-top:4px;display:block}
@media(max-width:860px){.settings-grid{grid-template-columns:1fr}}

/* === Admin car form === */
.form-section{font-size:13px;text-transform:uppercase;letter-spacing:.5px;color:#f7941d;
  margin:22px 0 12px;padding-bottom:6px;border-bottom:1px solid #f0f0f0}
.form-section:first-of-type{margin-top:8px}
.form-grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:8px}
.photo-cell{border:1px solid #eee;border-radius:10px;overflow:hidden;background:#fafafa}
.photo-cell img{width:100%;height:110px;object-fit:cover}
.photo-cell form{padding:6px;text-align:center}
@media(max-width:680px){.form-grid2{grid-template-columns:1fr}}

/* === Invoice === */
.invoice-card{max-width:720px;margin:40px auto;background:#fff;border-radius:14px;
  padding:38px;box-shadow:0 4px 16px rgba(0,0,0,.07)}
.invoice-head{display:flex;justify-content:space-between;align-items:flex-start;
  padding-bottom:22px;border-bottom:2px solid #f3f3f3;margin-bottom:22px}
.invoice-meta{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:26px}
.invoice-meta h4{font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:#999;margin-bottom:6px}
.invoice-meta p{font-size:14px;margin:2px 0}
.invoice-table{width:100%;border-collapse:collapse}
.invoice-table th{text-align:left;font-size:12px;text-transform:uppercase;color:#999;
  padding:10px 0;border-bottom:1px solid #eee}
.invoice-table td{padding:12px 0;border-bottom:1px solid #f3f3f3;font-size:14px}
.invoice-table tr.invoice-total td{border-bottom:none;border-top:2px solid #222;font-size:16px;padding-top:14px}
.invoice-foot{display:flex;justify-content:space-between;align-items:center;margin-top:24px}
@media print{.topbar,.mega-strip,footer,.invoice-foot .btn{display:none!important}
  .invoice-card{box-shadow:none;margin:0}}

/* === Report filters === */
.report-filters{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 16px}
@media(max-width:900px){.report-filters{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.report-filters{grid-template-columns:1fr}}

/* === Customer filter bar & cards === */
.filter-bar{display:grid;grid-template-columns:repeat(8,1fr);gap:12px;align-items:end;
  background:#fff;border:1px solid #eee;border-radius:12px;padding:16px;margin-bottom:18px;
  box-shadow:0 2px 10px rgba(0,0,0,.04)}
.filter-bar .field label{font-size:11px;color:#777;margin-bottom:4px}
.filter-bar input,.filter-bar select{padding:9px 10px;border:1px solid #ddd;border-radius:8px;font-size:13px;width:100%}
.feature-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ftag{font-size:11px;background:#fff5e8;color:#c4760a;padding:3px 9px;border-radius:20px;font-weight:500}
.photo-thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.photo-thumbs img{width:72px;height:54px;object-fit:cover;border-radius:8px;border:1px solid #eee}
.rate-cards{display:flex;gap:10px;margin:14px 0}
.rate-card{flex:1;text-align:center;border:1px solid #eee;border-radius:10px;padding:12px 8px;background:#fafafa}
.rate-card.highlight{border-color:#f7941d;background:#fff8ef}
.rate-card .r{font-size:18px;font-weight:700;color:#222}
.rate-card small{color:#888;font-size:11px}
@media(max-width:1000px){.filter-bar{grid-template-columns:repeat(4,1fr)}}
@media(max-width:620px){.filter-bar{grid-template-columns:repeat(2,1fr)}.rate-cards{flex-wrap:wrap}}


/* ============================================================
   Advanced Admin Dashboard (light)
   ============================================================ */
.dash{padding:28px 0 50px;background:#f6f7fb;min-height:100vh}
.dash-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;
  margin-bottom:24px;flex-wrap:wrap}
.dash-hero h1{font-size:28px;font-weight:800;color:#222}
.dash-hero h1 span{color:#f7941d}
.dash-hero p{color:#777;font-size:13px;margin-top:5px}
.dash-revenue{text-align:right}
.dash-revenue .lbl{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#999}
.dash-revenue .val{font-size:28px;font-weight:800;color:#222;margin-top:2px}

.card{background:#fff;border:1px solid #eef0f4;border-radius:16px;
  box-shadow:0 2px 12px rgba(20,30,60,.05)}

.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin-bottom:22px}
.kpi{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;
  grid-template-areas:"ic val" "ic lbl";column-gap:15px;align-content:center;
  padding:18px 20px;transition:transform .18s ease, box-shadow .18s ease}
.kpi:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(20,30,60,.10)}
.kpi .ic{grid-area:ic;align-self:center;width:46px;height:46px;border-radius:13px;
  display:grid;place-items:center;font-size:21px;color:#fff;margin:0;
  box-shadow:0 6px 14px rgba(20,30,60,.12)}
.kpi .v{grid-area:val;align-self:end;font-size:24px;font-weight:800;color:#1f2430;line-height:1.1}
.kpi .l{grid-area:lbl;align-self:start;font-size:11.5px;color:#8a93a3;font-weight:600;
  text-transform:uppercase;letter-spacing:.5px;margin-top:3px}
.kpi.a1 .ic{background:linear-gradient(135deg,#f7941d,#ff5e3a)}
.kpi.a2 .ic{background:linear-gradient(135deg,#16a0ff,#7b5cff)}
.kpi.a3 .ic{background:linear-gradient(135deg,#2ecc71,#1abc9c)}
.kpi.a4 .ic{background:linear-gradient(135deg,#ff5e3a,#ff2d78)}
.kpi.a5 .ic{background:linear-gradient(135deg,#7b5cff,#16a0ff)}
.kpi.a6 .ic{background:linear-gradient(135deg,#f7b733,#fc4a1a)}

.chart-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px;margin-bottom:22px}
.chart-card{padding:20px}
.chart-card h3{font-size:13px;color:#555;margin-bottom:14px;font-weight:600;
  text-transform:uppercase;letter-spacing:.5px}
.chart-card canvas{max-height:240px}

.dash-alerts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:22px}
.alert-card{padding:18px}
.alert-card.warn{background:#fff6f6;border-color:#f5cccc}
.alert-card h4{font-size:13px;margin-bottom:8px;color:#333}
.alert-card.warn h4{color:#c0392b}
.alert-card ul{list-style:none;font-size:13px;color:#555}
.alert-card li{padding:5px 0;border-bottom:1px solid #f1f1f1}
.alert-card li:last-child{border-bottom:none}
.alert-ok{color:#1a9c5b;font-size:13px}

.dash-table{padding:22px}
.dash-table h3{font-size:15px;color:#222;margin-bottom:14px}
.dash-table table{width:100%;border-collapse:collapse}
.dash-table th{text-align:left;font-size:11px;text-transform:uppercase;color:#999;
  padding:8px;border-bottom:1px solid #eee}
.dash-table td{padding:11px 8px;border-bottom:1px solid #f3f3f3;font-size:13px;color:#333}
.dash-pill{padding:3px 11px;border-radius:20px;font-size:11px;font-weight:600}
.pill-pending{background:#fff1dd;color:#c4760a}
.pill-confirmed{background:#d4edda;color:#1a7e3c}
.pill-cancelled{background:#f8d7da;color:#a52834}
.pill-completed{background:#dceefb;color:#1366a8}

@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(3,1fr)}.chart-grid{grid-template-columns:1fr}}
@media(max-width:680px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.dash-alerts{grid-template-columns:1fr}}

/* ============================================================
   Admin login (advanced, light, split layout)
   ============================================================ */
.admin-auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:40px 20px;
  background:
    radial-gradient(900px 420px at 85% -12%, rgba(247,148,29,.14), transparent 60%),
    radial-gradient(760px 420px at -5% 112%, rgba(123,92,255,.12), transparent 60%),
    #f6f7fb;}
.admin-auth-shell{display:grid;grid-template-columns:1.05fr .95fr;width:100%;max-width:940px;
  background:#fff;border-radius:22px;overflow:hidden;border:1px solid #eef0f4;
  box-shadow:0 26px 70px rgba(20,30,60,.13);animation:authRise .5s cubic-bezier(.2,.8,.2,1) both}
.admin-auth-aside{padding:44px 40px;display:flex;flex-direction:column;justify-content:space-between;gap:26px;
  position:relative;overflow:hidden;background:linear-gradient(160deg,#fff7ee,#fdfdff)}
.admin-auth-aside::after{content:"";position:absolute;inset:0;
  background-image:radial-gradient(circle at 1px 1px, rgba(247,148,29,.22) 1px, transparent 0);
  background-size:22px 22px;
  -webkit-mask-image:radial-gradient(circle at 28% 26%,#000,transparent 72%);
  mask-image:radial-gradient(circle at 28% 26%,#000,transparent 72%);opacity:.55;pointer-events:none}
.admin-brand{display:flex;align-items:center;gap:10px;position:relative;z-index:1}
.admin-brand img{height:40px}
.admin-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.6px;color:#c4760a;background:#fff1dd;
  padding:5px 12px;border-radius:20px;align-self:flex-start;position:relative;z-index:1}
.admin-aside-body{position:relative;z-index:1}
.admin-aside-body h1{font-size:30px;font-weight:800;color:#222;line-height:1.2}
.admin-aside-body h1 span{color:#f7941d}
.admin-aside-body p{color:#777;font-size:14px;margin-top:10px;max-width:320px}
.admin-feats{list-style:none;display:flex;flex-direction:column;gap:14px;position:relative;z-index:1}
.admin-feats li{display:flex;align-items:center;gap:12px;font-size:14px;color:#333;font-weight:500}
.admin-feats .ic{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;
  color:#fff;font-size:18px;flex:0 0 auto}
.admin-feats li:nth-child(1) .ic{background:linear-gradient(135deg,#f7941d,#ff5e3a)}
.admin-feats li:nth-child(2) .ic{background:linear-gradient(135deg,#16a0ff,#7b5cff)}
.admin-feats li:nth-child(3) .ic{background:linear-gradient(135deg,#2ecc71,#1abc9c)}

.admin-auth-main{padding:48px 44px;display:flex;flex-direction:column;justify-content:center}
.admin-lock{width:54px;height:54px;border-radius:15px;display:grid;place-items:center;font-size:24px;
  color:#fff;background:linear-gradient(135deg,#f7941d,#ff5e3a);margin-bottom:16px;
  box-shadow:0 10px 24px rgba(247,148,29,.35)}
.admin-auth-main h2{font-size:24px;font-weight:700;color:#222}
.admin-auth-main .subtitle{color:#888;font-size:14px;margin:6px 0 22px}
.admin-auth-main .form-group{margin-bottom:16px}
.admin-auth-main .field input{border-radius:11px;padding:13px 15px}
.admin-auth-main .btn-primary{width:100%;padding:13px;border-radius:11px;font-size:15px;margin-top:4px;
  background:linear-gradient(135deg,#f7941d,#ff5e3a)}
.admin-auth-main .btn-primary:hover{filter:brightness(1.06);background:linear-gradient(135deg,#f7941d,#ff5e3a)}
.admin-auth-foot{margin-top:20px;text-align:center;font-size:13px;color:#888}
.admin-auth-foot a{color:#f7941d;font-weight:600}
@media(max-width:780px){.admin-auth-shell{grid-template-columns:1fr;max-width:440px}.admin-auth-aside{display:none}}

/* ============================================================
   Admin topbar — distinct light, patterned style
   ============================================================ */
.adminbar{position:relative;overflow:hidden;padding:12px 0;
  background:linear-gradient(105deg,#ffffff 0%,#fff7ee 55%,#ffffff 100%);
  border-bottom:2px solid transparent;
  border-image:linear-gradient(90deg,#f7941d,#ff5e3a) 1;
  box-shadow:0 2px 16px rgba(20,30,60,.06)}
/* dotted pattern overlay (warm) */
.adminbar::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.7;
  background-image:radial-gradient(circle at 1px 1px, rgba(247,148,29,.18) 1px, transparent 0);
  background-size:18px 18px;}
/* soft orange glow on the right */
.adminbar::after{content:"";position:absolute;top:-120%;right:-4%;width:420px;height:340%;
  pointer-events:none;background:radial-gradient(closest-side, rgba(247,148,29,.16), transparent);}
.adminbar-inner{position:relative;z-index:1;display:flex;align-items:center;gap:18px}
.adminbar .logo img{height:36px}
.adminbar-tag{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;
  color:#c4760a;background:#fff1dd;border:1px solid rgba(247,148,29,.4);
  padding:3px 9px;border-radius:6px}

.adminbar-nav{display:flex;gap:4px;align-items:center;flex:1;margin-left:6px;
  overflow-x:auto;scrollbar-width:none}
.adminbar-nav::-webkit-scrollbar{display:none}
.adminbar-nav a{font-size:13.5px;font-weight:500;color:#5a6275;padding:8px 13px;border-radius:9px;
  white-space:nowrap;transition:.18s}
.adminbar-nav a:hover{color:#222;background:#f1f2f6}
.adminbar-nav a.active{color:#fff;background:linear-gradient(135deg,#f7941d,#ff5e3a);
  box-shadow:0 6px 16px rgba(247,148,29,.30)}

.adminbar-actions{display:flex;gap:10px;align-items:center}
.adminbar-user{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:#444;
  background:#f4f5f8;border:1px solid #e8eaf0;padding:6px 12px;border-radius:20px}
.adminbar-user .dot{width:7px;height:7px;border-radius:50%;background:#2ecc71;
  box-shadow:0 0 0 3px rgba(46,204,113,.22)}
.abtn{font-size:13px;font-weight:600;padding:8px 16px;border-radius:9px;cursor:pointer;
  border:none;transition:.18s;text-align:center}
.abtn-outline{background:#fff;border:1.5px solid #f7941d;color:#f7941d}
.abtn-outline:hover{background:#f7941d;color:#fff}
.abtn-primary{background:linear-gradient(135deg,#f7941d,#ff5e3a);color:#fff}
.abtn-primary:hover{filter:brightness(1.06)}

@media(max-width:1080px){
  .adminbar-inner{flex-wrap:wrap;gap:10px}
  .adminbar-nav{order:3;width:100%;margin-left:0}
  .adminbar-actions{margin-left:auto}
}

/* ============================================================
   Manage Cars — AJAX toolbar, modal & toasts
   ============================================================ */
.cars-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;
  margin-bottom:16px;flex-wrap:wrap}
.cars-search{padding:9px 14px;border:1px solid #ddd;border-radius:10px;font-size:14px;min-width:260px}
.cars-search:focus{outline:none;border-color:#f7941d;box-shadow:0 0 0 3px rgba(247,148,29,.15)}
.table-loading{text-align:center;color:#999;padding:34px}
.row-actions{display:flex;gap:6px;justify-content:flex-end}
.icon-btn{border:none;background:#f3f4f8;color:#444;width:32px;height:32px;border-radius:8px;
  cursor:pointer;font-size:14px;transition:.15s;display:inline-grid;place-items:center}
.icon-btn:hover{background:#e8eaf0}
.icon-btn.del:hover{background:#fdecec;color:#e23b3b}
.icon-btn.docs:hover{background:#fff1dd;color:#c4760a}

/* modal */
.modal-overlay{position:fixed;inset:0;background:rgba(15,20,35,.55);backdrop-filter:blur(3px);
  display:none;align-items:flex-start;justify-content:center;z-index:1000;padding:40px 16px;overflow:auto}
.modal-overlay.open{display:flex}
.modal-card{background:#fff;border-radius:18px;width:100%;max-width:780px;
  box-shadow:0 30px 80px rgba(0,0,0,.32);animation:authRise .3s ease both}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;
  border-bottom:1px solid #eef0f4}
.modal-head h2{font-size:19px;margin:0}
.modal-head .tag{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;
  color:#c4760a;background:#fff1dd;padding:3px 9px;border-radius:6px;margin-left:10px}
.modal-close{background:none;border:none;font-size:26px;cursor:pointer;color:#aaa;line-height:1}
.modal-close:hover{color:#333}
.modal-body{padding:22px 24px;max-height:68vh;overflow:auto}
.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px;border-top:1px solid #eef0f4}
.field small.fe{color:#e23b3b;font-size:12px;margin-top:4px;display:none}
.field small.fe.show{display:block}
.field input.invalid,.field select.invalid{border-color:#e23b3b;box-shadow:0 0 0 3px rgba(226,59,59,.12)}

/* toasts */
.toast-wrap{position:fixed;top:18px;right:18px;z-index:1100;display:flex;flex-direction:column;gap:10px}
.toast{padding:12px 18px;border-radius:10px;color:#fff;font-size:14px;font-weight:500;
  box-shadow:0 10px 30px rgba(0,0,0,.22);min-width:220px;animation:authRise .25s ease both}
.toast.ok{background:linear-gradient(135deg,#2ecc71,#1abc9c)}
.toast.err{background:linear-gradient(135deg,#e23b3b,#c0392b)}

/* inline booking status select (color-coded) */
.status-select{padding:5px 10px;border-radius:20px;border:1px solid #ddd;font-size:12px;
  font-weight:600;cursor:pointer;background:#fff;transition:.15s}
.status-select.status-pending{background:#fff1dd;color:#c4760a;border-color:#f3d6a8}
.status-select.status-confirmed{background:#d4edda;color:#1a7e3c;border-color:#bfe3c8}
.status-select.status-cancelled{background:#f8d7da;color:#a52834;border-color:#f1c2c6}
.status-select.status-completed{background:#dceefb;color:#1366a8;border-color:#c2def5}

/* === Table sorting + pagination === */
th.sortable{user-select:none;cursor:pointer;transition:.15s}
th.sortable:hover{color:#f7941d}
th[data-dir=asc]::after{content:' \25B2';font-size:9px;color:#f7941d}
th[data-dir=desc]::after{content:' \25BC';font-size:9px;color:#f7941d}
.pager{display:flex;gap:6px;justify-content:center;margin-top:18px;flex-wrap:wrap}
.pg{min-width:34px;height:34px;padding:0 8px;border:1px solid #e5e7ee;background:#fff;border-radius:8px;
  cursor:pointer;font-size:13px;color:#444;transition:.15s}
.pg:hover:not(:disabled){background:#f3f4f8}
.pg.active{background:linear-gradient(135deg,#f7941d,#ff5e3a);color:#fff;border-color:transparent;font-weight:600}
.pg:disabled{opacity:.4;cursor:default}

/* === Vendor portal theme (blue/indigo accent on the shared topbar) === */
.adminbar.vendor{background:linear-gradient(105deg,#ffffff 0%,#eef4ff 55%,#ffffff 100%);
  border-image:linear-gradient(90deg,#16a0ff,#7b5cff) 1}
.adminbar.vendor::before{background-image:radial-gradient(circle at 1px 1px, rgba(22,160,255,.18) 1px, transparent 0)}
.adminbar.vendor::after{background:radial-gradient(closest-side, rgba(123,92,255,.16), transparent)}
.adminbar.vendor .adminbar-tag{color:#1366a8;background:#e3f0ff;border-color:rgba(22,160,255,.4)}
.adminbar.vendor .adminbar-nav a.active{background:linear-gradient(135deg,#16a0ff,#7b5cff);
  box-shadow:0 6px 16px rgba(22,160,255,.30)}
.adminbar.vendor .abtn-outline{border-color:#16a0ff;color:#16a0ff}
.adminbar.vendor .abtn-outline:hover{background:#16a0ff;color:#fff}
.adminbar.vendor .abtn-primary{background:linear-gradient(135deg,#16a0ff,#7b5cff)}

/* === Driver portal theme (green accent on the shared topbar) === */
.adminbar.driver{background:linear-gradient(105deg,#ffffff 0%,#eafaf1 55%,#ffffff 100%);
  border-image:linear-gradient(90deg,#1abc9c,#2ecc71) 1}
.adminbar.driver::before{background-image:radial-gradient(circle at 1px 1px, rgba(26,188,156,.18) 1px, transparent 0)}
.adminbar.driver::after{background:radial-gradient(closest-side, rgba(46,204,113,.16), transparent)}
.adminbar.driver .adminbar-tag{color:#0f8a6a;background:#e3f7ee;border-color:rgba(26,188,156,.4)}
.adminbar.driver .adminbar-nav a.active{background:linear-gradient(135deg,#1abc9c,#2ecc71);
  box-shadow:0 6px 16px rgba(26,188,156,.30)}
.adminbar.driver .avatar{background:linear-gradient(135deg,#1abc9c,#2ecc71)}
.adminbar.driver .ud-role{color:#0f8a6a;background:#e3f7ee}

/* vendor KPI accent variants */
.kpi.v1 .ic{background:linear-gradient(135deg,#16a0ff,#7b5cff)}
.kpi.v2 .ic{background:linear-gradient(135deg,#7b5cff,#b66cff)}
.kpi.v3 .ic{background:linear-gradient(135deg,#2ecc71,#1abc9c)}
.kpi.v4 .ic{background:linear-gradient(135deg,#f7941d,#ff5e3a)}

/* === Vendor login (advanced, light, blue accent) === */
.admin-auth.vendor{background:
  radial-gradient(900px 420px at 85% -12%, rgba(22,160,255,.14), transparent 60%),
  radial-gradient(760px 420px at -5% 112%, rgba(123,92,255,.12), transparent 60%),
  #f6f7fb;}
.admin-auth.vendor .admin-auth-aside{background:linear-gradient(160deg,#eef4ff,#fdfdff)}
.admin-auth.vendor .admin-auth-aside::after{background-image:radial-gradient(circle at 1px 1px, rgba(22,160,255,.22) 1px, transparent 0)}
.admin-auth.vendor .admin-badge{color:#1366a8;background:#e3f0ff;border-color:rgba(22,160,255,.4)}
.admin-auth.vendor .admin-aside-body h1 span{color:#16a0ff}
.admin-auth.vendor .admin-feats li:nth-child(1) .ic{background:linear-gradient(135deg,#16a0ff,#7b5cff)}
.admin-auth.vendor .admin-feats li:nth-child(2) .ic{background:linear-gradient(135deg,#7b5cff,#b66cff)}
.admin-auth.vendor .admin-feats li:nth-child(3) .ic{background:linear-gradient(135deg,#2ecc71,#1abc9c)}
.admin-auth.vendor .admin-lock{background:linear-gradient(135deg,#16a0ff,#7b5cff);box-shadow:0 10px 24px rgba(22,160,255,.35)}
.admin-auth.vendor .admin-auth-main .btn-primary{background:linear-gradient(135deg,#16a0ff,#7b5cff)}
.admin-auth.vendor .admin-auth-foot a{color:#16a0ff}
.admin-auth.vendor .field input:focus{border-color:#16a0ff;box-shadow:0 0 0 3px rgba(22,160,255,.2)}

/* === Driver portal login theme (green) === */
.admin-auth.driver{background:
  radial-gradient(900px 420px at 85% -12%, rgba(26,188,156,.14), transparent 60%),
  radial-gradient(760px 420px at -5% 112%, rgba(46,204,113,.12), transparent 60%),
  #f6f7fb;}
.admin-auth.driver .admin-auth-aside{background:linear-gradient(160deg,#eafaf1,#fdfdff)}
.admin-auth.driver .admin-auth-aside::after{background-image:radial-gradient(circle at 1px 1px, rgba(26,188,156,.22) 1px, transparent 0)}
.admin-auth.driver .admin-badge{color:#0f8a6a;background:#e3f7ee;border-color:rgba(26,188,156,.4)}
.admin-auth.driver .admin-aside-body h1 span{color:#1abc9c}
.admin-auth.driver .admin-feats li:nth-child(1) .ic{background:linear-gradient(135deg,#1abc9c,#2ecc71)}
.admin-auth.driver .admin-feats li:nth-child(2) .ic{background:linear-gradient(135deg,#2ecc71,#9be15d)}
.admin-auth.driver .admin-feats li:nth-child(3) .ic{background:linear-gradient(135deg,#16a0ff,#1abc9c)}
.admin-auth.driver .admin-lock{background:linear-gradient(135deg,#1abc9c,#2ecc71);box-shadow:0 10px 24px rgba(26,188,156,.35)}
.admin-auth.driver .admin-auth-main .btn-primary{background:linear-gradient(135deg,#1abc9c,#2ecc71)}
.admin-auth.driver .admin-auth-foot a{color:#1abc9c}
.admin-auth.driver .field input:focus{border-color:#1abc9c;box-shadow:0 0 0 3px rgba(26,188,156,.2)}

/* === Topbar user avatar + profile dropdown === */
.userdrop{position:relative}
.userdrop-trigger{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e8eaf0;
  border-radius:30px;padding:5px 12px 5px 5px;cursor:pointer;font-size:13px;color:#333;transition:.15s}
.userdrop-trigger:hover{box-shadow:0 4px 14px rgba(20,30,60,.10)}
.avatar{width:30px;height:30px;border-radius:50%;color:#fff;font-size:12px;font-weight:700;
  display:grid;place-items:center;flex:0 0 auto;background:linear-gradient(135deg,#f7941d,#ff5e3a)}
.avatar.lg{width:46px;height:46px;font-size:16px}
.userdrop-name{font-weight:600;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.userdrop-trigger .caret{color:#999;font-size:10px}
.userdrop-menu{position:fixed;width:264px;background:#fff;
  border:1px solid #eef0f4;border-radius:14px;box-shadow:0 16px 50px rgba(20,30,60,.18);
  padding:8px;display:none;z-index:1000}
.userdrop-menu.open{display:block;animation:authRise .18s ease both}
.userdrop-head{display:flex;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #f1f1f1;margin-bottom:6px}
.ud-name{font-weight:700;font-size:14px;color:#222}
.ud-email{font-size:12px;color:#888;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ud-role{display:inline-block;margin-top:6px;font-size:10px;font-weight:700;letter-spacing:.5px;
  color:#c4760a;background:#fff1dd;padding:2px 9px;border-radius:10px}
.userdrop-item{display:flex;align-items:center;gap:11px;width:100%;padding:10px 12px;border-radius:9px;
  font-size:13.5px;color:#333;background:none;border:none;cursor:pointer;text-align:left}
.userdrop-item span{font-size:15px;width:18px;text-align:center}
.userdrop-item:hover{background:#f5f6fa}
.userdrop-item.danger{color:#e23b3b}
.userdrop-item.danger:hover{background:#fdecec}
.userdrop form{margin:0}
/* vendor theme avatar/role */
.adminbar.vendor .avatar{background:linear-gradient(135deg,#16a0ff,#7b5cff)}
.adminbar.vendor .ud-role{color:#1366a8;background:#e3f0ff}

/* ============================================================
   Media modal — styled file input, add panels, photo grid
   ============================================================ */
.media-add{background:#f8f9fc;border:1px solid #eef0f4;border-radius:12px;padding:16px;margin-top:14px}
.media-add h5{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#8a90a0;margin-bottom:12px;font-weight:700}

/* custom file input */
.filebox{position:relative;border:1.5px dashed #d7dbe3;border-radius:10px;background:#fff;
  transition:.15s;cursor:pointer;min-height:44px}
.filebox:hover{border-color:#f7941d;background:#fff8ef}
.filebox-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.filebox-face{display:flex;align-items:center;gap:10px;padding:11px 14px;font-size:13px;color:#888;pointer-events:none}
.filebox-ico{font-size:17px;color:#f7941d;flex:0 0 auto}
.filebox-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filebox.has-file{border-style:solid;border-color:#2ecc71;background:#f2fbf6}
.filebox.has-file .filebox-ico{color:#2ecc71}
.filebox.has-file .filebox-label{color:#1a7e3c;font-weight:600}

/* documents table inside modal */
#docRows td, #drvDocRows td{vertical-align:middle}

/* photo grid with hover-delete overlay */
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:14px;margin-top:8px}
.photo-cell{position:relative;border-radius:12px;overflow:hidden;border:1px solid #eee;background:#f3f4f7;aspect-ratio:4 / 3}
.photo-cell img{width:100%;height:100%;object-fit:cover;display:block}
.photo-cell .ph-del{position:absolute;top:7px;right:7px;width:28px;height:28px;border:none;border-radius:8px;
  background:rgba(226,59,59,.94);color:#fff;font-size:13px;cursor:pointer;opacity:0;transform:translateY(-4px);transition:.15s}
.photo-cell:hover .ph-del{opacity:1;transform:none}
.media-empty{color:#9aa0ad;font-size:13px;padding:16px;text-align:center;background:#fafbfc;border-radius:10px;border:1px dashed #e5e7ee}

/* === Media modal tabs (sectioned) === */
.media-tabs{display:flex;gap:2px;padding:0 24px;border-bottom:1px solid #eef0f4;background:#fff}
.media-tab{background:none;border:none;padding:15px 18px;font-size:14px;font-weight:600;color:#8a90a0;
  cursor:pointer;border-bottom:2px solid transparent;display:flex;align-items:center;gap:9px;transition:.15s}
.media-tab:hover{color:#333}
.media-tab.active{color:#f7941d;border-bottom-color:#f7941d}
.media-tab .t-ico{font-size:16px}
.tab-count{font-size:11px;background:#eef0f4;color:#666;border-radius:11px;padding:1px 9px;font-weight:700;min-width:20px;text-align:center}
.media-tab.active .tab-count{background:#fff1dd;color:#c4760a}
.media-pane{animation:authRise .18s ease both}

/* ============================================================
   Slide-over drawer (Documents & Photos)
   ============================================================ */
.drawer-overlay{position:fixed;inset:0;background:rgba(15,20,35,.45);backdrop-filter:blur(2px);
  display:none;opacity:0;z-index:1000;transition:opacity .25s}
.drawer-overlay.open{display:block;opacity:1}
.drawer{position:fixed;top:0;right:0;height:100vh;width:560px;max-width:94vw;background:#fff;
  box-shadow:-14px 0 50px rgba(20,30,60,.22);display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform .3s cubic-bezier(.2,.8,.2,1);z-index:1001}
.drawer-overlay.open .drawer{transform:none}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:18px 22px;border-bottom:1px solid #eef0f4;flex:0 0 auto}
.drawer-head h2{font-size:18px;margin:0}
.drawer-body{padding:18px 22px;overflow-y:auto;flex:1 1 auto}
.drawer-foot{padding:14px 22px;border-top:1px solid #eef0f4;flex:0 0 auto;display:flex;justify-content:flex-end;gap:10px}
.drawer .media-tabs{padding:0 22px}

/* stacked add form for the narrow drawer */
.media-add .stack{display:flex;flex-direction:column;gap:12px}

/* document cards (drawer-friendly) */
.doc-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;
  border:1px solid #eef0f4;border-radius:10px;margin-bottom:8px;background:#fff}
.doc-card-type{font-weight:600;display:flex;align-items:center;gap:8px}
.doc-card-meta{font-size:12px;color:#8a90a0;margin-top:4px}
.doc-card-link{font-size:12px;color:#f7941d;font-weight:600;display:inline-block;margin-top:5px}
.drawer .photo-grid{grid-template-columns:repeat(2,1fr)}

/* ============================================================
   Entity profile page (driver) — modern
   ============================================================ */
.profile-hero{background:#fff;border:1px solid #eef0f4;border-radius:16px;overflow:hidden;
  box-shadow:0 2px 14px rgba(20,30,60,.06);margin-bottom:20px}
.profile-hero-body{padding:22px 26px;display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.profile-avatar{width:80px;height:80px;border-radius:20px;color:#fff;font-size:28px;font-weight:800;
  display:grid;place-items:center;flex:0 0 auto;overflow:hidden;
  background:linear-gradient(135deg,#f7941d,#ff5e3a);box-shadow:0 8px 22px rgba(247,148,29,.30)}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-meta{flex:1;min-width:200px;padding-bottom:4px}
.profile-meta h1{font-size:24px;margin:0;color:#222}
.profile-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.profile-chip{font-size:12px;background:#f1f2f6;color:#555;padding:4px 12px;border-radius:20px;font-weight:600;
  display:inline-flex;align-items:center;gap:6px}
.profile-actions{display:flex;gap:8px;align-self:flex-end;padding-bottom:6px}
.info-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #f3f3f3;font-size:14px}
.info-row:last-child{border-bottom:none}
.info-row .k{color:#8a90a0}
.info-row .v{font-weight:600;color:#333;text-align:right}

/* ============================================================
   Settings page — modern sectioned layout
   ============================================================ */
.settings-page{max-width:900px;margin:0 auto}
.settings-page .page-head{margin-bottom:22px}
.settings-page .page-head h1{font-size:26px;margin:0}
.settings-page .page-head p{color:#8a90a0;font-size:14px;margin-top:5px}
.settings-card{background:#fff;border:1px solid #eef0f4;border-radius:14px;
  box-shadow:0 2px 12px rgba(20,30,60,.05);margin-bottom:20px;overflow:hidden}
.settings-card-head{display:flex;gap:14px;align-items:flex-start;padding:18px 24px;border-bottom:1px solid #f3f3f3}
.settings-card-head .ic{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;
  font-size:19px;color:#fff;flex:0 0 auto;background:linear-gradient(135deg,#f7941d,#ff5e3a)}
.settings-card-head .ic.blue{background:linear-gradient(135deg,#16a0ff,#7b5cff)}
.settings-card-head .ic.green{background:linear-gradient(135deg,#2ecc71,#1abc9c)}
.settings-card-head h2{font-size:16px;margin:0;color:#222}
.settings-card-head p{font-size:13px;color:#8a90a0;margin-top:3px}
.settings-card-body{padding:20px 24px}
.settings-card-foot{padding:13px 24px;background:#fafbfc;border-top:1px solid #f3f3f3;
  display:flex;align-items:center;justify-content:space-between;gap:10px}
.settings-card-foot .hint{font-size:12px;color:#9aa0ad}
.settings-link-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 24px}
.settings-link-row .meta h2{font-size:16px;margin:0}
.settings-link-row .meta p{font-size:13px;color:#8a90a0;margin-top:3px}

/* settings: sidebar tab layout (no-scroll) */
.settings-page{max-width:980px}
.settings-layout{display:grid;grid-template-columns:228px 1fr;gap:24px;align-items:start}
.settings-nav{display:flex;flex-direction:column;gap:4px;position:sticky;top:20px}
.settings-nav-item{display:flex;align-items:center;gap:11px;padding:11px 14px;border-radius:10px;
  font-size:14px;font-weight:600;color:#555;background:none;border:none;cursor:pointer;text-align:left;
  width:100%;transition:.15s;text-decoration:none}
.settings-nav-item:hover{background:#eef1f6;color:#222}
.settings-nav-item.active{background:linear-gradient(135deg,#f7941d,#ff5e3a);color:#fff;
  box-shadow:0 6px 16px rgba(247,148,29,.30)}
.settings-nav-item .ic{font-size:16px;width:20px;text-align:center}
.settings-sec{animation:authRise .2s ease both}
.settings-sec .settings-card{margin-bottom:0}
@media(max-width:760px){
  .settings-layout{grid-template-columns:1fr}
  .settings-nav{flex-direction:row;overflow-x:auto;position:static}
  .settings-nav-item{white-space:nowrap}
}

/* ============================================================
   Category masters — grouped modern layout
   ============================================================ */
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:start}
.cat-card-body{padding:8px 20px 4px;min-height:120px}
.cat-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 2px;border-bottom:1px solid #f3f3f3}
.cat-item:last-child{border-bottom:none}
.cat-item .nm{font-weight:600;font-size:14px;color:#222}
.cat-item.off .nm{color:#aaa;text-decoration:line-through;font-weight:500}
.cat-item .nm small{display:block;font-weight:400;color:#9aa0ad;font-size:12px;text-decoration:none}
.cat-actions{display:flex;gap:6px;flex:0 0 auto}
.cat-add{display:flex;gap:8px;padding:12px 20px;background:#fafbfc;border-top:1px solid #f3f3f3}
.cat-add input{flex:1;padding:9px 12px;border:1px solid #ddd;border-radius:9px;font-size:13px}
.cat-add input:focus{outline:none;border-color:#f7941d;box-shadow:0 0 0 3px rgba(247,148,29,.15)}
.cat-count{font-size:11px;background:#eef0f4;color:#666;border-radius:11px;padding:1px 9px;font-weight:700}
@media(max-width:900px){.cat-grid{grid-template-columns:1fr}}

/* ---- Admin booking modal ---- */
.form-section-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;
  color:#9097a3;margin:6px 0 10px;padding-bottom:6px;border-bottom:1px solid #eef0f4}
.seg{display:inline-flex;background:#f1f3f7;border-radius:10px;padding:4px;gap:4px}
.seg-btn{border:none;background:none;font-size:13px;font-weight:600;color:#6b7280;
  padding:7px 18px;border-radius:7px;cursor:pointer;transition:.15s}
.seg-btn.active{background:#fff;color:#f7941d;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.booking-estimate{display:flex;align-items:center;justify-content:space-between;margin-top:16px;
  padding:13px 18px;border-radius:11px;background:linear-gradient(135deg,#fff6ec,#fef0fb);border:1px solid #ffe2c2}
.booking-estimate span{font-size:13px;color:#6b7280;font-weight:600}
.booking-estimate small{font-weight:500;color:#9aa1ad}
.booking-estimate strong{font-size:20px;color:#1f2430}

/* ---- Admin nav dropdown (Operations) ---- */
.nav-dd{position:relative;display:inline-block}
.nav-dd-trigger{cursor:pointer;display:inline-block}
.nav-dd-menu{position:absolute;top:100%;left:0;min-width:190px;background:#fff;border:1px solid #eceef3;
  border-radius:12px;box-shadow:0 14px 40px rgba(20,30,60,.16);padding:7px;opacity:0;visibility:hidden;
  transform:translateY(6px);transition:.16s;z-index:60}
.nav-dd:hover .nav-dd-menu{opacity:1;visibility:visible;transform:translateY(2px)}
.nav-dd-menu a{display:block;padding:9px 12px;border-radius:8px;font-size:13.5px;color:#3a4150;white-space:nowrap}
.nav-dd-menu a:hover{background:#f6f7fb;color:#f7941d}

/* ---- Reviews & ratings ---- */
.reviews-section{margin-top:40px;border-top:1px solid #eef0f4;padding-top:26px}
.reviews-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px}
.reviews-head h2{font-size:22px;margin:0}
.reviews-summary{display:flex;align-items:center;gap:12px}
.rating-big{font-size:34px;font-weight:800;color:#1f2430;line-height:1}
.rating-stars{color:#f7941d;letter-spacing:2px;font-size:15px}
.reviews-summary small{color:#888;display:block;margin-top:2px}
.review-form{background:#fafbfc;border:1px solid #eef0f4;border-radius:14px;padding:18px 20px;margin:20px 0}
.review-form h4{margin:0 0 10px;font-size:15px}
.review-form textarea{width:100%;border:1px solid #dfe3ea;border-radius:10px;padding:11px 13px;font-family:inherit;
  font-size:14px;resize:vertical;margin:10px 0}
.review-form textarea:focus{outline:none;border-color:#f7941d;box-shadow:0 0 0 3px rgba(247,148,29,.15)}
.star-input{font-size:28px;color:#f7941d;cursor:pointer;letter-spacing:3px;user-select:none}
.review-login{color:#888;font-size:14px;margin:16px 0}
.review-list{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.review-item{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid #f1f3f7}
.review-item:last-child{border-bottom:none}
.review-avatar{width:42px;height:42px;border-radius:50%;flex:0 0 42px;display:flex;align-items:center;
  justify-content:center;font-weight:700;color:#fff;background:linear-gradient(135deg,#16a0ff,#7b5cff);text-transform:uppercase}
.review-meta{display:flex;align-items:center;gap:12px;margin-bottom:4px}
.review-body p{margin:4px 0;color:#3a4150;font-size:14.5px;line-height:1.6}
.review-body small{color:#aaa;font-size:12px}

/* ---- Live tracking ---- */
.tracking-layout{display:grid;grid-template-columns:1fr 300px;gap:18px}
.tracking-map{height:560px;border-radius:16px;overflow:hidden;border:1px solid #e6e8ee;z-index:1}
.tracking-side{background:#fff;border:1px solid #eef0f4;border-radius:16px;padding:16px;max-height:560px;overflow:auto}
.tracking-side h3{font-size:16px;margin:0 0 12px}
.trk-item{display:flex;gap:11px;align-items:center;padding:10px;border-radius:10px;cursor:pointer;transition:.15s}
.trk-item:hover{background:#f6f7fb}
.trk-dot{width:10px;height:10px;border-radius:50%;flex:0 0 10px;margin-top:2px}
.trk-dot.on{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18)}
.trk-dot.off{background:#cbd2dd}
.trk-name{font-size:14px;font-weight:600;color:#2a2f3a}
.trk-meta{font-size:12px;color:#8a93a3}
@media(max-width:820px){.tracking-layout{grid-template-columns:1fr}.tracking-map{height:380px}}

/* ---- Payments ---- */
.pay-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.pay-summary div{background:#fafbfc;border:1px solid #eef0f4;border-radius:12px;padding:14px 16px;text-align:center}
.pay-summary span{display:block;font-size:12px;color:#8a93a3;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}
.pay-summary strong{font-size:20px;color:#1f2430}
.pay-table{width:100%;border-collapse:collapse;margin-top:6px}
.pay-table th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#9097a3;padding:8px 10px;border-bottom:1px solid #eef0f4}
.pay-table td{padding:10px;border-bottom:1px solid #f3f5f8;font-size:14px}

/* ---- Staff permissions grid ---- */
.perm-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 16px;margin-top:8px}
.perm-item{display:flex;align-items:center;gap:9px;font-size:13.5px;color:#3a4150;cursor:pointer;
  padding:8px 11px;border:1px solid #eef0f4;border-radius:9px;transition:.15s}
.perm-item:hover{background:#f8f9fc;border-color:#e2e6ee}
.perm-item input{accent-color:#f7941d}
.perm-note{font-size:13px;color:#1f9d55;background:#eaf8ef;border-radius:9px;padding:10px 13px;margin-top:8px}
@media(max-width:640px){.perm-grid{grid-template-columns:1fr}}

/* ============================================================
   Admin shell — fixed sidebar + slim flat top strip
   ============================================================ */
:root{--side-w:236px;--top-h:60px}
body.admin-shell{padding-left:var(--side-w);padding-top:var(--top-h);
  transition:padding-left .22s ease;background:#f6f7fb;min-height:100vh}
body.admin-shell.side-collapsed{--side-w:74px}
/* The public marketing footer is not shown inside the admin module. */
body.admin-shell > footer{display:none}

/* ---- Sidebar ---- */
.adminside{position:fixed;top:0;left:0;bottom:0;width:var(--side-w);z-index:50;
  background:#fff;border-right:1px solid #ecedf2;display:flex;flex-direction:column;
  transition:width .22s ease, transform .22s ease;overflow:hidden}
.side-brand{display:flex;align-items:center;justify-content:center;gap:10px;height:var(--top-h);padding:0 18px;
  border-bottom:1px solid #f0f1f5;flex:0 0 auto}
.side-logo img{height:30px;display:block}
.side-wordmark{font-size:17px;font-weight:800;color:#1f2430;white-space:nowrap;letter-spacing:-.3px}
.side-wordmark b{color:#f7941d;font-weight:800}
.side-nav{flex:1 1 auto;overflow-y:auto;padding:12px 12px 16px;scrollbar-width:thin}
.side-nav::-webkit-scrollbar{width:6px}
.side-nav::-webkit-scrollbar-thumb{background:#e2e5ec;border-radius:6px}
.side-group{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;
  color:#a8aebb;padding:16px 12px 6px;white-space:nowrap}
.side-item{position:relative;display:flex;align-items:center;gap:12px;width:100%;
  padding:10px 12px;border-radius:10px;font-size:14px;font-weight:500;color:#525a6b;
  white-space:nowrap;cursor:pointer;border:none;background:none;text-align:left;transition:.15s}
.side-item:hover{background:#f5f6fa;color:#1f2430}
.side-item .si-ic{flex:0 0 22px;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;font-size:15px;line-height:1;filter:grayscale(.15)}
.side-item .si-ic svg{display:block}
.side-item.active{color:#e8730c;font-weight:600;background:#fff6ec}
.side-item.active::before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;
  border-radius:0 3px 3px 0;background:linear-gradient(180deg,#f7941d,#ff5e3a)}
.side-item.danger{color:#c0392b}
.side-item.danger:hover{background:#fdecea}
.side-foot{flex:0 0 auto;padding:10px 12px 16px;border-top:1px solid #f0f1f5}
.side-foot form{margin:0}

/* collapsed mode: icons only */
body.side-collapsed .side-wordmark,
body.side-collapsed .side-group,
body.side-collapsed .si-label{display:none}
body.side-collapsed .side-brand{justify-content:center;padding:0}
body.side-collapsed .side-item{justify-content:center;padding:11px 0}
body.side-collapsed .side-item .si-ic{flex-basis:auto}

/* ---- Top strip ---- */
.admintop{position:fixed;top:0;left:var(--side-w);right:0;height:var(--top-h);z-index:40;
  background:#fff;border-bottom:1px solid #ecedf2;display:flex;align-items:center;gap:14px;
  padding:0 22px;transition:left .22s ease}
.admintop-title{font-size:18px;font-weight:700;color:#1f2430;margin:0;flex:1;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admintop-actions{display:flex;align-items:center;gap:10px}
.admintop-burger{display:inline-flex;flex-direction:column;justify-content:center;gap:4px;
  width:38px;height:38px;border:1px solid #ecedf2;border-radius:9px;background:#fff;cursor:pointer;
  padding:0 9px;transition:.15s}
.admintop-burger:hover{background:#f5f6fa}
.admintop-burger span{display:block;height:2px;border-radius:2px;background:#5a6275}

.admin-backdrop{display:none;position:fixed;inset:0;background:rgba(15,20,35,.4);z-index:45}

/* ---- Responsive: off-canvas sidebar under 900px ---- */
@media(max-width:900px){
  body.admin-shell{padding-left:0}
  .adminside{transform:translateX(-100%);box-shadow:0 18px 50px rgba(15,20,35,.18)}
  body.side-open .adminside{transform:translateX(0)}
  body.side-open .admin-backdrop{display:block}
  .admintop{left:0}
  body.admin-shell{--side-w:236px}        /* keep full-width drawer on mobile */
}
