:root{
  --bg:#07101a;
  --card:#071826;
  --accent:#ff6b35;
  --accent-2:#ff8a5a;
  --muted:#9aa4b2;
  --glass: rgba(255,255,255,0.03);
  --radius:14px;
  --soft-shadow: 0 8px 24px rgba(2,6,23,0.6);
  --elev-shadow: 0 18px 48px rgba(2,6,23,0.65);
  --glass-2: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  --font-sans: "Poppins", "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --scroll-track: rgba(255,255,255,0.02);
  --scroll-thumb: rgba(255,107,53,0.16);
  --scroll-thumb-hover: rgba(255,107,53,0.24);
  --scroll-thumb-glow: 0 6px 18px rgba(255,107,53,0.06);
}
*{box-sizing:border-box}
html,body{height:100%}
/* Prevent horizontal overflow and ensure responsive sizing */
html, body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
body{
  margin:0;
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(12,25,35,0.45), transparent 8%),
    linear-gradient(180deg,#051018 0%, #07121b 60%);
  color:#e6eef6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  padding:20px;
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}

/* Responsive base type: scales between 13px and 16px depending on viewport */
/* Responsive base type: scaled up for slightly larger text across the site */
html { font-size: clamp(16px, 2vw + 0.9px, 20px); }

/* Headline and large type scales gracefully */
.hero-left h1{margin:0 0 8px 0;font-size: clamp(2rem, 5vw, 3.4rem);line-height:1.06;text-align:center}
.pc-price{font-size: clamp(1.05rem, 2.2vw, 1.5rem);margin:8px 0;color:#fff}
.title{font-weight:800;font-size: clamp(0.98rem, 1.2vw + 0.2rem, 1.08rem);letter-spacing:0.2px}
.op-title{font-weight:800;margin-bottom:10px;font-size:clamp(0.96rem,1.1vw,1rem)}
.f-title{font-weight:800;font-size:clamp(0.9rem,1.0vw,1rem)}
.f-sub{font-size:clamp(0.78rem,0.9vw,0.88rem)}
.pc-badge{font-weight:800;font-size:clamp(0.7rem,0.9vw,0.78rem)}

/* Form and small UI elements scale down but remain legible */
.form label{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;font-size:clamp(0.86rem,0.95vw,0.95rem)}
/* Increased contrast for inputs/selects: slightly brighter background, subtle border and stronger focus */
.form select,
.form input,
.form textarea {
  padding: clamp(8px,1.2vw,12px);
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.06);
  color: #eaf2ff;
  min-width:0;
  outline:none;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.03);
  font-size:clamp(0.85rem,0.9vw,1rem);
}

/* stronger visible focus state */
.form select:focus,
.form input:focus,
.form textarea:focus {
  box-shadow: 0 8px 20px rgba(2,6,23,0.6), 0 0 0 4px rgba(255,107,53,0.06);
  border-color: rgba(255,107,53,0.28);
}

/* placeholder color for better legibility */
.form input::placeholder,
.form textarea::placeholder {
  color: rgba(230,238,246,0.6);
}

.btn-primary{padding: clamp(10px,1.6vw,12px);font-weight:800}

/* Carousel item sizing adjusted for smaller screens to avoid overflow */
.item{ flex:0 0 92px; height:92px; border-radius:50%; background:rgba(255,255,255,0.04); scroll-snap-align:center; box-shadow:0 8px 20px rgba(0,0,0,0.25); transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:clamp(1.05rem,1.9vw,1.12rem) }

/* Ensure carousel logos use larger footprint inside circles */
.item img{
  width:86%;
  height:86%;
  object-fit:contain;
  border-radius:0;
  display:block;
}

/* Slightly tighter spacing inside cards to keep text within bounds */
.price-card{padding: clamp(10px,1.6vw,12px);border-radius:12px;flex:1;position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;transition:transform 180ms ease, box-shadow 180ms ease}

/* Reduce large paddings on small screens so contents stay compact */
@media (max-width:880px){
  .hero{grid-template-columns:1fr;gap:14px}
  .hero-right{order:2}
  body{padding:14px}
  .modal-card{max-width:640px;padding:14px}
  .topbar{gap:10px}
  .cta{min-width:100px;padding:10px}
  .hero-left h1{font-size:clamp(1.6rem, 4vw, 2.2rem); text-align:center}
  .hero-left p{font-size:0.95rem}
  .item{ flex:0 0 86px; height:86px }
  .item-spacer{ flex:0 0 35vw }
  .pricing{gap:10px}
  .price-card{padding:10px}
  .pc-price{font-size:clamp(0.95rem,2.1vw,1.2rem)}
  .form label{font-size:0.98rem}
  /* make logos proportionally bigger on small screens too */
  .item img{ width:82%; height:82% }
}

/* Ensure images and media never force width */
img, video, iframe {
  max-width:100%;
  height:auto;
  display:block;
  border-radius:inherit;
}

/* Topbar */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  width:100%;
  min-width:0;
  padding:8px 10px;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.008));
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
}
/* NEW: account balance and options visuals added for signed-in state */
.account-balance {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-weight:700;
  background: rgba(255,255,255,0.02);
  padding:6px 8px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.12);
  margin-right:8px;
  min-width:0;
  font-size:0.92rem;
}
/* tighten visuals for left-aligned compact balance */
.account-balance {
  gap:6px;
  padding:4px 6px;
  margin-right:0;
}
.account-balance .amount {
  color: var(--accent);
  background: rgba(255,107,53,0.06);
  padding:4px 6px;
  border-radius:6px;
  font-weight:800;
  font-size:0.86rem;
  color:#fff;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  position:relative;
}
/* options button next to balance */
.account-options-btn {
  background:transparent;
  border:0;
  color:var(--muted);
  padding:8px;
  border-radius:10px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:36px;
}
/* hamburger icon visuals */
.account-options-btn .hamburger { display:inline-block; width:20px; height:16px; position:relative; }
.account-options-btn .hamburger i {
  display:block;
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  border-radius:2px;
  opacity:0.95;
}
.account-options-btn .hamburger i:nth-child(1){ top:0; }
.account-options-btn .hamburger i:nth-child(2){ top:7px; }
.account-options-btn .hamburger i:nth-child(3){ top:14px; }

/* account menu box will be placed via inline positioning from JS; ensure default size/visuals are compact and appear as a small card */
.account-menu {
  position:absolute;
  /* remove fixed right/top defaults to allow JS inline coords */
  right:auto;
  top:auto;
  background: linear-gradient(180deg,#0b2230,#072033); /* slightly lighter, higher contrast */
  border:1px solid rgba(255,107,53,0.12); /* warm accent border for contrast */
  padding:8px;
  border-radius:12px;
  box-shadow: 0 18px 46px rgba(2,6,23,0.7);
  z-index:600;
  min-width:180px;
  max-width:300px;
  overflow:hidden;
  transform-origin: top right;
  transform: translateY(-6px) scale(0.98);
  opacity:0;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
}

/* visible state applied by JS */
.account-menu.show {
  transform: translateY(0) scale(1);
  opacity:1;
}

/* buttons use stronger contrast and warm accent hover */
.account-menu button{
  width:100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:0;
  color:#eaf2ff;
  text-align:left;
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
  font-size:0.95rem;
  display:flex;
  align-items:center;
  gap:10px;
  transition: background 180ms ease, transform 120ms ease;
}
.account-menu button + button { margin-top:8px; }
.account-menu button:hover{
  background: linear-gradient(90deg, rgba(255,107,53,0.08), rgba(255,138,90,0.04));
  transform: translateY(-3px);
}

/* subtle secondary text for menu items */
.account-menu .muted { font-weight:600; font-size:0.87rem; color:var(--muted); margin-left:auto; }

/* danger style for sign out */
.account-menu .danger {
  background: linear-gradient(90deg, rgba(255,80,50,0.02), rgba(255,80,50,0.01));
  color: #ff4b3a; /* more vivid red-orange for clarity */
  border: 1px solid rgba(255,75,58,0.14);
  font-size: 0.86rem; /* slightly smaller text for the sign-out action */
  padding: 8px 10px;
}

/* small icon circle for avatar inside menu */
.account-menu .menu-avatar {
  width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#1a73e8,#6ba5ff); display:inline-flex; align-items:center; justify-content:center; color:#041224; font-weight:800;
}

/* ensure the account-wrap spacing remains compact */
.account-balance { gap:6px; padding:4px 6px; margin-right:0; }

.account-menu button{
  width:100%;
  background:transparent;
  border:0;
  color:inherit;
  text-align:left;
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
  font-weight:700;
  font-size:0.92rem;
}
.account-menu button + button { margin-top:6px; }
.account-menu button:hover{
  background: rgba(255,255,255,0.02);
}
/* restore title visibility when needed */
.title.hidden { display:none !important; }
.brand{display:flex;gap:4px;align-items:center}
.logo{width:56px;height:56px;border-radius:12px;object-fit:cover;flex-shrink:0;border:1px solid rgba(255,255,255,0.03)}
.logo{margin:0;padding:0}
.title{font-weight:800;font-size:1.05rem;letter-spacing:0.2px}
.tag{font-size:0.78rem;color:var(--muted)}
.cta{
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  border:0;padding:10px 14px;border-radius:12px;color:white;font-weight:700;cursor:pointer;
  min-width:120px;box-shadow: 0 8px 30px rgba(255,106,70,0.08);
}

/* Hero */
.hero{
  /* Use single-column stacked layout (mobile-like) on all viewports,
     but allow more horizontal breathing room via container max-width. */
  display:grid;
  grid-template-columns: 1fr;
  gap:22px;
  align-items:start;
  width:100%;
  min-width:0;
}
.hero-left{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));padding:22px;border-radius:var(--radius);backdrop-filter: blur(8px);min-width:0;box-shadow:var(--soft-shadow);position:relative}
.hero-left h1{margin:12px 0 18px 0;font-size:2.2rem;line-height:1.08}
.hero-left p{margin:0 0 16px 0;color:var(--muted);max-width:60ch;font-size:0.98rem}
.features{display:flex;gap:8px;margin-bottom:0;flex-wrap:wrap}

/* Pricing and small cards kept here */
.pricing{display:flex;gap:12px;margin-top:14px;flex-wrap:wrap}
.price-card{background:var(--glass-2);padding:14px;border-radius:12px;flex:1;position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;transition:transform 180ms ease, box-shadow 180ms ease}
.price-card:hover{transform:translateY(-6px);box-shadow:var(--elev-shadow)}
.price-card.popular{border:1px solid rgba(255,255,255,0.04)}
.pc-badge{position:absolute;left:10px;top:8px;background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#0b1220;padding:6px;border-radius:10px;font-weight:800;font-size:0.78rem}
.pc-title{font-weight:800;margin-top:8px}
.pc-price{font-size:1.3rem;margin:8px 0;color:#fff}
.pc-price span{font-size:0.75rem;color:var(--muted);margin-left:6px}
.pc-cta{background:transparent;border-radius:10px;padding:10px 12px;margin-top:auto;width:100%;text-align:center;color:var(--accent);cursor:pointer;border:1px solid rgba(255,107,53,0.12);font-weight:700}

/* Right column */
.hero-right{display:flex;flex-direction:column;gap:12px;min-width:0}
.order-panel{background:linear-gradient(180deg, rgba(255,255,255,0.008), rgba(255,255,255,0.01));padding:16px;border-radius:12px;box-shadow:var(--soft-shadow);border:1px solid rgba(255,255,255,0.12)}
.op-title{font-weight:800;margin-bottom:10px;font-size:1rem}
.form label{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;font-size:0.90rem}
.form select,input{padding:12px;border-radius:10px;border:0;background:rgba(255,255,255,0.02);color:inherit;min-width:0;outline:none;box-shadow: inset 0 -1px 0 rgba(255,255,255,0.01)}
.form select:focus, .form input:focus { box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 -1px 0 rgba(255,255,255,0.02); }
.calc-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;font-weight:800}
#totalPrice{color:var(--accent);font-size:1.05rem}
.btn-primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));border:0;color:#081322;padding:12px;border-radius:12px;font-weight:800;cursor:pointer;width:100%;box-shadow:0 12px 36px rgba(255,106,70,0.09)}
.btn-primary:active{transform:translateY(1px)}

/* Make primary action labels larger for better emphasis (applies to quick order and modal buttons) */
.order-panel .btn-primary,
#orderModal .modal-card .btn-primary,
#ordersModal .modal-card .btn-primary,
#orderIssueModal .modal-card .btn-primary {
  /* reduced size so buttons are prominent but not oversized */
  font-size: clamp(1.02rem, 1.4vw, 1.06rem); /* nudged slightly larger for better legibility */
  letter-spacing: 0.2px;
  padding-top: 10px;
  padding-bottom: 10px;
}
/* Ensure the Order Issue modal's secondary/primary sizing remains consistent */
#orderIssueModal .btn-primary { font-size: clamp(0.98rem, 1.2vw, 1.02rem); }

/* small inline note beneath quick order form for signed-in validation guidance */
.form-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.02);
  display: none;
}
/* Visible helper when shown (JS toggles inline display) */
.form-note.show {
  display: block;
}

.trust{font-size:0.84rem;color:var(--muted);margin-top:8px;text-align:center;padding-top:6px;border-top:1px solid rgba(255,255,255,0.01)}

/* testimonials kept but subtle (not used currently) */
.testimonials{background:var(--glass);padding:12px;border-radius:12px}
.t-title{font-weight:700;margin-bottom:8px}
.t-item{font-size:0.9rem;color:var(--muted);margin-bottom:6px}

/* Carousel and premium badge CSS moved to components file */
// removed: carousel-section, carousel-track, .ios-carousel, .item, .item-active, .item-spacer, swipe-item, hint animations, and premium-badge blocks
// removed function: carousel-related CSS and .premium-badge CSS blocks {}

/* FAQ */
.faq{margin-top:18px}
.faq-inner{background:rgba(255,255,255,0.02);padding:14px;border-radius:12px}
.faq h3{margin-top:0}
.q{border-top:1px solid rgba(255,255,255,0.02);padding:12px 0;cursor:pointer}
.q-title{font-weight:800}
.q-body{color:var(--muted);margin-top:8px;display:none}
.q[data-open] .q-body{display:block}

/* Footer */
.footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;color:var(--muted);font-size:0.78rem;flex-wrap:wrap}
.socials a{color:var(--muted);margin-left:6px;text-decoration:none}
.footer{padding:6px 8px;border-radius:10px;background:linear-gradient(180deg, rgba(255,255,255,0.01), transparent);box-shadow: var(--soft-shadow)}

/* Place support text pinned to the right within the footer */
.footer-left{display:flex;align-items:center;gap:12px;min-width:0}
.support{margin-left:auto;white-space:nowrap}

@media (max-width:480px){
  /* On very small screens keep support visible but allow wrap */
  .support{margin-left:0;align-self:flex-end;font-size:0.74rem}
}

/* Reduce footer-left spacing slightly to keep compact */
.footer-left{gap:8px}

/* Modal */
.modal{position:fixed;inset:0;background:rgba(2,6,23,0.72);display:none;align-items:center;justify-content:center;padding:20px; z-index: 900;}
.modal[aria-hidden="false"]{display:flex}
.modal-card{background:linear-gradient(180deg,#07101a,#081322);padding:18px;border-radius:14px;max-width:520px;width:100%;color:inherit;position:relative;box-sizing:border-box;box-shadow:var(--elev-shadow);border:1px solid rgba(255,255,255,0.12)}
.modal-close{position:absolute;right:12px;top:10px;background:transparent;border:0;color:var(--muted);font-size:20px;cursor:pointer}
.modal-note{font-size:0.82rem;color:var(--muted);margin-top:8px}

/* Responsive */
@media (max-width:880px){
  .hero{grid-template-columns:1fr;gap:14px}
  .hero-right{order:2}
  body{padding:14px}
  .modal-card{max-width:640px;padding:14px}
  .topbar{gap:10px}
  .cta{min-width:100px;padding:10px}
  .hero-left h1{font-size:1.45rem; text-align:center}
  .hero-left p{font-size:0.95rem}
}

/* Tombstone: premium-badge animations and sheen were moved */
// removed: premium badge detailed CSS {}

/* visible field error style for inline validation */
.field-error-msg{
  color: #ffb3a6; /* warm soft error tint matching palette */
  font-size: 0.82rem;
  margin-top:6px;
  font-weight:700;
}
.input-error {
  box-shadow: 0 8px 20px rgba(255,80,58,0.08), 0 0 0 3px rgba(255,80,58,0.06);
  border-color: rgba(255,80,58,0.18) !important;
}

/* End of core styles. Additional component styles live in styles.components.css */

/* Add small hover affordances for primary controls to match component-level animations */
.cta, .btn-primary, .whatsapp-btn, .copy-btn, .account-options-btn {
  transition: transform 180ms ease, box-shadow 200ms ease, filter 160ms ease;
  will-change: transform, box-shadow;
}

/* Ensure links without href don't animate unexpectedly */
a[aria-hidden="true"] { pointer-events: none; opacity: 0.9; }

/* Provide a subtle lift on hover for the topbar CTA to make it more noticeable on desktop */
.topbar .cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(255,106,70,0.06);
  filter: brightness(1.02);
}

/* Make the quick order primary button feel snappier when hovered/focused */
.order-panel .btn-primary:hover,
#orderModal .modal-card .btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(255,106,70,0.09);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta, .btn-primary, .whatsapp-btn, .copy-btn, .account-options-btn { transition: none !important; }
}

/* Modern custom scrollbar (applies to the whole document and scrollable panes)
   - Rounded, thin track with glassy translucent background
   - Warm subtle thumb with soft glow on hover to match brand accents
   - Firefox support via scrollbar-color/width */
:root{
  --scroll-track: rgba(255,255,255,0.02);
  --scroll-thumb: rgba(255,107,53,0.16);
  --scroll-thumb-hover: rgba(255,107,53,0.24);
  --scroll-thumb-glow: 0 6px 18px rgba(255,107,53,0.06);
}

/* WebKit browsers */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.008));
  border-radius: 999px;
  margin: 4px 0;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.25);
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--scroll-thumb), var(--scroll-thumb-hover));
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.18);
  box-shadow: var(--scroll-thumb-glow);
  min-height: 28px;
}
*::-webkit-scrollbar-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255,107,53,0.10);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

/* Scoped refinement for internal scroll panes (orders modal and any overlay panes)
   gives slightly thicker, more visible thumb for modal content */
#ordersModal .orders-table-wrap,
.modal .modal-card {
  /* ensure internal panes inherit thin scrollbar but appear a bit more prominent */
}
#ordersModal .orders-table-wrap::-webkit-scrollbar {
  width: 12px;
}
#ordersModal .orders-table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255,107,53,0.18), rgba(255,107,53,0.26));
  border: 2px solid rgba(0,0,0,0.16);
  box-shadow: 0 12px 34px rgba(255,107,53,0.08);
}

/* keep reduced-motion respectful for scrollbar hover transforms */
@media (prefers-reduced-motion: reduce) {
  *::-webkit-scrollbar-thumb:hover { transform: none; box-shadow: var(--scroll-thumb-glow); animation: none; }
}