/* =========================================
   OZEE CAKES — Account Page CSS
   assets/css/account.css
   ========================================= */

.account-page { background: #F7F8FC; }
.account-page #header { position: fixed; top:0; left:0; right:0; z-index:100; background:white; box-shadow:0 2px 16px rgba(0,0,0,0.07); }

.account-layout {
  display: flex; min-height: 100vh;
  padding-top: 72px;
}

/* ---- SIDEBAR ---- */
.account-sidebar {
  width: 260px; flex-shrink: 0;
  background: white; border-right: 1px solid #EEE;
  padding: 2rem 1.5rem;
  position: sticky; top: 72px; height: calc(100vh - 72px);
  overflow-y: auto;
}
.sidebar-avatar {
  display: flex; align-items: center; gap: 0.85rem;
  padding-bottom: 1.5rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid #EEE;
}
.avatar-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg,#0047AB,#0D2461);
  color: white; font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-avatar strong { display: block; font-size: 0.9rem; color: #0D1B3E; }
.sidebar-avatar span   { font-size: 0.75rem; color: #888; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.9rem; border-radius: 10px;
  color: #555; text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.sidebar-link:hover { background: #F0F4FF; color: #0047AB; }
.sidebar-link.active { background: #EEF3FF; color: #0047AB; font-weight: 600; }
.sidebar-link i { width: 16px; text-align: center; font-size: 0.85rem; }
.sidebar-link.logout { color: #EF4444; margin-top: 1rem; }
.sidebar-link.logout:hover { background: #FEE2E2; }

/* ---- MAIN CONTENT ---- */
.account-main {
  flex: 1; padding: 2rem 2.5rem;
  overflow-y: auto;
}
.account-view.hidden { display: none; }
.view-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.view-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 400; color: #0D1B3E;
}

/* ---- BUTTONS ---- */
.btn-sm-gold {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.2rem; border-radius: 50px;
  background: linear-gradient(135deg,#C9A227,#9A7A1A);
  color: #001F5B; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-sm-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,162,39,0.35); }
.btn-sm-outline {
  padding: 0.5rem 1.1rem; border-radius: 50px;
  border: 1.5px solid #0047AB; background: white;
  color: #0047AB; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
}
.btn-sm-outline:hover { background: #EEF3FF; }
.btn-back {
  display: flex; align-items: center; gap: 0.5rem;
  background: none; border: none; cursor: pointer;
  color: #0047AB; font-size: 0.88rem; font-weight: 500;
  padding: 0;
}
.btn-back:hover { text-decoration: underline; }

/* ---- LOADING / EMPTY ---- */
.loading-orders {
  display: flex; flex-direction: column; align-items: center;
  padding: 4rem; color: #888; gap: 0.75rem;
}
.empty-state {
  text-align: center; padding: 4rem;
  color: #888;
}
.empty-state i { font-size: 3rem; color: #CBD5E1; margin-bottom: 1rem; display: block; }

/* ---- ORDER CARDS ---- */
.order-card {
  background: white; border-radius: 14px;
  border: 1px solid #EEE; padding: 1.3rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: box-shadow 0.2s;
}
.order-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.order-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem;
}
.order-card-top h4 { font-size: 1rem; color: #0D1B3E; font-weight: 600; margin-bottom: 0.2rem; }
.order-id { font-size: 0.78rem; color: #888; font-family: monospace; }
.order-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge {
  padding: 0.2rem 0.7rem; border-radius: 20px;
  font-size: 0.73rem; font-weight: 600; white-space: nowrap;
}
.badge.lg { padding: 0.35rem 0.9rem; font-size: 0.82rem; }
.order-card-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.82rem; color: #555; margin-bottom: 1rem;
}
.order-card-meta i { margin-right: 0.3rem; color: #0047AB; }
.order-card-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---- ORDER DETAIL ---- */
.detail-card {
  background: white; border-radius: 16px;
  border: 1px solid #EEE; padding: 2rem;
}
.detail-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem;
}
.detail-header h3 { font-family: 'Cormorant Garamond',serif; font-size:1.6rem; font-weight:400; color:#0D1B3E; }

/* Progress steps */
.detail-progress {
  display: flex; align-items: center;
  margin-bottom: 2rem; overflow-x: auto;
  padding-bottom: 0.5rem;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  flex-shrink: 0;
}
.step-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: #EEE; color: #999; font-size: 0.78rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.progress-step.done .step-dot  { background: #10B981; color: white; }
.progress-step.current .step-dot { background: #0047AB; color: white; box-shadow: 0 0 0 4px rgba(0,71,171,0.15); }
.progress-step span { font-size: 0.72rem; color: #888; white-space: nowrap; }
.progress-step.done span, .progress-step.current span { color: #0D1B3E; font-weight: 500; }
.step-line { flex: 1; height: 2px; background: #EEE; min-width: 30px; margin: 0 0.3rem; margin-bottom: 1.3rem; }
.progress-step.done + .step-line { background: #10B981; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.detail-section h4 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #888; margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid #EEE;
}
dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; font-size: 0.85rem; }
dt { color: #888; white-space: nowrap; }
dd { color: #0D1B3E; font-weight: 500; }

/* Payment table */
.pay-table-wrap { overflow-x: auto; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.pay-table th { background: #F7F8FC; text-align: left; padding: 0.6rem 0.8rem; color: #555; font-weight: 600; border-bottom: 1px solid #EEE; }
.pay-table td { padding: 0.65rem 0.8rem; border-bottom: 1px solid #F5F5F5; color: #333; }

/* Profile card */
.profile-card {
  background: white; border-radius: 14px; border: 1px solid #EEE;
  padding: 2rem; max-width: 500px;
}
.profile-card .form-group { margin-bottom: 1.2rem; }
.profile-card label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #888; display: block; margin-bottom: 0.3rem; }
.profile-card p { font-size: 1rem; color: #0D1B3E; font-weight: 500; }

/* ---- PAYMENT MODAL ---- */
.pay-modal-box { max-width: 500px; }
.pay-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.pay-plan-card { cursor: pointer; }
.pay-plan-card input { display: none; }
.pay-plan-inner {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1rem; border-radius: 12px;
  border: 2px solid #E0DDD6; background: white;
  transition: border-color 0.15s, background 0.15s;
}
.pay-plan-card input:checked + .pay-plan-inner { border-color: #0047AB; background: #EEF3FF; }
.pay-plan-inner strong { color: #0D1B3E; font-size: 0.88rem; }
.pay-plan-inner span   { color: #0047AB; font-weight: 700; font-size: 1rem; }
.pay-plan-inner small  { color: #888; font-size: 0.75rem; }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.pay-method-card { cursor: pointer; }
.pay-method-card input { display: none; }
.pay-method-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 1rem 0.75rem; border-radius: 12px;
  border: 2px solid #E0DDD6; background: white;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.pay-method-card input:checked + .pay-method-inner { border-color: #0047AB; background: #EEF3FF; }
.pay-method-inner span  { font-size: 0.85rem; font-weight: 600; color: #0D1B3E; }
.pay-method-inner small { font-size: 0.74rem; color: #888; }

.pay-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #888; margin-bottom: 0.6rem; }
.bank-details { background: #F7FAFF; border-radius: 12px; padding: 1.25rem; border: 1px solid #DCE9FF; }
.bank-info { display: grid; gap: 0.5rem; margin-bottom: 0.5rem; }
.bank-info div { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.bank-info span { color: #888; }
.bank-info strong { color: #0D1B3E; font-weight: 600; }
.pay-note { font-size: 0.78rem; color: #666; line-height: 1.5; margin-top: 0.5rem; }
.pay-balance-info {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: #EEF3FF; border-radius: 12px; padding: 1rem;
  border: 1px solid #C7D9FF; margin-bottom: 1.25rem;
}
.pay-balance-info i { color: #0047AB; margin-top: 0.1rem; }
.pay-balance-info strong { display: block; color: #0D1B3E; font-size: 0.88rem; margin-bottom: 0.2rem; }
.pay-balance-info p { font-size: 0.83rem; color: #555; margin: 0; }

/* ---- SPINNER ---- */
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid #EEE; border-top-color: #0047AB;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .account-sidebar { display: none; }
  .account-main { padding: 1.5rem 1rem; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pay-plans, .pay-methods { grid-template-columns: 1fr; }
}

/* ---- Mobile nav for inner pages ---- */
.account-page .hamburger,
.order-page .hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.account-page .hamburger span,
.order-page .hamburger span {
  display: block; width: 24px; height: 2px;
  background: #0D1B3E; border-radius: 2px;
}
.account-page .mobile-nav,
.order-page .mobile-nav {
  display: none; flex-direction: column;
  position: fixed; top: 72px; left: 0; right: 0;
  background: white; padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #EEE;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 999;
}
.account-page .mobile-nav a,
.order-page .mobile-nav a {
  padding: .75rem 0; color: #0D1B3E; text-decoration: none;
  font-size: .95rem; font-weight: 500;
  border-bottom: 1px solid #F0F0F0;
  display: block;
}
.account-page .mobile-nav a:last-child,
.order-page .mobile-nav a:last-child { border-bottom: none; }
.account-page .mobile-nav.open,
.order-page .mobile-nav.open { display: flex; }

@media (max-width: 768px) {
  .account-page #header nav,
  .order-page #header nav { display: none; }
  .account-page .hamburger,
  .order-page .hamburger { display: flex; }
  .account-main { padding: 1.5rem 1rem; }
  .account-sidebar { display: none; }
}
