/* ============================================================
 * chrokant-account.css — layout comun pentru toate paginile cont
 * Include: header, dashboard grid, sidebar, carduri, newsletter banner, trust bar
 * Folosit pe: cont.html, cont-comenzi.html, cont-profil.html
 * ============================================================ */

:root {
  --bordeaux: #7a1f1a;
  --bordeaux-dark: #5f1613;
  --yellow: #ffcc00;
  --yellow-dark: #e6b800;
  --cream: #f7f2e6;
  --white: #fff;
  --black: #1a1a1a;
  --grey: #8a8a8a;
  --grey-light: #e5e0d3;
  --red: #d32f2f;
  --green: #2e7d32;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
  --font-body: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --font-display: 'Bebas Neue','Oswald','Arial Black',sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============ HEADER SITE ============ */
.site-hd {
  background: var(--bordeaux);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.site-hd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  font-weight: 900;
}
.site-hd-logo img { width: 34px; height: 34px; }
.site-hd-back {
  color: var(--yellow);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1.5px solid var(--yellow);
  border-radius: 8px;
  transition: all .2s;
}
.site-hd-back:hover { background: var(--yellow); color: var(--bordeaux); }

/* ============ DASHBOARD LAYOUT ============ */
.dash {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; padding: 16px 12px 40px; gap: 16px; }
}

/* ============ SIDEBAR ============ */
.sidebar {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 20px;
}
@media (max-width: 900px) {
  .sidebar { position: static; padding: 16px; }
}
.side-user {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--grey-light);
  margin-bottom: 16px;
}
.side-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--bordeaux);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  font-family: var(--font-display);
  margin-bottom: 10px;
}
.side-hello { font-size: 12px; color: var(--grey); font-weight: 600; }
.side-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--bordeaux);
  margin-top: 2px;
  word-break: break-word;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all .15s;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.side-link:hover { background: var(--cream); color: var(--bordeaux); }
.side-link.active { background: var(--bordeaux); color: var(--white); }
.side-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.side-link.danger { color: var(--red); }
.side-link.danger:hover { background: #fdecea; color: var(--red); }

/* ============ MAIN CONTENT ============ */
.main { display: flex; flex-direction: column; gap: 20px; }

/* Toast fresh login */
.toast-login {
  background: #e8f5e9;
  border: 1.5px solid var(--green);
  color: var(--green);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  display: none;
}
.toast-login.show { display: block; }

/* Phone banner Google users fără telefon */
.phone-banner {
  background: #fff8e1;
  border: 1.5px solid var(--yellow-dark);
  color: #8a6d00;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
}
.phone-banner.show {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.phone-banner a {
  background: var(--yellow);
  color: var(--black);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}

/* Card generic */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.card-title {
  font-size: 12px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.card-edit {
  color: var(--bordeaux);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: opacity .15s;
}
.card-edit:hover { opacity: .7; }
.card h1 {
  color: var(--bordeaux);
  font-size: 24px;
  margin-bottom: 6px;
}
.card .sub {
  color: var(--grey);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* Detalii cont grid */
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 18px;
  align-items: start;
}
@media (max-width: 600px) {
  .details { grid-template-columns: 1fr; row-gap: 14px; }
}
.details > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.field-lbl {
  font-size: 12px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.field-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  word-break: break-word;
  line-height: 1.4;
  margin: 0;
}
.field-val.empty {
  color: var(--grey);
  font-style: italic;
  font-weight: 500;
}

/* Client din YEAR */
.client-since {
  background: var(--cream);
  border: 1.5px solid var(--yellow);
  border-radius: 12px;
  padding: 14px 20px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.client-since-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--bordeaux);
}
.client-since-emoji { font-size: 22px; }

/* Stats grid (2 carduri mari) */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--black);
  color: var(--white);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card.gold { background: var(--yellow); color: var(--black); }
.stat-card .stat-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.stat-card .stat-hd-arrow {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  opacity: .95;
}
.stat-card .stat-num {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-display);
}
.stat-card .stat-lbl {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  opacity: .9;
}

/* Actions (2 carduri: reset parola / setari newsletter) */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .actions-grid { grid-template-columns: 1fr; } }
.action-card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: var(--bordeaux);
  transition: all .2s;
  cursor: pointer;
  border: none;
  font: inherit;
  width: 100%;
  text-align: left;
}
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.action-icon {
  width: 42px;
  height: 42px;
  background: var(--cream);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-icon svg { width: 22px; height: 22px; color: var(--bordeaux); }
.action-text {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  line-height: 1.3;
  flex: 1;
}
.action-arrow { color: var(--bordeaux); font-size: 18px; font-weight: 800; }

/* ============ NEWSLETTER BANNER ============ */
.nl-banner {
  background: linear-gradient(135deg, #ffcc00 0%, #e6b800 100%);
  border-radius: 20px;
  padding: 32px 28px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  box-shadow: 0 8px 30px rgba(255,204,0,.25);
}
@media (max-width: 700px) {
  .nl-banner { grid-template-columns: 1fr; text-align: center; gap: 16px; padding: 24px 20px; }
}
.nl-icon {
  width: 72px; height: 72px;
  background: var(--bordeaux);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
}
.nl-icon svg { width: 36px; height: 36px; }
@media (max-width: 700px) { .nl-icon { margin: 0 auto; } }
.nl-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--bordeaux);
  font-family: var(--font-display);
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.nl-sub { font-size: 14px; color: var(--black); line-height: 1.5; opacity: .85; }
.nl-form { display: flex; gap: 10px; align-items: stretch; min-width: 320px; }
@media (max-width: 700px) { .nl-form { min-width: 0; width: 100%; } }
.nl-input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-size: 14px;
  color: var(--black);
  outline: none;
}
.nl-submit {
  padding: 14px 24px;
  background: var(--bordeaux);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .15s;
}
.nl-submit:hover:not(:disabled) { background: var(--bordeaux-dark); }
.nl-submit:disabled { opacity: .5; cursor: not-allowed; }
.nl-gdpr {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--bordeaux);
  margin-top: 8px;
}
.nl-gdpr input { margin-top: 2px; accent-color: var(--bordeaux); }
.nl-msg { grid-column: 1/-1; font-size: 13px; font-weight: 700; padding: 8px 0; }
.nl-msg.ok { color: var(--green); }
.nl-msg.err { color: var(--red); }

/* ============ TRUST BAR ============ */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 16px;
  margin-top: 32px;
  border-top: 1px solid var(--grey-light);
}
@media (max-width: 700px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--black);
  font-weight: 600;
}
.trust-item svg { width: 22px; height: 22px; color: var(--bordeaux); flex-shrink: 0; }

/* ============ FORM COMMON (cont-profil edit) ============ */
.field { margin-bottom: 14px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  background: var(--cream);
  border: 1.5px solid var(--grey-light);
  border-radius: 10px;
  color: var(--black);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--bordeaux); background: var(--white); }
input:disabled { opacity: .6; cursor: not-allowed; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; font-size: 13px; cursor: pointer; }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--bordeaux); }
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .8px;
  cursor: pointer;
  margin-top: 4px;
}
.btn-primary:hover:not(:disabled) { background: var(--yellow-dark); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; border-left: 3px solid; display: none; }
.msg.show { display: block; }
.msg.err { background: #fdecea; color: var(--red); border-color: var(--red); }
.msg.ok { background: #e8f5e9; color: var(--green); border-color: var(--green); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.2); border-top-color: var(--black); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ ORDER LIST (istoric comenzi) ============ */
.order {
  border: 1px solid var(--grey-light);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--cream);
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}
.order-date { font-size: 13px; color: var(--grey); font-weight: 600; }
.order-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--yellow);
  color: var(--black);
}
.order-badge.livrare { background: #6366F1; color: #fff; }
.order-badge.telefonic { background: var(--bordeaux); color: #fff; }
.order-items { font-size: 14px; color: var(--black); margin-bottom: 10px; line-height: 1.5; }
.order-item { padding: 3px 0; }
.order-total { text-align: right; font-size: 16px; font-weight: 800; color: var(--bordeaux); border-top: 1px dashed var(--grey-light); padding-top: 10px; }
.order-notes { font-size: 12px; color: var(--grey); margin-top: 6px; font-style: italic; }

.empty { text-align: center; padding: 40px 20px; color: var(--grey); }
.empty a { color: var(--bordeaux); font-weight: 700; text-decoration: none; }
.spinner-wrap { text-align: center; padding: 40px; }
.spinner-lg { display: inline-block; width: 32px; height: 32px; border: 3px solid var(--grey-light); border-top-color: var(--bordeaux); border-radius: 50%; animation: spin .7s linear infinite; }




/* Spațiu jos pentru bara sticky pe mobile */
@media (max-width: 899px) {
  .dash { padding-bottom: 100px; }
}

/* ============================================================
 * FIX iPhone: FORȚEZ LIGHT MODE (fără fundal negru automat)
 * ============================================================ */
html { color-scheme: light only; }
body { background: #f7f2e6 !important; color: #1a1a1a !important; }


/* Bara sticky Chrokant vizibilă pe pagini cont */
@media (max-width: 899px) {
  .chk-sticky-cta { display: flex !important; }
  .dash { padding-bottom: 100px !important; }
}
