/* =========================================================
   Amelia Staff Gallery — asg.css
   ========================================================= */

:root {
    --asg-ink:    #1a1a2e;
    --asg-primary: #689445;
    --asg-secondary: #385f99;
    --asg-cream:  #f7f4ef;
    --asg-white:  #ffffff;
    --asg-gold:   #c9a84c;
    --asg-primary: #689445;
    --asg-secondary: #385f99;
    --asg-primary: #689445;
    --asg-secondary: #385f99;
    --asg-accent: #2d4a7a;
    --asg-muted:  #8a8070;
    --asg-border: #e5dfd4;
    --asg-danger: #d94f4f;
    --asg-radius: 12px;
    --asg-shadow: 0 4px 24px rgba(0,0,0,0.08);
    --asg-font:   'DM Sans', sans-serif;
    --asg-serif:  'DM Serif Display', serif;
}

/* ─── RESET ────────────────────────────────────────────── */
.asg-profile-wrap *, .asg-dashboard-wrap * {
    box-sizing: border-box;
}

/* ─── SHARED BUTTONS ───────────────────────────────────── */
.asg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 8px;
    border: none;
    font-family: var(--asg-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, transform .1s, opacity .2s;
    text-decoration: none;
}
.asg-btn:hover { transform: translateY(-1px); }
.asg-btn:active { transform: none; }
.asg-btn--primary  { background: #689445; color: #fff; }
.asg-btn--primary:hover { background: #385f99; color: #fff; }
.asg-btn--ghost    { background: transparent; border: 1.5px solid var(--asg-border); color: var(--asg-ink); }
.asg-btn--ghost:hover { border-color: var(--asg-accent); color: var(--asg-accent); }
.asg-btn--sm       { padding: 5px 14px; font-size: 12px; }
.asg-btn--save     { background: #689445; color: white; }
.asg-btn--danger   { background: transparent; border: 1.5px solid var(--asg-danger); color: var(--asg-danger); }
.asg-btn--danger:hover { background: var(--asg-danger); color: white; }
.asg-btn:disabled  { opacity: .5; cursor: not-allowed; transform: none; }

/* ─── FORM INPUTS ──────────────────────────────────────── */
.asg-input {
    width: 100%;
    background: var(--asg-white);
    border: 1.5px solid var(--asg-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--asg-font);
    font-size: 14px;
    color: var(--asg-ink);
    outline: none;
    transition: border-color .2s;
    display: block;
}
.asg-input:focus { border-color: var(--asg-gold); }
.asg-textarea { resize: vertical; min-height: 80px; }
.asg-label { display: block; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; color: var(--asg-muted); margin-bottom: 8px; margin-top: 20px; }

/* ─── TAGS / BADGES ────────────────────────────────────── */
.asg-tag {
    display: inline-block;
    background: rgba(45,74,122,.1);
    color: var(--asg-accent);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 500;
    margin: 3px 4px 3px 0;
}

/* ─── SECTION TITLE ────────────────────────────────────── */
.asg-section {
  margin: 40px 0;
  background: #fff;
  border: 1px solid #e8e2d9;
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.asg-section-title {
  font-family: var(--asg-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--asg-ink);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid #689445;
  display: flex;
  align-items: center;
  gap: 10px;
}
.asg-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: #689445;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ─── NOTICE ────────────────────────────────────────────── */
.asg-notice { padding: 32px; border-radius: var(--asg-radius); margin: 40px auto; max-width: 520px; text-align: center; }
.asg-notice--error { background: #fff5f5; border: 1px solid #fecaca; }

/* ═══════════════════════════════════════════════════════════
   PUBLIC PROFILE
═══════════════════════════════════════════════════════════ */

.asg-profile-wrap {
    font-family: var(--asg-font);
    color: var(--asg-ink);
}

/* Hero */
.asg-profile-hero {
  background: var(--asg-ink);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
.asg-profile-hero.has-cover {
  background-color: #111;
  padding: 0;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}
.asg-profile-hero.has-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 40%, rgba(0,0,0,.2) 100%);
  z-index: 1;
}
.asg-profile-hero.has-cover .asg-profile-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 48px 24px 36px;
}
.asg-profile-hero.has-cover .asg-profile-name { color: #fff; }
.asg-profile-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}
.asg-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid rgba(201,168,76,.35);
    box-shadow: 0 0 0 8px rgba(201,168,76,.08);
}
.asg-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.asg-profile-eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--asg-gold);
    margin-bottom: 6px;
}
.asg-profile-name {
    font-family: var(--asg-serif);
    font-size: 40px;
    color: white;
    margin: 0 0 12px;
}
.asg-profile-contact {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    margin: 4px 0;
}
.asg-profile-contact a { color: rgba(255,255,255,.6); text-decoration: none; }
.asg-profile-contact a:hover { color: var(--asg-gold); }

/* Body */
.asg-profile-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 16px 24px 80px;
}
.asg-bio-text { font-size: 16px; line-height: 1.8; color: #444; }

/* Services */
.asg-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.asg-service-card {
    background: var(--asg-cream);
    border-radius: var(--asg-radius);
    padding: 20px;
    border: 1px solid var(--asg-border);
}
.asg-service-card h4 { margin: 0 0 8px; font-size: 16px; }
.asg-service-card p  { font-size: 13px; color: var(--asg-muted); margin: 0 0 14px; }
.asg-service-meta    { display: flex; gap: 10px; }
.asg-price    { font-weight: 700; color: var(--asg-accent); }
.asg-duration { font-size: 12px; background: var(--asg-border); border-radius: 20px; padding: 2px 10px; color: var(--asg-muted); }

/* Gallery grid — public */
.asg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.asg-gallery-item {
    border-radius: var(--asg-radius);
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    background: var(--asg-cream);
    border: 1px solid var(--asg-border);
    transition: transform .2s, box-shadow .2s;
}
.asg-gallery-item:hover { transform: translateY(-4px); box-shadow: var(--asg-shadow); }
.asg-gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.asg-gallery-caption {
    padding: 12px 14px;
    background: white;
}
.asg-gallery-caption strong { font-size: 14px; display: block; margin-bottom: 4px; }
.asg-gallery-caption p { font-size: 12px; color: var(--asg-muted); margin: 0; }

/* Lightbox */
.asg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.asg-lightbox.active { display: flex; }
.asg-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.asg-lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    opacity: .7;
}
.asg-lightbox-close:hover { opacity: 1; }

/* Empty */
.asg-empty-gallery { color: var(--asg-muted); font-style: italic; }

/* ─── STAFF LIST GRID ───────────────────────────────────── */
.asg-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    font-family: var(--asg-font);
}
.asg-staff-card {
    background: var(--asg-white);
    border: 1px solid var(--asg-border);
    border-radius: var(--asg-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--asg-ink);
    transition: box-shadow .2s, transform .2s;
    display: block;
}
.asg-staff-card:hover { transform: translateY(-4px); box-shadow: var(--asg-shadow); }
.asg-staff-avatar img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.asg-staff-info { padding: 16px; }
.asg-staff-info h3 { margin: 0 0 6px; font-size: 17px; font-family: var(--asg-serif); }
.asg-staff-bio   { font-size: 13px; color: var(--asg-muted); margin: 0 0 10px; }
.asg-staff-works { font-size: 12px; background: rgba(201,168,76,.15); color: #8a6a1a; border-radius: 20px; padding: 3px 12px; }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════════════════════ */

.asg-dashboard-wrap {
    display: flex;
    min-height: 100vh;
    font-family: var(--asg-font);
    background: var(--asg-cream);
}

/* Sidebar */
.asg-dash-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--asg-ink);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.asg-dash-profile-card {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.asg-dash-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(201,168,76,.4);
    margin-bottom: 12px;
}
.asg-dash-profile-card h3 { color: white; font-size: 16px; margin: 0 0 4px; font-family: var(--asg-serif); }
.asg-dash-profile-card p  { color: rgba(255,255,255,.45); font-size: 12px; margin: 0 0 14px; word-break: break-all; }

.asg-dash-nav { display: flex; flex-direction: column; gap: 4px; }
.asg-dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: 14px;
    transition: background .15s, color .15s;
}
.asg-dash-nav-item:hover,
.asg-dash-nav-item.active {
    background: rgba(255,255,255,.08);
    color: white;
}

/* Main */
.asg-dash-main {
    flex: 1;
    padding: 40px 48px;
    overflow-y: auto;
}
.asg-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.asg-dash-header h1 {
    font-family: var(--asg-serif);
    font-size: 30px;
    margin: 0;
    color: var(--asg-ink);
}

/* Stats */
.asg-dash-stats { display: flex; gap: 16px; margin-bottom: 32px; }
.asg-stat {
    background: white;
    border: 1px solid var(--asg-border);
    border-radius: var(--asg-radius);
    padding: 18px 28px;
    min-width: 130px;
}
.asg-stat-value { display: block; font-family: var(--asg-serif); font-size: 32px; color: var(--asg-accent); }
.asg-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--asg-muted); }

/* Tab panels */
.asg-tab-panel { display: none; }
.asg-tab-panel.active { display: block; }

/* Upload modal */
.asg-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.asg-modal.active { display: flex; }
.asg-modal-box {
    background: white;
    border-radius: var(--asg-radius);
    padding: 36px;
    width: 100%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,.2);
}
.asg-modal-box h2 { font-family: var(--asg-serif); font-size: 24px; margin: 0 0 24px; }
.asg-modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none; border: none;
    font-size: 22px; cursor: pointer; color: var(--asg-muted);
}

/* Drop zone */
.asg-drop-zone {
    border: 2px dashed var(--asg-border);
    border-radius: var(--asg-radius);
    padding: 36px;
    text-align: center;
    margin-bottom: 20px;
    transition: border-color .2s, background .2s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.asg-drop-zone.dragging { border-color: var(--asg-gold); background: rgba(201,168,76,.05); }
.asg-drop-zone.has-file { padding: 0; }
.asg-drop-inner { pointer-events: none; }
.asg-drop-icon  { font-size: 40px; margin-bottom: 8px; }
.asg-drop-zone p { font-size: 14px; color: var(--asg-muted); margin: 0 0 4px; }
.asg-drop-zone button { background: none; border: none; color: var(--asg-accent); cursor: pointer; font-weight: 500; text-decoration: underline; pointer-events: all; }
.asg-drop-hint  { font-size: 12px !important; }
.asg-drop-preview { width: 100%; max-height: 240px; object-fit: contain; border-radius: var(--asg-radius); display: block; }

.asg-upload-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.asg-upload-actions { display: flex; align-items: center; gap: 14px; }
.asg-upload-status  { font-size: 13px; color: var(--asg-muted); }

/* Manage grid */
.asg-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.asg-manage-item {
    background: white;
    border: 1px solid var(--asg-border);
    border-radius: var(--asg-radius);
    overflow: hidden;
    transition: box-shadow .2s;
    animation: asgFadeIn .3s ease both;
}
.asg-manage-item:hover { box-shadow: var(--asg-shadow); }
@keyframes asgFadeIn {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: scale(1); }
}
.asg-manage-item > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.asg-manage-info { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.asg-manage-actions { display: flex; gap: 8px; margin-top: 4px; }

/* Profile form */
.asg-profile-form {
    max-width: 560px;
    background: white;
    border: 1px solid var(--asg-border);
    border-radius: var(--asg-radius);
    padding: 32px;
}
.asg-profile-form .asg-btn { margin-top: 20px; }

/* Empty state */
.asg-empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--asg-muted);
}
.asg-empty-icon { font-size: 52px; margin-bottom: 12px; }
.asg-empty-state h3 { font-size: 20px; color: var(--asg-ink); margin-bottom: 8px; }
.asg-empty-state p  { font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
    .asg-dashboard-wrap { flex-direction: column; }
    .asg-dash-sidebar { width: 100%; padding: 24px; }
    .asg-dash-main { padding: 24px; }
    .asg-profile-hero-inner { flex-direction: column; text-align: center; }
    .asg-profile-name { font-size: 28px; }
}

/* ─── BOOK NOW BUTTON ──────────────────────────────────── */


.asg-profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
}
.asg-book-btn,
.asg-btn.asg-btn--ghost.asg-btn--sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--asg-font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  letter-spacing: .3px;
}
.asg-book-btn {
  background: #689445;
  color: #fff;
  border: 2px solid #689445;
  box-shadow: 0 4px 16px rgba(104,148,69,.3);
}
.asg-book-btn:hover {
  background: #5a7e3a;
  border-color: #5a7e3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(104,148,69,.4);
  color: #fff;
}
.asg-btn.asg-btn--ghost.asg-btn--sm {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
}
.asg-btn.asg-btn--ghost.asg-btn--sm:hover {
  background: #385f99;
  border-color: #385f99;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56,95,153,.35);
}

.asg-btn.asg-btn--ghost.asg-btn--sm {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
}
.asg-btn.asg-btn--ghost.asg-btn--sm:hover {
  background: #385f99;
  border-color: #385f99;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56,95,153,.35);
}


/* ─── BOOKING SECTION ──────────────────────────────────── */
.asg-booking-section { background: var(--asg-cream); border-radius: var(--asg-radius); padding: 36px; margin-top: 48px; }
.asg-booking-intro   { color: var(--asg-muted); font-size: 15px; margin-bottom: 28px; }
.asg-booking-wrap    { min-height: 200px; }

/* ─── DASHBOARD SUBTITLE ───────────────────────────────── */
.asg-dash-subtitle { font-size: 14px; color: var(--asg-muted); margin: 4px 0 0; }

/* ─── ACCESS DENIED ────────────────────────────────────── */
.asg-dashboard-centered { align-items: center; justify-content: center; min-height: 80vh; }
.asg-access-denied {
    text-align: center;
    background: white;
    border: 1px solid var(--asg-border);
    border-radius: var(--asg-radius);
    padding: 60px 40px;
    max-width: 480px;
}
.asg-access-icon { font-size: 52px; margin-bottom: 16px; }
.asg-access-denied h2 { font-family: var(--asg-serif); font-size: 26px; margin-bottom: 12px; }
.asg-access-denied p  { color: var(--asg-muted); font-size: 15px; margin-bottom: 10px; }
.asg-access-denied .asg-btn { margin-top: 20px; }

/* ─── SIDEBAR FOOTER ───────────────────────────────────── */
.asg-dash-sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }

/* ─── MANAGE THUMB ─────────────────────────────────────── */
.asg-manage-thumb { position: relative; overflow: hidden; }
.asg-manage-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

/* ─── DROP ZONE STATES ─────────────────────────────────── */
.asg-drop-preview { display: none; width: 100%; max-height: 260px; object-fit: contain; border-radius: var(--asg-radius); }
.asg-drop-zone.has-file .asg-drop-inner { display: none; }
.asg-drop-zone.has-file .asg-drop-preview { display: block; }
.asg-drop-zone.has-file { padding: 8px; border-style: solid; border-color: var(--asg-gold); }

/* ─── EDIT PROFILE PANEL ───────────────────────────────── */
.asg-db-profile-edit-wrap {
  background: var(--db-surface);
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  padding: 32px;
  max-width: 720px;
}
.asg-db-photo-section {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}
.asg-db-photo-preview-wrap {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 3px solid var(--db-border);
}
.asg-db-photo-preview {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.asg-db-photo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  color: white; font-size: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  text-align: center;
  line-height: 1.4;
}
.asg-db-photo-preview-wrap:hover .asg-db-photo-overlay { opacity: 1; }
.asg-db-edit-divider {
  height: 1px; background: var(--db-border); margin-bottom: 24px;
}
.asg-db-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.asg-db-edit-field--full { grid-column: 1 / -1; }
.asg-db-edit-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--db-muted);
  margin-bottom: 7px;
}
.asg-db-edit-input {
  width: 100%;
  background: var(--db-bg);
  border: 1.5px solid var(--db-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--db-font);
  font-size: 14px;
  color: var(--db-ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.asg-db-edit-input:focus {
  border-color: var(--db-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.1);
}
.asg-db-edit-textarea { resize: vertical; min-height: 110px; }
.asg-db-edit-actions { display: flex; align-items: center; gap: 14px; }

/* ─── AMELIA AUTO-LOGIN INDICATOR ──────────────────────── */
.asg-amelia-connecting {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--db-ink);
  margin-bottom: 20px;
}
.asg-amelia-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(201,168,76,.3);
  border-top-color: var(--db-gold);
  border-radius: 50%;
  animation: asgSpin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes asgSpin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .asg-db-edit-grid { grid-template-columns: 1fr; }
  .asg-db-photo-section { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════
   EDIT PROFILE PANEL — Listeo style
═══════════════════════════════════════════════ */

/* Hero cover + avatar */
.pf-hero { margin-bottom: 0; border-radius: var(--db-radius) var(--db-radius) 0 0; overflow: hidden; }

.pf-cover {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d4a7a 50%, #c9a84c 100%);
  overflow: hidden;
}
.pf-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.pf-cover-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 16px 20px;
  opacity: 0;
  transition: opacity .2s;
}
.pf-cover:hover .pf-cover-overlay { opacity: 1; }
.pf-cover-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.9);
  color: #141420;
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.pf-cover-btn:hover { background: #fff; }

.pf-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px 24px;
  background: var(--db-surface);
  border: 1px solid var(--db-border);
  border-top: none;
  border-radius: 0 0 var(--db-radius) var(--db-radius);
  position: relative;
}
.pf-avatar-ring {
  position: relative;
  width: 100px; height: 100px;
  margin-top: -40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 4px solid var(--db-surface);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  background: var(--db-surface);
  overflow: hidden;
  cursor: pointer;
}
.pf-avatar-img { width:100%; height:100%; object-fit:cover; display:block; }
.pf-avatar-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity .2s;
  cursor: pointer;
  border-radius: 50%;
}
.pf-avatar-ring:hover .pf-avatar-overlay { opacity: 1; }
.pf-hero-name { padding-top: 12px; }
.pf-hero-name h2 { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; margin: 0 0 3px; color: var(--db-ink); }
.pf-hero-name span { font-size: 13px; color: var(--db-muted); }
.pf-photo-status { padding-top: 14px; font-size: 13px; }

/* Inner tabs */
.pf-tabs-wrap { margin-top: 24px; }
.pf-tabs {
  display: flex;
  gap: 4px;
  background: var(--db-surface);
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius) var(--db-radius) 0 0;
  padding: 8px 8px 0;
  border-bottom: none;
}
.pf-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 18px;
  border: none; background: none;
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--db-muted);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  position: relative;
  bottom: -1px;
}
.pf-tab:hover { color: var(--db-ink); background: var(--db-bg); }
.pf-tab.active {
  color: var(--db-ink);
  border-bottom-color: var(--db-gold);
  background: var(--db-bg);
}
.pf-tab svg { flex-shrink: 0; }

.pf-tab-panel { display: none; }
.pf-tab-panel.active { display: block; }

/* Card inside panel */
.pf-card {
  background: var(--db-bg);
  border: 1px solid var(--db-border);
  border-top: none;
  border-radius: 0 0 var(--db-radius) var(--db-radius);
  padding: 28px 28px 32px;
}
.pf-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--db-ink);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--db-border);
}

/* Field layouts */
.pf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pf-grid-1 { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 520px; }
.pf-field--full { grid-column: 1 / -1; }
.pf-field { display: flex; flex-direction: column; }
.pf-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--db-muted); margin-bottom: 7px;
}
.pf-input {
  width: 100%;
  background: var(--db-surface);
  border: 1.5px solid var(--db-border);
  border-radius: 9px;
  padding: 11px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px; color: var(--db-ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.pf-input:focus {
  border-color: var(--db-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.1);
}
.pf-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

/* Input with icon */
.pf-input-icon { position: relative; }
.pf-input-icon > svg:first-child {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--db-muted); pointer-events: none; z-index: 1;
}
.pf-input--icon { padding-left: 40px; }

/* Password show/hide eye */
.pf-pw-wrap { position: relative; }
.pf-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--db-muted); padding: 2px;
  transition: color .15s;
}
.pf-eye:hover { color: var(--db-ink); }

/* Password strength */
.pf-pw-strength-bar {
  height: 3px; background: var(--db-border);
  border-radius: 2px; margin-top: 6px; overflow: hidden;
}
.pf-pw-strength-bar div {
  height: 100%; width: 0%;
  border-radius: 2px;
  transition: width .3s, background .3s;
}

/* Save button */
.pf-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.pf-save-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px;
  background: var(--db-ink); color: var(--db-gold-lt);
  border: none; border-radius: 9px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .15s, transform .1s;
}
.pf-save-btn:hover { background: var(--db-accent); transform: translateY(-1px); }
.pf-save-btn:disabled { opacity: .5; transform: none; cursor: not-allowed; }

@media (max-width: 640px) {
  .pf-grid-2 { grid-template-columns: 1fr; }
  .pf-cover { height: 130px; }
  .pf-avatar-wrap { padding: 0 16px 20px; gap: 14px; }
  .pf-tabs { overflow-x: auto; }
  .pf-card { padding: 20px 16px; }
}

/* ── REVIEWS ─────────────────────────────────────────────────── */
.asg-rating-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #141420, #1e1e35);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
}
.asg-rating-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.asg-rating-score {
  font-size: 52px;
  font-weight: 800;
  color: #f0d98a;
  line-height: 1;
}
.asg-rating-stars-big {
  font-size: 22px;
}
.asg-rating-stars-big .filled { color: #f0d98a; }
.asg-rating-stars-big .empty  { color: rgba(255,255,255,.2); }
.asg-rating-count {
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.asg-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.asg-review-card {
  background: #fff;
  border: 1px solid #e8e2d9;
  border-radius: 16px;
  padding: 22px 24px;
  transition: box-shadow .2s;
}
.asg-review-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.asg-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.asg-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #f0d98a);
  color: #141420;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.asg-review-meta { flex: 1; }
.asg-review-name {
  font-weight: 700;
  font-size: 15px;
  color: #141420;
}
.asg-review-stars { font-size: 14px; margin-top: 2px; }
.star-filled { color: #f0a500; }
.star-empty  { color: #ddd; }
.asg-review-date {
  font-size: 12px;
  color: #9490a0;
  white-space: nowrap;
}
.asg-review-text {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin: 0;
}
.asg-no-reviews {
  text-align: center;
  color: #9490a0;
  font-size: 15px;
  padding: 24px 0;
}

/* Review form */
.asg-review-form-wrap {
  background: linear-gradient(135deg, #f9f7f2, #fff);
  border: 1px solid #e8e2d9;
  border-radius: 20px;
  padding: 32px;
}
.asg-review-form-title {
  font-size: 18px;
  font-weight: 800;
  color: #141420;
  margin: 0 0 24px;
}
.asg-review-form { display: flex; flex-direction: column; gap: 18px; }
.asg-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
}
.asg-form-group label .req { color: #c9a84c; }
.asg-form-group input,
.asg-form-group textarea {
  width: 100%;
  border: 2px solid #e8e2d9;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: #141420;
  background: #fff;
  transition: border-color .2s;
  box-sizing: border-box;
  direction: rtl;
}
.asg-form-group input:focus,
.asg-form-group textarea:focus {
  outline: none;
  border-color: #c9a84c;
}

/* Star picker */
.asg-star-picker {
  display: flex;
  gap: 6px;
  direction: ltr;
  justify-content: flex-end;
}
.asg-star-pick {
  font-size: 32px;
  cursor: pointer;
  color: #ddd;
  transition: color .15s, transform .15s;
  line-height: 1;
}
.asg-star-pick.active,
.asg-star-pick:hover,
.asg-star-pick.hover { color: #f0a500; transform: scale(1.15); }

.asg-submit-review-btn {
  background: linear-gradient(135deg, #c9a84c, #f0d98a);
  color: #141420;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  align-self: flex-start;
}
.asg-submit-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,168,76,.4);
}
.asg-submit-review-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.asg-review-msg {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
}
.asg-review-msg.success { color: #2e7d32; }
.asg-review-msg.error   { color: #c62828; }
