:root{
      --bg1:#070b14;
      --bg2:#0c1830;
      --bg3:#0a2a3b;
      --card:rgba(255,255,255,.06);
      --stroke:rgba(255,255,255,.10);
      --txt:#edf4ff;
      --muted:rgba(237,244,255,.72);
      --btn:#3b82f6;
      --btn-hover:#2563eb;
      --danger:#ef4444;
      --danger-bg:rgba(239,68,68,.18);
      --shadow:0 20px 50px rgba(0,0,0,.28);
      --radius:18px;
    }

    .verdict-badge{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.4px;
  text-transform:uppercase;
  opacity:.85;
  white-space: nowrap;
}

.verdict-green{
  background:rgba(22,163,74,.15);
  border:1px solid rgba(22,163,74,.35);
}

.verdict-orange{
  background:rgba(245,158,11,.15);
  border:1px solid rgba(245,158,11,.35);
}

.verdict-red{
  background:rgba(239,68,68,.15);
  border:1px solid rgba(239,68,68,.35);
}

    *{box-sizing:border-box}
    html{scroll-behavior:smooth}

    body{
      margin:0;
      font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
      color:var(--txt);
      background:
        radial-gradient(1200px 700px at 18% 18%, rgba(47,95,171,.35) 0%, transparent 55%),
        radial-gradient(1100px 700px at 82% 20%, rgba(14,133,133,.22) 0%, transparent 55%),
        linear-gradient(180deg,var(--bg1),var(--bg2) 45%,var(--bg3));
      min-height:100vh;
    }

    header{
      padding:30px 22px 10px;
      max-width:1180px;
      margin:0 auto;
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap:16px;
      flex-wrap:wrap;
    }

    h1{
      margin:0;
      letter-spacing:.7px;
      font-size:34px;
    }

    h2{
      margin:0;
      font-size:30px;
      letter-spacing:.4px;
    }

    .sub{
      color:var(--muted);
      margin-top:8px;
      font-size:14px;
    }

    main{
      max-width:1180px;
      margin:0 auto;
      padding:18px 22px 44px;
      display:grid;
      gap:18px;
    }

    .grid{
      display:grid;
      grid-template-columns:430px 1fr;
      gap:18px;
      align-items:start;
    }

    .card{
      background:var(--card);
      border:1px solid var(--stroke);
      border-radius:var(--radius);
      padding:18px;
      backdrop-filter:blur(12px);
      box-shadow:var(--shadow);
    }

    .panel-title{
      font-size:18px;
      font-weight:800;
      margin:0;
    }

    .meta{
      color:var(--muted);
      font-size:13px;
      margin-top:5px;
      line-height:1.45;
    }

    .row{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:12px;
    }

    label{
      display:block;
      font-size:12px;
      color:var(--muted);
      margin:12px 0 6px;
    }

    input, select, textarea{
      width:100%;
      padding:13px 13px;
      border-radius:13px;
      border:1px solid rgba(255,255,255,.14);
      background:rgba(0,0,0,.18);
      color:var(--txt);
      outline:none;
      transition:.18s ease;
    }

    input::placeholder,
    textarea::placeholder{
      color:rgba(237,244,255,.42);
    }

    input:focus, select:focus, textarea:focus{
      border-color:rgba(59,130,246,.65);
      box-shadow:0 0 0 3px rgba(59,130,246,.15);
    }

    textarea{
      min-height:105px;
      resize:vertical;
      line-height:1.45;
    }

    .btns{
      display:flex;
      gap:10px;
      margin-top:14px;
      flex-wrap:wrap;
    }

    button{
      cursor:pointer;
      border:0;
      border-radius:13px;
      padding:12px 14px;
      font-weight:700;
      background:var(--btn);
      color:white;
      transition:.16s ease;
      box-shadow:0 6px 18px rgba(59,130,246,.35);
    }

    button:hover{
      transform:translateY(-1px);
      background:var(--btn-hover);
    }

    button.secondary{
      background:rgba(255,255,255,.10);
      color:var(--txt);
      box-shadow:none;
    }

    button.secondary:hover{
      background:rgba(255,255,255,.14);
    }

    button.danger{
      background:var(--danger-bg);
      color:#ffd7d7;
      border:1px solid rgba(239,68,68,.35);
      box-shadow:none;
    }

    button.danger:hover{
      background:rgba(239,68,68,.25);
    }

    .toast{
      margin-top:12px;
      padding:11px 13px;
      border-radius:13px;
      font-size:14px;
      background:rgba(16,185,129,.10);
      border:1px solid rgba(16,185,129,.25);
      color:#bfffe7;
      display:none;
      white-space:pre-wrap;
      word-break:break-word;
    }

    .toast.err{
      background:rgba(239,68,68,.10);
      border:1px solid rgba(239,68,68,.25);
      color:#ffd6d6;
    }

    .split{
      height:1px;
      background:rgba(255,255,255,.10);
      margin:14px 0;
    }

    .list{
      display:grid;
      gap:12px;
      margin-top:12px;
    }

    .item{
      padding:16px;
      border-radius:16px;
      border:1px solid rgba(255,255,255,.10);
      background:rgba(0,0,0,.14);
      display:flex;
      justify-content:space-between;
      gap:14px;
      align-items:flex-start;
      transition:.2s ease;
    }

    .item:hover{
      transform:translateY(-2px);
      border-color:rgba(255,255,255,.2);
    }

    .title{
      font-weight:800;
      font-size:16px;
      line-height:1.35;
    }

    .address{
      color:rgba(237,244,255,.55);
      font-size:13px;
      margin-top:5px;
    }

    .pill-row{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-top:10px;
    }

    .pill{
      display:inline-flex;
      gap:6px;
      align-items:center;
      padding:7px 10px;
      border-radius:999px;
      background:rgba(255,255,255,.10);
      border:1px solid rgba(255,255,255,.12);
      font-size:12px;
      color:var(--txt);
      transition:.2s ease;
    }

    .score-green{
      background:rgba(22,163,74,.18);
      border-color:rgba(22,163,74,.35);
    }

    .score-orange{
      background:rgba(245,158,11,.18);
      border-color:rgba(245,158,11,.35);
    }

    .score-red{
      background:rgba(239,68,68,.18);
      border-color:rgba(239,68,68,.35);
    }

    .signals{
      color:var(--muted);
      font-size:13px;
      margin-top:10px;
      line-height:1.45;
      color:rgba(237,244,255,.75);
      font-weight:600;
    }

    .actions{
      display:flex;
      gap:8px;
      align-items:center;
      flex-wrap:wrap;
      justify-content:flex-end;
      min-width:220px;
    }

    .small{
      padding:9px 11px;
      font-size:12px;
      border-radius:10px;
    }

    .suggestions{
      position:relative;
    }

    .suggestBox{
      position:absolute;
      z-index:20;
      left:0;
      right:0;
      top:100%;
      background:#091327;
      border:1px solid rgba(255,255,255,.14);
      border-radius:14px;
      overflow:hidden;
      display:none;
      margin-top:6px;
      max-height:320px;
      overflow-y:auto;
      box-shadow:0 20px 40px rgba(0,0,0,.35);
    }

    .suggestRow{
      padding:11px 13px;
      cursor:pointer;
      border-top:1px solid rgba(255,255,255,.08);
    }

    .suggestRow:first-child{
      border-top:0;
    }

    .suggestRow:hover{
      background:rgba(255,255,255,.06);
    }

    .sMain{
      font-weight:700;
    }

    .sSub{
      color:var(--muted);
      font-size:12px;
      margin-top:2px;
    }

    .reviewRow{
      margin-top:10px;
      padding:12px 13px;
      border-radius:13px;
      background:rgba(255,255,255,.05);
      border:1px solid rgba(255,255,255,.08);
    }

    .reviewTop{
      display:flex;
      justify-content:space-between;
      gap:12px;
      align-items:center;
      flex-wrap:wrap;
      margin-bottom:8px;
    }

    .reviewNote{
      font-weight:800;
      padding:6px 10px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      gap:8px;
    }

    .reviewComment{
      line-height:1.5;
      white-space:pre-wrap;
    }

    .empty{
      color:var(--muted);
      font-size:14px;
      padding:6px 0;
    }

    .auth-wrap{
      width:min(460px,100%);
    }

    .auth-tabs{
      display:flex;
      gap:8px;
      margin-bottom:10px;
      flex-wrap:wrap;
    }

    .auth-tab{
      padding:10px 12px;
      border-radius:12px;
      background:rgba(255,255,255,.08);
      border:1px solid rgba(255,255,255,.10);
      color:var(--txt);
      cursor:pointer;
      font-weight:700;
      box-shadow:none;
    }

    .auth-tab.active{
      background:rgba(59,130,246,.18);
      border-color:rgba(59,130,246,.35);
    }

    .auth-panel{
      display:none;
      background:rgba(255,255,255,.05);
      border:1px solid rgba(255,255,255,.08);
      border-radius:16px;
      padding:14px;
    }

    .auth-status{
      color:var(--muted);
      font-size:12px;
      margin-top:8px;
    }

    .verify-box{
      margin-top:12px;
      padding:12px;
      border-radius:14px;
      border:1px solid rgba(59,130,246,.25);
      background:rgba(59,130,246,.08);
      display:none;
    }

    .verify-box a{
      color:#9cc7ff;
      word-break:break-all;
    }

    .footer-note{
      color:rgba(237,244,255,.48);
      font-size:12px;
      margin-top:10px;
    }

    .terms-check input{
      width:auto;
      margin-top:2px;
      accent-color:var(--btn);
    }

    .terms-check a,
    .legal-footer a{
      color:#9cc7ff;
      text-decoration:none;
      font-weight:700;
    }

    .terms-check a:hover,
    .legal-footer a:hover{
      text-decoration:underline;
    }

    .legal-footer{
      display:flex;
      flex-wrap:wrap;
      gap:12px;
      margin-top:10px;
      font-size:12px;
    }

    #accountPage{
      position:fixed;
      inset:0;
      width:100%;
      height:100%;
      background:
        radial-gradient(900px 500px at 20% 10%, rgba(47,95,171,.28), transparent 55%),
        radial-gradient(900px 520px at 85% 5%, rgba(14,133,133,.18), transparent 55%),
        linear-gradient(180deg, #070b14, #0c1830 55%, #0a2a3b);
      z-index:9999;
      overflow-y:auto;
      padding:28px 22px 44px;
    }

    .account-inner{
      max-width:1000px;
      margin:0 auto;
    }

    .account-header{
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap:12px;
      margin-bottom:18px;
    }

    .account-grid{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:16px;
      align-items:start;
    }

    .account-info{
      display:grid;
      gap:10px;
      margin-top:14px;
    }

    .info-line{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:24px;
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
}
  .info-label{
    min-width:140px;
    font-weight:600;
}

.info-value{
    flex:1;
}

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

    .info-label{
      color:var(--muted);
      font-size:13px;
    }

    .info-value{
  font-weight:700;
  text-align:left;
  word-break:break-word;
}

    .account-reviews{
      margin-top:12px;
      display:grid;
      gap:12px;
    }

    .account-review-card{
      padding:14px;
      border-radius:16px;
      background:rgba(0,0,0,.14);
      border:1px solid rgba(255,255,255,.10);
    }

    .account-review-head{
      display:flex;
      justify-content:space-between;
      gap:12px;
      align-items:flex-start;
      flex-wrap:wrap;
    }

    .danger-zone{
      margin-top:16px;
      border-color:rgba(239,68,68,.22);
      background:rgba(239,68,68,.06);
    }

    @media (max-width:980px){
      .grid{grid-template-columns:1fr}
      .row{grid-template-columns:1fr}
      .item{flex-direction:column}
      .actions{min-width:unset;justify-content:flex-start}
      .auth-wrap{width:100%}
      .account-grid{grid-template-columns:1fr}
      .account-header{align-items:flex-start}
      .info-line{flex-direction:column;gap:4px}
      .info-value{text-align:left}
    }

    .password-wrap{
  position:relative;
}
.password-wrap input{
  padding-right:95px !important;
}

.password-toggle{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:0;
  color:rgba(237,244,255,.7);
  cursor:pointer;
  font-size:12px;
  font-weight:700;
  box-shadow:none;
  padding:0;
}

.password-toggle:hover{
  color:white;
  background:none;
}

.topbar{
  width:100%;
  padding:16px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.15);
  backdrop-filter:blur(10px);
  position:sticky;
  top:0;
  z-index:1000;
}

.topbar-left{
  display:flex;
  align-items:center;
  gap:18px;
}

.topbar-logo{
  font-size:24px;
  font-weight:900;
  color:white;
  text-decoration:none;
  letter-spacing:.5px;
}

.topbar-link{
  color:rgba(255,255,255,.75);
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  transition:.15s ease;
}

.topbar-link:hover{
  color:white;
}

.page{
  max-width:1000px;
  margin:0 auto;
  padding:36px 22px 60px;
}

.account-page .account-header{
  display:block;
  margin-bottom:22px;
}

.account-page .account-header h1{
  margin:0;
  font-size:34px;
}

.account-page .account-header p{
  color:var(--muted);
  margin:8px 0 0;
}

.account-page .card{
  padding:20px;
}

.account-page h2{
  font-size:20px;
  margin:0 0 14px;
}

.account-page input{
  margin-top:10px;
}

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

.account-page .danger-zone{
  max-width:100%;
}

@media (max-width:800px){
  .account-page .account-grid{
    grid-template-columns:1fr;
  }
}

.footer{
  margin-top:60px;
  border-top:1px solid rgba(255,255,255,.08);
  padding:40px 22px;
  background:rgba(0,0,0,.15);
}

.footer-grid{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:30px;
}

.footer-title{
  font-weight:700;
  margin-bottom:14px;
  font-size:15px;
}

.footer-text{
  color:rgba(237,244,255,.65);
  line-height:1.6;
  max-width:320px;
}

.footer a{
  display:block;
  margin-bottom:10px;
  color:rgba(237,244,255,.72);
  text-decoration:none;
}

.footer a:hover{
  color:white;
}

.footer-bottom{
  max-width:1200px;
  margin:30px auto 0;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.06);
  color:rgba(237,244,255,.45);
  font-size:13px;
}

@media (max-width:800px){

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

}
.legal-consent-box{
  margin-top:18px;
  padding:14px;
  border-radius:14px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.12);
}

.legal-consent-box a{
  color:#9cc7ff;
  font-weight:700;
}

.terms-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:14px;
  line-height:1.45;
}

.terms-check input{
  margin-top:4px;
}
.primary-cta{
  display:inline-block;
  background:linear-gradient(135deg,#3b82f6,#2563eb);
  color:white;
  padding:12px 18px;
  border-radius:14px;
  text-decoration:none;
  font-weight:800;
  box-shadow:0 0 20px rgba(59,130,246,.4);
}

.primary-cta:hover{
  transform:translateY(-1px);
  box-shadow:0 0 30px rgba(59,130,246,.6);
}
@media (max-width: 720px){
  body{
    overflow-x:hidden;
  }

  header{
    padding:36px 18px;
    text-align:left;
  }

  header h1{
    font-size:42px;
  }

  .sub{
    font-size:16px;
  }

  .page,
  main{
    padding:18px;
  }

  .grid,
  .row,
  .account-grid{
    grid-template-columns:1fr !important;
  }

  .btns{
    flex-direction:column;
    align-items:stretch;
  }

  button,
  .primary-cta,
  .secondary{
    width:100%;
    text-align:center;
  }

  input,
  select,
  textarea{
    font-size:16px;
  }

  .item{
    flex-direction:column;
  }

  .actions{
    width:100%;
  }
}
.home-hero{
  padding:35px 20px 20px;
}

.home-hero h1{
  font-size:44px;
}

.hero-sub{
  font-size:17px;
  line-height:1.55;
  max-width:620px;
}

.secondary-link{
  display:inline-block;
  color:#9cc7ff;
  padding:12px 18px;
  text-decoration:none;
  font-weight:800;
}

.secondary-link:hover{
  color:white;
  text-decoration:underline;
}
.password-hint{
  margin-top:8px;
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
}

.password-hint.bad{
  color:#ffd6d6;
}

.password-hint.mid{
  color:#fde68a;
}

.password-hint.good{
  color:#bfffe7;
}

@media (max-width:720px){
  .password-wrap .password-toggle{
    width:auto !important;
    min-width:auto !important;
    max-width:80px;
    padding:0 !important;
    right:12px;
    text-align:right;
  }

  .password-wrap input{
    padding-right:95px !important;
  }
}

.suggestions{
  position:relative;
}

.suggestBox{
  display:none;
  position:absolute;
  z-index:9999;
  width:100%;
  margin-top:6px;
  background:#0b1220;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
}

.suggestRow{
  padding:12px 14px;
  cursor:pointer;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.suggestRow:hover{
  background:rgba(255,255,255,.08);
}

.sMain{
  font-weight:700;
}

.sSub{
  font-size:13px;
  color:var(--muted);
  margin-top:3px;
}

.establishment-hero-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}

.establishment-hero h1{
  font-size:36px;
  line-height:1.05;
}

@media (max-width:720px){
  .establishment-hero h1{
    font-size:28px;
  }
}

.account-stack{
  display:grid;
  gap:20px;
  max-width:900px;
}

.account-card{
  margin-top:0 !important;
}

.account-card-wide{
  grid-column:1 / -1;
}

.account-card-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:14px;
}

.account-card h2{
  margin:0 0 6px;
}

@media (max-width:850px){
  .account-grid{
    grid-template-columns:1fr;
  }

  .account-card-wide{
    grid-column:auto;
  }

  .account-card-head{
    flex-direction:column;
  }
}

.account-layout{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:24px;
  align-items:start;
}

.account-menu{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.account-tab{
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(237,244,255,.85);
  padding:13px 15px;
  border-radius:14px;
  text-align:left;
  font-weight:700;
  box-shadow:none;
}

.account-tab:hover{
  background:rgba(255,255,255,.06);
}

.account-tab.active{
  background:rgba(56,189,248,.12);
  border-color:rgba(56,189,248,.45);
  color:white;
}

.account-page .info-line{
  align-items:flex-start;
}

@media (max-width:700px){
  .account-page .info-line{
    display:block;
    padding:14px 0;
  }

  .account-page .info-label{
    min-width:0;
    margin-bottom:6px;
    text-align:left;
  }

  .account-page .info-value{
    text-align:left;
  }

  .account-page .info-value button{
    display:inline-block;
    margin-left:0 !important;
    margin-top:8px;
    width:auto;
  }
}

@media (max-width:700px){

  .account-layout{
    display:block;
  }

  .account-menu{
    display:flex;
    overflow-x:auto;
    gap:8px;
    margin-bottom:16px;
  }

  .account-tab{
    min-width:max-content;
    white-space:nowrap;
  }

  .account-content{
    width:100%;
  }

}

.inline-edit-form{
  margin-top:12px;
  padding:16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.02);
}

.inline-edit-form input{
  margin-top:8px;
  margin-bottom:12px;
}

.account-section{
  display:none !important;
}

.account-section.active{
  display:block !important;
}

.account-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:16px 0;
}

.account-stats div{
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.03);
}

.account-stats strong{
  display:block;
  font-size:18px;
  color:white;
}

.account-stats span{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}

.info-label{
  font-size:12px;
  color:rgba(237,244,255,.6);
  font-weight:600;
}

.info-value{
  font-size:16px;
  font-weight:700;
  color:white;
}

@media(max-width:700px){
  .account-stats{
    grid-template-columns:1fr;
  }
}

.account-page .info-label{
  font-size:13px;
  color:rgba(237,244,255,.6);
  font-weight:600;
}

.account-page .info-value{
  font-size:15px;
  font-weight:600;
  color:rgba(237,244,255,.92);
}

.establishment-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:18px;
}

.establishment-stats div{
  padding:16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.03);
}

.establishment-stats strong{
  display:block;
  font-size:22px;
  color:white;
}

.establishment-stats span{
  display:block;
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
}

.top-signals{
  margin-top:18px;
}

.signals-title{
  font-weight:800;
  margin-bottom:10px;
}

@media(max-width:700px){
  .establishment-stats{
    grid-template-columns:1fr;
  }
}
.reviewRow{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.10);
}

.reviewTop{
  align-items:flex-start;
  margin-bottom:10px;
}

.reviewNote{
  font-size:15px;
  font-weight:800;
}

.reviewComment{
  font-size:15px;
  line-height:1.55;
  font-weight:600;
  color:rgba(237,244,255,.92);
}

.reviewComment::before,
.reviewComment::after{
  content:"";
}

.signals{
  margin-top:12px;
  font-size:13px;
  font-weight:700;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 15px;
}

.footer a {
    color: #b7d5ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.helpfulButton.active {
  background: rgba(59, 130, 246, 0.22);
  border-color: #60a5fa;
  color: #dbeafe;
}

.helpfulButton:disabled {
  opacity: 0.65;
  cursor: wait;
}

.reviewReplies {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
}

.reviewReply {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.replyComment {
  margin-top: 4px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.replyForm textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  box-sizing: border-box;
}

.review-guidance {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.review-guidance p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.review-confirmation {
  margin: 14px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-label input {
  margin-top: 3px;
}

#revisionBanner {
  max-width: 1100px;
  margin: 18px auto;
  padding: 0 18px;
}

.revision-card {
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 14px;
  background: rgba(234, 179, 8, 0.08);
}

.revision-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.notification-wrap {
  position: relative;
}

.notification-button {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.notification-panel {
  position: absolute;
  top: 50px;
  right: 0;
  z-index: 1000;
  width: min(380px, calc(100vw - 32px));
  max-height: 460px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #0b1628;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.notification-read-all {
  padding: 6px 9px;
  font-size: 12px;
  background: transparent;
}

.notification-item {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
}

.notification-item.unread {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.12);
}

.notification-message {
  display: block;
  line-height: 1.4;
}

.notification-date {
  display: block;
  margin-top: 5px;
  opacity: 0.6;
  font-size: 12px;
}

.review-actions-primary,
.review-actions-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.review-actions-primary button,
.review-actions-secondary button {
  width: auto;
  min-width: 0;
}

.account-review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.account-review-actions a,
.account-review-actions button {
  width: auto;
  min-width: 0;
}

@media (max-width: 700px) {
  .account-review-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .account-review-actions a,
  .account-review-actions button {
    width: 100%;
    text-align: center;
  }

  .account-review-actions .danger {
    grid-column: 1 / -1;
  }
}

/* ==================================================
   POLISH UI — TOPBAR, AVIS, RÉPONSES ET COMPTE
   ================================================== */

/* ---------- Topbar ---------- */

.topbar {
  min-height: 70px;
  padding: 13px 24px;
  flex-direction: row;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.topbar-auth {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  white-space: nowrap;
}

.notification-wrap {
  flex: 0 0 auto;
}

.notification-button {
  width: 42px !important;
  min-width: 42px;
  height: 42px;
  padding: 0 !important;
  box-shadow: none;
}

.notification-panel button {
  width: auto;
}


/* ---------- Cartes d’avis ---------- */

.reviewRow {
  margin-top: 12px;
  padding: 17px;
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.025)
    );
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.reviewTop {
  margin-bottom: 14px;
}

.reviewTop .meta {
  margin-top: 0;
  font-size: 13px;
  font-weight: 700;
}

.reviewNote {
  padding: 0;
  background: transparent;
}

.reviewComment {
  padding: 8px 2px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}


/* ---------- Boutons des avis ---------- */

.review-actions-primary,
.review-actions-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.review-actions-primary button,
.review-actions-secondary button,
.reviewRow .btns button {
  width: auto !important;
  min-width: 0;
  padding: 9px 13px;
  border-radius: 10px;
  box-shadow: none;
}

.review-actions-primary button {
  background: rgba(255, 255, 255, 0.095);
}

.review-actions-primary button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.review-actions-secondary {
  padding-top: 2px;
}


/* ---------- Réponses ---------- */

.reviewReplies {
  margin-top: 15px;
  padding-left: 12px;
  border-left: 2px solid rgba(96, 165, 250, 0.28);
}

.reviewReply {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.reviewReply .meta {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.replyComment {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(237, 244, 255, 0.88);
}

.replyForm {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
}

.replyForm textarea {
  min-height: 72px;
  padding: 11px 12px;
  font-size: 14px;
}

.replyForm .btns {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 9px;
}

.replyForm .btns button {
  width: auto !important;
  padding: 9px 13px;
}


/* ---------- Mes avis ---------- */

.account-reviews {
  gap: 14px;
}

.account-review-card {
  padding: 17px;
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.025)
    );
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-review-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.account-review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.account-review-actions a,
.account-review-actions button {
  width: auto !important;
  min-width: 0;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 12px;
  box-sizing: border-box;
}

.account-review-actions .secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: var(--txt);
  background: rgba(255, 255, 255, 0.09);
  text-decoration: none;
  font-weight: 700;
}

.account-review-actions .secondary-link:hover {
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}


/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .topbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 12px 16px;
}

  .topbar-left {
    gap: 13px;
  }

  .topbar-right {
  width: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 11px;
  margin-left: auto;
}

  .topbar-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }

  .topbar-link {
    min-height: 32px;
    font-size: 13px;
  }

  .notification-button {
    width: 38px !important;
    min-width: 38px;
    height: 38px;
  }

  .notification-panel {
    position: fixed;
    top: 112px;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: 60vh;
  }

  .reviewRow {
    padding: 14px;
    border-radius: 15px;
  }

  .reviewTop {
    align-items: flex-start;
    gap: 8px;
  }

  .reviewComment {
    padding: 7px 0;
    font-size: 14px;
  }

  .review-actions-primary,
  .review-actions-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .review-actions-primary button,
  .review-actions-secondary button,
  .reviewRow .btns button {
    width: 100% !important;
    padding: 9px 7px;
  }

  .reviewReplies {
    margin-top: 13px;
    padding-left: 9px;
  }

  .reviewReply {
    padding: 9px 10px;
  }

  .replyComment {
    font-size: 13px;
  }

  .replyForm {
    padding: 9px;
  }

  .replyForm textarea {
    min-height: 68px;
  }

  .replyForm .btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .replyForm .btns button {
    width: 100% !important;
  }

  .account-review-card {
    padding: 14px;
  }

  .account-review-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .account-review-actions a,
  .account-review-actions button {
    width: 100% !important;
    min-height: 40px;
    padding: 9px 7px;
    text-align: center;
  }

  .account-review-actions .danger {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   TOASTS
   ========================================================= */

#toast-container {
  position: fixed;
  top: 82px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;

  width: 100%;
  padding: 13px 14px;

  color: #f8fafc;
  background: rgba(20, 24, 34, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #8b5cf6;
  border-radius: 12px;

  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.18);

  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;

  pointer-events: auto;
}

.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-hidden {
  opacity: 0;
  transform: translateX(24px);
}

.toast-success {
  border-left-color: #22c55e;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-warning {
  border-left-color: #f59e0b;
}

.toast-info {
  border-left-color: #8b5cf6;
}

.toast-icon {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  font-size: 15px;
  font-weight: 800;
  line-height: 1;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.toast-success .toast-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.toast-warning .toast-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.toast-info .toast-icon {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

.toast-message {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.toast-close {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;
  padding: 0;

  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: 0;
  border-radius: 7px;

  font-family: inherit;
  font-size: 22px;
  line-height: 1;

  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.toast-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.toast-close:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}

@media (max-width: 600px) {

  #toast-container {
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 92px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);

  width: auto;
  min-height: auto;
  padding: 6px 8px;

  color: #cbd5e1;
  background: transparent;
  border: 0;
  box-shadow: none;

  font-size: 13px;
  font-weight: 700;
}

.password-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.review-highlight {
  outline: 3px solid #8b5cf6;
  outline-offset: 4px;
  transition: outline 0.3s ease;
}

.full-width {
    width: 100%;
}

.reviewReply .replyActions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.reviewReply .replyActions button {
  width: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.reviewReply .replyActions .linkBtn {
  color: #aeb8c8;
}

.reviewReply .replyActions .danger {
  color: #e58b91;
}

.reviewReply .replyActions button:hover {
  background: transparent;
  text-decoration: underline;
}

.reviewRow,
.reviewReplies,
.reviewReply,
.notification-panel {
  overflow-anchor: none;
}

html,
body,
.page {
  overflow-anchor: none;
}

/* =========================================================
   LISIBILITÉ THENA
   ========================================================= */

:root {
  --bg1: #0b1220;
  --bg2: #101f38;
  --bg3: #123246;

  --card: rgba(255, 255, 255, 0.085);
  --stroke: rgba(255, 255, 255, 0.16);

  --txt: #f8fbff;
  --muted: rgba(240, 246, 255, 0.82);
}

/* Cartes principales */
.card {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Établissements */
.item {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Avis */
.reviewRow {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Réponses */
.reviewReply {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.13);
}

/* Texte des avis */
.reviewComment {
  color: rgba(248, 251, 255, 0.97);
}

/* Texte des réponses */
.replyComment {
  color: rgba(248, 251, 255, 0.94);
}

/* Informations secondaires */
.meta,
.address,
.info-label,
.account-stats span,
.establishment-stats span {
  color: rgba(237, 244, 255, 0.78);
}

/* Actions des réponses */
.reviewReply .replyActions button {
  color: rgba(237, 244, 255, 0.82);
}

/* =========================================================
   HIÉRARCHIE DES RÉPONSES
   ========================================================= */

/* Réponse directe à l'avis */
.reviewReply.directReply {
  margin-left: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

/* Réponse à une autre réponse */
.reviewReply.nestedReply {
  margin-left: 28px;
  padding: 10px 12px;
  background: rgba(96, 165, 250, 0.07);
  border-left: 3px solid rgba(96, 165, 250, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Auteur/date d'une réponse directe */
.reviewReply.directReply .meta {
  font-size: 13px;
  font-weight: 700;
}

/* Sous-réponse : volontairement plus discrète */
.reviewReply.nestedReply .meta {
  font-size: 12px;
  opacity: 0.82;
}

.reviewReply.nestedReply .replyComment {
  font-size: 13px;
  font-weight: 400;
}

/* Sur mobile on réduit le décalage */
@media (max-width: 720px) {
  .reviewReply.nestedReply {
    margin-left: 16px;
  }
}

/* =========================================================
   HIÉRARCHIE DES RÉPONSES
   ========================================================= */

/* Réponse directe à l'avis */
.reviewReply.directReply {
  margin-left: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

/* Réponse à une autre réponse */
.reviewReply.nestedReply {
  margin-left: 28px;
  padding: 10px 12px;
  background: rgba(96, 165, 250, 0.07);
  border-left: 3px solid rgba(96, 165, 250, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Texte d'une réponse directe */
.reviewReply.directReply .replyComment {
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  color: rgba(248, 251, 255, 0.95);
}

/* Texte d'une réponse à une réponse */
.reviewReply.nestedReply .replyComment {
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: rgba(220, 230, 242, 0.9);
}

/* "Réponse à pseudo" */
.reply-to-label {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.95);
}

/* Auteur/date d'une réponse directe */
.reviewReply.directReply .meta {
  font-size: 13px;
  font-weight: 700;
}

/* Auteur/date d'une sous-réponse */
.reviewReply.nestedReply .meta {
  font-size: 12px;
  opacity: 0.82;
}

/* Mobile */
@media (max-width: 720px) {
  .reviewReply.nestedReply {
    margin-left: 16px;
  }
}
/* =========================================================
   DIFFERENCE REPONSE / SOUS-REPONSE
   ========================================================= */

/* Réponse directe à l'avis */
.reviewReply.directReply {
  margin-left: 0 !important;
  padding: 12px 14px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.reviewReply.directReply > .replyComment {
  font-size: 14px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  color: #f5f8ff !important;
}

/* Zone contenant les réponses à une réponse */
.nestedReplies {
  margin-top: 12px !important;
  margin-left: 32px !important;
  padding-left: 12px !important;
  border-left: 2px solid rgba(96, 165, 250, 0.55) !important;
}

/* Réponse à une réponse */
.reviewReply.nestedReply {
  margin-top: 8px !important;
  padding: 9px 11px !important;
  background: rgba(96, 165, 250, 0.09) !important;
  border: 1px solid rgba(96, 165, 250, 0.18) !important;
  border-radius: 8px !important;
}

/* Texte "Réponse à ..." */
.reply-to-label {
  display: block !important;
  margin-bottom: 5px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  color: #93c5fd !important;
}

/* Texte d'une sous-réponse */
.reviewReply.nestedReply .replyComment {
  font-size: 12px !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: rgba(225, 235, 248, 0.88) !important;
}

/* Auteur/date de la sous-réponse */
.reviewReply.nestedReply .meta {
  font-size: 11px !important;
  font-weight: 500 !important;
  opacity: 0.8 !important;
}

@media (max-width: 720px) {
  .nestedReplies {
    margin-left: 18px !important;
  }
}

/* =========================================================
   ALIGNEMENT DES AVIS
   ========================================================= */

.reviewRow {
  text-align: left !important;
}

.reviewRow .reviewComment,
.reviewRow .comment,
.reviewRow .review-text {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

.reviewRow .signals,
.reviewRow .meta,
.reviewRow .review-actions-secondary,
.reviewRow .reviewReplies {
  text-align: left !important;
}

/* =========================================================
   ALIGNEMENT FINAL DES AVIS
   ========================================================= */

.reviewRow {
  text-align: left !important;
}

.reviewRow .reviewComment {
  display: block !important;
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 12px 0 !important;

  text-align: left !important;
  align-self: stretch !important;
}

.reviewRow .signals {
  margin-left: 0 !important;
  text-align: left !important;
}

.reviewRow .review-actions-primary,
.reviewRow .review-actions-secondary,
.reviewRow .reviewReplies {
  margin-left: 0 !important;
  text-align: left !important;
}

.reviewRow .reviewComment {
  white-space: pre-line !important;
  text-align: left !important;
  width: 100% !important;
  padding-left: 0 !important;
}