/* =========================================================
   CelebraPlume – Client Portal CSS
   account.css v1
   ========================================================= */

:root {
  --gold:    #c9a96e;
  --ivory:   #f9f6f1;
  --charcoal:#1a1a1a;
  --rose:    #d4a0a0;
}

/* ── Body background ── */
.account-page {
  background: #f5f3ef;
}

/* =========================================================
   Login page
   ========================================================= */
.account-login-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.account-login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.account-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.account-login-logo__icon {
  color: var(--gold);
  font-size: 20px;
}
.account-login-logo__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--charcoal);
  letter-spacing: 1.5px;
}
.account-login-logo__text em {
  color: var(--gold);
  font-style: italic;
}

.account-login-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.account-login-card__subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #888;
  margin-bottom: 28px;
  line-height: 1.6;
}

.account-login-form {
  text-align: left;
  margin-bottom: 20px;
}
.account-login-form .form-group {
  margin-bottom: 18px;
}
.account-login-form label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
}
.account-login-form .form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Jost', sans-serif;
  transition: border-color .2s;
  background: #fafafa;
}
.account-login-form .form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.form-hint {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
  font-family: 'Jost', sans-serif;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.account-login-help {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #aaa;
}
.account-login-help a {
  color: var(--gold);
  text-decoration: none;
}
.account-login-help a:hover { text-decoration: underline; }

/* Alerts */
.alert {
  padding: 11px 16px;
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.alert--error {
  background: #fef0f0;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}
.alert--success {
  background: #eafaf0;
  color: #27ae60;
  border: 1px solid #b7e4c7;
}
.alert--info {
  background: #eaf3fb;
  color: #2471a3;
  border: 1px solid #aed6f1;
}


/* =========================================================
   Hero banner
   ========================================================= */
.account-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2d2d2d 100%);
  padding: 32px 0;
  padding-top: calc(var(--nav-height, 76px) + 32px);
  margin-bottom: 0;
}
.account-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.account-hero__greeting {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 6px;
}
.account-hero__meta {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.account-hero__logout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 9px 18px;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.account-hero__logout:hover {
  background: rgba(220,80,80,0.18);
  border-color: rgba(220,80,80,0.5);
  color: #ff9999;
}

/* =========================================================
   Status timeline
   ========================================================= */
.status-timeline-wrap {
  background: #fff;
  border-bottom: 1px solid #ece8e0;
  padding: 24px;
}

.status-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
}

.status-timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  font-family: 'Jost', sans-serif;
}

/* Connecting line between steps */
.status-timeline__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: #ddd;
  z-index: 0;
}
.status-timeline__step.done:not(:last-child)::after,
.status-timeline__step.active:not(:last-child)::after {
  background: var(--gold);
}

.status-timeline__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  position: relative;
  z-index: 1;
  transition: all .3s;
}
.status-timeline__step.done .status-timeline__circle {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.status-timeline__step.active .status-timeline__circle {
  background: #fff;
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,110,.15);
}

.status-timeline__label {
  margin-top: 8px;
  font-size: 11px;
  text-align: center;
  color: #aaa;
  font-weight: 400;
  letter-spacing: 0.3px;
  max-width: 80px;
  line-height: 1.3;
}
.status-timeline__step.done .status-timeline__label,
.status-timeline__step.active .status-timeline__label {
  color: var(--charcoal);
  font-weight: 600;
}


/* =========================================================
   Two-column grid layout
   ========================================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.account-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
  .account-col-side {
    order: -1; /* financial summary first on mobile */
  }
}


/* =========================================================
   Account cards
   ========================================================= */
.account-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  padding: 24px;
  margin-bottom: 20px;
}
.account-card:last-child {
  margin-bottom: 0;
}

.account-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  line-height: 1.2;
}


/* =========================================================
   Order details table
   ========================================================= */
.account-details-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
}
.account-details-table tr td {
  padding: 9px 0;
  vertical-align: top;
  border-bottom: 1px solid #f0ece4;
}
.account-details-table tr:last-child td { border-bottom: none; }
.account-details-table .label {
  color: #888;
  width: 40%;
  padding-right: 16px;
  font-size: 13px;
}

/* Options block */
.account-options-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0ece4;
}
.account-options-block__title {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 8px;
}
.account-options-block ul {
  list-style: none;
  padding: 0;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #333;
}
.account-options-block ul li {
  padding: 4px 0;
}
.account-options-block ul li::before {
  content: '✦ ';
  color: var(--gold);
  font-size: 10px;
}

/* Ready / Progress blocks */
.account-ready {
  text-align: center;
  padding: 16px 0;
}
.account-ready__icon {
  font-size: 40px;
  color: #27ae60;
  margin-bottom: 10px;
  display: block;
}
.account-ready__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.account-progress {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #555;
  padding: 8px 0;
}
.account-progress__icon {
  color: var(--gold);
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Admin note */
.account-admin-note {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  background: #f9f6f1;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

/* Muted */
.muted {
  color: #aaa;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
}

/* HR */
.account-hr {
  border: none;
  border-top: 1px solid #f0ece4;
  margin: 16px 0;
}


/* =========================================================
   Financial summary
   ========================================================= */
.account-financial {
  margin-bottom: 18px;
}
.account-financial__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f0ece4;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #444;
}
.account-financial__row:last-child { border-bottom: none; }
.account-financial__row--discount { color: #27ae60; }
.account-financial__row--total {
  font-size: 16px;
  color: var(--charcoal);
  padding-top: 12px;
  border-top: 2px solid var(--gold);
  border-bottom: none;
  margin-top: 4px;
}

.text-success { color: #27ae60; }

/* Invoice button */
.invoice-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.invoice-btn:hover { background: #b8924f; color: #fff; }

/* Contact links */
.account-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--charcoal);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color .2s;
}
.account-contact-link:hover { color: var(--gold); }
.account-contact-link i { color: var(--gold); width: 16px; text-align: center; }


/* =========================================================
   Status badges (reuse from style.css convention)
   ========================================================= */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}
.badge--warning  { background: #fff7e6; color: #c9a96e; border: 1px solid #f0d9a8; }
.badge--info     { background: #eaf3fb; color: #2471a3; border: 1px solid #aed6f1; }
.badge--primary  { background: #eef0ff; color: #5c6bc0; border: 1px solid #c5cae9; }
.badge--success  { background: #eafaf0; color: #27ae60; border: 1px solid #b7e4c7; }
.badge--danger   { background: #fef0f0; color: #c0392b; border: 1px solid #f5c6c6; }


/* =========================================================
   Chat / Messagerie
   ========================================================= */
.chat-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages {
  max-height: 340px;
  overflow-y: auto;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-empty {
  text-align: center;
  padding: 24px 0;
  font-style: italic;
}

.chat-message-row {
  display: flex;
  flex-direction: column;
}
.chat-message-row--client {
  align-items: flex-end;
}
.chat-message-row--admin {
  align-items: flex-start;
}

.chat-sender {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: #aaa;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-time {
  color: #ccc;
  font-size: 10px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}
.chat-bubble--client {
  background: rgba(201,169,110,.12);
  border: 1px solid rgba(201,169,110,.35);
  color: #333;
  border-bottom-right-radius: 4px;
}
.chat-bubble--admin {
  background: #f0f0f0;
  color: #333;
  border-bottom-left-radius: 4px;
}

.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding-top: 8px;
  border-top: 1px solid #f0ece4;
}
.chat-textarea {
  flex: 1;
  resize: none;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Jost', sans-serif;
  background: #fafafa;
  transition: border-color .2s;
  min-height: 44px;
}
.chat-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.chat-send-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* =========================================================
   Buttons (ensure .btn classes work if style.css isn't loaded)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s;
  line-height: 1;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-primary:hover { background: #b8924f; border-color: #b8924f; }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: #ccc;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
