/* AiVerge Cabinet — personal account styles */
/* Uses same CSS variables as the main AiVerge theme */

:root {
  --bg:            #F0F0F2;
  --bg-card:       #FFFFFF;
  --bg-footer:     #1E1E24;
  --accent:        #474BFC;
  --accent-hover:  #3337D4;
  --accent-light:  #EEEEFF;
  --text:          #1E1E24;
  --text-muted:    #6B6B80;
  --border:        #DDDDE8;
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-pill:   100px;
  --font-main:     'Inter', 'Helvetica Neue', Arial, sans-serif;
  --shadow-card:   0 2px 16px rgba(0,0,0,0.07);
}

/* ── WRAP ── */
.avc-wrap {
  font-family: var(--font-main);
  color: var(--text);
  max-width: 1140px;
  margin: 48px auto;
  padding: 0 24px 80px;
}

/* ── AUTH CARD ── */
.avc-auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 440px;
  margin: 0 auto;
  padding: 48px 40px 40px;
}
@media(max-width:500px){ .avc-auth-card{ padding:32px 20px 28px; } }

.avc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.avc-auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ── TABS ── */
.avc-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 24px;
}
.avc-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.avc-tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

/* ── ALERTS ── */
.avc-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 16px;
}
.avc-alert--error   { background: #FEE2E2; color: #991B1B; }
.avc-alert--success { background: #D1FAE5; color: #065F46; }

/* ── FORM ── */
.avc-form { display: flex; flex-direction: column; gap: 16px; }
.avc-field { display: flex; flex-direction: column; gap: 6px; }
.avc-field label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
}
.avc-field input[type="text"],
.avc-field input[type="email"],
.avc-field input[type="password"] {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: .95rem;
  font-family: var(--font-main);
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.avc-field input:focus { border-color: var(--accent); }
.avc-field--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.avc-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-muted);
  cursor: pointer;
}
.avc-forgot { font-size: .88rem; color: var(--accent); text-decoration: none; }
.avc-forgot:hover { text-decoration: underline; }
.avc-hint { font-size: .88rem; color: var(--text-muted); text-align: center; margin: 0; }
.avc-hint a { color: var(--accent); }
.avc-optional { font-weight: 400; color: var(--text-muted); }

/* ── FORM PROFILE ROW ── */
.avc-form--profile { max-width: 560px; }
.avc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px){ .avc-form-row{ grid-template-columns:1fr; } }

/* ── BUTTONS ── */
.avc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .2s, color .2s, transform .1s;
  text-decoration: none;
}
.avc-btn:hover { transform: translateY(-1px); }
.avc-btn--primary  { background: var(--accent); color: #fff; }
.avc-btn--primary:hover { background: var(--accent-hover); color: #fff; }
.avc-btn--outline  { background: transparent; color: var(--accent); border: 1.5px solid var(--border); }
.avc-btn--outline:hover { border-color: var(--accent); }
.avc-btn--full     { width: 100%; justify-content: center; }
.avc-btn--sm       { padding: 8px 16px; font-size: .82rem; }

/* ── DASHBOARD LAYOUT ── */
.avc-wrap--dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
@media(max-width:900px){
  .avc-wrap--dashboard{ grid-template-columns:1fr; }
  .avc-sidebar{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
  .avc-nav{ display:flex; flex-direction:row; flex-wrap:wrap; gap:4px; }
  .avc-logout{ margin-left:auto; }
}

/* ── SIDEBAR ── */
.avc-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}
.avc-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avc-user-name  { font-weight: 600; font-size: .95rem; }
.avc-user-email { font-size: .8rem; color: var(--text-muted); word-break: break-all; }

/* ── SIDEBAR NAV ── */
.avc-nav { display: flex; flex-direction: column; gap: 4px; }
.avc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.avc-nav-item:hover  { background: var(--bg); color: var(--text); }
.avc-nav-item.active { background: var(--accent-light); color: var(--accent); }
.avc-nav-badge {
  margin-left: auto;
  background: var(--bg);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.avc-nav-badge--accent { background: var(--accent); color: #fff; }

.avc-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-top: 1px solid var(--border);
  margin-top: 4px;
  transition: color .15s;
}
.avc-logout:hover { color: #dc2626; }

/* ── MAIN AREA ── */
.avc-main {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  min-height: 400px;
}
.avc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.avc-section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

/* ── EMPTY STATE ── */
.avc-empty {
  text-align: center;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.avc-empty p { color: var(--text-muted); margin: 0; }
.avc-hint-text { font-size: .85rem; color: var(--text-muted); }

/* ── ORDER CARDS ── */
.avc-orders { display: flex; flex-direction: column; gap: 14px; }
.avc-order-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.avc-order-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(71,75,252,.08); }
.avc-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.avc-order-name { font-weight: 600; font-size: .95rem; }
.avc-order-date { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.avc-order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.avc-order-price { display: flex; align-items: center; gap: 8px; }
.avc-price-old   { text-decoration: line-through; color: var(--text-muted); font-size: .9rem; }
.avc-price-final { font-weight: 700; font-size: 1rem; color: var(--text); }
.avc-discount-tag {
  background: #D1FAE5;
  color: #065F46;
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.avc-order-notes { font-size: .82rem; color: var(--text-muted); }

/* ── BADGES ── */
.avc-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.avc-badge--warning { background: #FEF3C7; color: #92400E; }
.avc-badge--info    { background: #DBEAFE; color: #1E40AF; }
.avc-badge--success { background: #D1FAE5; color: #065F46; }
.avc-badge--error   { background: #FEE2E2; color: #991B1B; }

/* ── DISCOUNTS ── */
.avc-discounts { display: flex; flex-direction: column; gap: 12px; }
.avc-discount-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.avc-discount-badge {
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avc-discount-info  { flex: 1; }
.avc-discount-name  { font-weight: 600; font-size: .95rem; }
.avc-discount-until { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }


/* hide hero banner on LK page */
.page-lk section.hero { display: none; }
