:root{
  --astx-primary:#e1b62f;      /* Guld */
  --astx-dark:#1e1d1d;         /* Nästan svart */
  --astx-text:#1e1d1d;         /* Bastext */
  --astx-muted:#6b7280;        /* Sekundär text */
  --astx-bg:#ffffff;           /* Kort/ytor */
  --astx-soft:#f6f7f8;         /* Ljus bakgrund */
  --astx-ring: rgba(225,182,47,.45); /* Focus-glow */
}

/* ===== Global feel ===== */
.astx-dashboard,
.astx-grid,
.astx-form{
  color:var(--astx-text);
}

/* ===== Auth & form cards ===== */
form.astx-form{
  width:100%;
  max-width: 540px;
  margin: clamp(16px, 4vw, 48px) auto;
  background: var(--astx-bg);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: clamp(16px, 4vw, 28px);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Headings near forms (if you add any <h2> above the form) */
.astx-form h2,
.astx-dashboard h2{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--astx-dark);
}

/* Labels & inputs */
.astx-form label{
  display:block;
  margin: 0 0 .65rem;
  font-weight: 600;
  color: var(--astx-dark);
}
.astx-form input,
.astx-form textarea{
  width:100%;
  display:block;
  padding: 14px 14px;
  border:1px solid #e5e7eb;
  border-radius: 12px;
  background:#fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .04s ease;
  font-size: 16px;
}
.astx-form textarea{ min-height: 140px; resize: vertical; }

/* Focus ring */
.astx-form input:focus,
.astx-form textarea:focus{
  border-color: var(--astx-primary);
  box-shadow: 0 0 0 6px var(--astx-ring);
}

/* Button primary */
.astx-form button{
  margin-top: .35rem;
  width:100%;
  padding: 14px 16px;
  border-radius: 12px;
  border:0;
  background: var(--astx-dark);
  color:#fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .02em;
  transition: transform .04s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 18px rgba(30,29,29,.2);
}
.astx-form button:hover{
  filter: brightness(1.04);
}
.astx-form button:active{
  transform: translateY(1px);
}

/* Sub-CTA link under forms */
.astx-form + p{
  text-align:center;
  margin: 10px 0 0;
  color: var(--astx-muted);
}
.astx-form + p a{
  color: var(--astx-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.astx-form + p a:hover{ border-color: var(--astx-primary); }

/* Messages */
.astx-msg{
  padding: .85rem 1rem;
  border-radius: 12px;
  margin: .75rem 0;
  border:1px solid transparent;
  font-weight: 600;
}
.astx-error{ background:#fff3f2; border-color:#ffd1ce; color:#7f1d1d; }
.astx-ok{ background:#ecfdf5; border-color:#bbf7d0; color:#065f46; }

/* ===== Dashboard layout ===== */
.astx-dashboard{
  width:100%;
  max-width: 1000px;
  margin: clamp(12px, 3vw, 28px) auto;
  padding: 0 clamp(12px, 3vw, 20px);
}
.astx-dashboard p{ color: var(--astx-muted); }

/* Profile form inside dashboard */
.astx-form--profile{
  max-width: 760px;
  margin: 12px 0 28px;
}
.astx-form--profile button{
  width:auto;
  background: var(--astx-primary);
  color: var(--astx-dark);
  box-shadow: 0 10px 18px rgba(225,182,47,.25);
}

/* Quick links */
.astx-dashboard ul{
  list-style:none; padding:0; margin: 10px 0 0;
  display:flex; flex-wrap:wrap; gap: 10px;
}
.astx-dashboard a{
  display:inline-block;
  padding:10px 14px;
  border-radius: 12px;
  background: var(--astx-soft);
  color: var(--astx-dark);
  text-decoration:none;
  border:1px solid #e5e7eb;
}
.astx-dashboard a:hover{
  border-color: var(--astx-primary);
  box-shadow: 0 0 0 4px var(--astx-ring) inset;
}

/* ===== Match filter + cards ===== */
.astx-filter{
  display:flex; flex-wrap:wrap; gap:10px; margin: 1rem 0 1.25rem;
}
.astx-filter input{
  flex:1 1 220px;
  padding: 12px 12px;
  border:1px solid #e5e7eb; border-radius: 12px;
}
.astx-filter button{
  flex:0 0 auto;
  padding: 12px 18px;
  border-radius: 12px; border:0;
  background: var(--astx-primary);
  color: var(--astx-dark);
  font-weight:800;
  box-shadow: 0 10px 18px rgba(225,182,47,.25);
}
.astx-filter button:hover{ filter: brightness(1.05); }

/* Card grid */
.astx-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 2.5vw, 16px);
}
@media (max-width: 600px){
  .astx-grid{ grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 601px){
  .astx-grid{ grid-template-columns: repeat(12, 1fr); }
}
.astx-card{
  grid-column: span 12;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
@media (min-width: 520px){
  .astx-card{ grid-column: span 6; }
}
@media (min-width: 900px){
  .astx-card{ grid-column: span 4; }
}
.astx-card h4{
  margin:0 0 6px; color: var(--astx-dark); font-weight:800;
}
.astx-card__meta{
  color: var(--astx-muted); font-size:.92rem; margin:.25rem 0 .5rem;
}
.astx-tags{
  display:block; margin:.35rem 0 0; font-size:.85rem; color: var(--astx-dark);
}
.astx-card__actions{
  display:flex; flex-wrap:wrap; gap:.6rem; margin-top:.7rem;
}
.astx-card__actions a{
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--astx-dark);
  color:#fff; text-decoration:none;
  font-weight:700; border:0;
}
.astx-card__actions a[href*="http"]{
  background: var(--astx-primary);
  color: var(--astx-dark);
}

/* ===== Booking embed ===== */
.astx-booking iframe{
  border-radius: 16px;
  border:1px solid #e5e7eb;
  background:#fff;
}

/* ===== Small helpers ===== */
hr{ border:0; border-top:1px solid #e5e7eb; margin: 18px 0; }
