/* TargetGSM main stylesheet */
/* ─────────────────────────
   HEADER & NAVIGATION
   ───────────────────────── */

.tg-header-wrapper{
  position: sticky;
  top: 0;
  z-index: 40;
}

/* top bar */

.tg-header-top{
  background: #0f172a;
  color: #e5e7eb;
  font-size: 12px;
}

.tg-header-top-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  gap: 12px;
}

.tg-header-top-text{
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-header-top-right{
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-header-pill{
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34,197,94,.18);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,.4);
  font-size: 11px;
}

.tg-header-top-link{
  color: #e5e7eb;
  text-decoration: none;
  opacity: .85;
}

.tg-header-top-link:hover{
  opacity: 1;
}

/* main header */

.tg-header{
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 10px 20px rgba(15,23,42,.05);
}

.tg-header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.tg-logo{
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #111827;
}

.tg-logo-mark{
  font-size: 26px;
}

.tg-logo-text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
  font-size: 19px;
}

.tg-logo-text span{
  color: #2563eb;
}

.tg-logo-text small{
  font-weight: 500;
  font-size: 11px;
  color: #6b7280;
}

/* layout nav + search + auth */

.tg-header-main{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1;
}

.tg-nav{
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link{
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
  transition: background .18s ease, color .18s ease;
}

.nav-link:hover{
  background: rgba(37,99,235,.08);
  color: #2563eb;
}

.nav-link--active{
  background: rgba(37,99,235,.12);
  color: #1d4ed8;
}

/* search */

.tg-header-search{
  flex: 1;
  max-width: 280px;
  position: relative;
}

.tg-header-search-input{
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 7px 12px;
  padding-left: 12px;
  font-size: 13px;
  outline: none;
  background: #f9fafb;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.tg-header-search-input::placeholder{
  color: #9ca3af;
}

.tg-header-search-input:focus{
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37,99,235,.25);
}

/* auth */

.tg-header-auth{
  display: flex;
  align-items: center;
  gap: 8px;
}

/* user dropdown */

.tg-header-user-dropdown{
  position: relative;
}

.tg-header-user{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 4px 10px 4px 4px;
  background: #f9fafb;
  font-size: 13px;
  cursor: pointer;
}

.tg-header-user-avatar{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.tg-header-user-name{
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #374151;
}

.tg-header-user-caret{
  font-size: 11px;
  color: #6b7280;
}

.tg-header-user-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15,23,42,.16);
  border: 1px solid #e5e7eb;
  padding: 6px 0;
  display: none;
  z-index: 50;
}

.tg-header-user-menu a{
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
}

.tg-header-user-menu a:hover{
  background: #f3f4f6;
}

.tg-header-user-menu hr{
  margin: 4px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* toggle state (setat din JS) */

.tg-header-user-dropdown.is-open .tg-header-user-menu{
  display: block;
}

/* mobile nav toggle */

.tg-nav-toggle{
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.tg-nav-toggle-bar{
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #4b5563;
}

/* ─────────────────────────
   RESPONSIVE
   ───────────────────────── */

@media (max-width: 900px){
  .tg-header-inner{
    flex-wrap: wrap;
    align-items: center;
  }

  .tg-header-main{
    flex-basis: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .tg-nav{
    position: absolute;
    inset: auto 0 auto 0;
    top: 100%;
    left: 0;
    padding: 8px 16px 10px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15,23,42,.12);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    z-index: 30;
  }

  .tg-header-main{
    position: relative;
    align-items: center;
  }

  .tg-nav-toggle{
    display: inline-flex;
  }

  .tg-header-search{
    display: none;
  }

  .tg-header-wrapper.is-nav-open .tg-nav{
    display: flex;
  }
}

@media (max-width: 640px){
  .tg-header-top-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .tg-header-auth .tg-btn-primary{
    display: none; /* pe ecrane foarte mici poți ascunde butonul mare */
  }
}
/* ─────────────────────────
   FLASH MESSAGES
   ───────────────────────── */

.tg-flash-stack{
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
}

.tg-flash{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(15,23,42,.18);
  border: 1px solid transparent;
  background: #f9fafb;
  color: #111827;
  max-width: 320px;
}

.tg-flash-icon{
  font-size: 15px;
  line-height: 1;
  margin-top: 1px;
}

.tg-flash-body{
  flex: 1;
}

.tg-flash-message{
  margin: 0;
}

/* tipuri */

.tg-flash--success{
  border-color: rgba(22,163,74,.35);
  background: #ecfdf3;
}

.tg-flash--error{
  border-color: rgba(220,38,38,.35);
  background: #fef2f2;
}

.tg-flash--warning{
  border-color: rgba(234,179,8,.5);
  background: #fffbeb;
}

.tg-flash--info{
  border-color: rgba(59,130,246,.4);
  background: #eff6ff;
}

/* buton close */

.tg-flash-close{
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.tg-flash-close:hover{
  color: #111827;
}

/* ─────────────────────────
   PAGINATION
   ───────────────────────── */

.tg-pagination{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
}

.tg-pagination-info{
  color: #6b7280;
}

.tg-pagination-list{
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tg-pagination-item{
  display: inline-flex;
}

.tg-pagination-link{
  min-width: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  color: #4b5563;
  background: #ffffff;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .06s ease;
}

.tg-pagination-link:hover{
  background: #eff6ff;
  border-color: rgba(37,99,235,.3);
  color: #2563eb;
  transform: translateY(-1px);
}

.tg-pagination-link--active{
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  font-weight: 600;
  cursor: default;
}

.tg-pagination-link--disabled{
  background: #f9fafb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: default;
  pointer-events: none;
}

.tg-pagination-link--prev,
.tg-pagination-link--next{
  padding-inline: 10px;
}

.tg-pagination-ellipsis{
  padding: 5px 7px;
  color: #9ca3af;
}

/* responsive */

@media (max-width: 640px){
  .tg-pagination{
    flex-direction: column;
    align-items: flex-start;
  }
  .tg-pagination-info{
    order: 2;
  }
  .tg-pagination-list{
    order: 1;
  }
}
/* ─────────────────────────
   BREADCRUMBS
   ───────────────────────── */

.tg-breadcrumbs{
  margin: 10px 0 12px;
  font-size: 12px;
  color: #6b7280;
}

.tg-breadcrumbs-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tg-breadcrumbs-item{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tg-breadcrumbs-item::after{
  content: "›";
  font-size: 11px;
  color: #9ca3af;
}

.tg-breadcrumbs-item:last-child::after{
  content: "";
}

.tg-breadcrumbs-link{
  text-decoration: none;
  color: #6b7280;
}

.tg-breadcrumbs-link:hover{
  color: #2563eb;
  text-decoration: underline;
}

.tg-breadcrumbs-current{
  color: #111827;
  font-weight: 500;
}
/* ─────────────────────────
   LAYOUT DE BAZĂ
   ───────────────────────── */

body{
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f3f4f6;
}

.tg-main{
  min-height: 60vh;
  padding-bottom: 40px;
}

.tg-container{
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.tg-section{
  padding: 28px 0;
}

/* ─────────────────────────
   BUTOANE GENERALE
   ───────────────────────── */

.tg-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .06s ease;
  white-space: nowrap;
}

.tg-btn-primary{
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(37,99,235,.35);
}

.tg-btn-primary:hover{
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 18px 40px rgba(30,64,175,.35);
  transform: translateY(-1px);
}

.tg-btn-ghost{
  background: rgba(255,255,255,.85);
  color: #2563eb;
  border-color: rgba(37,99,235,.26);
}

.tg-btn-ghost:hover{
  background: #eff6ff;
  border-color: rgba(37,99,235,.5);
  transform: translateY(-1px);
}

.tg-btn-small{
  padding: 6px 12px;
  font-size: 13px;
}

/* ─────────────────────────
   HERO HOME
   ───────────────────────── */

.tg-hero{
  padding: 36px 0 26px;
  background:
    radial-gradient(900px 600px at 0% -30%, rgba(59,130,246,.15), transparent 60%),
    radial-gradient(900px 600px at 100% 130%, rgba(16,185,129,.12), transparent 55%),
    #0b1120;
  color: #e5e7eb;
}

.tg-hero-inner{
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.tg-hero-text h1{
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #f9fafb;
}

.tg-hero-lead{
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5f5;
  max-width: 520px;
}

.tg-hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.tg-hero-meta{
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.tg-hero-side{
  display: flex;
  justify-content: flex-end;
}

.tg-hero-card{
  width: 100%;
  max-width: 360px;
  background: rgba(15,23,42,.88);
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.4);
  box-shadow: 0 20px 50px rgba(15,23,42,.65);
  padding: 16px 16px 14px;
}

.tg-hero-card h2{
  margin: 0 0 10px;
  font-size: 15px;
  color: #e5e7eb;
}

.tg-hero-card ul{
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #cbd5f5;
  line-height: 1.6;
}

/* ─────────────────────────
   HOME: "CHOOSE YOUR PATH"
   ───────────────────────── */

.tg-home-paths{
  padding: 26px 0 20px;
  background: #f9fafb;
}

.tg-home-paths-header{
  text-align: left;
  margin-bottom: 16px;
}

.tg-home-paths-header h2{
  margin: 0 0 4px;
  font-size: 22px;
  color: #111827;
}

.tg-home-paths-header p{
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.tg-home-paths-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.tg-home-path-card{
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 26px rgba(15,23,42,.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .08s ease, background .18s ease;
}

.tg-home-path-card h3{
  margin: 0;
  font-size: 16px;
  color: #111827;
}

.tg-home-path-card p{
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.tg-home-path-link{
  margin-top: 8px;
  font-size: 13px;
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
}

.tg-home-path-link:hover{
  text-decoration: underline;
}

/* accent diferit per card */

.tg-home-path-card--beginner{
  border-color: rgba(59,130,246,.45);
}

.tg-home-path-card--distributors{
  border-color: rgba(16,185,129,.45);
}

.tg-home-path-card--community{
  border-color: rgba(245,158,11,.55);
}

.tg-home-path-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
}

/* ─────────────────────────
   HOME: SECTIONS (ACADEMY / PRO / TOOLS)
   ───────────────────────── */

.tg-home-sections{
  padding: 24px 0 30px;
  background: #ffffff;
}

.tg-home-sections-header{
  text-align: left;
  margin-bottom: 18px;
}

.tg-home-sections-header h2{
  margin: 0 0 4px;
  font-size: 22px;
  color: #0f172a;
}

.tg-home-sections-header p{
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.tg-home-sections-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tg-home-section-card{
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 26px rgba(15,23,42,.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.tg-home-section-card h3{
  margin: 0;
  font-size: 15px;
  color: #111827;
}

.tg-home-section-card p{
  margin: 0;
  color: #4b5563;
}

.tg-home-section-list{
  margin: 4px 0 0;
  padding-left: 18px;
  color: #4b5563;
  line-height: 1.5;
}

.tg-home-section-link{
  margin-top: 10px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.tg-home-section-link:hover{
  text-decoration: underline;
}

/* accente subtile per tip */

.tg-home-section-card--academy{
  border-color: rgba(37,99,235,.4);
}

.tg-home-section-card--pro{
  border-color: rgba(16,185,129,.4);
}

.tg-home-section-card--tools{
  border-color: rgba(251,191,36,.55);
}

/* ─────────────────────────
   RESPONSIVE HOME
   ───────────────────────── */

@media (max-width: 900px){
  .tg-hero-inner{
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .tg-hero-side{
    justify-content: flex-start;
  }

  .tg-home-paths-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-home-sections-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .tg-hero{
    padding-top: 26px;
  }

  .tg-hero-text h1{
    font-size: 24px;
  }

  .tg-hero-lead{
    font-size: 14px;
  }

  .tg-home-paths-grid,
  .tg-home-sections-grid{
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─────────────────────────────────────
   TargetGSM – Auth pages (login/register/reset)
   Classes folosite în:
   - templates/auth/login_form.php
   - templates/auth/register_form.php
   - templates/auth/forgot_password_form.php
   ───────────────────────────────────── */

:root {
  --tg-primary: #2563eb;
  --tg-primary-dark: #1d4ed8;
  --tg-primary-soft: #eef2ff;
  --tg-bg-soft: #f3f4f6;
  --tg-text-main: #111827;
  --tg-text-muted: #6b7280;
  --tg-border-subtle: #e5e7eb;
  --tg-error: #dc2626;
  --tg-error-soft: #fee2e2;
}

/* Layout general pentru pagina de auth */
.auth-page {
  min-height: calc(100vh - 140px); /* lasă spațiu pentru header/footer */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 48px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.09), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.07), transparent 55%),
    var(--tg-bg-soft);
  box-sizing: border-box;
}

/* Card principal */
.auth-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(148, 163, 184, 0.08);
  padding: 26px 24px 22px;
  box-sizing: border-box;
}

/* Header din card (titlu + subtitlu) */
.auth-card-header {
  margin-bottom: 18px;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--tg-text-main);
}

.auth-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tg-text-muted);
}

/* Formular */
.auth-form {
  margin-top: 4px;
}

/* Grupuri formular */
.form-group {
  margin-bottom: 14px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Label & input */
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.form-control {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--tg-border-subtle);
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--tg-text-main);
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--tg-primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08), 0 0 0 3px rgba(37, 99, 235, 0.18);
  background-color: #ffffff;
}

/* Input invalid */
.form-control.is-invalid {
  border-color: var(--tg-error);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.10);
}

/* Erori de câmp */
.form-error {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--tg-error);
}

/* Checkbox inline */
.checkbox-inline {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--tg-text-muted);
  cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
  margin-top: 2px;
}

/* Alerta de eroare globală */
.alert {
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.alert-error {
  background-color: var(--tg-error-soft);
  color: #7f1d1d;
  border: 1px solid rgba(220, 38, 38, 0.40);
}

/* Butoane */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--tg-primary);
  color: #f9fafb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.30);
}

.btn-primary:hover {
  background-color: var(--tg-primary-dark);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.40);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.30);
}

.btn-block {
  width: 100%;
}

/* Link-uri */
.link-muted {
  color: var(--tg-text-muted);
  text-decoration: none;
}

.link-muted:hover {
  color: var(--tg-primary);
  text-decoration: underline;
}

.link-primary {
  color: var(--tg-primary);
  text-decoration: none;
  font-weight: 500;
}

.link-primary:hover {
  text-decoration: underline;
}

/* Divider auth */
.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 10px;
  font-size: 12px;
  color: var(--tg-text-muted);
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #d1d5db);
}

.auth-divider span {
  padding: 0 10px;
  white-space: nowrap;
}

/* Acțiune alternativă (link către login/register) */
.auth-alt-action {
  text-align: center;
  font-size: 13px;
  color: var(--tg-text-muted);
}

.auth-alt-action p {
  margin: 0;
}

/* Hint (ex. la forgot password) */
.auth-hint {
  margin: 6px 0 10px;
  font-size: 12px;
  color: var(--tg-text-muted);
}

/* Role options (radio cards) din register_form */
.role-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.role-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--tg-border-subtle);
  cursor: pointer;
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.role-option input[type="radio"] {
  margin-top: 4px;
}

.role-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.role-option-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--tg-text-main);
}

.role-option-desc {
  font-size: 12px;
  color: var(--tg-text-muted);
}

.role-option:hover {
  border-color: rgba(37, 99, 235, 0.60);
  background-color: var(--tg-primary-soft);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.18);
}

/* Când radio-ul e selectat – poți adăuga JS sau CSS cu :has dacă vrei mai târziu */

/* Text lateral sub card (tip) */
.auth-side-note {
  max-width: 480px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--tg-text-muted);
  text-align: center;
}

/* Responsivitate */
@media (max-width: 600px) {
  .auth-card {
    padding: 22px 18px 18px;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 20px;
  }

  .form-row-between {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-page {
    min-height: calc(100vh - 120px);
    padding-top: 24px;
  }
}

/* ─────────────────────────────────────
   TargetGSM – About page
   Scoped styles (won't affect other pages)
   ───────────────────────────────────── */

.page-about {
    background: #f9fafb;
    padding-bottom: 4rem;
}

/* Hero section */

.page-about .page-hero {
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    color: #f9fafb;
    padding: 3.5rem 0 3rem;
    margin-bottom: 2rem;
}

.page-about .page-hero .page-title {
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.page-about .page-hero .page-lead {
    max-width: 720px;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.96;
    margin: 0;
}

/* Generic container only inside About page */
.page-about .container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Sections */

.page-about .section {
    padding: 2.5rem 0;
}

.page-about .section-muted {
    background: #f3f4f6;
}

.page-about .section-outline {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

/* Grid layout */

.page-about .section-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 2rem;
    align-items: flex-start;
}

.page-about .section-block {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid #e5e7eb;
}

.page-about .section-muted .section-block {
    background: #ffffff;
}

.page-about .section-block-highlight {
    border-color: #0ea5e955;
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.18);
}

/* Typography */

.page-about h1,
.page-about h2 {
    color: #0f172a;
}

.page-about h2 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
}

.page-about p {
    margin: 0 0 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Lists */

.page-about ul {
    margin: 0.4rem 0 0.2rem 1.1rem;
    padding: 0;
}

.page-about li {
    margin-bottom: 0.35rem;
    color: #4b5563;
}

.page-about .feature-list {
    list-style: none;
    margin-left: 0;
}

.page-about .feature-list li {
    position: relative;
    padding-left: 1.4rem;
}

.page-about .feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #0ea5e9;
}

/* Links inside About */

.page-about a {
    color: #0ea5e9;
    text-decoration: none;
}

.page-about a:hover {
    text-decoration: underline;
}

/* Small helper for “highlighted” bullets etc. */

.page-about strong {
    color: #111827;
}

/* Responsive tweaks */

@media (max-width: 900px) {
    .page-about .page-hero {
        padding: 2.5rem 0 2.25rem;
    }

    .page-about .page-hero .page-title {
        font-size: 1.8rem;
    }

    .page-about .section-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .page-about .page-hero .page-lead {
        font-size: 0.95rem;
    }

    .page-about .section-block {
        padding: 1.4rem 1.1rem;
    }
}




/* ─────────────────────────────────────────
   TargetGSM – Main theme
   Light, clean, mobile-first
   ───────────────────────────────────────── */

/* ---------- Base & tokens ---------- */
:root {
  --tg-bg: #f5f7fb;
  --tg-bg-alt: #ffffff;
  --tg-bg-muted: #eef2ff;

  --tg-border-subtle: #e2e8f0;
  --tg-border-strong: #cbd5f5;

  --tg-text-main: #0f172a;
  --tg-text-muted: #64748b;
  --tg-text-soft: #94a3b8;

  --tg-primary: #2563eb;
  --tg-primary-soft: rgba(37, 99, 235, 0.12);
  --tg-primary-strong: #1d4ed8;

  --tg-secondary: #0f766e;
  --tg-secondary-soft: rgba(15, 118, 110, 0.12);

  --tg-accent: #f97316;
  --tg-accent-soft: rgba(249, 115, 22, 0.12);

  --tg-radius-sm: 6px;
  --tg-radius-md: 10px;
  --tg-radius-lg: 18px;

  --tg-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --tg-shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.06);

  --tg-container-max: 1120px;
  --tg-gap: 1.5rem;
}

/* ---------- Reset simplu & body ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tg-text-main);
  background: var(--tg-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Links & text ---------- */
a {
  color: var(--tg-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 0.75rem;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5rem;
  font-weight: 650;
  color: var(--tg-text-main);
}

h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}
h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
}
h3 {
  font-size: 1.1rem;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--tg-container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page {
  padding-bottom: 3rem;
}

/* Pentru pagini cu background full-width */
.page-hero {
  padding: 3rem 0 2.5rem;
}
.page-hero .container {
  position: relative;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease,
              transform 0.08s ease-out;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}

/* Primary */
.btn-primary {
  background: var(--tg-primary);
  color: #fff;
  border-color: var(--tg-primary);
  box-shadow: var(--tg-shadow-soft);
}
.btn-primary:hover {
  background: var(--tg-primary-strong);
  border-color: var(--tg-primary-strong);
  text-decoration: none;
}

/* Secondary */
.btn-secondary {
  background: #fff;
  color: var(--tg-secondary);
  border-color: var(--tg-secondary);
  box-shadow: var(--tg-shadow-subtle);
}
.btn-secondary:hover {
  background: var(--tg-secondary-soft);
  text-decoration: none;
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--tg-text-muted);
  border-color: var(--tg-border-subtle);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--tg-primary-soft);
  color: var(--tg-primary);
}

/* Small buttons (optional) */
.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.82rem;
  background: #f9fafb;
  border-bottom: 1px solid var(--tg-border-subtle);
}
.breadcrumbs .container {
  padding: 0.55rem 1.25rem;
}
.breadcrumbs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--tg-text-soft);
}
.breadcrumbs-item:not(:last-child)::after {
  content: "›";
  font-size: 0.8em;
  color: var(--tg-text-soft);
}
.breadcrumbs-item a {
  color: var(--tg-text-muted);
}
.breadcrumbs-item[aria-current="page"] span {
  font-weight: 600;
  color: var(--tg-text-main);
}

/* ---------- Sections ---------- */
.section {
  padding: 2.5rem 0;
}

.section-muted {
  background: #f9fafb;
  border-top: 1px solid var(--tg-border-subtle);
  border-bottom: 1px solid var(--tg-border-subtle);
}

.section-outline {
  background: #fff;
  border-top: 1px solid var(--tg-border-subtle);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  text-align: left;
}
.section-header p {
  color: var(--tg-text-muted);
  margin-top: 0.25rem;
}

/* Grid for split sections (2 coloane) */
.section-grid {
  display: grid;
  gap: var(--tg-gap);
}
.section-block {
  background: var(--tg-bg-alt);
  border-radius: var(--tg-radius-md);
  border: 1px solid var(--tg-border-subtle);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--tg-shadow-subtle);
}
.section-block-highlight {
  border-color: var(--tg-primary-soft);
  background: #fefefe;
}

/* Feature list bullets */
.feature-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.feature-list li {
  margin-bottom: 0.4rem;
  color: var(--tg-text-muted);
}

/* ---------- PAGE HERO – generic ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(37, 99, 235, 0.15), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(14, 116, 144, 0.07), transparent 55%),
    linear-gradient(120deg, #ffffff 0%, #eff4ff 60%, #e3f2fd 100%);
}
.page-title {
  margin-bottom: 0.6rem;
}
.page-lead {
  max-width: 640px;
  color: var(--tg-text-muted);
  margin-bottom: 1.3rem;
}
.page-hero-meta {
  font-size: 0.9rem;
  color: var(--tg-text-soft);
  margin-top: 0.8rem;
}
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Variant specific pentru Start Here */
.page-hero--start-here .page-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
}
.page-hero--start-here .page-lead {
  font-size: 1rem;
}

/* ---------- Cards generic ---------- */
.cards-grid {
  display: grid;
  gap: var(--tg-gap);
}
.cards-grid--start-links {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border-radius: var(--tg-radius-md);
  border: 1px solid var(--tg-border-subtle);
  padding: 1.1rem 1.2rem 1.1rem;
  box-shadow: var(--tg-shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card h3 {
  margin-bottom: 0.35rem;
}
.card p {
  color: var(--tg-text-muted);
}
.card-cta {
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Card link hover */
.card.card-link {
  position: relative;
  transition: box-shadow 0.18s ease, transform 0.08s ease,
              border-color 0.18s ease, background-color 0.18s ease;
}
.card.card-link:hover {
  border-color: var(--tg-primary-soft);
  box-shadow: var(--tg-shadow-soft);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---------- Start Here – steps ---------- */
.steps-grid {
  display: grid;
  gap: var(--tg-gap);
  margin-top: 1.5rem;
}
.step-card {
  background: #fff;
  border-radius: var(--tg-radius-lg);
  border: 1px solid var(--tg-border-subtle);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--tg-shadow-subtle);
  position: relative;
  overflow: hidden;
}
.step-card h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}
.step-card p {
  color: var(--tg-text-muted);
}
.step-label {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tg-primary);
  background: var(--tg-primary-soft);
}
.step-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Mic accent în colț */
.step-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.12), transparent 60%);
}

/* ---------- Community / callout combos ---------- */
.section-start-community .section-grid {
  align-items: flex-start;
}
.section-start-community .section-block {
  background: #fff;
}

/* ---------- Flash messages (dacă folosești templates/_flash.php) ---------- */
.flash-messages {
  margin: 0;
  padding: 0.75rem 0;
}
.flash-message {
  margin: 0.2rem 0;
  padding: 0.6rem 0.85rem;
  border-radius: var(--tg-radius-sm);
  font-size: 0.9rem;
}
.flash-message--success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.flash-message--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.flash-message--info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ---------- Pagination component ---------- */
.pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.pagination-list {
  list-style: none;
  display: flex;
  gap: 0.3rem;
  padding: 0;
  margin: 0;
}
.pagination-item a,
.pagination-item span {
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--tg-border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--tg-text-muted);
  background: #fff;
}
.pagination-item--active span {
  border-color: var(--tg-primary);
  background: var(--tg-primary);
  color: #fff;
}

/* ---------- Basic responsive ---------- */
@media (min-width: 768px) {
  .section-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Small helpers ---------- */
.text-muted {
  color: var(--tg-text-muted);
}
.text-soft {
  color: var(--tg-text-soft);
}
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }


/* ─────────────────────────────────────────
   Tools page – specific styling
   (add this at the end of main.css)
   ───────────────────────────────────────── */

/* Hero pentru pagina de tools */
.page-tools .page-hero {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 50%, #e0f2fe 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.page-tools .page-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.page-tools .page-lead {
  max-width: 720px;
}

/* Carduri pentru unelte (index tools) */
.page-tools .cards-grid--start-links {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.page-tools .card {
  position: relative;
  padding-top: 1.3rem;
  padding-bottom: 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.page-tools .card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.page-tools .card h3 a {
  color: var(--tg-text-main, #0f172a);
  text-decoration: none;
}
.page-tools .card h3 a:hover {
  text-decoration: underline;
}

/* Accent subtil în colț pentru cards */
.page-tools .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.9rem;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--tg-primary, #2563eb),
    var(--tg-secondary, #0f766e)
  );
  opacity: 0.85;
}

/* CTA din card */
.page-tools .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.8rem;
  color: var(--tg-primary, #2563eb);
}
.page-tools .card-cta::after {
  content: "→";
  font-size: 0.9em;
}

/* Hover pe cardurile cu link */
.page-tools .card.card-link {
  cursor: pointer;
  transition:
    transform 0.08s ease-out,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}
.page-tools .card.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.32);
  background-color: #ffffff;
}

/* Secțiunile explicative de jos */
.page-tools .section-grid .section-block {
  border-radius: 16px;
}

.page-tools .section-block-highlight {
  border-color: rgba(56, 189, 248, 0.35);
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(56, 189, 248, 0.16), transparent 60%),
    #ffffff;
}

/* Responsive mici ajustări */
@media (max-width: 767.98px) {
  .page-tools .page-hero {
    padding-top: 2.4rem;
    padding-bottom: 2.2rem;
  }

  .page-tools .page-lead {
    font-size: 0.95rem;
  }
}


/* ─────────────────────────────────────────
   Profit calculator – layout & form
   ───────────────────────────────────────── */

.page-profit-calculator .section-block {
  border-radius: 16px;
}

.page-profit-calculator .section-block-highlight {
  border-color: rgba(22, 163, 74, 0.28);
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(22, 163, 74, 0.14), transparent 60%),
    #ffffff;
}

/* Form layout */
.tg-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tg-field,
.tg-fieldset {
  margin-bottom: 0.4rem;
}

.tg-field label,
.tg-fieldset legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--tg-text-main, #0f172a);
}

.tg-fieldset {
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  border-radius: 12px;
  padding: 0.8rem 0.9rem 0.9rem;
}

.tg-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--tg-text-soft, #94a3b8);
}

/* Inputs */
.tg-field input,
.tg-field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  padding: 0.45rem 0.65rem;
  font-size: 0.95rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.tg-field input:focus,
.tg-field select:focus {
  border-color: var(--tg-primary, #2563eb);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

/* Input cu sufix (valută) */
.tg-field-input-with-suffix {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  overflow: hidden;
  background: #fff;
}
.tg-field-input-with-suffix input {
  border: none;
  border-radius: 0;
  flex: 1;
  padding-right: 0.4rem;
}
.tg-field-input-with-suffix .suffix {
  padding: 0 0.7rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--tg-text-soft, #94a3b8);
  border-left: 1px solid var(--tg-border-subtle, #e2e8f0);
  background: #f8fafc;
}

/* Inline / two-column fields */
.tg-field--two {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .tg-field--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Help text */
.field-help {
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* Actions */
.tg-form-actions {
  margin-top: 0.6rem;
}

/* Profit highlight colors */
.profit-positive {
  color: #166534;
}
.profit-negative {
  color: #b91c1c;
}



/* Pricing calculator – subtile tweaks */
.page-pricing-calculator .section-block {
  border-radius: 16px;
}

.page-pricing-calculator .section-block-highlight {
  border-color: rgba(245, 158, 11, 0.3);
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(245, 158, 11, 0.15), transparent 60%),
    #ffffff;
}
/* ─────────────────────────────────────────
   Tools → Starter kits page
   (/tools/starter-kits.php)
   ───────────────────────────────────────── */

/* Hero cu un vibe de “kituri / colecții” */
.page-starter-kits .page-hero {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(129, 140, 248, 0.16), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #eef2ff 45%, #ecfeff 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.page-starter-kits .page-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.page-starter-kits .page-lead {
  max-width: 780px;
}

/* Blocurile de conținut */
.page-starter-kits .section-block {
  border-radius: 16px;
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.page-starter-kits .section-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

/* Highlight panels (affiliate ideas etc.) */
.page-starter-kits .section-block-highlight {
  border-color: rgba(56, 189, 248, 0.45);
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(56, 189, 248, 0.20), transparent 65%),
    #f8fafc;
}

/* Carduri link (secțiunile "Connect kits with calculators") */
.page-starter-kits .cards-grid--start-links {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-starter-kits .card {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  padding-top: 1.2rem;
  padding-bottom: 1.1rem;
}

.page-starter-kits .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.9rem;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--tg-primary, #2563eb),
    #06b6d4
  );
  opacity: 0.9;
}

.page-starter-kits .card h3 a {
  text-decoration: none;
  color: var(--tg-text-main, #0f172a);
}
.page-starter-kits .card h3 a:hover {
  text-decoration: underline;
}

.page-starter-kits .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.7rem;
  color: var(--tg-primary, #2563eb);
}
.page-starter-kits .card-cta::after {
  content: "→";
  font-size: 0.9em;
}

/* Hover pe cardurile cu link */
.page-starter-kits .card.card-link {
  cursor: pointer;
  transition:
    transform 0.08s ease-out,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}
.page-starter-kits .card.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.45);
  background-color: #ffffff;
}

/* Listă cu bullets – mai aerisită */
.page-starter-kits .feature-list li + li {
  margin-top: 0.25rem;
}

/* ───── Table – quick overview kits ───── */
.table-wrapper {
  margin-top: 1rem;
  border-radius: 14px;
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  background: #ffffff;
  overflow-x: auto;
}

.tg-table--kits {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  font-size: 0.9rem;
}

.tg-table--kits thead {
  background: #f1f5f9;
}

.tg-table--kits th,
.tg-table--kits td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.tg-table--kits th {
  font-weight: 600;
  color: var(--tg-text-main, #0f172a);
  white-space: nowrap;
}

.tg-table--kits tbody tr:nth-child(odd) {
  background-color: #ffffff;
}
.tg-table--kits tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.tg-table--kits tbody tr:hover {
  background-color: #eff6ff;
}

/* Mic spacing extra pentru paragraf sub tabel */
.page-starter-kits .mt-2 {
  margin-top: 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .page-starter-kits .page-hero {
    padding-top: 2.4rem;
    padding-bottom: 2.1rem;
  }

  .page-starter-kits .page-lead {
    font-size: 0.95rem;
  }

  .tg-table--kits th,
  .tg-table--kits td {
    padding: 0.45rem 0.7rem;
  }
}

/* ─────────────────────────────────────────
   Tools → Downloads page
   (/tools/downloads.php)
   ───────────────────────────────────────── */

/* Hero */
.page-downloads .page-hero {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(52, 211, 153, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(59, 130, 246, 0.14), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #ecfeff 45%, #eff6ff 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.page-downloads .page-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.page-downloads .page-lead {
  max-width: 780px;
}

/* Blocuri principale */
.page-downloads .section-block {
  border-radius: 16px;
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.page-downloads .section-block-highlight {
  border-color: rgba(34, 197, 94, 0.45);
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(34, 197, 94, 0.18), transparent 65%),
    #f8fafc;
}

/* Grid pentru cardurile de download */
.page-downloads .cards-grid--downloads {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Card download */
.page-downloads .card-download {
  position: relative;
  padding-top: 1.2rem;
  padding-bottom: 1.1rem;
}

/* Accent sus pe card */
.page-downloads .card-download::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.9rem;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--tg-primary, #2563eb),
    #22c55e
  );
  opacity: 0.9;
}

.page-downloads .card-download h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

/* Tag-uri (Beginner / EN / Admin etc.) */
.page-downloads .download-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.page-downloads .download-tags .tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #ecfeff;
  color: #0f766e;
  border: 1px solid rgba(45, 212, 191, 0.6);
}

/* Lista fișiere (PDF / DOCX / XLSX) */
.page-downloads .download-files {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.page-downloads .download-files li {
  margin: 0;
}

/* Buton download */
.page-downloads .download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  background: #f9fafb;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--tg-text-main, #0f172a);
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    transform 0.08s ease-out,
    box-shadow 0.12s ease;
}

/* format (PDF / DOCX) badge */
.page-downloads .download-format {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: #0f172a;
  color: #f9fafb;
}

/* text "Download" */
.page-downloads .download-text {
  font-weight: 500;
}

/* Hover & focus */
.page-downloads .download-link:hover,
.page-downloads .download-link:focus-visible {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

/* Notă mică sub card */
.page-downloads .download-note {
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* Code block din panoul "Where to store real files" */
.page-downloads pre {
  margin-top: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.75rem;
  overflow-x: auto;
}
.page-downloads pre code {
  background: transparent;
  padding: 0;
}

/* Carduri de cross-link (Tools / Start-here) */
.page-downloads .cards-grid--start-links {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-downloads .card {
  border-radius: 14px;
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.page-downloads .card.card-link {
  position: relative;
  padding-top: 1.2rem;
  padding-bottom: 1.1rem;
  cursor: pointer;
  transition:
    transform 0.08s ease-out,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.page-downloads .card.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  border-color: rgba(59, 130, 246, 0.45);
  background-color: #ffffff;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .page-downloads .page-hero {
    padding-top: 2.4rem;
    padding-bottom: 2.1rem;
  }

  .page-downloads .page-lead {
    font-size: 0.95rem;
  }

  .page-downloads .download-files {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
/* ─────────────────────────────────────────
   Account → Dashboard
   (/account/dashboard.php)
   ───────────────────────────────────────── */

/* Hero account */
.page-account-dashboard .page-hero--account {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(16, 185, 129, 0.16), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #eef2ff 40%, #ecfeff 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.page-account-dashboard .page-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.page-account-dashboard .page-lead {
  max-width: 820px;
}

/* Badge rol */
.badge-role {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.6rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}

.badge-role-beginner {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.5);
}
.badge-role-technician {
  background: #ecfdf3;
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.6);
}
.badge-role-service {
  background: #fef9c3;
  color: #854d0e;
  border-color: rgba(245, 158, 11, 0.7);
}
.badge-role-distributor {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.7);
}
.badge-role-admin {
  background: #fef2f2;
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.8);
}

/* ───── Stats cards row ───── */
.cards-grid--stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.page-account-dashboard .card-stat {
  border-radius: 16px;
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  position: relative;
}

/* mic accent sus pe card */
.page-account-dashboard .card-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.9rem;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--tg-primary, #2563eb),
    #22c55e
  );
  opacity: 0.9;
}

.page-account-dashboard .card-stat h3 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.card-stat__value {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0.1rem 0 0.15rem;
  color: var(--tg-text-main, #0f172a);
}

.card-stat__hint {
  font-size: 0.8rem;
  color: var(--tg-text-soft, #64748b);
  margin-bottom: 0.5rem;
}

/* Notificări – culoare ușor diferită */
.page-account-dashboard .card-stat--notifications::before {
  background: linear-gradient(90deg, #f97316, #ec4899);
}

/* CTA în carduri */
.page-account-dashboard .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tg-primary, #2563eb);
}
.page-account-dashboard .card-cta::after {
  content: "→";
  font-size: 0.9em;
}

/* Hover subtil pe cardurile de stats */
.page-account-dashboard .card-stat {
  transition:
    transform 0.08s ease-out,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.page-account-dashboard .card-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}

/* ───── Role sections (cards-grid--role) ───── */
.cards-grid--role {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.page-account-dashboard .section-block {
  border-radius: 16px;
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.page-account-dashboard .section-block-highlight {
  border-color: rgba(56, 189, 248, 0.45);
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(56, 189, 248, 0.18), transparent 65%),
    #f8fafc;
}

/* Carduri link în role blocks */
.page-account-dashboard .cards-grid--role .card {
  border-radius: 14px;
  border: 1px solid var(--tg-border-subtle, #e2e8f0);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  position: relative;
}

.page-account-dashboard .cards-grid--role .card h3 a {
  text-decoration: none;
  color: var(--tg-text-main, #0f172a);
}
.page-account-dashboard .cards-grid--role .card h3 a:hover {
  text-decoration: underline;
}

.page-account-dashboard .cards-grid--role .card.card-link {
  cursor: pointer;
  transition:
    transform 0.08s ease-out,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}
.page-account-dashboard .cards-grid--role .card.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border-color: rgba(37, 99, 235, 0.45);
  background-color: #ffffff;
}

/* Spacing util */
.page-account-dashboard .mt-2 {
  margin-top: 0.5rem;
}

/* Responsive mici ajustări */
@media (max-width: 767.98px) {
  .page-account-dashboard .page-hero--account {
    padding-top: 2.3rem;
    padding-bottom: 2.1rem;
  }

  .page-account-dashboard .page-lead {
    font-size: 0.95rem;
  }

  .card-stat__value {
    font-size: 1.9rem;
  }
}
/* ──────────────────────────────────────────
   Community – Ask question page
   (/community/questions/ask.php)
   ────────────────────────────────────────── */

body.page-community-ask {
  background: #f3f4f6; /* gray-100 */
}

/* Wrapper general */
.page-community-ask main {
  padding: 28px 0 32px;
}

.page-community-ask .container {
  max-width: 880px;
}

/* Header / intro deasupra formularului */
.community-ask-header {
  margin-bottom: 18px;
}

.community-ask-header h1,
.community-ask-header h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.community-ask-header p {
  font-size: 14px;
  color: #6b7280;
  max-width: 640px;
}

/* Card formular */
.community-ask-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  padding: 18px 20px 20px;
}

/* Grupuri de câmpuri */
.community-ask-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Câmp generic */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.form-label span.required {
  color: #b91c1c;
}

.form-control,
.community-ask-card input[type="text"],
.community-ask-card input[type="email"],
.community-ask-card textarea,
.community-ask-card select {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #111827;
  background-color: #ffffff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  width: 100%;
  box-sizing: border-box;
}

.community-ask-card textarea {
  min-height: 160px;
  resize: vertical;
}

.community-ask-card input[type="text"]:focus,
.community-ask-card input[type="email"]:focus,
.community-ask-card textarea:focus,
.community-ask-card select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
  background-color: #ffffff;
}

/* Hint / ajutor sub label */
.form-hint {
  font-size: 12px;
  color: #9ca3af;
}

/* Erori */
.form-error {
  font-size: 12px;
  color: #b91c1c;
  margin-top: 2px;
}

/* Tag-uri */
.community-tags-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.community-tags-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  background: #f3f4f6;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Zonă acțiuni (submit / cancel) */
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Buton principal */
.btn,
.button,
.community-ask-card button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

.community-ask-card button[type="submit"]:hover,
.btn:hover {
  background: #1d4ed8;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* Buton secundar (link Înapoi la întrebări) */
.btn-secondary {
  background: #ffffff;
  color: #374151;
  border-color: #d1d5db;
}

.btn-secondary:hover {
  background: #f9fafb;
}

/* Mic block de „good practices” în lateral / sub formular (dacă îl folosești) */
.community-ask-tips {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed #cbd5f5;
  background: #eff6ff;
  font-size: 13px;
  color: #1f2937;
}

.community-ask-tips ul {
  padding-left: 18px;
  margin: 6px 0 0;
}

.community-ask-tips li {
  margin-bottom: 4px;
}

/* ───────── Responsive ───────── */

@media (max-width: 768px) {
  .page-community-ask main {
    padding: 22px 0 24px;
  }

  .community-ask-card {
    padding: 14px 14px 16px;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
