/* ══════════════════════════════════════════════════════════════════════════
   GV GLASS — the whole app as frosted panes over a field of colour.

   HOW THIS FILE WORKS, and why it is a separate file
   --------------------------------------------------
   Every Griha Vastu surface keeps its own markup and its own <style> block.
   This sheet is linked AFTER that block on each surface, so it is the last
   word in the cascade: rules here win over the page's own at equal
   specificity without needing !important, and nothing above has to change.
   Re-skinning the app is therefore an edit to ONE file, and deleting the one
   <link> line puts that surface back exactly as it was.

   Every rule is scoped to the surface it is meant for, by a class on <body>:

       .gv-portal   templates/user/user_app.html    the consumer portal
       .gv-engine   templates/vastu_mobile.html     the floor-plan engine
       .gv-pro      templates/pro/_base.html        the consultant portal
       .gv-admin    templates/admin.html            the owner's panel
       .gv-desk     templates/index.html            the desktop engine
       .gv-tool     astro / numerology / panchang / planner / astrovastu
                    the five single-purpose tools the portal opens
                    full-screen; .gv-bar-ember marks the three whose
                    top bar is the maroon one rather than a light one

   The scoping is not decoration. These surfaces were written separately and
   reuse each other's class names for different things — .pill is a gold chip
   in the consultant portal and a coloured verdict badge in the consumer one,
   .stat is a KPI box in admin and a planet tile in the portal. An unscoped
   rule here would silently repaint the other one.

   THE FIELD IS THE MANDALA
   ------------------------
   The soft wash of colour behind the glass is not decoration picked at
   random — it is the Vastu direction wheel, with north at the top:

       NE / Ishanya   (top right)     water, wisdom     pale jade
       NW / Vayavya   (top left)      air               saffron light
       SE / Agneya    (bottom right)  fire              lotus rose
       SW / Nairutya  (bottom left)   earth             deep brass

   The jade in the north-east is the one cool note in an otherwise warm
   palette, and it is what makes the gold read as metal rather than beige.

   FOUR THINGS HELD TO ON PURPOSE
   ------------------------------
   1. Text stays dark on light glass, opaque enough that a page of readings
      reads like paper. Glass is the frame; the reading is still the page.
   2. Anything whose colour MEANS something sits on solid paper, never on
      glass — the captured grid and devta images, the floor-plan plate, the
      scorecard's ideal/avoid/total cells, and the drawing canvas itself. A
      tinted field must never be able to make a good zone look warm.
   3. A phone gets lighter glass with no live blur on the repeating panes.
      A blur is recomputed for every pane on every frame of a scroll, and the
      Android app runs on cheap handsets. The single big panes (the header,
      the tab bar, the drawer) keep their blur — they are what actually
      reads as glass, and there is only one of each on screen.
   4. Anyone who has asked their device for less transparency, anyone whose
      browser has no blur, and every printout gets plain solid panes.

   NOTE FOR WHOEVER EDITS THIS NEXT: after changing this file, RESTART the
   Flask server before looking at the result. sv() stamps each static URL
   with the file's mtime and caches that stamp per path for the life of the
   process, and the browser is told the stamped URL is immutable — so a
   running server keeps handing out the version it started with.
   ══════════════════════════════════════════════════════════════════════════ */

:root{
  /* ── the field ──────────────────────────────────────────────────────── */
  --gl-base:#EEF2FB;                       /* the cool ground everything sits on */

  /* ── the panes ──────────────────────────────────────────────────────── */
  --gl-pane:rgba(255,255,255,.60);         /* an ordinary card             */
  --gl-pane-strong:rgba(255,255,255,.82);  /* a pane carrying a lot of text */
  --gl-pane-near:rgba(255,255,255,.95);    /* a menu: cannot blur its own parent */
  --gl-clear:rgba(255,255,255,.66);        /* a quiet button or a field    */

  /* A white rim is invisible against a pale field, so a pane's edge is a
     hairline of blue-ink shadow with the white lip catching the light just
     inside it. That pairing is what makes glass read as glass rather than
     as a slightly lighter patch of page. */
  --gl-edge:rgba(30,48,100,.14);
  --gl-edge-warm:rgba(47,91,208,.34);      /* the accent rim, on hover     */
  --gl-lip:inset 0 1px 0 rgba(255,255,255,.86), inset 0 0 0 1px rgba(255,255,255,.38);

  --gl-blur:blur(20px) saturate(165%);
  --gl-blur-bar:blur(24px) saturate(155%); /* the one big pane on screen   */

  /* Shadows are blue ink, not grey: a grey shadow on a blue field reads as
     dirt, the same way a brown one did on cream. */
  --gl-shadow:0 14px 34px rgba(26,42,92,.12), 0 2px 6px rgba(26,42,92,.07);
  --gl-shadow-pop:0 22px 46px rgba(26,42,92,.20), 0 3px 9px rgba(26,42,92,.10);

  --gl-radius:18px;
  --gl-radius-sm:12px;

  /* The top bar and the primary button share one deep-indigo gradient, so
     the thing you tap and the bar above it are obviously the same material.
     It stops at a mid indigo rather than running up to a bright blue,
     because the parchment-cream type on it has to stay readable. */
  --gl-ink-bar:linear-gradient(104deg,rgba(17,30,70,.92) 0%,rgba(30,52,120,.90) 50%,rgba(48,74,160,.88) 100%);
  --gl-ink-bar-solid:linear-gradient(104deg,#111E46 0%,#1E3478 50%,#304AA0 100%);
  --gl-cta:linear-gradient(135deg,#5082EC 0%,#2B55C4 58%,#1C3A92 100%);
  --gl-cta-glow:0 8px 22px rgba(33,70,180,.34);
}

/* ══ THE PALETTE ═════════════════════════════════════════════════════════
   Each surface defines its own colour variables in its own <style> block,
   and this is where they are re-pointed. Doing it here rather than in ten
   files means one place decides what colour the app is: a heading that said
   `color:var(--maroon)` still says that, it is just that --maroon is now a
   deep indigo. Nothing downstream had to be found and edited.

   What deliberately does NOT move: the colours drawn on the <canvas> and
   baked into the captured report pages. Those are literals (16-direction
   #1273C4, 32-pada #B8860B, north #B3261E …), they are registered in the
   header of gv_theme.css, and they mean something on a floor plan. The
   chrome around the drawing is blue; the drawing is unchanged. */

.gv-portal{
  --bg:#EEF2FB;        --card:#FFFFFF;      --line:rgba(37,62,122,.17);
  --gold:#2F5BD0;      --saffron:#3B6FE0;   --saffron2:#2645A8;
  --maroon:#1B3263;    --maroon2:#2B4FB0;
  --ink:#16213C;       --muted:#64748B;
}
.gv-engine{
  --saffron:#2F5BD0;   --saffron2:#23459E;  --saffron3:#1B2740;
  --muted:#64748B;     --muted2:#94A3B8;
  --bg:#EEF2FB;        --dark:#E4EAF7;
  --bdr:rgba(37,62,122,.18); --bdr2:rgba(37,62,122,.34);
}
.gv-pro{
  --gold:#2F5BD0;      --gold2:#5B86E8;     --gold3:#A9C2F5;
  --dark:#16213C;      --grey:#5A6782;
  --cream:#F4F7FD;     --cream2:#E9EEF9;    --line:#DBE3F2;
}
.gv-desk{
  --bg:#EEF2FB;        --dark:#E4EAF7;
  --bdr:rgba(37,62,122,.18); --bdr2:rgba(37,62,122,.34);
  --saffron:#2F5BD0;   --saffron2:#23459E;  --saffron3:#1B2740;
  --muted:#64748B;     --muted2:#94A3B8;    --text:#16213C;
}
/* Astrology, Numerology and Astro-Vastu share one set of names; Panchang
   and the Planner each have their own. All five are listed together. */
.gv-tool{
  --bg:#EEF2FB;        --card:#FFFFFF;      --card2:#E9EEF9;
  --line:rgba(37,62,122,.20);
  --txt:#1B2740;       --mut:#64748B;
  --accent:#2F5BD0;    --accent2:#8FB0F2;
  /* Panchang */
  --ink:#16213C;       --gold:#3B6FE0;      --saffron:#2F5BD0;
  --rust:#23459E;      --maroon:#1B3263;
  /* Planner */
  --muted:#64748B;     --saffron2:#23459E;
}

/* ══ THE FIELD ═══════════════════════════════════════════════════════════
   A fixed layer rather than a body background, so it stays put while the
   page scrolls — background-attachment:fixed is ignored on iOS, and these
   surfaces are mostly read on phones. It goes on html::before because on
   two of the five surfaces body::before is already in use for the yantra
   watermark, which sits in front of this. */
/* Unscoped on purpose: only the five surfaces load this file at all, so
   there is nothing else here for an html rule to reach. */
html{background:var(--gl-base);}
.gv-portal,.gv-engine,.gv-pro,.gv-admin,.gv-desk,.gv-tool{background:transparent;}

.gv-portal::after,.gv-engine::after,.gv-pro::after,
  .gv-admin::after,.gv-desk::after,.gv-tool::after{
  content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    /* A soft light from above, so the page reads as lit rather than tinted.
       This layer does most of the work; the four direction lobes under it
       are meant to be felt at the edges, not looked at. */
    radial-gradient(96% 50% at 50% -14%,rgba(255,255,255,.94) 0%,rgba(255,255,255,0) 70%),
    /* and again from below, so a short page does not sit on a muddy floor */
    radial-gradient(100% 50% at 50% 116%,rgba(255,255,255,.92) 0%,rgba(255,255,255,0) 74%),
    /* NE — water, wisdom: the clearest, coolest corner of the wheel */
    radial-gradient(54% 46% at 98% 0%,rgba(94,222,243,.30) 0%,rgba(94,222,243,0) 70%),
    /* NW — air */
    radial-gradient(52% 42% at 0% -10%,rgba(109,143,240,.26) 0%,rgba(109,143,240,0) 66%),
    /* SE — fire: the one note in the field that is not blue, kept to a
       whisper so the eye has somewhere to rest */
    radial-gradient(40% 34% at 103% 104%,rgba(214,142,236,.15) 0%,rgba(214,142,236,0) 70%),
    /* SW — earth */
    radial-gradient(38% 32% at -2% 104%,rgba(99,102,241,.13) 0%,rgba(99,102,241,0) 68%),
    linear-gradient(168deg,#FCFDFF 0%,#F0F4FC 54%,#EBF0FA 100%);
}

/* The yantra watermark the consumer and consultant portals draw on top of
   the field. It was pitched for a flat cream page; against a field it became
   a second pattern arguing with the first. Quieter, and smaller. */
/* The yantra watermark the consumer and consultant portals draw on top of
   the field. It was a terracotta line on cream; on a blue field that read as
   a stain, so it is restruck in the accent colour and kept faint — the same
   drawing, in the ink the rest of the page is now written in. */
.gv-portal::before,.gv-pro::before{
  opacity:.045;background-size:420px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%232F5BD0' stroke-width='1.5'%3E%3Ccircle cx='100' cy='100' r='96'/%3E%3Ccircle cx='100' cy='100' r='74'/%3E%3Ccircle cx='100' cy='100' r='50'/%3E%3Crect x='28' y='28' width='144' height='144'/%3E%3Crect x='28' y='28' width='144' height='144' transform='rotate(45 100 100)'/%3E%3Ccircle cx='100' cy='100' r='24'/%3E%3C/g%3E%3C/svg%3E");
}

/* ══ 1 · CONSUMER PORTAL ═════════════════════════════════════════════════
   The surface a paying customer actually spends time in. */

/* The bar. Frosted deep ember, so the page visibly slides underneath it
   instead of disappearing behind an opaque slab. */
.gv-portal header{
  background:var(--gl-ink-bar);
  -webkit-backdrop-filter:var(--gl-blur-bar);backdrop-filter:var(--gl-blur-bar);
  border-bottom:1px solid rgba(150,185,255,.38);
  box-shadow:0 8px 28px rgba(17,30,70,.20),inset 0 -1px 0 rgba(255,255,255,.14);
  overflow:hidden;
}
/* A bloom of saffron light off the right shoulder of the bar. Deliberately a
   glow rather than a gradient stop: it adds the warmth without lifting the
   mid-tone under the sign-out link, which is the one place cream text sits
   on the lightest part of the bar. */
.gv-portal header::after{
  content:'';position:absolute;right:-60px;top:-90px;width:260px;height:260px;
  pointer-events:none;border-radius:50%;
  background:radial-gradient(circle,rgba(255,214,140,.30),rgba(255,214,140,0) 64%);
}
.gv-portal header > *{position:relative;z-index:1;}

/* Cards. */
.gv-portal .card,.gv-portal .qc-card{
  background:var(--gl-pane);
  -webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);
  border:1px solid var(--gl-edge);border-radius:var(--gl-radius);
  box-shadow:var(--gl-shadow),var(--gl-lip);
}

/* The two choosers and the sign-in doors: clear glass, warm rim on hover. */
.gv-portal .opt,.gv-portal .kind,.gv-portal .door{
  background:var(--gl-clear);
  -webkit-backdrop-filter:blur(14px) saturate(150%);backdrop-filter:blur(14px) saturate(150%);
  border:1px solid var(--gl-edge);border-radius:var(--gl-radius-sm);
  box-shadow:0 4px 14px rgba(26,42,92,.08),var(--gl-lip);
  transition:border-color .16s,transform .14s,box-shadow .16s;
}
.gv-portal .opt:hover,.gv-portal .kind:hover,.gv-portal .door:hover{
  border-color:var(--gl-edge-warm);transform:translateY(-2px);
  box-shadow:var(--gl-shadow-pop),var(--gl-lip);
}
.gv-portal .door.pro{border-color:rgba(47,91,208,.45);
  background:linear-gradient(180deg,rgba(168,198,255,.34),rgba(255,255,255,.70));}
.gv-portal .door-ic{background:rgba(255,255,255,.66);border:1px solid var(--gl-edge);}

/* The home page. Each tile keeps its own accent hue (--a / --ar, set in the
   page); here that hue becomes a tint of glass with a lit top edge, instead
   of a flat white box with a coloured line on it. */
.gv-portal .home-card{
  background:linear-gradient(175deg,rgba(var(--ar),.19) 0%,rgba(255,255,255,.66) 56%,rgba(255,255,255,.80) 100%);
  -webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);
  border:1px solid rgba(var(--ar),.30);border-top:4px solid var(--a);
  box-shadow:0 10px 26px rgba(26,42,92,.11),var(--gl-lip);
}
.gv-portal .home-card:hover{border-color:var(--a);
  box-shadow:0 20px 40px rgba(var(--ar),.26),var(--gl-lip);}
.gv-portal .home-card .hc-ic{box-shadow:0 6px 14px rgba(var(--ar),.34),inset 0 1px 0 rgba(255,255,255,.34);}

/* The free banner and the account row: clear glass, so they read as chrome
   rather than as two more of the coloured cards between them. */
.gv-portal .hm-free,.gv-portal .hm-acct{
  background:var(--gl-clear);
  -webkit-backdrop-filter:blur(14px) saturate(150%);backdrop-filter:blur(14px) saturate(150%);
  border:1px solid var(--gl-edge);
  box-shadow:0 4px 14px rgba(26,42,92,.08),var(--gl-lip);
}
.gv-portal .hm-free:hover,.gv-portal .hm-acct:hover{
  border-color:var(--gl-edge-warm);box-shadow:var(--gl-shadow-pop),var(--gl-lip);}

/* The flagship panel. It gets the heaviest glass on the page on purpose —
   it is the one thing here that is worth more than the things around it. */
.gv-portal .hm-feature{
  background:linear-gradient(135deg,rgba(var(--ar),.22) 0%,rgba(var(--ar),.08) 44%,rgba(255,255,255,.72) 100%);
  -webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);
  border:1px solid rgba(var(--ar),.38);border-left:5px solid var(--a);
  box-shadow:0 16px 38px rgba(26,42,92,.15),var(--gl-lip);
}
.gv-portal .hm-feature:hover{box-shadow:0 26px 52px rgba(var(--ar),.28),var(--gl-lip);}
.gv-portal .hm-f-chips span{background:rgba(255,255,255,.80);}
.gv-portal .hm-sec .ln{background:var(--gl-edge);}

/* Fields: clear glass that turns solid white the moment you are typing in
   it, so the thing you are editing is never the translucent one. The
   :not() list keeps sliders, checkboxes and radios out of it — those are
   not boxes you type in, and giving them a pane is how you lose a slider. */
.gv-portal input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]),
.gv-portal select,.gv-portal textarea{
  background:rgba(255,255,255,.70);border:1px solid rgba(37,62,122,.18);
  border-radius:var(--gl-radius-sm);
}
.gv-portal input:not([type=range]):not([type=checkbox]):not([type=radio]):hover,
.gv-portal select:hover,.gv-portal textarea:hover{border-color:rgba(37,62,122,.34);}
.gv-portal input:not([type=range]):not([type=checkbox]):not([type=radio]):focus,
.gv-portal select:focus,.gv-portal textarea:focus{
  background:#fff;border-color:var(--saffron,#E8930A);
  box-shadow:0 0 0 3px rgba(59,111,224,.20);
}

/* The primary button is a lit pane of the same ember as the bar. */
.gv-portal .btn,.gv-portal .qc-btn{
  background-image:var(--gl-cta);border-radius:13px;
  box-shadow:0 8px 22px rgba(33,70,180,.28),inset 0 1px 0 rgba(255,255,255,.26);
}
.gv-portal .btn:hover{box-shadow:0 13px 28px rgba(33,70,180,.36),inset 0 1px 0 rgba(255,255,255,.26);}
.gv-portal .btn.ghost,.gv-portal .qc-btn.ghost{
  background:rgba(255,255,255,.60);border:1px solid var(--gl-edge-warm);
  box-shadow:var(--gl-lip);
}
.gv-portal .btn.ghost:hover{background:rgba(255,255,255,.84);}

/* Pills and chips: the unselected ones are glass, the selected one is lit. */
.gv-portal .subtabs button,.gv-portal .fchips button,.gv-portal .an-nav .an-next,
.gv-portal .an-zoom-btn,.gv-portal .rep-row .rep-view,.gv-portal .rep-row .rep-del{
  background:rgba(255,255,255,.66);border-color:var(--gl-edge);
  box-shadow:0 2px 8px rgba(26,42,92,.07),var(--gl-lip);
}
.gv-portal .subtabs button.active,.gv-portal .fchips button.on{
  box-shadow:0 6px 16px rgba(47,91,208,.30),inset 0 1px 0 rgba(255,255,255,.28);
}
.gv-portal .chip{box-shadow:0 2px 7px rgba(26,42,92,.16);}

/* A city list drops out of a card, and a card is frosted. A pane with a
   backdrop-filter becomes the backdrop for everything inside it, so this
   menu cannot blur the page beneath it — at 80% the text under it showed
   through as sharp type. Near-opaque: frosted look, solid enough to read. */
.gv-portal .citylist{
  background:var(--gl-pane-near);
  -webkit-backdrop-filter:blur(26px) saturate(165%);backdrop-filter:blur(26px) saturate(165%);
  border-color:var(--gl-edge);border-radius:0 0 var(--gl-radius-sm) var(--gl-radius-sm);
  box-shadow:0 18px 40px rgba(26,42,92,.18);
}

/* The bottom tab bar. */
.gv-portal nav.tabs{
  background:rgba(255,255,255,.74);
  -webkit-backdrop-filter:var(--gl-blur-bar);backdrop-filter:var(--gl-blur-bar);
  border-top:1px solid rgba(255,255,255,.70);
  box-shadow:0 -8px 26px rgba(26,42,92,.08),inset 0 1px 0 rgba(255,255,255,.80);
}

/* The bar on top of a full-screen embedded tool. */
.gv-portal #vframe-bar,.gv-portal .toolhost .th-bar{
  background:rgba(255,255,255,.78);
  -webkit-backdrop-filter:var(--gl-blur-bar);backdrop-filter:var(--gl-blur-bar);
  border-bottom:1px solid var(--gl-edge);
}
/* Those hosts cover the whole screen, so they need their own field: the one
   on body::after is behind the page, not behind a fixed overlay above it. */
.gv-portal #vframe-host,.gv-portal .toolhost,.gv-portal #qc-host{
  background:
    radial-gradient(90% 40% at 50% -10%,rgba(255,255,255,.92) 0%,rgba(255,255,255,0) 66%),
    radial-gradient(52% 40% at 99% 2%,rgba(118,198,183,.22) 0%,rgba(118,198,183,0) 70%),
    radial-gradient(56% 42% at 2% -6%,rgba(255,196,110,.30) 0%,rgba(255,196,110,0) 68%),
    linear-gradient(168deg,#FFFDF8 0%,#FAF3E5 100%);
}

/* Verdict blocks and the paywall veil. */
.gv-portal .qc-v.good{background:rgba(46,125,70,.10);}
.gv-portal .qc-v.bad{background:rgba(179,38,30,.08);}
.gv-portal .an-lock{
  background:rgba(238,242,251,.58);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  border-radius:var(--gl-radius);
}

/* ── SOLID PAPER, NOT GLASS ───────────────────────────────────────────────
   Everything below is a reading whose colour carries meaning. The grid and
   devta images arrive as markup captured from the PDF report; the scorecard
   cells are green for ideal and red for avoid. A translucent pane would let
   the field's own colour wash into them, and a faint warm tint across a
   zone is exactly the sort of thing a reader would take for a verdict. */
.gv-portal .an-grid-imgs .floor-plan-wrap{background:#F6F1E3;}
.gv-portal .an-grid-imgs .floor-plan-wrap img,.gv-portal .an-grid-imgs img{background:#FDFBF5;}
.gv-portal .an-grid-imgs .scorehero{background:#FFFDF7;}
.gv-portal .an-grid-imgs .ideal-cell{background:rgba(46,125,70,.08);}
.gv-portal .an-grid-imgs .avoid-cell{background:rgba(168,50,43,.07);}
.gv-portal .an-grid-imgs .total-cell{background:rgba(184,134,11,.08);}

/* ══ 2 · THE FLOOR-PLAN ENGINE ═══════════════════════════════════════════
   Here the drawing canvas IS the field: it fills the screen between the
   bars, so the chrome frosts the plan behind it rather than a wash of
   colour. The canvas itself stays untouched paper — it is the document. */

.gv-engine #top-bar{
  background:rgba(255,255,255,.72);
  -webkit-backdrop-filter:var(--gl-blur-bar);backdrop-filter:var(--gl-blur-bar);
  border-bottom:1px solid var(--gl-edge);
  box-shadow:0 6px 22px rgba(26,42,92,.09);
}
.gv-engine #bottom-nav{
  background:rgba(255,255,255,.78);
  -webkit-backdrop-filter:var(--gl-blur-bar);backdrop-filter:var(--gl-blur-bar);
  border-top:1px solid rgba(255,255,255,.70);
  box-shadow:0 -8px 26px rgba(26,42,92,.10),inset 0 1px 0 rgba(255,255,255,.80);
}
/* The drawer slides up over the plan. Opaque enough to read a column of
   controls against a drawn floor plan; translucent enough that you can
   still see what you are about to change. */
.gv-engine .drawer{
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(28px) saturate(160%);backdrop-filter:blur(28px) saturate(160%);
  border-top:1px solid rgba(255,255,255,.70);border-radius:22px 22px 0 0;
  box-shadow:0 -14px 44px rgba(26,42,92,.20),inset 0 1px 0 rgba(255,255,255,.80);
}
.gv-engine .dhandle{background:rgba(37,62,122,.32);}
/* Buttons inside the drawer get no blur of their own — they sit inside a
   pane that is already frosted, so a second blur would have nothing new to
   work with and would cost a compositing layer per button. */
.gv-engine .mb{
  background:rgba(255,255,255,.66);border:1px solid var(--gl-edge);
  border-radius:var(--gl-radius-sm);
  box-shadow:0 2px 9px rgba(26,42,92,.07),var(--gl-lip);
}
.gv-engine .mb:hover{background:rgba(255,255,255,.88);border-color:var(--gl-edge-warm);
  box-shadow:0 7px 18px rgba(26,42,92,.12),var(--gl-lip);}
.gv-engine .mb.hi{background:linear-gradient(135deg,#4C7BE8,#7FA6F2);color:#0E1B3A;
  box-shadow:0 7px 18px rgba(47,91,208,.30),inset 0 1px 0 rgba(255,255,255,.32);}
/* The consumer wizard rail across the top of the engine. It was drawn in
   gold on cream directly, not through the palette variables above, so it is
   the one part of this surface that has to be re-pointed by hand. */
.gv-app-user #gv-wiz{background:linear-gradient(180deg,rgba(255,255,255,.88) 78%,rgba(255,255,255,0));
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);}
.gvw::before{background:#D9E2F2;}
.gvw.done::before,.gvw.now::before{background:#4C7BE8;}
.gvw i{background:#fff;color:#94A3B8;border-color:#D9E2F2;}
.gvw span{color:#94A3B8;}
.gvw.done i{background:#3B6FE0;border-color:#3B6FE0;}
.gvw.done span{color:#5A6782;}
.gvw.now i{border-color:#2F5BD0;color:#2F5BD0;box-shadow:0 0 0 4px rgba(47,91,208,.15);}
.gvw.now span{color:#23459E;}
#gv-wiz-now b{color:#16213C;}
#gv-wiz-now span{color:#5A6782;}
/* The drawing-tool chips and the option buttons tinted themselves gold. */
.gv-engine .tc{background:rgba(255,255,255,.72);}
.gv-engine .tc.on{background:rgba(47,91,208,.12);}
.gv-engine .opb{background:rgba(255,255,255,.72);}
.gv-engine .opb:active{background:rgba(47,91,208,.16);}
.gv-engine .hud,.gv-engine .rp-chip{background:rgba(255,255,255,.64);border-color:var(--gl-edge);}

/* ══ 3 · CONSULTANT PORTAL ═══════════════════════════════════════════════ */

.gv-pro header.top{
  background:var(--gl-ink-bar);
  -webkit-backdrop-filter:var(--gl-blur-bar);backdrop-filter:var(--gl-blur-bar);
  border-bottom:1px solid rgba(150,185,255,.38);
  box-shadow:0 8px 28px rgba(17,30,70,.20),inset 0 -1px 0 rgba(255,255,255,.14);
}
.gv-pro .card{
  background:var(--gl-pane);
  -webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);
  border:1px solid var(--gl-edge);border-radius:var(--gl-radius);
  box-shadow:var(--gl-shadow),var(--gl-lip);
}
.gv-pro a.card:hover{box-shadow:var(--gl-shadow-pop),var(--gl-lip);border-color:var(--gl-edge-warm);}
.gv-pro .btn{background-image:var(--gl-cta);border-radius:13px;
  box-shadow:0 8px 22px rgba(33,70,180,.28),inset 0 1px 0 rgba(255,255,255,.26);}
.gv-pro .btn.ghost{background:rgba(255,255,255,.60);box-shadow:var(--gl-lip);}
.gv-pro .pill{background:rgba(255,255,255,.62);border:1px solid var(--gl-edge-warm);
  box-shadow:var(--gl-lip);}
.gv-pro input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]),
.gv-pro select,.gv-pro textarea{
  background:rgba(255,255,255,.70);border-color:rgba(37,62,122,.18);
  border-radius:var(--gl-radius-sm);
}

/* ══ 4 · OWNER ADMIN ═════════════════════════════════════════════════════
   Dense numbers. Glass on the containers, nothing on the table rows: a
   forty-row register has to read like a register. */

.gv-admin .stat,.gv-admin .rv-kpi,.gv-admin .rv-card,.gv-admin .sec-card,
.gv-admin .kb-card,.gv-admin .settings-form{
  background:var(--gl-pane-strong);
  -webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);
  border-color:var(--gl-edge);border-radius:var(--gl-radius-sm);
  box-shadow:var(--gl-shadow),var(--gl-lip);
}
.gv-admin .rv-kpi,.gv-admin .sec-card,.gv-admin .kb-card{border-radius:var(--gl-radius);}
.gv-admin .kb-card:hover{box-shadow:var(--gl-shadow-pop),var(--gl-lip);}
.gv-admin .tab,.gv-admin .rv-preset,.gv-admin .home-btn,
.gv-admin .filters input,.gv-admin .filters select,.gv-admin .status-select,
.gv-admin .resend-input{
  background:rgba(255,255,255,.66);border-color:var(--gl-edge);
}
.gv-admin .tab.active{background:var(--gl-ink-bar-solid);border-color:transparent;color:#FBF3E2;
  box-shadow:0 -4px 14px rgba(17,30,70,.18);}
.gv-admin .rv-preset.active{box-shadow:0 5px 14px rgba(196,83,26,.26);}
/* A sticky table header paints over the rows that scroll under it. A
   see-through one shows those rows through itself, so this one stays
   solid — and so does the register it heads. */
.gv-admin thead th{background:#E7EDF9;}
.gv-admin h1{border-bottom-color:#9DB8E8;}
.gv-admin .btn-save{background-image:var(--gl-cta);box-shadow:0 8px 20px rgba(33,70,180,.28),inset 0 1px 0 rgba(255,255,255,.24);}

/* ══ 5 · DESKTOP ENGINE ══════════════════════════════════════════════════
   A dense control panel beside a canvas. The two chrome surfaces frost; the
   several hundred controls inside the sidebar do not, for the same reason
   the engine's drawer buttons do not. */

.gv-desk #header{
  background:rgba(255,255,255,.74);
  -webkit-backdrop-filter:var(--gl-blur-bar);backdrop-filter:var(--gl-blur-bar);
  border-bottom:1px solid var(--gl-edge);
  box-shadow:0 5px 20px rgba(26,42,92,.08);
}
.gv-desk #sidebar{
  background:rgba(255,255,255,.80);
  -webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);
  border-right:1px solid var(--gl-edge);
  box-shadow:4px 0 24px rgba(26,42,92,.07);
}
.gv-desk #tabs{background:rgba(255,255,255,.58);border-bottom:1px solid var(--gl-edge);}
.gv-desk .tab-btn.active{background:rgba(255,255,255,.82);}
/* The desktop engine's two lit buttons — Calculate and the active tool —
   paired the accent with a hard-coded orange, so only half of each went
   blue when the palette moved. */
.gv-desk .prime-btn.active-state,.gv-desk .apply-btn{
  background:var(--gl-cta);color:#fff;border-color:transparent;}
.gv-desk .prime-btn:hover{background:rgba(47,91,208,.10);}
.gv-desk #entrance-label-btn.active-state{
  background:linear-gradient(135deg,#6D4AC4 0%,#4C2E96 100%);color:#fff;border-color:#4C2E96;}
.gv-desk #gv-lock-banner{background:rgba(47,91,208,.10);border-color:rgba(47,91,208,.38);color:#23459E;}
.gv-desk .hud-pill{background:rgba(255,255,255,.62);border-color:var(--gl-edge);}

/* ══ 6 · THE FIVE TOOLS ══════════════════════════════════════════════════
   Astrology, Numerology, Panchang, the Room Planner and Astro-Vastu. Each is
   its own page, and each opens FULL SCREEN out of a tile in the consumer
   portal — so if they kept the flat cream they would read as a different
   app the moment a tile was tapped. Light touch on purpose: the field, the
   cards, the bar and the plain controls, and nothing at all on the parts
   where colour is a verdict (.av-verdict, .c-pos/.c-neg, the compat bars,
   the chart wheels), which stay exactly as they were. */

.gv-tool .card{
  background:var(--gl-pane);
  -webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);
  border:1px solid var(--gl-edge);border-radius:var(--gl-radius);
  box-shadow:var(--gl-shadow),var(--gl-lip);
}
/* Three of the five carry the maroon bar the portal does; it becomes the
   same lit ember glass, so moving from the portal into a tool does not
   change the material under your thumb. */
.gv-bar-ember header{
  background:var(--gl-ink-bar);
  -webkit-backdrop-filter:var(--gl-blur-bar);backdrop-filter:var(--gl-blur-bar);
  border-bottom:1px solid rgba(150,185,255,.38);
  box-shadow:0 8px 28px rgba(17,30,70,.20),inset 0 -1px 0 rgba(255,255,255,.14);
}
/* Astro-Vastu's bar is a light one with dark type on it, so it gets light
   glass. Giving it the ember would be dark text on a dark bar. */
.gv-tool:not(.gv-bar-ember) header.top{
  background:rgba(255,255,255,.74);
  -webkit-backdrop-filter:var(--gl-blur-bar);backdrop-filter:var(--gl-blur-bar);
  border-bottom:1px solid var(--gl-edge);
  box-shadow:0 6px 22px rgba(26,42,92,.08);
}
.gv-tool input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]),
.gv-tool select,.gv-tool textarea{
  background:rgba(255,255,255,.70);border-color:rgba(37,62,122,.18);
  border-radius:var(--gl-radius-sm);
}
.gv-tool input:not([type=range]):not([type=checkbox]):not([type=radio]):focus,
.gv-tool select:focus,.gv-tool textarea:focus{
  background:#fff;box-shadow:0 0 0 3px rgba(59,111,224,.20);
}
.gv-tool .btn,.gv-tool .go{background-image:var(--gl-cta);border-radius:13px;
  box-shadow:0 8px 22px rgba(33,70,180,.26),inset 0 1px 0 rgba(255,255,255,.24);}
.gv-tool .btn.ghost,.gv-tool .ghost{
  background:rgba(255,255,255,.60);box-shadow:var(--gl-lip);}

/* ── My account ─────────────────────────────────────────────────────────
   Library rows and contact channels are clear glass; the identity panel and
   the danger card keep their own tints from the page. */
.gv-portal .acc-row,.gv-portal .acc-ch,.gv-portal .lib-row,
.gv-portal .pd-door,.gv-portal .pd-keep,.gv-portal .vt-m{
  -webkit-backdrop-filter:blur(12px) saturate(145%);backdrop-filter:blur(12px) saturate(145%);
  box-shadow:0 3px 11px rgba(26,42,92,.06),inset 0 1px 0 rgba(255,255,255,.62);
  border-color:var(--gl-edge);
}
.gv-portal .acc-row:hover,.gv-portal .acc-ch:hover,.gv-portal .lib-row:hover,
.gv-portal .pd-door:hover,.gv-portal .vt-m:not(.off):hover{
  box-shadow:0 9px 22px rgba(26,42,92,.13),inset 0 1px 0 rgba(255,255,255,.62);}
.gv-portal .acc-row.rep{border-left-color:#C9A227;}
.gv-portal .acc-stats{border-top-color:var(--gl-edge);}
.gv-portal .acc-stat{border-left-color:var(--gl-edge);}
@media(max-width:640px){
  .gv-portal .acc-row,.gv-portal .acc-ch,.gv-portal .lib-row,
.gv-portal .pd-door,.gv-portal .pd-keep,.gv-portal .vt-m{
    -webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(255,255,255,.84);}
}

/* ── The analysis panels ────────────────────────────────────────────────
   The screen where someone decides whether to pay. Each finding is a pane of
   glass tinted with its own verdict, so the page can be skimmed for the
   problems before a word of it is read. */
.gv-portal .an-f{
  -webkit-backdrop-filter:blur(12px) saturate(145%);backdrop-filter:blur(12px) saturate(145%);
  box-shadow:0 3px 12px rgba(26,42,92,.07),inset 0 1px 0 rgba(255,255,255,.62);
  transition:box-shadow .16s,transform .14s;
}
.gv-portal .an-f:hover{transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(var(--vr),.18),inset 0 1px 0 rgba(255,255,255,.62);}
.gv-portal .an-f-v,.gv-portal .an-rem-n{box-shadow:0 2px 7px rgba(var(--vr),.34);}
/* The balance rows get the lightest glass on the page: there can be
   thirty-two of them on one scroll, and they are a table, not a card. */
.gv-portal .an-bal{
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.52);
}
.gv-portal .dv-k{
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border-color:var(--gl-edge);box-shadow:inset 0 1px 0 rgba(255,255,255,.52);
}
.gv-portal .an-tally span{
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);}
/* Many panes on one scroll: a phone drops the live blur here like everywhere
   else, and gets slightly more opaque tints to compensate. */
@media(max-width:640px){
  .gv-portal .an-f{-webkit-backdrop-filter:none;backdrop-filter:none;
    background:rgba(var(--vr),.07);}
  .gv-portal .an-bal,.gv-portal .dv-k{-webkit-backdrop-filter:none;backdrop-filter:none;}
}

/* ── The number cards ────────────────────────────────────────────────────
   Numerology is the one screen that is MADE of colour: every number carries
   its planet's hue. The page was not using it — seven identical pale tiles
   and two faint cream cards — so this is where the theme earns its keep.

   Each card is a pane of frosted glass tinted with its own number's colour,
   with a bar of that colour across the top and the type written in a
   deepened version of the same hue (--nk, computed in the page). The result
   is readable AND it is the colour the number actually is. */
.gv-tool .core-card,.gv-tool .num-card{
  -webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);
  box-shadow:var(--gl-shadow),var(--gl-lip);
  position:relative;overflow:hidden;
}
.gv-tool .core-card::before,.gv-tool .num-card::before{
  content:'';position:absolute;top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,var(--nr,var(--accent)),transparent 92%);
}
.gv-tool .core-card{border-radius:var(--gl-radius);}
.gv-tool .core-card:hover,.gv-tool .num-card:hover{
  box-shadow:var(--gl-shadow-pop),var(--gl-lip);}

/* The summary strip. */
.gv-tool .pill{
  background:rgba(255,255,255,.62);
  -webkit-backdrop-filter:blur(14px) saturate(150%);backdrop-filter:blur(14px) saturate(150%);
  border-color:var(--gl-edge);border-radius:14px;
  box-shadow:0 4px 14px rgba(26,42,92,.08),var(--gl-lip);
}
.gv-tool .pill .v{font-size:19px;font-weight:800;}

/* Small print that was grey-on-grey. A definition nobody can read is not a
   definition; these carry the actual meaning of the number. */
.gv-tool .core-card .cdef,.gv-tool .num-card .num-summary{color:#3C4A63;opacity:1;}
.gv-tool .core-card .clabel,.gv-tool .num-card .num-label{color:#5A6782;font-weight:700;}
.gv-tool .core-card .cplanet,.gv-tool .num-card .num-planet{color:#4A5870;}
/* Trait chips were written for the old dark theme — white at 7% opacity on
   white. They had been invisible since the light re-skin. */
.gv-tool .num-card .trait{
  background:rgba(255,255,255,.72);border:1px solid var(--gl-edge);
  color:#3C4A63;font-weight:600;
}
.gv-tool .kq-badge{
  background:rgba(255,255,255,.66);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-color:var(--gl-edge);box-shadow:var(--gl-lip);
}
/* The Lo Shu grid keeps solid cells — present and missing is the reading. */
.gv-tool .loshu .cell{background:#F4F7FD;}
.gv-tool .loshu .cell.has{background:rgba(47,91,208,.12);border-color:var(--accent);}

/* ══ PHONES ══════════════════════════════════════════════════════════════
   Lighter glass, and no live blur on anything there are many of. A blur is
   recomputed per pane per frame of a scroll; a screen of eight home tiles
   and four cards stutters on a budget Android handset, and the Android app
   is exactly where this runs. The bars and the drawer keep theirs: one pane
   each, and they are what reads as glass in the first place. */
@media(max-width:640px){
  .gv-portal .card,.gv-portal .qc-card,.gv-portal .opt,.gv-portal .kind,
  .gv-portal .door,.gv-portal .home-card,.gv-portal .hm-free,.gv-portal .hm-acct,
  .gv-pro .card,.gv-tool .card,.gv-engine .mb,
  .gv-admin .stat,.gv-admin .rv-kpi,.gv-admin .rv-card,.gv-admin .sec-card,
  .gv-admin .kb-card,.gv-admin .settings-form{
    -webkit-backdrop-filter:none;backdrop-filter:none;
  }
  .gv-portal .card,.gv-portal .qc-card,.gv-pro .card,.gv-tool .card,
  .gv-admin .stat,.gv-admin .rv-kpi,.gv-admin .rv-card,.gv-admin .sec-card,.gv-admin .kb-card,
  .gv-admin .settings-form{background:rgba(255,255,255,.90);}
  .gv-portal .opt,.gv-portal .kind,.gv-portal .door,.gv-engine .mb{background:rgba(255,255,255,.86);}
  .gv-portal .home-card{
    background:linear-gradient(175deg,rgba(var(--ar),.17) 0%,rgba(255,255,255,.90) 56%,rgba(255,255,255,.96) 100%);}
  .gv-portal .hm-free,.gv-portal .hm-acct{background:rgba(255,255,255,.88);}
  .gv-portal .hm-feature{-webkit-backdrop-filter:none;backdrop-filter:none;
    background:linear-gradient(135deg,rgba(var(--ar),.20) 0%,rgba(255,255,255,.90) 58%);}
}

/* ══ LESS TRANSPARENCY ASKED FOR, OR NO BLUR AVAILABLE ═══════════════════ */
@media(prefers-reduced-transparency:reduce){
  :root{
    --gl-pane:#FFFDF8;--gl-pane-strong:#FFFDF8;--gl-pane-near:#FFFDF8;
    --gl-clear:#FFFFFF;--gl-edge:#D7E0F0;--gl-ink-bar:var(--gl-ink-bar-solid);
  }
  .gv-portal::after,.gv-engine::after,.gv-pro::after,
  .gv-admin::after,.gv-desk::after,.gv-tool::after{display:none;}
  .gv-portal,.gv-engine,.gv-pro,.gv-admin,.gv-desk,.gv-tool{background:var(--gl-base);}
  .gv-portal .card,.gv-portal .qc-card,.gv-portal .opt,.gv-portal .kind,
  .gv-portal .door,.gv-portal .home-card,.gv-portal header,.gv-portal nav.tabs,
  .gv-portal .citylist,.gv-portal .an-lock,.gv-engine #top-bar,
  .gv-engine #bottom-nav,.gv-engine .drawer,.gv-engine .mb,.gv-pro header.top,
  .gv-pro .card,.gv-tool .card,.gv-bar-ember header,.gv-admin .stat,
  .gv-admin .rv-kpi,.gv-admin .rv-card,
  .gv-admin .sec-card,.gv-admin .kb-card,.gv-admin .settings-form,
  .gv-desk #header,.gv-desk #sidebar,.gv-desk #tabs{
    -webkit-backdrop-filter:none;backdrop-filter:none;
  }
  .gv-portal nav.tabs,.gv-engine #top-bar,.gv-engine #bottom-nav,
  .gv-engine .drawer,.gv-desk #header,.gv-desk #sidebar{background:#FFFDF8;}
  .gv-portal .home-card{background:linear-gradient(170deg,rgba(var(--ar),.14),#FFFDF8 60%);}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :root{
    --gl-pane:rgba(255,255,255,.93);--gl-pane-strong:rgba(255,255,255,.96);
    --gl-pane-near:#FFFDF8;--gl-clear:rgba(255,255,255,.92);
  }
  .gv-portal header,.gv-pro header.top,.gv-bar-ember header{background:var(--gl-ink-bar-solid);}
  .gv-portal nav.tabs,.gv-engine #top-bar,.gv-engine #bottom-nav,
  .gv-desk #header{background:rgba(255,255,255,.97);}
  .gv-engine .drawer,.gv-desk #sidebar{background:rgba(255,255,255,.98);}
}

/* ══ PRINT: paper, not glass ═════════════════════════════════════════════ */
@media print{
  .gv-portal,.gv-engine,.gv-pro,.gv-admin,.gv-desk,.gv-tool{background:#fff !important;}
  .gv-portal::after,.gv-engine::after,.gv-pro::after,
  .gv-admin::after,.gv-desk::after,.gv-tool::after,
  .gv-portal::before,.gv-pro::before,.gv-portal header::after{display:none !important;}
  .gv-portal .card,.gv-portal .qc-card,.gv-portal .opt,.gv-portal .kind,
  .gv-portal .door,.gv-portal .home-card,.gv-pro .card,.gv-tool .card,
  .gv-admin .stat,.gv-admin .rv-kpi,.gv-admin .rv-card,.gv-admin .sec-card,
  .gv-admin .kb-card,.gv-admin .settings-form{
    background:#fff !important;box-shadow:none !important;
    -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
  }
}
