/* -------------------------------------------------
   Portal additions on top of landing theme (RTL)
   ------------------------------------------------- */

/* Keep the same color system as /static/landing/styles.css */

:root{
  --danger:#ff6b6b;
  --warning:#F7C948;
  --ok:#2ec4b6;
}

/* Generic page sections */
.page{
  padding: 18px 0 58px;
}

.page .section{
  padding: 34px 0;
}

/* Typography helpers */
.h1{ margin: 0 0 10px; font-size: 28px; }
.h2{ margin: 0 0 10px; font-size: 22px; }
.muted{ color: var(--muted); }

/* Alerts */
.alert{
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  line-height: 1.75;
}
.alert + .alert{ margin-top: 10px; }
.alert-danger{ border-color: rgba(255,107,107,.45); background: rgba(255,107,107,.08); }
.alert-warning{ border-color: rgba(247,201,72,.45); background: rgba(247,201,72,.10); }
.alert-ok{ border-color: rgba(46,196,182,.45); background: rgba(46,196,182,.08); }

/* Forms */
.form-card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

label{
  display:block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

input, select, textarea{
  width: 100%;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
  color: var(--text);
  outline: none;
}

input::placeholder, textarea::placeholder{ color: rgba(255,255,255,.45); }

input:focus, select:focus, textarea:focus{
  border-color: rgba(247,201,72,.55);
  box-shadow: 0 0 0 6px rgba(247,201,72,.12);
}

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

/* Layout helpers */
.grid2{
  display:grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.grid3{
  display:grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px){
  .grid2{ grid-template-columns: 1fr 1fr; }
  .grid3{ grid-template-columns: repeat(3, 1fr); }
}

/* Badges */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
}
.badge.ok{ border-color: rgba(46,196,182,.45); }
.badge.bad{ border-color: rgba(255,107,107,.45); }

/* Materials list */
.list{
  display:grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px){
  .list{ grid-template-columns: 1fr 1fr; }
}

.list-item{
  display:flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 16px;
}

.item-title{
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.5;
}

.item-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
}

/* Tables (admin) */
.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.table th, .table td{
  text-align: right;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
}

.table thead th{
  font-weight: 900;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.04);
}

/* Small link buttons */
.btn--sm{ padding: 8px 12px; font-size: 13px; }

/* -------------------------------------------------
   Fixes (dropdown readability + overlay safety)
   ------------------------------------------------- */

/* Decorative layers must never block interactions */
.bg-orb, .dots{ pointer-events:none; }

/* Ensure main content always sits above decorations */
.page{ position: relative; z-index: 1; }

/* Improve select/option contrast (Edge/Windows) */
select{
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
}

/* Many browsers ignore option styling, but Edge applies it */
select option{
  background: #04071b;
  color: #ffffff;
}

/* -------------------------------------------------
   Smart services visibility: show but lock when inactive
   ------------------------------------------------- */

.nav a.nav-locked{
  opacity: .55;
  border-color: transparent;
}

.nav a.nav-locked:hover{
  color: var(--muted);
  border-color: transparent;
}

.card.is-locked{
  opacity: .70;
}

/* -------------------------------------------------
   Pricing (offers)
   ------------------------------------------------- */

.pricing-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px){
  .pricing-grid{ grid-template-columns: repeat(4, 1fr); }
}

.price-card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
  display:flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card.is-highlight{
  border-color: rgba(247,201,72,.40);
  box-shadow: 0 14px 36px rgba(247,201,72,.10), 0 10px 26px rgba(0,0,0,.12);
}

.price-card__top{ margin-bottom: 12px; }

.price-card__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(247,201,72,.16);
  border: 1px solid rgba(247,201,72,.35);
  color: #fff;
  margin-bottom: 10px;
}

.price-card__title{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.price-card__price{
  display:flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 6px;
}

.price-card__amount{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .2px;
}

.price-card__currency{
  font-size: 14px;
  color: rgba(255,255,255,.70);
  font-weight: 800;
}

.price-card__meta{
  color: rgba(255,255,255,.70);
  font-size: 13px;
  font-weight: 700;
}

.price-card__features{
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  flex: 1;
}

.price-card__features-title{
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 8px;
}

.price-card__list{
  margin: 0;
  padding: 0 18px 0 0;
  color: rgba(255,255,255,.86);
  line-height: 1.8;
  font-size: 13px;
}

.price-card__list li{ margin: 2px 0; }

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