/* BIFRATECH — site styles (from the original index.html inline <style>, unchanged) */
:root{
  --navy:#061633;
  --navy2:#081F45;
  --blue:#0B55C7;
  --blue2:#0878E8;
  --cyan:#12D8F5;
  --cyan2:#20BDF2;
  --orange:#FF9D18;
  --white:#F7FBFF;
  --text:#EAF4FF;
  --muted:#B9CAE0;
  --line:rgba(95,190,255,.24);
  --panel:#0A2856;
  --panel2:#0C3470;
  --panel3:#082247;
  --success:#35D58A;
  --danger:#FF6464;
  --shadow:0 24px 70px rgba(0,0,0,.40);
  --radius:24px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  background:
    radial-gradient(circle at 20% 10%,rgba(0,151,255,.13),transparent 32%),
    radial-gradient(circle at 85% 20%,rgba(0,224,255,.08),transparent 28%),
    var(--navy);
  color:var(--text);
  line-height:1.65;
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

a{
  color:inherit;
  text-decoration:none;
}

/* =========================================================
   OPENING SCREEN
========================================================= */

#opening{
  position:fixed;
  inset:0;
  z-index:9999;
  background:#020914;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:
    opacity .8s ease,
    visibility .8s ease;
}

#opening.hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.opening-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#020914;
}

.opening-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      rgba(2,9,20,.30),
      rgba(2,9,20,.58)
    ),
    radial-gradient(
      circle at center,
      rgba(0,125,255,.13),
      transparent 60%
    );
}

.opening-content{
  position:relative;
  z-index:2;
  width:min(900px,92%);
  text-align:center;
  padding:30px;
}

.opening-logo{
  width:min(310px,70vw);
  max-height:150px;
  object-fit:contain;
  margin:0 auto 22px;
  display:block;
}

.logo-text{
  font-size:clamp(44px,8vw,86px);
  font-weight:950;
  letter-spacing:-4px;
  line-height:1;
  margin-bottom:18px;
}

.logo-text .bifra{
  color:#FFFFFF;
}

.logo-text .tech{
  color:var(--cyan);
}

.logo-line{
  width:125px;
  height:7px;
  margin:0 auto 20px;
  border-radius:20px;
  background:
    linear-gradient(
      90deg,
      var(--cyan),
      var(--cyan2) 65%,
      var(--orange)
    );
}

.opening-tagline{
  color:#FFFFFF;
  font-size:clamp(16px,2.2vw,26px);
  font-weight:800;
  margin-bottom:30px;
  text-shadow:0 3px 18px rgba(0,0,0,.8);
}

.enter-button{
  border:0;
  border-radius:999px;
  padding:18px 40px;
  color:#FFFFFF;
  background:
    linear-gradient(
      135deg,
      var(--cyan),
      var(--blue2)
    );
  font-weight:950;
  font-size:18px;
  box-shadow:
    0 12px 40px rgba(0,190,255,.35);
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.enter-button:hover{
  transform:translateY(-2px);
  box-shadow:
    0 18px 50px rgba(0,190,255,.48);
}

.opening-small{
  margin-top:18px;
  color:#D9ECFF;
  font-size:14px;
  font-weight:700;
}

/* =========================================================
   GLOBAL HEADER
========================================================= */

.site-header{
  position:sticky;
  top:0;
  z-index:500;
  background:rgba(4,18,43,.94);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
}

.header-inner{
  width:min(1200px,94%);
  margin:auto;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:950;
}

.brand-mark{
  width:48px;
  height:48px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#FFFFFF;
  font-size:22px;
  font-weight:950;
  background:
    linear-gradient(
      135deg,
      #073D9C,
      var(--cyan)
    );
  box-shadow:0 8px 28px rgba(0,170,255,.24);
}

.brand-name{
  font-size:23px;
  letter-spacing:-1px;
}

.brand-name span{
  color:var(--cyan);
}

.desktop-nav{
  display:flex;
  align-items:center;
  gap:7px;
}

.desktop-nav button{
  border:0;
  background:transparent;
  color:#D8E9FA;
  padding:10px 12px;
  border-radius:10px;
  font-weight:750;
}

.desktop-nav button:hover{
  background:rgba(14,129,234,.14);
  color:#FFFFFF;
}

.menu-button{
  display:none;
  border:1px solid var(--line);
  background:#0A2856;
  color:#FFFFFF;
  border-radius:12px;
  padding:11px 16px;
  font-weight:900;
}

.mobile-menu{
  display:none;
  padding:10px 4%;
  background:#051630;
  border-top:1px solid var(--line);
}

.mobile-menu.open{
  display:grid;
}

.mobile-menu button{
  border:0;
  text-align:left;
  background:transparent;
  color:#FFFFFF;
  padding:14px;
  font-weight:800;
}

/* =========================================================
   MUSIC
========================================================= */

.music-player{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:700;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border:1px solid rgba(45,204,255,.35);
  border-radius:999px;
  background:rgba(3,19,48,.96);
  box-shadow:0 14px 42px rgba(0,0,0,.38);
}

.music-button{
  width:43px;
  height:43px;
  border:0;
  border-radius:50%;
  color:#FFFFFF;
  background:
    linear-gradient(
      135deg,
      var(--cyan),
      var(--blue2)
    );
  font-weight:950;
}

.music-label{
  color:#FFFFFF;
  font-weight:900;
  font-size:12px;
  letter-spacing:.5px;
}

.music-volume{
  width:75px;
  accent-color:var(--cyan);
}

/* =========================================================
   MAIN
========================================================= */

main{
  width:min(1200px,94%);
  margin:auto;
}

.section{
  padding:80px 0;
}

.hero{
  min-height:calc(100vh - 76px);
  display:grid;
  place-items:center;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:34px;
  align-items:center;
}

.eyebrow{
  color:var(--cyan);
  font-weight:950;
  letter-spacing:1.5px;
  font-size:13px;
  margin-bottom:12px;
}

.hero h1{
  margin:0 0 20px;
  color:#FFFFFF;
  font-size:clamp(42px,6vw,76px);
  line-height:1.04;
  letter-spacing:-3px;
}

.hero h1 span{
  color:var(--cyan);
}

.hero-copy{
  color:var(--muted);
  font-size:18px;
  max-width:720px;
}

.button-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:26px;
}

.primary-button,
.secondary-button,
.orange-button{
  border:0;
  border-radius:14px;
  padding:14px 21px;
  font-weight:950;
}

.primary-button{
  color:#FFFFFF;
  background:
    linear-gradient(
      135deg,
      var(--cyan),
      var(--blue2)
    );
  box-shadow:0 12px 35px rgba(0,179,255,.25);
}

.secondary-button{
  color:#FFFFFF;
  background:#0B2A58;
  border:1px solid var(--line);
}

.orange-button{
  color:#09152A;
  background:var(--orange);
}

.hero-card{
  min-height:430px;
  border-radius:32px;
  padding:28px;
  background:
    linear-gradient(
      145deg,
      rgba(14,93,190,.65),
      rgba(4,27,61,.98)
    );
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.hero-card h3{
  font-size:28px;
  margin:0 0 12px;
}

.hero-card p{
  color:var(--muted);
}

.status-pill{
  display:inline-flex;
  width:max-content;
  padding:8px 12px;
  border-radius:999px;
  color:#DFFAFF;
  background:rgba(12,216,245,.12);
  border:1px solid rgba(12,216,245,.3);
  font-size:12px;
  font-weight:900;
  margin-bottom:18px;
}

/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading{
  margin-bottom:30px;
}

.section-heading h2{
  margin:0 0 10px;
  font-size:clamp(30px,4vw,48px);
  color:#FFFFFF;
  letter-spacing:-1.5px;
}

.section-heading p{
  margin:0;
  max-width:780px;
  color:var(--muted);
}

/* =========================================================
   BOX GRID
========================================================= */

.card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.info-card{
  padding:25px;
  border-radius:var(--radius);
  background:
    linear-gradient(
      145deg,
      rgba(12,52,112,.96),
      rgba(5,27,62,.98)
    );
  border:1px solid var(--line);
  box-shadow:0 15px 42px rgba(0,0,0,.22);
}

.info-card h3{
  margin:0 0 10px;
  color:#FFFFFF;
  font-size:21px;
}

.info-card p{
  color:var(--muted);
  margin:0;
}

.icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(15,204,245,.12);
  border:1px solid rgba(15,204,245,.25);
  margin-bottom:18px;
  font-size:23px;
}

/* =========================================================
   SERVICE CARDS
========================================================= */

.service-card{
  min-height:230px;
}

.service-number{
  color:var(--orange);
  font-weight:950;
  font-size:13px;
  letter-spacing:1px;
  margin-bottom:8px;
}

.service-card ul{
  padding-left:20px;
  margin:15px 0 0;
  color:#C9D9EA;
}

.service-card li{
  margin:5px 0;
}

/* =========================================================
   FEATURE STRIP
========================================================= */

.feature-strip{
  padding:30px;
  border-radius:28px;
  background:
    linear-gradient(
      110deg,
      #071C40,
      #0A438F
    );
  border:1px solid var(--line);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.feature{
  text-align:center;
  padding:15px;
}

.feature strong{
  display:block;
  color:#FFFFFF;
  font-size:16px;
  margin-bottom:6px;
}

.feature span{
  color:#BBD0E7;
  font-size:13px;
}

/* =========================================================
   BLACK BOX
========================================================= */

.product-card{
  position:relative;
  overflow:hidden;
}

.product-card::after{
  content:"";
  position:absolute;
  width:170px;
  height:170px;
  right:-75px;
  bottom:-75px;
  border-radius:50%;
  background:rgba(16,202,255,.12);
}

.coming-soon{
  display:inline-block;
  margin-bottom:14px;
  padding:6px 10px;
  border-radius:999px;
  color:#08172E;
  background:var(--orange);
  font-size:11px;
  font-weight:950;
  letter-spacing:.7px;
}

.product-title{
  color:#FFFFFF;
  font-size:27px;
  font-weight:950;
  margin-bottom:10px;
}

.product-title span{
  color:var(--cyan);
}

/* =========================================================
   COVERAGE
========================================================= */

.coverage-box{
  padding:34px;
  border-radius:30px;
  background:#061B3B;
  border:1px solid var(--line);
}

.coverage-box h3{
  margin:0 0 12px;
  font-size:30px;
}

.coverage-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:22px;
}

.coverage-item{
  padding:15px;
  border-radius:14px;
  background:#0A2D61;
  color:#DDEBFA;
  border:1px solid rgba(70,170,255,.16);
  font-weight:750;
}

/* =========================================================
   WORKFLOW
========================================================= */

.workflow{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
}

.workflow-step{
  padding:22px;
  border-radius:22px;
  background:#08234C;
  border:1px solid var(--line);
}

.step-number{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#071A35;
  background:var(--cyan);
  font-weight:950;
  margin-bottom:15px;
}

.workflow-step h3{
  margin:0 0 8px;
  font-size:18px;
}

.workflow-step p{
  color:var(--muted);
  margin:0;
  font-size:14px;
}

/* =========================================================
   REQUEST AREA
========================================================= */

.request-shell{
  padding:34px;
  border-radius:32px;
  background:
    linear-gradient(
      145deg,
      #082E68,
      #061B3B
    );
  border:1px solid rgba(45,202,255,.28);
  box-shadow:var(--shadow);
}

.request-intro{
  color:#C7D9EC;
  margin-bottom:25px;
}

.terms-gate{
  padding:24px;
  border-radius:22px;
  background:#061A39;
  border:1px solid rgba(65,170,255,.25);
}

.terms-gate h3{
  margin:0 0 15px;
  color:#FFFFFF;
  font-size:26px;
}

.terms-scroll{
  height:380px;
  overflow:auto;
  padding:22px;
  border-radius:17px;
  background:#0A2D61;
  border:1px solid rgba(95,190,255,.25);
  color:#DCEBFA;
  font-size:16px;
  line-height:1.8;
}

.terms-scroll h4{
  color:#FFFFFF;
  font-size:18px;
  margin:20px 0 6px;
}

.terms-scroll p{
  margin:7px 0;
}

.terms-agreement{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin:20px 0;
  color:#FFFFFF;
  font-weight:750;
}

.terms-agreement input{
  width:22px;
  height:22px;
  margin-top:3px;
  accent-color:var(--cyan);
}

.request-form{
  display:none;
}

.request-form.visible{
  display:block;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field.full{
  grid-column:1/-1;
}

.field label{
  color:#FFFFFF;
  font-weight:900;
  font-size:15px;
}

.field input,
.field select,
.field textarea{
  width:100%;
  border:1px solid rgba(89,190,255,.28);
  border-radius:15px;
  padding:15px 16px;
  color:#FFFFFF;
  background:#092653;
  outline:none;
}

.field input::placeholder,
.field textarea::placeholder{
  color:#9FB6D0;
}

.field select{
  color:#EAF4FF;
}

.field textarea{
  min-height:150px;
  resize:vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color:var(--cyan);
  box-shadow:0 0 0 3px rgba(18,216,245,.10);
}

/* PHOTO BUTTONS */

.photo-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

.photo-choice{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:64px;
  padding:15px;
  border-radius:15px;
  background:#0A438F;
  border:1px solid rgba(50,205,255,.35);
  color:#FFFFFF;
  font-weight:950;
  text-align:center;
  cursor:pointer;
  transition:.2s ease;
}

.photo-choice:hover{
  transform:translateY(-1px);
  background:#0B55B4;
  border-color:var(--cyan);
}

.photo-choice.camera{
  background:
    linear-gradient(
      135deg,
      #0876C8,
      #0A428C
    );
}

.photo-choice.media{
  background:
    linear-gradient(
      135deg,
      #0A438F,
      #092B62
    );
}

.photo-name{
  margin-top:9px;
  color:#BBD0E7;
  font-size:13px;
}

/* HUMAN CHECK */

.human-box{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  border-radius:15px;
  background:#061A39;
  border:1px solid rgba(89,190,255,.2);
  color:#FFFFFF;
  font-weight:900;
}

.human-box input{
  width:22px;
  height:22px;
  accent-color:var(--cyan);
}

.form-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.go-back{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 22px;
  background:#0A2A58;
  color:#FFFFFF;
  font-weight:950;
}

/* =========================================================
   PROJECTS
========================================================= */

.project-card{
  min-height:230px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background:
    linear-gradient(
      180deg,
      rgba(6,28,61,.45),
      #061A3A
    );
}

/* =========================================================
   CONTACT
========================================================= */

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.contact-card{
  padding:28px;
  border-radius:24px;
  background:#082650;
  border:1px solid var(--line);
}

.contact-card h3{
  margin:0 0 16px;
  font-size:23px;
}

.contact-line{
  padding:12px 0;
  border-bottom:1px solid rgba(90,180,255,.14);
  color:#D2E1F1;
}

.contact-line strong{
  color:#FFFFFF;
}

.contact-line:last-child{
  border-bottom:0;
}

/* =========================================================
   FOOTER
========================================================= */

footer{
  margin-top:60px;
  padding:45px 0 100px;
  background:#030F25;
  border-top:1px solid var(--line);
}

.footer-grid{
  width:min(1200px,94%);
  margin:auto;
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:30px;
}

footer h3{
  color:#FFFFFF;
  margin-top:0;
}

footer p,
footer li{
  color:#9FB5CD;
}

footer ul{
  padding-left:18px;
}

.copyright{
  width:min(1200px,94%);
  margin:30px auto 0;
  padding-top:25px;
  border-top:1px solid rgba(90,180,255,.13);
  color:#8099B5;
  font-size:13px;
}

/* =========================================================
   TOAST
========================================================= */

.toast{
  position:fixed;
  left:50%;
  bottom:25px;
  transform:translateX(-50%) translateY(120px);
  z-index:2000;
  max-width:min(92%,560px);
  padding:15px 20px;
  border-radius:14px;
  background:#061A39;
  color:#FFFFFF;
  border:1px solid rgba(25,212,245,.4);
  box-shadow:var(--shadow);
  opacity:0;
  transition:.3s ease;
  text-align:center;
  font-weight:800;
}

.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:950px){

  .desktop-nav{
    display:none;
  }

  .menu-button{
    display:block;
  }

  .hero-grid{
    grid-template-columns:1fr;
  }

  .card-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .feature-strip{
    grid-template-columns:repeat(2,1fr);
  }

  .workflow{
    grid-template-columns:repeat(2,1fr);
  }

  .coverage-list{
    grid-template-columns:repeat(2,1fr);
  }

  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:650px){

  .section{
    padding:55px 0;
  }

  .hero{
    min-height:auto;
    padding:65px 0;
  }

  .hero h1{
    font-size:44px;
    letter-spacing:-2px;
  }

  .card-grid{
    grid-template-columns:1fr;
  }

  .feature-strip{
    grid-template-columns:1fr 1fr;
  }

  .workflow{
    grid-template-columns:1fr;
  }

  .coverage-list{
    grid-template-columns:1fr;
  }

  .form-grid{
    grid-template-columns:1fr;
  }

  .photo-choice-grid{
    grid-template-columns:1fr;
  }

  .contact-grid{
    grid-template-columns:1fr;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }

  .request-shell{
    padding:18px;
  }

  .terms-scroll{
    height:330px;
    padding:16px;
  }

  .music-player{
    right:10px;
    bottom:10px;
  }

  .music-volume{
    width:55px;
  }
}

/* =========================================================================
   ADDED IN THE REPAIR — view switching, account gate, auth UI
   (uses the original colour variables and button/field styles)
   ========================================================================= */

/* Which part of the page is visible is controlled by <body data-view="...">
   opening -> gate -> (status | app).  Nothing of the site is shown until the
   visitor has signed in; real protection is enforced by Supabase policies. */
body:not([data-view="app"]) .site-header,
body:not([data-view="app"]) main,
body:not([data-view="app"]) footer{
  display:none !important;
}

#accountGate{
  display:none;
  min-height:100vh;
  min-height:100dvh;
  padding:28px 16px 90px;
  align-items:flex-start;
  justify-content:center;
}

body[data-view="gate"] #accountGate,
body[data-view="status"] #accountGate{
  display:flex;
}

.gate-card{
  width:min(640px,100%);
  margin:auto;
  padding:34px 30px;
  border-radius:var(--radius);
  background:linear-gradient(180deg,var(--panel2),var(--panel3));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.gate-brand{
  text-align:center;
  font-size:30px;
  font-weight:950;
  letter-spacing:-1.5px;
  margin-bottom:6px;
}
.gate-brand .tech{ color:var(--cyan); }

.gate-card h2{
  margin:0 0 8px;
  text-align:center;
  font-size:clamp(22px,4.6vw,30px);
  letter-spacing:-.5px;
}

.gate-card .gate-lead{
  margin:0 0 22px;
  text-align:center;
  color:var(--muted);
}

.gate-panel[hidden]{ display:none !important; }

.role-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.role-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  text-align:left;
  padding:22px 20px;
  border-radius:18px;
  color:var(--text);
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  transition:transform .2s ease,border-color .2s ease,background .2s ease;
}
.role-card:hover,
.role-card:focus-visible{
  transform:translateY(-2px);
  border-color:var(--cyan);
  background:rgba(18,216,245,.08);
  outline:none;
}
.role-card strong{ font-size:18px; letter-spacing:.3px; }
.role-card span{ color:var(--muted); font-size:14px; line-height:1.5; }

.gate-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  padding:5px;
  margin-bottom:22px;
  border-radius:999px;
  background:rgba(0,0,0,.28);
  border:1px solid var(--line);
}
.gate-tab{
  border:0;
  border-radius:999px;
  padding:12px 10px;
  min-height:46px;
  color:var(--muted);
  background:transparent;
  font-weight:900;
  letter-spacing:.3px;
}
.gate-tab[aria-selected="true"]{
  color:#fff;
  background:linear-gradient(135deg,var(--cyan),var(--blue2));
  box-shadow:0 8px 24px rgba(0,190,255,.28);
}

.gate-form .form-grid{ margin-bottom:6px; }
.gate-form .field{ margin-bottom:14px; }
.gate-form .field label{ font-weight:800; font-size:14px; }
.gate-form .field input[type="file"]{ padding:12px; background:rgba(255,255,255,.04); }
.gate-form .hint{ color:var(--muted); font-size:13px; margin:-6px 0 12px; }
.gate-form .check-line{
  display:flex; gap:12px; align-items:flex-start;
  color:var(--text); font-size:14px; line-height:1.5; margin:6px 0 16px;
}
.gate-form .check-line input{ width:22px; height:22px; margin-top:2px; accent-color:var(--cyan); flex:none; }

.gate-form .primary-button,
.gate-card .primary-button{
  width:100%;
  min-height:54px;
}
.primary-button[disabled]{ opacity:.6; cursor:wait; }

.gate-links{
  display:flex; flex-wrap:wrap; gap:6px 18px; justify-content:center;
  margin-top:16px; font-size:14px;
}
.link-button{
  border:0; background:none; color:var(--cyan); padding:6px 2px;
  font-weight:800; text-decoration:underline; text-underline-offset:3px;
  min-height:44px;
}
.link-button:hover{ color:#fff; }

.gate-msg{
  min-height:0;
  margin:12px 0 0;
  padding:0;
  font-weight:700;
  font-size:14.5px;
  line-height:1.5;
  border-radius:12px;
}
.gate-msg:not(:empty){ padding:12px 14px; }
.gate-msg.error{ color:#FFD2D2; background:rgba(255,100,100,.14); border:1px solid rgba(255,100,100,.45); }
.gate-msg.ok{ color:#CFFBE3; background:rgba(53,213,138,.14); border:1px solid rgba(53,213,138,.45); }
.gate-msg.info{ color:#D9ECFF; background:rgba(18,216,245,.10); border:1px solid var(--line); }

.status-badge{
  display:inline-block; padding:6px 14px; border-radius:999px;
  font-weight:900; font-size:13px; letter-spacing:.5px; margin-bottom:12px;
  background:rgba(255,157,24,.16); color:var(--orange); border:1px solid rgba(255,157,24,.5);
}
.status-badge.rejected{ background:rgba(255,100,100,.14); color:#FFB4B4; border-color:rgba(255,100,100,.5); }
#statusPanel{ text-align:center; }
#statusPanel .gate-form{ text-align:left; margin-top:18px; }

.turnstile-slot{ margin:6px 0 14px; min-height:0; }

/* signed-in strip inside the site header */
.auth-bar{
  display:flex; align-items:center; gap:10px; flex:none;
  font-size:13px; color:var(--muted);
}
.auth-bar .auth-who{ max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.auth-bar .auth-role{
  padding:3px 10px; border-radius:999px; font-weight:900; font-size:11px; letter-spacing:.5px;
  color:var(--cyan); border:1px solid var(--line); text-transform:uppercase;
}
.auth-bar button{
  border:1px solid var(--line); border-radius:999px; padding:8px 14px; min-height:38px;
  color:#fff; background:rgba(255,255,255,.06); font-weight:800;
}
.auth-bar button:hover{ border-color:var(--cyan); }
.mobile-menu .mobile-signout{ color:var(--orange); }

/* service-request gating by role */
.request-restricted{ display:none; }
body[data-role="artisan"] .request-restricted,
body[data-role="admin"]   .request-restricted{ display:block; }
body[data-role="artisan"] #termsGate,
body[data-role="artisan"] #requestForm,
body[data-role="admin"]   #termsGate,
body[data-role="admin"]   #requestForm{ display:none !important; }
.request-restricted{
  padding:22px; border-radius:18px; text-align:center; font-weight:700;
  background:rgba(255,157,24,.10); border:1px solid rgba(255,157,24,.45); color:#FFE2B8;
}

.request-success{
  display:none; padding:26px; border-radius:20px; text-align:center;
  background:rgba(53,213,138,.12); border:1px solid rgba(53,213,138,.5);
}
.request-success.show{ display:block; }
.request-success strong{ display:block; font-size:26px; margin:8px 0; letter-spacing:1px; color:#fff; }

/* artisan area (approved artisans only) */
#artisan-area{ display:none; }
body[data-role="artisan"] #artisan-area{ display:block; }
.artisan-area-card{
  padding:26px; border-radius:20px; background:linear-gradient(180deg,var(--panel2),var(--panel3));
  border:1px solid var(--line);
}
.artisan-area-card dl{ display:grid; grid-template-columns:max-content 1fr; gap:6px 18px; margin:14px 0 0; }
.artisan-area-card dt{ color:var(--muted); font-weight:800; }
.artisan-area-card dd{ margin:0; }

/* music-choice dialog (replaces the old inline-styled one, same behaviour) */
.music-choice{
  position:fixed; left:50%; bottom:30px; transform:translateX(-50%);
  z-index:99999; width:min(92%,440px); padding:24px; border-radius:20px;
  display:flex; flex-direction:column; align-items:center; gap:14px;
  background:rgba(2,9,20,.86); color:#fff; text-align:center;
  border:1px solid var(--line); box-shadow:0 10px 35px rgba(0,0,0,.45);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
}
.music-choice .music-question{ font-size:22px; font-weight:800; line-height:1.4; }
.music-choice button{
  width:100%; min-height:52px; padding:14px 18px; border-radius:12px; border:0;
  font-size:16px; font-weight:800; cursor:pointer;
}
.music-choice .music-yes{ color:#fff; background:linear-gradient(135deg,var(--cyan),var(--blue2)); }
.music-choice .music-no{ color:#fff; background:rgba(255,255,255,.10); border:1px solid var(--line); }

body.music-choice-open{ padding-bottom:300px; }

/* dark dropdowns stay readable on phones (from the original style.css) */
#requestForm select option{ background:#111827; color:#fff; }

.noscript-msg{
  position:fixed; inset:0; z-index:100000; display:flex; align-items:center; justify-content:center;
  padding:24px; text-align:center; background:#020914; color:#fff; font-weight:700;
}

@media(max-width:950px){
  .auth-bar{ display:none; }          /* phones/tablets: Sign out lives in the MENU */
}

@media(max-width:650px){
  .enter-button{ font-size:16px; padding:16px 26px; max-width:92%; letter-spacing:.2px; }
  .gate-card{ padding:26px 18px; }
  .role-grid{ grid-template-columns:1fr; }
  .gate-form .form-grid{ grid-template-columns:1fr; }
  .auth-bar .auth-who{ display:none; }
  .music-choice{ bottom:18px; padding:20px; }
  .music-choice .music-question{ font-size:19px; }
  .artisan-area-card dl{ grid-template-columns:1fr; }
}

/* never let anything create sideways scrolling */
html,body{ max-width:100%; overflow-x:hidden; }
input,select,textarea{ font-size:16px; } /* stops iPhone zooming into fields */

@media (prefers-reduced-motion:reduce){
  *{ scroll-behavior:auto !important; transition:none !important; }
}

@media(max-width:650px){
  .toast{ bottom:96px; width:calc(100% - 32px); max-width:420px; }   /* keep messages above the music player */
}

.voice-replay{
  position:fixed; left:50%; top:16px; transform:translateX(-50%); z-index:99998;
  max-width:calc(100% - 24px); padding:12px 20px; min-height:46px; border:0; border-radius:999px;
  color:#fff; font-weight:900; font-size:13px; letter-spacing:.4px; cursor:pointer;
  background:linear-gradient(135deg,var(--cyan),var(--blue2)); box-shadow:0 10px 30px rgba(0,190,255,.35);
}


/* =========================================================
   BIFRATECH LOGO - shown on every page
   The pictures are files in the Supabase folder (see index.html):
   mark   = the B symbol (header, footer)
   lockup = B symbol + "BifraTech LIMITED" (opening screen, account pages)
========================================================= */
.bifra-logo{
  display:block; flex:none; object-fit:contain;
  background:#fafbfb; color:#061633; font-weight:900; text-align:center;
  box-shadow:0 8px 28px rgba(0,170,255,.28);
}
.bifra-logo--sm{ display:inline-block; width:52px; height:52px; border-radius:14px; }
.bifra-logo--lockup{ height:auto; aspect-ratio:1040/312; border-radius:18px; margin:0 auto 14px; }
.bifra-logo--lockup-xl{ width:min(520px,86vw); }
.bifra-logo--lockup-md{ width:min(360px,84%); margin-bottom:16px; }
/* the logo already contains the name, so the plain-text name is hidden */
#opening .logo-text, .gate-brand{ display:none; }
@media (max-width:600px){
  .bifra-logo--sm{ width:44px; height:44px; }
}
@media (max-height:560px){
  .bifra-logo--lockup-xl{ width:min(260px,60vw); margin-bottom:6px; }
}
footer .bifra-logo--sm{ margin-bottom:10px; }

/* =========================================================
   BRAND BACKGROUND - navy + bright blue (the two logo colours)
   Behind the opening video, the account pages and the main site.
========================================================= */
body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(900px 600px at 12% 8%,  rgba(11,85,199,.55), transparent 62%),
    radial-gradient(800px 560px at 92% 96%, rgba(8,120,232,.42), transparent 60%),
    radial-gradient(600px 400px at 85% 12%, rgba(18,216,245,.12), transparent 62%),
    linear-gradient(160deg,#061633 0%,#082a63 55%,#0a3a85 100%);
}
body::after{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.55;
  background:
    linear-gradient(rgba(32,189,242,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(32,189,242,.07) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse at 30% 20%,#000 0%,transparent 75%);
          mask-image:radial-gradient(ellipse at 30% 20%,#000 0%,transparent 75%);
}
#opening{
  background:
    radial-gradient(900px 640px at 15% 10%, rgba(11,85,199,.75), transparent 62%),
    radial-gradient(800px 600px at 90% 95%, rgba(8,120,232,.55), transparent 60%),
    linear-gradient(160deg,#061633 0%,#082a63 55%,#0a3a85 100%);
}
.opening-video{ background:transparent; }
.opening-overlay{
  background:
    linear-gradient(180deg,rgba(6,22,51,.25),rgba(6,22,51,.55)),
    radial-gradient(circle at center,rgba(8,120,232,.16),transparent 60%);
}

#videoNote{
  position:absolute; left:50%; bottom:12px; transform:translateX(-50%); z-index:3;
  max-width:92%; padding:6px 12px; border-radius:10px; text-align:center;
  font-size:11px; font-weight:600; line-height:1.4; color:rgba(255,255,255,.82);
  background:rgba(2,9,20,.55);
}
#videoNote[hidden]{ display:none; }

/* ---- switches: paused sign-ups / requests ---- */
body[data-reg-customer="off"] [data-kind="customer"][data-tab="register"],
body[data-reg-artisan="off"] [data-kind="artisan"][data-tab="register"]{ opacity:.55; }

/* header with the extra Marketplace item: tighten on laptops so everything stays on screen */
@media(max-width:1500px) and (min-width:951px){
  .desktop-nav{ gap:2px; }
  .desktop-nav button{ padding:9px 8px; font-size:14px; }
  .brand-name{ font-size:21px; }
  .auth-bar .auth-who{ display:none; }
}
@media(max-width:1180px){          /* narrow laptops and tablets: use the menu button (Sign out is inside it) */
  .desktop-nav{ display:none; }
  .menu-button{ display:block; }
  .auth-bar{ display:none; }
}

/* Background music switch (Master Control -> Features): the player only shows when the Director has it ON */
body:not([data-music="on"]) .music-player{ display:none !important; }

/* Website closed (maintenance): banner shown to staff inside the site */
.closed-banner{ position:fixed; left:0; right:0; top:0; z-index:9999; padding:10px 16px; text-align:center;
  background:#FF9D18; color:#061633; font-weight:800; font-size:14px; box-shadow:0 4px 16px rgba(0,0,0,.35); }
