:root{--zone-bg:#090d14;--zone-panel:#111823;--zone-line:#263141;--zone-text:#edf4fc;--zone-muted:#9cacc2;--zone-accent:#9dec75;--zone-blue:#70a9ff;--font:'Tajawal',system-ui,sans-serif}
body{background:var(--zone-bg);color:var(--zone-text);font-family:var(--font);margin:0}a{color:inherit}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--zone-blue);outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed!important}.zone-shell{max-width:1150px;margin:0 auto;padding:30px 24px 70px}.zone-top{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--zone-line);padding-bottom:24px;margin-bottom:35px}.zone-brand{font:800 23px var(--font);text-decoration:none;letter-spacing:1px;white-space:nowrap;display:flex;gap:10px;align-items:center}.zone-mark{background:var(--zone-accent);color:#102014;display:inline-grid;place-items:center;border-radius:12px;width:37px;height:37px;font:900 25px system-ui;transform:skew(-7deg)}.zone-nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.zone-btn{border:1px solid var(--zone-line);border-radius:12px;background:#192332;color:var(--zone-text);padding:13px 19px;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:45px;font-weight:700}.zone-btn.primary{background:var(--zone-accent);color:#142318;border-color:transparent}.zone-btn.danger{color:#ff9a9a}.zone-btn:hover{filter:brightness(1.12)}.zone-card{background:var(--zone-panel);border:1px solid var(--zone-line);padding:26px;border-radius:22px;min-width:0}.zone-card h2,.zone-card h3{margin:0 0 12px}.zone-card p,.zone-muted{color:var(--zone-muted);line-height:1.8}.zone-kicker{font-size:12px;font-weight:800;letter-spacing:2px;color:var(--zone-accent);text-transform:uppercase}.zone-title{font-size:clamp(29px,4vw,48px);margin:10px 0 12px;line-height:1.2}.zone-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.zone-stack{display:grid;gap:20px}.zone-fields{display:grid;gap:15px}.zone-fields label{display:grid;gap:8px;color:#cdd9e9;font-size:15px;font-weight:600}.zone-fields input,.zone-fields select,.zone-input{width:100%;box-sizing:border-box;border:1px solid #344258;border-radius:11px;background:#090f18;color:var(--zone-text);padding:14px;font:16px var(--font);min-height:48px}.zone-fields input[dir=ltr]{text-align:left}.zone-tabs{display:flex;gap:8px;margin:0 0 24px}.zone-tabs button[aria-selected=true]{background:var(--zone-accent);color:#142318}.zone-status{display:inline-flex;gap:7px;align-items:center;border:1px solid #3e5943;border-radius:30px;background:#172b21;color:#b9f898;padding:8px 13px;font-size:14px}.zone-message{min-height:25px;line-height:1.8;margin:16px 0;color:var(--zone-accent)}.zone-message.error{color:#ffacac}.zone-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:25px}.zone-plan{display:flex;flex-direction:column}.zone-plan.featured{border-color:#94d675;background:linear-gradient(150deg,#1e3527,#101823 65%)}.zone-price{font-size:33px;font-weight:800;margin:14px 0}.zone-plan ul{padding-inline-start:20px;line-height:2.2;color:#c5d2e2;flex:1}.zone-plan .zone-btn{margin-top:12px}.zone-divider{height:1px;background:var(--zone-line);margin:22px 0}.zone-details{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:14px 0;border-bottom:1px solid var(--zone-line)}.zone-table-wrap{overflow:auto}.zone-table{width:100%;border-collapse:collapse;text-align:right;white-space:nowrap}.zone-table td,.zone-table th{padding:14px;border-bottom:1px solid var(--zone-line)}.zone-table th{color:var(--zone-muted);font-size:13px}.zone-table .zone-btn{padding:9px 13px;min-height:38px}.zone-foot{font-size:13px;color:var(--zone-muted);margin-top:30px;line-height:1.9}.zone-hidden{display:none!important}.zone-account-link{border:1px solid #39495c;color:#f5f8fd;border-radius:25px;padding:10px 15px;white-space:nowrap;text-decoration:none;font-weight:700}.zone-welcome{display:grid;grid-template-columns:1.8fr 1fr;gap:18px;margin:24px 28px 16px}.zone-hero{position:relative;overflow:hidden;min-height:195px;padding:28px 32px;background:linear-gradient(120deg,#173521,#142c36 60%,#193b66);border:1px solid #355744;border-radius:22px}.zone-hero h1{font-size:34px;margin:12px 0;color:#f4f8ff;position:relative;z-index:1}.zone-hero p{font-size:15px;color:#b7cbd9;max-width:460px;position:relative;z-index:1}.zone-hero:after{content:'Z';position:absolute;left:30px;bottom:-63px;font:900 290px system-ui;opacity:.07;transform:skew(-15deg);pointer-events:none}.zone-hero-actions{display:flex;gap:10px;position:relative;z-index:1;margin-top:18px}.zone-connect{background:#121c2a;border:1px solid #2c3c53;border-radius:22px;padding:25px;display:flex;flex-direction:column;justify-content:center}.zone-connect h2{font-size:22px;margin:10px 0}.zone-connect p{color:#98abc1;font-size:14px;line-height:1.8;margin:0 0 15px}.zone-filters{display:flex;gap:8px;flex-wrap:wrap;grid-column:1/-1;padding:5px 0 15px}.zone-filters button{padding:11px 18px;border:1px solid var(--zone-line);border-radius:24px;background:#172231;color:#c4d3e7;cursor:pointer}.zone-filters button.active{background:var(--zone-accent);color:#102014}.zone-channel{background:linear-gradient(145deg,#182537,#101924);padding:25px;border:1px solid #2d3d52;border-radius:20px;text-align:right;cursor:pointer;color:white;min-height:160px;transition:.2s}.zone-channel:hover{border-color:var(--zone-accent);transform:translateY(-3px)}.zone-channel .channel-symbol{font:900 30px system-ui;letter-spacing:-2px;width:65px;height:60px;display:grid;place-items:center;border-radius:15px;background:#233957;margin-bottom:15px;color:#b8d7ff}.zone-channel h3{margin:0 0 8px;font-size:19px}.zone-channel small{color:#9fb0c6}.zone-live{float:left;background:#3a1923;color:#ff9da7;border-radius:5px;padding:4px 7px;font:700 10px system-ui;letter-spacing:1px}.zone-channel a{font-size:12px;color:#9baec4}.zone-empty{grid-column:1/-1;text-align:center;padding:55px 25px;border:1px dashed #344355;border-radius:20px;background:#0e1622;color:#c2d1e3}.zone-empty h3{font-size:24px;color:white}.zone-empty .zone-btn{margin-top:14px}.tp-header{background:rgba(10,15,24,.97)!important;border-bottom:1px solid #263141!important}.brand-title{font-size:22px!important;letter-spacing:.8px}.tesla-t{color:var(--zone-accent)!important}.yt-badge{display:none!important}.tp-search-container .search-input-wrapper{border-color:#354b5c!important;background:#131d29!important}.btn-search-trigger{background:var(--zone-accent)!important;color:#142019!important}.categories-bar{background:#0c131e!important;border-color:#263141!important;padding:12px 28px!important;gap:8px!important}.cat-btn{background:transparent!important;border:1px solid transparent!important;color:#9cacbf!important}.cat-btn.active{background:#253522!important;color:#c5f9a8!important;border-color:#3b5633!important}.yt-card{background:#121c29!important;border:1px solid #273448!important;border-radius:16px!important;overflow:hidden}.yt-thumb-box{border-radius:0!important}.yt-card-info{padding:15px!important}.yt-title{font-size:16px!important;line-height:1.6!important}.yt-avatar{display:none!important}.yt-grid{gap:20px!important}.section-header h2{font-size:25px!important}.hud-pill{background:#142922!important;border-color:#2c4939!important}.tp-content{padding-top:22px!important}.tesla-dock{background:#131c29ee!important;border-color:#334255!important;backdrop-filter:blur(18px)}.btn-fav-card{background:#0b121abf!important}.canvas-player-drawer:not(.hidden)~.zone-welcome{display:none}.zone-home-footer{padding:25px 28px 115px;color:#7f94ac;font-size:12px;display:flex;gap:18px;justify-content:space-between}.zone-home-footer a{color:#a2b4ca}.zone-close-btn{background:transparent;border:0;color:inherit;font-size:23px;cursor:pointer}.zone-doc{max-width:800px;line-height:2}.zone-doc h2{margin-top:30px}.zone-toast{position:fixed;left:24px;bottom:100px;z-index:10000;background:#20392a;border:1px solid #628b61;border-radius:12px;padding:14px 22px;max-width:360px;color:#e4ffdf;box-shadow:0 12px 35px #0008}.zone-section-tools{display:flex;gap:10px;align-items:center;margin:15px 0}
/* Tesla Dark Sleek Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Tesla Zone Premium Right Sidebar & Dock */
@media(min-width: 1024px) {
  body.zone-home {
    padding-right: 106px !important;
  }
  .zone-home .tp-header {
    padding: 15px 32px !important;
  }
  .zone-home .zone-welcome {
    grid-template-columns: 2fr 1fr !important;
  }

  .zone-home .tesla-dock {
    position: fixed !important;
    right: 22px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    flex-direction: column !important;
    width: 66px !important;
    min-width: 66px !important;
    height: auto !important;
    padding: 14px 7px !important;
    gap: 8px !important;
    border-radius: 26px !important;
    background: rgba(12, 19, 30, 0.88) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
      0 20px 48px -10px rgba(0, 0, 0, 0.7),
      0 0 0 1px rgba(255, 255, 255, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    z-index: 950 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .zone-home .tesla-dock .dock-item {
    width: 50px !important;
    height: 50px !important;
    border-radius: 15px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #8da2bb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
    text-decoration: none !important;
    outline: none !important;
  }

  .zone-home .tesla-dock .dock-item svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s, filter 0.2s !important;
  }

  /* Hover State */
  .zone-home .tesla-dock .dock-item:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  }

  .zone-home .tesla-dock .dock-item:hover svg {
    stroke: #ffffff !important;
    transform: scale(1.06) !important;
  }

  /* Active State (Tesla Signature Glowing Accent) */
  .zone-home .tesla-dock .dock-item.active {
    background: linear-gradient(135deg, rgba(157, 236, 117, 0.18), rgba(20, 42, 28, 0.65)) !important;
    border-color: rgba(157, 236, 117, 0.45) !important;
    color: #9dec75 !important;
    box-shadow: 
      0 0 22px rgba(157, 236, 117, 0.25),
      inset 0 0 14px rgba(157, 236, 117, 0.1) !important;
  }

  .zone-home .tesla-dock .dock-item.active svg {
    stroke: #9dec75 !important;
    filter: drop-shadow(0 0 6px rgba(157, 236, 117, 0.5)) !important;
  }

  /* Glowing Accent Pip for the Active Item */
  .zone-home .tesla-dock .dock-item.active::before {
    content: "" !important;
    position: absolute !important;
    right: -3px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 4px !important;
    height: 18px !important;
    border-radius: 4px !important;
    background: #9dec75 !important;
    box-shadow: 0 0 10px #9dec75, 0 0 18px rgba(157, 236, 117, 0.7) !important;
  }

  /* Sleek Divider inside Dock */
  .zone-home .tesla-dock .dock-divider {
    width: 32px !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent) !important;
    margin: 4px auto !important;
  }

  /* Floating Arabic Tooltip on Hover to the Left */
  .zone-home .tesla-dock .dock-item[data-title]::after {
    content: attr(data-title) !important;
    position: absolute !important;
    right: calc(100% + 14px) !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(6px) !important;
    background: rgba(10, 16, 26, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
    padding: 6px 13px !important;
    border-radius: 10px !important;
    font-family: var(--font), system-ui, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s !important;
    z-index: 1000 !important;
  }

  .zone-home .tesla-dock .dock-item:hover::after {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) translateX(0) !important;
  }
}
@media(max-width:900px){.zone-welcome,.zone-grid{grid-template-columns:1fr}.zone-connect{display:none}.zone-plans{grid-template-columns:1fr}.zone-shell{padding:20px 16px 60px}.zone-welcome{margin:16px}.zone-hero{padding:24px}.zone-hero h1{font-size:29px}.zone-top{align-items:flex-start}.tp-header{flex-wrap:wrap!important;height:auto!important}.tp-search-container{order:3!important;flex-basis:100%!important}.tp-right .btn-header-bookmark{display:none}.zone-table td,.zone-table th{padding:10px}.zone-home-footer{flex-wrap:wrap}.zone-hero-actions{flex-wrap:wrap}.zone-account-link{font-size:13px;padding:9px}.zone-card{padding:20px}}

@media(max-width:900px){.zone-account-top{display:grid;grid-template-columns:1fr;gap:18px;align-items:stretch}.zone-account-top .zone-brand{justify-self:start}.zone-account-top .zone-nav{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.zone-account-top .zone-nav .zone-btn{padding:10px 8px;min-height:46px;white-space:nowrap;font-size:14px}}



/* Tesla Zone Lite UI */
.btn-header-bookmark{display:none!important}
.zone-welcome-lite{display:block!important;margin:16px 28px 8px!important}
.zone-welcome-lite .zone-hero{min-height:auto!important;padding:20px 24px!important;background:linear-gradient(120deg,#13281b,#121e2a 70%)!important;border-radius:18px!important}
.zone-welcome-lite .zone-hero h1{font-size:27px!important;margin:8px 0 12px!important}
.zone-welcome-lite .zone-hero:after{font-size:180px!important;bottom:-55px!important}
.zone-welcome-lite .zone-hero-actions{margin-top:8px!important}
.zone-welcome-lite .zone-btn{padding:10px 16px!important;min-height:42px!important}
.categories-bar{overflow-x:auto!important;white-space:nowrap!important;scrollbar-width:none!important}
.categories-bar::-webkit-scrollbar{display:none!important}
.categories-bar .cat-btn{flex:0 0 auto!important;padding:9px 14px!important;border-radius:18px!important}
.tesla-dock .dock-optional{display:none!important}
.dock-emoji{font-size:21px;line-height:1}
.lite-launch-card{appearance:none;border:1px solid #2b3a4c;background:#111b28;color:#f4f8fd;border-radius:18px;min-height:150px;padding:22px;text-align:center;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;transition:.16s}
.lite-launch-card:hover{transform:translateY(-2px);border-color:#4b627d}
.lite-launch-card:active{transform:scale(.985)}
.lite-launch-icon{font-size:42px;line-height:1}
.lite-launch-card strong{font-size:19px}
.lite-launch-card small{font-size:12px;color:#93a6bd}
.kids-card{background:linear-gradient(145deg,#17283a,#121b27)}
.chill-card{background:linear-gradient(145deg,#182634,#101822)}
.more-card{min-height:125px}
.compact-modal{max-width:500px!important}
.remote-modal-body{text-align:center!important}
.remote-modal-body>p{color:#9eb0c5;margin-top:0}
.remote-qr-box img{width:190px;height:190px;background:#fff;padding:7px}
.remote-pair-status{margin:12px auto;padding:8px 12px;border-radius:20px;background:#17222f;border:1px solid #33455b;color:#a9bbd1;width:max-content;max-width:100%}
.remote-pair-status.connected{background:#173021;border-color:#3e6546;color:#bff5a8}
.remote-url-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin-top:12px}
.remote-url-row code{direction:ltr;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#09111a;border:1px solid #2d3d50;border-radius:10px;padding:12px;color:#a9bed7}
@media(max-width:900px){
  .zone-welcome-lite{margin:10px 16px 4px!important}
  .zone-welcome-lite .zone-hero{padding:16px 18px!important}
  .zone-welcome-lite .zone-hero h1{font-size:23px!important}
  .zone-welcome-lite .zone-kicker{display:none}
  .zone-welcome-lite .zone-hero-actions{gap:7px!important}
  .zone-welcome-lite .zone-btn{font-size:13px!important;padding:9px 12px!important}
  .categories-bar{padding:9px 14px!important}
  .categories-bar .cat-btn{font-size:13px!important;padding:8px 11px!important}
  .remote-url-row{grid-template-columns:1fr}
}


/* Lazy Mini Apps */
.extra-panel{grid-column:1/-1;background:#111923;border:1px solid #29384a;border-radius:20px;padding:20px;min-width:0}
.extra-title{margin:0 0 14px;font-size:19px}
.extra-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.extra-input{width:100%;min-width:0;background:#090f18;border:1px solid #34465d;color:#fff;border-radius:12px;padding:13px 14px;font-size:16px;min-height:48px}
.extra-btn{border:1px solid #34465d;background:#1a2635;color:#fff;border-radius:12px;padding:11px 16px;min-height:46px;font-weight:800;cursor:pointer}
.extra-btn.primary{background:var(--zone-accent);border-color:transparent;color:#142318}
.extra-btn:disabled{opacity:.55}
.extra-chip-row,.trip-duration{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.extra-chip{border:1px solid #324359;background:#172231;color:#dbe7f5;border-radius:22px;padding:9px 14px;cursor:pointer;font-weight:700}
.extra-chip.active{background:var(--zone-accent);color:#142318;border-color:transparent}
.extra-note{color:#8fa3ba;font-size:12px;line-height:1.7;margin:13px 0 0}
.extra-two-col{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.extra-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.extra-action-card{border:1px solid #2c3b4f;background:#121c29;color:#fff;border-radius:17px;min-height:132px;padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;cursor:pointer}
.extra-action-card:hover{border-color:#4d647e;transform:translateY(-2px)}
.extra-action-icon{font-size:34px;line-height:1}
.extra-action-card strong{font-size:16px}
.extra-action-card small{font-size:11px;color:#8fa3ba}
.extra-toolbar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:2px}
.extra-empty{grid-column:1/-1;padding:35px;text-align:center;border:1px dashed #34465a;border-radius:16px;color:#93a8c0;background:#0e1622}

.party-wheel{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;margin:20px auto;background:conic-gradient(#9dec75 0 25%,#70a9ff 25% 50%,#f4b76b 50% 75%,#d494ff 75%);font-size:44px;border:8px solid #0b1119;box-shadow:0 0 0 1px #3a4b60;transition:transform .9s cubic-bezier(.15,.75,.2,1)}
.party-result,.party-prompt{min-height:62px;display:grid;place-items:center;text-align:center;margin:12px 0;padding:12px;border-radius:13px;background:#0b131d;border:1px solid #29394c;color:#dbe7f5;font-weight:800}
.party-prompt{min-height:100px;font-size:18px}
.charge-clock{font:900 clamp(44px,8vw,84px) ui-monospace,SFMono-Regular,monospace;text-align:center;letter-spacing:2px;padding:24px 10px;color:#c9ffa9}

.sports-list{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.sports-card{border:1px solid #29394d;background:#111b28;color:#fff;border-radius:16px;padding:14px;text-align:right;cursor:pointer}
.sports-card:hover{border-color:#506681}
.sports-league{font-size:11px;color:#8ea3bb;margin-bottom:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sports-teams{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;font-weight:800}
.sports-teams span:last-child{text-align:left}
.sports-score{font-size:18px;color:#c8f8aa;direction:ltr}
.sports-meta{margin-top:9px;font-size:11px;color:#8ea3bb}

.achievement-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:20px}
.achievement-number{background:#0c141e;border:1px solid #29394c;border-radius:14px;padding:13px 8px;text-align:center;display:grid;gap:3px}
.achievement-icon{font-size:22px}.achievement-number strong{font-size:22px}.achievement-number small{font-size:10px;color:#91a5bd}
.badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.badge-card{border-radius:15px;padding:14px;text-align:center;border:1px solid #2b3a4d;background:#0e1722;display:grid;gap:4px}
.badge-card.locked{opacity:.42;filter:grayscale(1)}
.badge-card.unlocked{border-color:#44653e;background:#16251b}
.badge-icon{font-size:28px}.badge-card small{font-size:10px;color:#91a5bd}

.photo-qr{display:block;width:220px;height:220px;max-width:100%;margin:10px auto;background:#fff;padding:8px;border-radius:15px}
.photo-code{text-align:center;color:#a8bad0;font:700 14px ui-monospace,monospace}
.photo-stage{min-height:320px;border-radius:17px;background:#05080d;display:grid;place-items:center;overflow:hidden;padding:14px;transition:.2s}
.photo-placeholder{white-space:pre-line;color:#8fa2b7;text-align:center;font-size:16px}
.photo-image{max-width:100%;max-height:62vh;object-fit:contain;display:block}
.frame-neon{box-shadow:inset 0 0 0 3px #9dec75,0 0 26px #9dec7533}
.frame-polaroid{background:#f4f0e7;padding:20px 20px 48px;border-radius:6px}
.frame-clean{padding:0;background:#000;border-radius:14px}

@media(max-width:900px){
  .extra-two-col{grid-template-columns:1fr}
  .extra-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sports-list{grid-template-columns:1fr}
  .achievement-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .extra-row{grid-template-columns:1fr}
  .extra-action-grid{grid-template-columns:1fr 1fr}
  .achievement-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .badge-grid{grid-template-columns:1fr 1fr}
}


.radio-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.radio-card{border:1px solid #2c3b4e;background:#111b28;color:#fff;border-radius:18px;min-height:155px;padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;cursor:pointer}
.radio-card:hover{border-color:#4b627d;transform:translateY(-2px)}
.radio-icon{font-size:36px}.radio-card strong{font-size:17px}.radio-card small{font-size:11px;color:#8fa3ba}.radio-play{margin-top:7px;color:#c8f8aa;font-size:12px;font-weight:800}
.multiview-grid{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.multiview-pane{background:#101925;border:1px solid #2a394c;border-radius:18px;min-height:180px;padding:18px;display:flex;flex-direction:column;justify-content:center}
.multiview-kicker{font-size:11px;color:#8fa3ba;font-weight:800;margin-bottom:12px}
.multiview-main{font-size:20px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.multiview-sub{font-size:11px;color:#90a4bb;margin-top:7px}
.multiview-sports{display:grid;gap:7px}.multiview-game{padding:8px 10px;border-radius:10px;background:#0a121c;font:700 13px ui-monospace,monospace;direction:ltr;text-align:center}
.multiview-quick{display:flex;gap:8px;flex-wrap:wrap}.multiview-clock{font:900 clamp(42px,7vw,76px) ui-monospace,monospace;line-height:1}.clock-pane{text-align:center;align-items:center}
@media(max-width:900px){.radio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.multiview-grid{grid-template-columns:1fr}}

.karaoke-queue{display:grid;gap:8px;margin-top:8px}.karaoke-queue-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;align-items:center;background:#0b141f;border:1px solid #2b3b4e;border-radius:12px;padding:9px}.karaoke-order{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#223146;color:#bcd0e7;font-size:11px}.karaoke-song{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.party-prompt.buzz{animation:buzzPulse .3s ease 3;background:#38251a;border-color:#f4b76b;color:#ffd8a0}@keyframes buzzPulse{50%{transform:scale(1.04)}}.profile-preview{display:flex;align-items:center;gap:14px;margin-bottom:16px}.profile-avatar{width:72px;height:72px;border-radius:20px;display:grid;place-items:center;background:#182534;border:1px solid #34485f;font-size:38px}.profile-name{font-size:22px}.profile-avatars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:14px 0}.avatar-choice{border:1px solid #324359;background:#111b28;color:#fff;border-radius:12px;min-height:52px;font-size:24px;cursor:pointer}.avatar-choice.active{background:#253522;border-color:#5f8a4e;box-shadow:0 0 0 2px #9dec7540}@media(max-width:600px){.profile-avatars{grid-template-columns:repeat(4,minmax(0,1fr))}.karaoke-queue-row{grid-template-columns:auto 1fr auto}.karaoke-queue-row .extra-chip:last-child{grid-column:3}}


/* App Center polish */
.app-center-shell{grid-column:1/-1;display:grid;gap:16px}
.app-center-search{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:4px}
.app-center-search input{width:100%;min-height:46px;border-radius:14px;border:1px solid #314257;background:#0c141f;color:#f5f8fc;padding:0 15px;font-size:15px}
.app-center-count{font-size:12px;color:#8fa2b8;white-space:nowrap}
.app-center-content{display:grid;gap:18px}
.app-center-section{display:grid;gap:10px}
.app-center-section>h3{margin:0;font-size:14px;color:#9db0c7;font-weight:800}
.app-center-section.highlight{padding:14px;border:1px solid #38523e;background:#132018;border-radius:18px}
.app-center-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.app-center-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:10px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.app-center-strip::-webkit-scrollbar{display:none}
.app-center-card{position:relative;min-width:0;border:1px solid #2b3a4d;background:#111a27;border-radius:16px;overflow:hidden}
.app-center-card.compact{min-width:220px}
.app-center-open{appearance:none;border:0;background:transparent;color:#f3f7fb;width:100%;min-height:112px;padding:15px 44px 15px 15px;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;text-align:right;cursor:pointer}
.app-center-open:active{background:#172334}
.app-center-icon{font-size:30px;line-height:1}
.app-center-copy{display:grid;gap:4px;min-width:0}
.app-center-copy strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-center-copy small{font-size:11px;line-height:1.5;color:#8fa2b8}
.app-center-fav{position:absolute;top:9px;left:9px;width:31px;height:31px;border-radius:50%;border:1px solid #34465c;background:#0c141f;color:#8092a8;display:grid;place-items:center;font-size:18px;cursor:pointer}
.app-center-fav.active{color:#ffd76a;border-color:#75652e;background:#2a2413}
.app-center-empty{padding:30px;text-align:center;border:1px dashed #34465a;border-radius:16px;color:#91a5bd;background:#0d151f}
.mini-app-nav{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:2px}
.mini-app-back,.mini-app-fav{border:1px solid #34465c;background:#111b28;color:#dce7f5;border-radius:12px;min-height:40px;padding:8px 13px;font-weight:800;cursor:pointer}
.mini-app-fav.active{color:#ffd76a;border-color:#75652e;background:#2a2413}
@media(max-width:900px){.app-center-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.app-center-grid{grid-template-columns:1fr}.app-center-strip{grid-auto-columns:minmax(200px,88vw)}.app-center-search{grid-template-columns:1fr}.app-center-count{display:none}}


/* === Tesla in-car OS mode ================================================= */
.tesla-os-only,.tesla-os-statusbar{display:none!important}

html.tesla-os{
  background:#090c10;
  overscroll-behavior:none;
}
html.tesla-os body.zone-home{
  --tesla-os-bar:38px;
  --tesla-os-header:70px;
  --tesla-os-tabs:62px;
  --tesla-os-dock:72px;
  padding:0!important;
  min-height:100dvh;
  background:
    radial-gradient(circle at 12% 12%,rgba(80,112,153,.14),transparent 30%),
    radial-gradient(circle at 88% 8%,rgba(100,130,95,.10),transparent 28%),
    linear-gradient(145deg,#090d12 0%,#0d131b 52%,#080b0f 100%)!important;
  color:#f5f7fa;
  overflow-x:hidden;
}
html.tesla-os body.zone-home:before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,black,transparent 70%);
}
html.tesla-os .tesla-os-statusbar{
  display:grid!important;
  position:fixed;
  top:0;left:0;right:0;
  height:var(--tesla-os-bar);
  z-index:850;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:0 24px;
  background:rgba(5,8,12,.93);
  border-bottom:1px solid rgba(255,255,255,.07);
  backdrop-filter:blur(18px);
  font-family:var(--font);
}
html.tesla-os .tesla-os-status-left,
html.tesla-os .tesla-os-status-right{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
html.tesla-os .tesla-os-status-right{justify-content:flex-start}
html.tesla-os .tesla-os-status-left{justify-content:flex-end}
html.tesla-os .tesla-os-wordmark{
  font-size:12px;
  font-weight:900;
  letter-spacing:1.6px;
  color:#f7f9fc;
}
html.tesla-os .tesla-os-mode{
  border:1px solid #2e3b4c;
  background:#121a24;
  border-radius:999px;
  padding:4px 9px;
  color:#8fa1b7;
  font-size:9px;
  letter-spacing:1px;
  font-weight:800;
}
html.tesla-os .tesla-os-status-center{
  display:flex;
  align-items:center;
  gap:10px;
  color:#eaf0f8;
  direction:ltr;
}
html.tesla-os .tesla-os-status-center strong{
  font:700 14px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.5px;
}
html.tesla-os #teslaOsDate{
  font-size:11px;
  color:#8294a9;
  direction:rtl;
}
html.tesla-os .tesla-os-online{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#a6b5c8;
  font-size:9px;
  letter-spacing:1px;
  font-weight:800;
}
html.tesla-os .tesla-os-online i{
  width:7px;height:7px;border-radius:50%;background:#7cdb7a;
  box-shadow:0 0 12px rgba(124,219,122,.65);
}
html.tesla-os #teslaOsProfile{
  color:#e8eef7;
  text-decoration:none;
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px;
  font-weight:800;
  border-right:1px solid #293545;
  padding-right:10px;
}

html.tesla-os body.zone-home .tp-header{
  position:fixed!important;
  top:calc(var(--tesla-os-bar) + 10px)!important;
  left:18px!important;
  right:18px!important;
  height:var(--tesla-os-header)!important;
  z-index:820!important;
  display:grid!important;
  grid-template-columns:minmax(190px,.7fr) minmax(360px,1.7fr) minmax(150px,.6fr)!important;
  align-items:center!important;
  gap:18px!important;
  padding:0 20px!important;
  margin:0!important;
  border:1px solid rgba(139,157,179,.20)!important;
  border-radius:20px!important;
  background:rgba(17,24,34,.86)!important;
  box-shadow:0 18px 45px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(22px) saturate(1.15);
}
html.tesla-os .tp-left{justify-content:flex-start!important}
html.tesla-os .tp-brand{
  cursor:pointer;
  border-radius:13px;
  padding:5px 8px;
  transition:.16s;
}
html.tesla-os .tp-brand:active{background:#233044}
html.tesla-os .zone-mark{
  width:34px!important;height:34px!important;border-radius:10px!important;
  background:#e7ebf0!important;color:#11151b!important;
  font-size:22px!important;
}
html.tesla-os .brand-title{
  font-size:15px!important;
  letter-spacing:1.3px!important;
  color:#eef3fa!important;
}
html.tesla-os .tp-search-container{width:100%!important;max-width:none!important}
html.tesla-os .tp-search-container .search-input-wrapper{
  height:48px!important;
  border:1px solid #334256!important;
  border-radius:14px!important;
  background:#0b1119!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
html.tesla-os #searchInput{
  font-size:15px!important;
  color:#eef4fb!important;
}
html.tesla-os .btn-search-trigger{
  border-radius:10px!important;
  background:#e7ebf0!important;
  color:#12171e!important;
  height:36px!important;
  margin-left:5px!important;
}
html.tesla-os .btn-voice-mic{opacity:.78}
html.tesla-os .tp-right{
  justify-content:flex-end!important;
  gap:9px!important;
}
html.tesla-os .zone-account-link{display:none!important}
html.tesla-os .hud-pill{
  border:1px solid #304155!important;
  background:#101923!important;
  color:#9fb0c4!important;
  font-size:10px!important;
  letter-spacing:.4px;
}

html.tesla-os body.zone-home .categories-bar{
  position:fixed!important;
  top:calc(var(--tesla-os-bar) + var(--tesla-os-header) + 20px)!important;
  left:24px!important;
  right:24px!important;
  z-index:810!important;
  height:var(--tesla-os-tabs)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:7px 10px!important;
  border:0!important;
  border-radius:18px!important;
  background:rgba(9,14,21,.64)!important;
  backdrop-filter:blur(16px);
  overflow:visible!important;
}
html.tesla-os .categories-bar .cat-btn{
  flex:0 0 auto!important;
  min-width:108px;
  height:46px;
  border-radius:13px!important;
  padding:0 14px!important;
  background:transparent!important;
  border:1px solid transparent!important;
  color:#8fa0b4!important;
  font-size:12px!important;
  font-weight:800!important;
  transition:.15s!important;
}
html.tesla-os .categories-bar .cat-btn:hover{background:#17212e!important;color:#d8e1ec!important}
html.tesla-os .categories-bar .cat-btn.active{
  background:#e8ebef!important;
  color:#11161c!important;
  border-color:#e8ebef!important;
  box-shadow:0 7px 20px rgba(0,0,0,.23)!important;
}

html.tesla-os .zone-welcome,
html.tesla-os .zone-home-footer{display:none!important}
html.tesla-os body.zone-home .tp-content{
  box-sizing:border-box;
  width:auto!important;
  max-width:none!important;
  min-height:calc(100dvh - 304px);
  margin:calc(var(--tesla-os-bar) + var(--tesla-os-header) + var(--tesla-os-tabs) + 34px) 22px 108px!important;
  padding:22px 24px 28px!important;
  border:1px solid rgba(143,160,181,.16);
  border-radius:28px;
  background:rgba(11,17,25,.70)!important;
  box-shadow:0 24px 80px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.02);
  backdrop-filter:blur(14px);
}
html.tesla-os .section-header{
  display:flex!important;
  align-items:end!important;
  justify-content:space-between!important;
  gap:22px!important;
  padding:2px 4px 18px!important;
  border-bottom:1px solid rgba(255,255,255,.055);
  margin-bottom:18px!important;
}
html.tesla-os .section-header h2{
  margin:0!important;
  color:#f1f5fa!important;
  font-size:23px!important;
  letter-spacing:-.2px;
}
html.tesla-os .section-header .sub-text{
  max-width:48%;
  color:#76889e!important;
  font-size:11px!important;
  text-align:left;
}
html.tesla-os .yt-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
html.tesla-os .yt-card,
html.tesla-os .zone-channel,
html.tesla-os .lite-launch-card,
html.tesla-os .app-center-card{
  border-radius:17px!important;
  border-color:#273547!important;
  background:#111a25!important;
  box-shadow:0 8px 24px rgba(0,0,0,.13);
}
html.tesla-os .yt-card:hover,
html.tesla-os .zone-channel:hover,
html.tesla-os .lite-launch-card:hover,
html.tesla-os .app-center-card:hover{
  border-color:#53677f!important;
  transform:translateY(-2px);
}
html.tesla-os .yt-thumb-box{aspect-ratio:16/9}
html.tesla-os .yt-card-info{padding:12px!important}
html.tesla-os .yt-title{font-size:14px!important;line-height:1.5!important}

html.tesla-os body.zone-home .tesla-dock{
  display:flex!important;
  position:fixed!important;
  right:auto!important;
  left:50%!important;
  top:auto!important;
  bottom:14px!important;
  transform:translateX(-50%)!important;
  flex-direction:row!important;
  width:auto!important;
  min-width:470px;
  height:var(--tesla-os-dock)!important;
  padding:8px 12px!important;
  gap:7px!important;
  border:1px solid rgba(145,163,184,.24)!important;
  border-radius:22px!important;
  background:rgba(15,22,31,.88)!important;
  box-shadow:0 18px 50px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.04)!important;
  backdrop-filter:blur(24px) saturate(1.15)!important;
  z-index:900!important;
}
html.tesla-os .tesla-dock .dock-item{
  width:50px!important;height:50px!important;
  border-radius:15px!important;
  color:#93a4b8!important;
}
html.tesla-os .tesla-dock .dock-item:hover{background:#1c2837!important;color:#e7edf6!important;transform:none!important}
html.tesla-os .tesla-dock .dock-item.active{
  background:#e8ecf1!important;
  color:#131820!important;
  border-color:#e8ecf1!important;
  box-shadow:0 8px 24px rgba(0,0,0,.26)!important;
}
html.tesla-os .tesla-dock .dock-optional{display:none!important}
html.tesla-os .tesla-os-only{display:flex!important}
html.tesla-os .dock-emoji{font-size:22px}

html.tesla-os .canvas-player-drawer:not(.hidden):not(.theater-mode){
  display:flex!important;
  position:fixed!important;
  top:calc(var(--tesla-os-bar) + var(--tesla-os-header) + 20px)!important;
  left:20px!important;
  right:20px!important;
  bottom:100px!important;
  height:auto!important;
  max-height:none!important;
  z-index:840!important;
  overflow:hidden!important;
  border:1px solid #354457!important;
  border-radius:24px!important;
  background:#0a0f16!important;
  box-shadow:0 30px 90px rgba(0,0,0,.62)!important;
}
html.tesla-os .canvas-player-drawer:not(.theater-mode) .drawer-header{
  flex:0 0 58px;
  padding:8px 16px!important;
  background:#111923!important;
  border-bottom:1px solid #273547!important;
}
html.tesla-os .canvas-player-drawer:not(.theater-mode) .mode-tag{display:none}
html.tesla-os .canvas-player-drawer:not(.theater-mode) .drawer-title-group h3{font-size:14px}
html.tesla-os .canvas-player-drawer:not(.theater-mode) .canvas-viewport{
  flex:1!important;
  min-height:0!important;
  max-height:none!important;
  width:100%!important;
  aspect-ratio:auto!important;
  background:#000!important;
}
html.tesla-os .canvas-player-drawer:not(.theater-mode) #videoCanvas,
html.tesla-os .canvas-player-drawer:not(.theater-mode) #videoStream,
html.tesla-os .canvas-player-drawer:not(.theater-mode) #webAppFrame{
  width:100%!important;height:100%!important;object-fit:contain!important;
}
html.tesla-os .canvas-player-drawer:not(.theater-mode) .canvas-hud{display:none!important}
html.tesla-os .canvas-player-drawer:not(.theater-mode) .controls-bar{
  flex:0 0 auto;
  background:#111923!important;
  border-top:1px solid #273547!important;
  padding:10px 16px!important;
}
html.tesla-os .canvas-player-drawer:not(.theater-mode) .sync-control-box,
html.tesla-os .canvas-player-drawer:not(.theater-mode) #qualitySelect{display:none!important}
html.tesla-os .btn-theater-toggle,
html.tesla-os .btn-close-drawer,
html.tesla-os .btn-fav-drawer{
  border-radius:10px!important;
  box-shadow:none!important;
}

html.tesla-os .modal-backdrop{
  background:rgba(2,5,9,.70)!important;
  backdrop-filter:blur(16px);
}
html.tesla-os .modal-card{
  border:1px solid #405167!important;
  border-radius:24px!important;
  background:#111a25!important;
  box-shadow:0 35px 100px rgba(0,0,0,.58)!important;
}
html.tesla-os .modal-header{
  background:#151f2c!important;
  border-bottom:1px solid #2c3a4d!important;
}
html.tesla-os .zone-toast{
  bottom:104px!important;
  border-radius:14px!important;
}

html.tesla-os body.in-theater-mode .tesla-os-statusbar,
html.tesla-os body.in-theater-mode .tp-header,
html.tesla-os body.in-theater-mode .categories-bar,
html.tesla-os body.in-theater-mode .tesla-dock{display:none!important}

@media(max-width:1100px){
  html.tesla-os .yt-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html.tesla-os body.zone-home .tp-header{grid-template-columns:160px 1fr 110px!important}
  html.tesla-os .categories-bar .cat-btn{min-width:92px}
}


html.tesla-os .tesla-os-home-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:minmax(112px,1fr);
  gap:12px!important;
  align-content:stretch;
}
html.tesla-os .tesla-os-app-tile{
  appearance:none;
  position:relative;
  overflow:hidden;
  min-height:118px;
  border:1px solid #2b394b;
  border-radius:20px;
  background:linear-gradient(145deg,#111a25,#0d141d);
  color:#f4f7fb;
  padding:18px;
  display:flex;
  align-items:center;
  gap:14px;
  text-align:right;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 10px 28px rgba(0,0,0,.15);
  transition:.16s ease;
}
html.tesla-os .tesla-os-app-tile:hover{
  transform:translateY(-2px);
  border-color:#566a82;
  background:linear-gradient(145deg,#162130,#101823);
}
html.tesla-os .tesla-os-app-tile.featured{
  grid-column:span 2;
  min-height:138px;
}
html.tesla-os .tesla-os-app-tile:before{
  content:'';
  position:absolute;
  width:150px;height:150px;
  border-radius:50%;
  left:-55px;bottom:-78px;
  background:rgba(255,255,255,.028);
}
html.tesla-os .tesla-os-app-glyph{
  position:relative;
  z-index:1;
  flex:0 0 58px;
  width:58px;height:58px;
  border-radius:17px;
  display:grid;
  place-items:center;
  background:#1b2735;
  border:1px solid #35475d;
  font:900 28px system-ui;
  color:#eef3f8;
}
html.tesla-os .tesla-os-app-copy{
  position:relative;
  z-index:1;
  display:grid;
  gap:5px;
  min-width:0;
}
html.tesla-os .tesla-os-app-copy strong{
  font-size:18px;
  letter-spacing:-.2px;
}
html.tesla-os .tesla-os-app-copy small{
  color:#8395aa;
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
html.tesla-os .tesla-os-app-arrow{
  position:absolute;
  left:16px;
  bottom:14px;
  color:#60738a;
  font:300 24px system-ui;
}
html.tesla-os .tesla-os-app-tile.youtube .tesla-os-app-glyph{background:#3a1719;border-color:#5a2428;color:#ff6d73}
html.tesla-os .tesla-os-app-tile.live .tesla-os-app-glyph{background:#122b24;border-color:#275444;color:#70dbac}
html.tesla-os .tesla-os-app-tile.movies .tesla-os-app-glyph{background:#201b32;border-color:#403664;color:#bca9ff}
html.tesla-os .tesla-os-app-tile.kids .tesla-os-app-glyph{background:#302316;border-color:#624a2a}
html.tesla-os .tesla-os-app-tile.arcade .tesla-os-app-glyph{background:#122336;border-color:#29496d;color:#8dc7ff}
html.tesla-os .tesla-os-app-tile.chill .tesla-os-app-glyph{background:#1d2230;border-color:#38445b;color:#b7c8e6}
html.tesla-os .tesla-os-app-tile.apps .tesla-os-app-glyph{background:#20252b;border-color:#414c57}
html.tesla-os .tesla-os-app-tile.remote .tesla-os-app-glyph{background:#16282b;border-color:#315258;color:#9bdce3}
html.tesla-os .tesla-os-home-grid + *{display:none}
@media(max-width:1100px){
  html.tesla-os .tesla-os-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html.tesla-os .tesla-os-app-tile.featured{grid-column:span 3}
}


/* Tesla OS v3 — tuned from real in-car screenshots */
html.tesla-os body.zone-home{
  --tesla-os-bar:0px;
  --tesla-os-header:56px;
  --tesla-os-tabs:48px;
  --tesla-os-dock:56px;
}
html.tesla-os .tesla-os-statusbar{display:none!important}

html.tesla-os body.zone-home .tp-header{
  top:8px!important;
  left:10px!important;
  right:10px!important;
  height:var(--tesla-os-header)!important;
  border-radius:16px!important;
  padding:0 14px!important;
  grid-template-columns:minmax(150px,.55fr) minmax(280px,1.6fr) minmax(96px,.45fr)!important;
  gap:12px!important;
  background:rgba(14,21,30,.88)!important;
}
html.tesla-os .zone-mark{width:30px!important;height:30px!important;font-size:19px!important;border-radius:9px!important}
html.tesla-os .brand-title{font-size:13px!important;letter-spacing:1px!important}
html.tesla-os .tp-search-container .search-input-wrapper{height:40px!important;border-radius:12px!important}
html.tesla-os .btn-search-trigger{height:30px!important;padding:0 13px!important;font-size:12px!important}
html.tesla-os #searchInput{font-size:13px!important}
html.tesla-os .hud-pill{font-size:9px!important;padding:6px 9px!important}

html.tesla-os body.zone-home .categories-bar{
  top:72px!important;
  left:12px!important;
  right:12px!important;
  height:var(--tesla-os-tabs)!important;
  border-radius:14px!important;
  padding:5px 8px!important;
  gap:4px!important;
}
html.tesla-os .categories-bar .cat-btn{
  min-width:82px!important;
  height:38px!important;
  padding:0 10px!important;
  font-size:11px!important;
  border-radius:11px!important;
}

html.tesla-os body.zone-home .tp-content{
  margin:128px 12px 76px!important;
  padding:14px!important;
  min-height:calc(100dvh - 204px)!important;
  border-radius:20px!important;
}

html.tesla-os body.zone-home .tesla-dock{
  bottom:6px!important;
  min-width:0!important;
  height:var(--tesla-os-dock)!important;
  padding:6px 9px!important;
  gap:4px!important;
  border-radius:18px!important;
}
html.tesla-os .tesla-dock .dock-item{
  width:42px!important;
  height:42px!important;
  border-radius:12px!important;
}
html.tesla-os .dock-emoji{font-size:19px!important}

/* Home becomes a true launcher */
html.tesla-os body.tesla-os-home .tp-header{
  grid-template-columns:1fr auto!important;
}
html.tesla-os body.tesla-os-home .tp-search-container{display:none!important}
html.tesla-os body.tesla-os-home .tp-left{justify-content:flex-start!important}
html.tesla-os body.tesla-os-home .tp-right{justify-content:flex-end!important}
html.tesla-os body.tesla-os-home .categories-bar{display:none!important}
html.tesla-os body.tesla-os-home .section-header{display:none!important}
html.tesla-os body.tesla-os-home .tp-content{
  margin:74px 12px 72px!important;
  padding:12px!important;
  min-height:calc(100dvh - 146px)!important;
  border-radius:22px!important;
  background:rgba(10,16,23,.76)!important;
}
html.tesla-os body.tesla-os-home .tesla-os-home-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  height:100%!important;
  min-height:calc(100dvh - 170px)!important;
  align-content:stretch!important;
}
html.tesla-os body.tesla-os-home .tesla-os-app-tile,
html.tesla-os body.tesla-os-home .tesla-os-app-tile.featured{
  grid-column:span 1!important;
  min-height:0!important;
  height:100%!important;
  padding:14px!important;
  border-radius:17px!important;
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  grid-template-rows:1fr!important;
  align-items:center!important;
  gap:10px!important;
}
html.tesla-os body.tesla-os-home .tesla-os-app-glyph{
  width:48px!important;height:48px!important;flex-basis:48px!important;
  font-size:23px!important;border-radius:14px!important;
}
html.tesla-os body.tesla-os-home .tesla-os-app-copy strong{font-size:15px!important}
html.tesla-os body.tesla-os-home .tesla-os-app-copy small{font-size:10px!important}
html.tesla-os body.tesla-os-home .tesla-os-app-arrow{display:none!important}

@media(max-width:980px){
  html.tesla-os body.tesla-os-home .tesla-os-home-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

html.tesla-os body.tesla-os-home{overflow:hidden!important}

/* Tesla OS v4 — final launcher polish from real Model 3 screen */
html.tesla-os body.tesla-os-home .tp-header{
  top:6px!important;
  left:12px!important;
  right:12px!important;
  height:46px!important;
  padding:0 13px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  border-radius:14px!important;
  background:rgba(14,21,30,.90)!important;
}
html.tesla-os body.tesla-os-home .tp-left{
  width:100%!important;
  justify-content:flex-start!important;
}
html.tesla-os body.tesla-os-home .tp-right,
html.tesla-os body.tesla-os-home .tp-search-container,
html.tesla-os body.tesla-os-home .hud-pill{
  display:none!important;
}
html.tesla-os body.tesla-os-home .tp-brand{
  margin-inline-start:auto!important;
  padding:3px 6px!important;
}
html.tesla-os body.tesla-os-home .zone-mark{
  width:28px!important;height:28px!important;font-size:18px!important;border-radius:8px!important;
}
html.tesla-os body.tesla-os-home .brand-title{
  font-size:12px!important;
  letter-spacing:1.2px!important;
}
html.tesla-os body.tesla-os-home .tp-content{
  margin:60px 12px 64px!important;
  min-height:calc(100dvh - 124px)!important;
  padding:10px!important;
}
html.tesla-os body.tesla-os-home .tesla-os-home-grid{
  min-height:calc(100dvh - 144px)!important;
  gap:9px!important;
}
html.tesla-os body.tesla-os-home .tesla-os-app-tile{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  gap:9px!important;
  padding:12px!important;
  background:linear-gradient(160deg,rgba(20,30,42,.97),rgba(13,20,29,.97))!important;
  border-color:#33445a!important;
}
html.tesla-os body.tesla-os-home .tesla-os-app-tile:before{
  width:120px!important;height:120px!important;
  left:-42px!important;bottom:-68px!important;
  opacity:.55;
}
html.tesla-os body.tesla-os-home .tesla-os-app-glyph{
  width:58px!important;
  height:58px!important;
  flex-basis:58px!important;
  font-size:28px!important;
  border-radius:17px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 8px 18px rgba(0,0,0,.16);
}
html.tesla-os body.tesla-os-home .tesla-os-app-copy{
  justify-items:center!important;
  gap:3px!important;
}
html.tesla-os body.tesla-os-home .tesla-os-app-copy strong{
  font-size:15px!important;
  line-height:1.2!important;
}
html.tesla-os body.tesla-os-home .tesla-os-app-copy small{
  font-size:10px!important;
  white-space:normal!important;
  line-height:1.4!important;
}
html.tesla-os body.tesla-os-home .tesla-dock{
  bottom:4px!important;
  height:50px!important;
  padding:5px 8px!important;
  gap:3px!important;
}
html.tesla-os body.tesla-os-home .tesla-dock .dock-item{
  width:38px!important;height:38px!important;border-radius:11px!important;
}


/* Tesla OS v5 — subtle glow + home credits */
.tesla-os-home-meta{display:none}

html.tesla-os body.tesla-os-home .tesla-os-app-tile{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 10px 26px rgba(0,0,0,.18),
    0 0 18px rgba(92,154,255,.08)!important;
}
html.tesla-os body.tesla-os-home .tesla-os-app-tile:hover,
html.tesla-os body.tesla-os-home .tesla-os-app-tile:focus-visible{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 12px 30px rgba(0,0,0,.22),
    0 0 26px rgba(92,154,255,.16)!important;
}
html.tesla-os body.tesla-os-home .tesla-os-app-glyph{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 18px rgba(0,0,0,.16),
    0 0 20px rgba(124,184,255,.11)!important;
}
html.tesla-os body.tesla-os-home .tesla-dock{
  box-shadow:
    0 12px 30px rgba(0,0,0,.30),
    0 0 20px rgba(103,163,255,.10),
    inset 0 1px 0 rgba(255,255,255,.05)!important;
}

html.tesla-os body.tesla-os-home .tesla-os-home-meta{
  position:fixed;
  left:24px;
  right:24px;
  bottom:58px;
  z-index:885;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  pointer-events:none;
  direction:ltr;
  font-size:10px;
  line-height:1;
  letter-spacing:.15px;
  color:rgba(224,233,244,.58);
  text-shadow:0 0 10px rgba(110,170,255,.08);
}
html.tesla-os body.tesla-os-home .tesla-os-powered{
  text-align:left;
  white-space:nowrap;
  font-weight:600;
}
html.tesla-os body.tesla-os-home .tesla-os-drive-warning{
  direction:rtl;
  text-align:right;
  white-space:nowrap;
  color:rgba(255,226,174,.66);
  font-weight:600;
}


/* Tesla OS v6 — readability tuned from real night screen */
html.tesla-os body.tesla-os-home .brand-title{
  font-size:14px!important;
  font-weight:800!important;
  letter-spacing:1.1px!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-glyph{
  width:64px!important;
  height:64px!important;
  flex-basis:64px!important;
  font-size:31px!important;
  border-radius:18px!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-copy{
  gap:5px!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-copy strong{
  font-size:18px!important;
  line-height:1.15!important;
  font-weight:800!important;
  color:#f7f9fc!important;
  text-shadow:0 1px 7px rgba(0,0,0,.34);
}

html.tesla-os body.tesla-os-home .tesla-os-app-copy small{
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:600!important;
  color:rgba(236,242,250,.90)!important;
  text-shadow:0 1px 6px rgba(0,0,0,.30);
}

html.tesla-os body.tesla-os-home .tesla-os-home-meta{
  left:20px!important;
  right:20px!important;
  bottom:59px!important;
  font-size:12px!important;
  line-height:1.2!important;
  color:rgba(239,244,250,.84)!important;
  text-shadow:0 1px 7px rgba(0,0,0,.42)!important;
}

html.tesla-os body.tesla-os-home .tesla-os-powered{
  font-size:12px!important;
  font-weight:700!important;
  color:rgba(239,244,250,.88)!important;
}

html.tesla-os body.tesla-os-home .tesla-os-drive-warning{
  font-size:12px!important;
  font-weight:700!important;
  color:rgba(255,226,174,.94)!important;
}


/* Tesla OS v7 — large in-car typography */
html.tesla-os body.tesla-os-home .brand-title{
  font-size:16px!important;
  font-weight:900!important;
  letter-spacing:1.15px!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-tile{
  gap:12px!important;
  padding:10px!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-glyph{
  width:72px!important;
  height:72px!important;
  flex-basis:72px!important;
  font-size:34px!important;
  border-radius:20px!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-copy{
  gap:7px!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-copy strong{
  font-size:24px!important;
  line-height:1.08!important;
  font-weight:900!important;
  color:#ffffff!important;
  text-shadow:0 2px 8px rgba(0,0,0,.42)!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-copy small{
  font-size:16px!important;
  line-height:1.28!important;
  font-weight:700!important;
  color:rgba(244,248,253,.95)!important;
  text-shadow:0 2px 7px rgba(0,0,0,.38)!important;
}

html.tesla-os body.tesla-os-home .tesla-os-home-meta{
  left:18px!important;
  right:18px!important;
  bottom:60px!important;
  font-size:14px!important;
  line-height:1.2!important;
}

html.tesla-os body.tesla-os-home .tesla-os-powered{
  font-size:14px!important;
  font-weight:800!important;
  color:rgba(245,248,252,.94)!important;
}

html.tesla-os body.tesla-os-home .tesla-os-drive-warning{
  font-size:14px!important;
  font-weight:800!important;
  color:rgba(255,225,168,.98)!important;
}


/* Tesla OS v8 — balanced launcher */
html.tesla-os body.tesla-os-home .tp-content{
  margin:60px 12px 88px!important;
  min-height:calc(100dvh - 148px)!important;
  padding:10px!important;
}

html.tesla-os body.tesla-os-home .tesla-os-home-grid{
  min-height:calc(100dvh - 174px)!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-tile{
  gap:10px!important;
  padding:12px 10px!important;
  border-radius:18px!important;
  border-color:#34465b!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 8px 22px rgba(0,0,0,.18),
    0 0 16px rgba(92,154,255,.07)!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-glyph{
  width:68px!important;
  height:68px!important;
  flex-basis:68px!important;
  font-size:32px!important;
  border-radius:19px!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-copy{
  gap:5px!important;
  width:100%!important;
  justify-items:center!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-copy strong{
  font-size:21px!important;
  line-height:1.1!important;
  font-weight:850!important;
  color:#fff!important;
  white-space:nowrap!important;
  text-shadow:0 1px 6px rgba(0,0,0,.36)!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-copy small{
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:700!important;
  color:rgba(231,238,247,.84)!important;
  white-space:nowrap!important;
  text-shadow:0 1px 5px rgba(0,0,0,.30)!important;
}

html.tesla-os body.tesla-os-home .tesla-os-home-meta{
  left:24px!important;
  right:24px!important;
  bottom:58px!important;
  min-height:25px!important;
  padding:7px 8px 0!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  align-items:center!important;
  border-top:1px solid rgba(143,163,188,.20)!important;
  font-size:11px!important;
  line-height:1!important;
  color:rgba(222,231,242,.70)!important;
  text-shadow:none!important;
}

html.tesla-os body.tesla-os-home .tesla-os-powered{
  justify-self:start!important;
  font-size:11px!important;
  font-weight:650!important;
  color:rgba(226,234,244,.72)!important;
}

html.tesla-os body.tesla-os-home .tesla-os-drive-warning{
  justify-self:end!important;
  font-size:11px!important;
  font-weight:700!important;
  color:rgba(255,220,157,.82)!important;
}

html.tesla-os body.tesla-os-home .tesla-dock{
  bottom:4px!important;
  height:50px!important;
}


/* Tesla OS v9 — final spacing polish */
html.tesla-os body.tesla-os-home .tesla-os-home-grid{
  row-gap:12px!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-copy{
  gap:7px!important;
}

html.tesla-os body.tesla-os-home .tesla-os-app-copy small{
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:650!important;
  color:rgba(224,232,242,.78)!important;
}

html.tesla-os body.tesla-os-home .tesla-os-home-meta{
  bottom:62px!important;
  padding-top:8px!important;
}

html.tesla-os body.tesla-os-home .tesla-dock{
  bottom:5px!important;
}


/* Tesla OS v10 — calmer parked-only notice */
html.tesla-os body.tesla-os-home .tesla-os-drive-warning{
  font-size:11px!important;
  font-weight:600!important;
  color:rgba(232,197,132,.66)!important;
  text-shadow:none!important;
}

/* Mandatory Auth Modal Overlay */
.zone-auth-overlay{
  position:fixed;
  inset:0;
  z-index:999999;
  background:rgba(5,9,15,.94);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  box-sizing:border-box;
}
.zone-auth-card{
  background:#111925;
  border:1px solid #2d3e54;
  border-radius:24px;
  padding:32px 28px;
  width:100%;
  max-width:480px;
  box-shadow:0 24px 70px rgba(0,0,0,.85);
  animation:zonePop .22s cubic-bezier(.2,.8,.2,1);
  box-sizing:border-box;
}
@keyframes zonePop{
  from{opacity:0;transform:scale(.95)}
  to{opacity:1;transform:scale(1)}
}
.zone-auth-header{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
  border-bottom:1px solid #223043;
  padding-bottom:18px;
}
.zone-auth-title-group h2{
  margin:0 0 5px;
  font-size:22px;
  color:#f2f6fc;
}
.zone-auth-title-group p{
  margin:0;
  font-size:13px;
  color:#91a3ba;
}
.zone-auth-tabs{
  margin:0 0 18px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.zone-auth-tabs button{
  border-radius:12px;
  font-size:14px;
  font-weight:700;
  min-height:44px;
}
.zone-auth-tabs button[aria-selected=true]{
  background:var(--zone-accent);
  color:#142318;
}
.zone-auth-footer{
  margin-top:22px;
  padding-top:14px;
  border-top:1px solid #1c2738;
  text-align:center;
  font-size:12px;
  color:#6f86a2;
}
.req{
  color:#ff7070;
  font-weight:bold;
}

/* Password visibility toggle */
.pwd-wrap{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
}
.pwd-wrap input{
  padding-left:46px!important;
}
.btn-toggle-pwd{
  position:absolute;
  left:8px;
  background:transparent;
  border:0;
  color:#7e95b0;
  cursor:pointer;
  padding:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  transition:color .18s, background .18s;
  user-select:none;
}
.btn-toggle-pwd:hover{
  color:#fff;
  background:rgba(255,255,255,.06);
}
.btn-toggle-pwd svg{
  pointer-events:none;
}

/* Jordan License Plate Component */
.plate-group-wrapper {
  margin: 6px 0 10px;
}
.plate-title-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #cdd9e5;
  margin-bottom: 8px;
}
.jordan-plate-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 20, 30, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 12px;
  direction: ltr;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.jordan-plate-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #090e17;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 5px 8px;
  min-width: 52px;
  user-select: none;
  border-left: 3px solid #007a3d;
}
.jordan-plate-badge .jp-ar {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.jordan-plate-badge .jp-en {
  font-size: 8px;
  font-weight: 800;
  color: #8fa5be;
  letter-spacing: 0.5px;
  line-height: 1;
}
.jordan-plate-input-col {
  position: relative;
}
.jordan-plate-input-col.code-col {
  flex: 0 0 110px;
}
.jordan-plate-input-col.num-col {
  flex: 1;
}
.jordan-plate-input-col input {
  width: 100% !important;
  text-align: center;
  font-family: 'JetBrains Mono', 'Tajawal', monospace, sans-serif;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
  padding: 10px 6px !important;
  border-radius: 8px !important;
  background: #070b12 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.jordan-plate-input-col input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}
.jordan-plate-input-col input::placeholder {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: normal;
  color: #556c86;
}
.jordan-plate-sep {
  font-size: 24px;
  font-weight: 800;
  color: #627b99;
  user-select: none;
  line-height: 1;
}
.plate-hint {
  font-size: 12px;
  margin-top: 6px;
  margin-bottom: 0;
  color: #7b92ad;
}
.jordan-plate-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
  background: #090e17;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 2px 8px;
  margin-right: 6px;
  border-left: 2.5px solid #007a3d;
}
.jp-inline-badge {
  font-size: 9px;
  font-weight: 700;
  color: #8fa5be;
  text-transform: uppercase;
}

/* Expired Subscription Alert Card */
.expired-alert-card {
  background: linear-gradient(135deg, rgba(82, 18, 18, 0.78), rgba(41, 10, 10, 0.92));
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
  animation: zonePop .25s ease-out;
}
.expired-alert-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.expired-alert-badge {
  display: inline-block;
  background: #dc2626;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* Admin Dashboard Layout Styles */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.admin-stat-card {
  background: rgba(17, 25, 37, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform .18s, border-color .18s;
}
.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
}
.admin-stat-val {
  font-size: 26px;
  font-weight: 800;
  color: #f1f5f9;
  font-family: 'JetBrains Mono', monospace, sans-serif;
}
.admin-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #8da2bb;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

/* Enhanced Profile Page Styling */
.profile-shell-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.profile-header-card {
  background: linear-gradient(135deg, #131d2b 0%, #0d1520 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.profile-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(157, 236, 117, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.profile-identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-avatar-box {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1b2e21, #0f1d16);
  border: 2px solid var(--zone-accent);
  display: grid;
  place-items: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(157, 236, 117, 0.25);
  flex-shrink: 0;
}
.profile-verified-dot {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--zone-accent);
  color: #102014;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  border: 2px solid #0d1520;
}
.profile-headings h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-role-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(157, 236, 117, 0.15);
  color: var(--zone-accent);
  border: 1px solid rgba(157, 236, 117, 0.3);
}
.profile-meta-tags {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: #94a3b8;
  flex-wrap: wrap;
}
.profile-plate-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
@media (max-width: 768px) {
  .profile-plate-container {
    align-items: flex-start;
  }
}
.profile-quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
}
.profile-quick-actions .zone-btn {
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 700;
}

/* Subscription HUD */
.profile-hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.profile-hud-item {
  background: rgba(11, 17, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
a.profile-hud-item {
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
a.profile-hud-item:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 0, 0, 0.4);
  background: rgba(18, 26, 40, 0.85);
}
.profile-hud-label {
  font-size: 12px;
  font-weight: 600;
  color: #8da2bb;
}
.profile-hud-val {
  font-size: 22px;
  font-weight: 800;
  color: #f1f5f9;
}
.profile-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-top: 12px;
  overflow: hidden;
}
.profile-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, var(--zone-accent));
  transition: width 0.4s ease;
}

/* Request history item */
.request-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(13, 20, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}
.request-history-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
}
.request-history-date {
  font-size: 11.5px;
  color: #7b91a8;
}

/* Admin Full Layout with Sidebar & Navbar */
body.admin-body {
  margin: 0;
  padding: 0;
  background: #080c14;
  overflow-x: hidden;
}
.admin-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.admin-sidebar {
  width: 270px;
  background: #0e1622;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  z-index: 1000;
  transition: transform 0.25s ease;
}
.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-sidebar-nav {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}
.admin-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  width: 100%;
  box-sizing: border-box;
  text-align: right;
}
.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}
.admin-nav-btn.active {
  background: rgba(157, 236, 117, 0.12);
  color: var(--zone-accent);
  border-color: rgba(157, 236, 117, 0.25);
}
.admin-nav-btn .nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-nav-badge {
  background: #f59e0b;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}
.admin-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Admin Main Content & Navbar */
.admin-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #080c14;
}
.admin-top-navbar {
  height: 72px;
  background: rgba(14, 22, 34, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 999;
}
.admin-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}
.admin-page-title {
  font-size: 19px;
  font-weight: 800;
  color: #f8fafc;
}
.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
}
.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b2e21, #0f1d16);
  border: 1px solid var(--zone-accent);
  display: grid;
  place-items: center;
  font-size: 14px;
}
.admin-user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.admin-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}
.admin-user-role {
  font-size: 10.5px;
  color: var(--zone-accent);
}
.admin-view-body {
  padding: 30px;
  flex: 1;
  max-width: 1300px;
  box-sizing: border-box;
  width: 100%;
}
.admin-view {
  animation: zonePop .18s ease-out;
}

@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    transform: translateX(100%);
    box-shadow: -8px 0 30px rgba(0,0,0,0.7);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-mobile-toggle {
    display: block;
  }
  .admin-view-body {
    padding: 18px 14px;
  }
  .admin-top-navbar {
    padding: 0 16px;
  }
}
.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
}
.admin-sidebar-backdrop.show {
  display: block;
}

/* Admin Edit Modals */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 9, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.admin-modal-card {
  background: #111a27;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 28px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  animation: zonePop .2s cubic-bezier(.2,.8,.2,1);
  box-sizing: border-box;
}
.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}
.admin-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0;
}
.admin-modal-close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
}
.admin-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.admin-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Zone Subscription Remaining Days Pill */
.zone-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(157, 236, 117, 0.12);
  border: 1px solid rgba(157, 236, 117, 0.35);
  color: #9dec75;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(157, 236, 117, 0.1);
  cursor: pointer;
}
.zone-sub-pill:hover {
  background: rgba(157, 236, 117, 0.22);
  border-color: #9dec75;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(157, 236, 117, 0.3);
}
.zone-sub-pill.expired {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}
.zone-sub-pill.admin {
  background: rgba(147, 51, 234, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
}
