/* ════════════════════════════════════════════
   PRINTCRAFT – account.css
   ════════════════════════════════════════════ */

/* ─── Auth Section ───────────────────────────── */
.auth-section { padding: 3rem 0 5rem; background: var(--gray-50); min-height: calc(100vh - 110px); display: flex; align-items: center; }
.auth-section .container { width: 100%; }

.auth-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--gray-100);
}
.auth-tab {
  padding: 1rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.auth-tab.active { color: var(--red); border-bottom-color: var(--red); }
.auth-tab:hover  { color: var(--red); }

.auth-form { display: none; padding: 2rem; }
.auth-form.active { display: block; }
.auth-form__header { text-align: center; margin-bottom: 1.5rem; }
.auth-form__header h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.auth-form__header p  { color: var(--gray-500); font-size: .88rem; }

/* Social Login */
.social-login { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.25rem; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .7rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--transition);
}
.social-btn--google { color: var(--gray-800); }
.social-btn--apple  { color: var(--black); }
.social-btn:hover   { border-color: var(--gray-400); background: var(--gray-50); box-shadow: var(--shadow-sm); }

.auth-divider {
  text-align: center;
  position: relative;
  margin: 1rem 0;
  color: var(--gray-400);
  font-size: .8rem;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-200);
}
.auth-divider span { background: var(--white); padding: 0 .75rem; position: relative; }

/* Input with icon */
.input-icon { position: relative; }
.input-icon > i:first-child {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: .85rem;
  pointer-events: none;
}
.input-icon .form-control { padding-left: 2.4rem; }
.pw-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: .85rem;
  transition: color var(--transition);
}
.pw-toggle:hover { color: var(--gray-700); }

.forgot-link { float: right; font-size: .8rem; color: var(--red); font-weight: 500; }
.forgot-link:hover { text-decoration: underline; }

/* Password strength */
.pw-strength { margin-top: .4rem; }
.pw-strength__bar { height: 4px; background: var(--gray-200); border-radius: 2px; overflow: hidden; margin-bottom: .25rem; }
.pw-strength__fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; width: 0%; }
#pwStrengthLabel { font-size: .72rem; color: var(--gray-500); }

/* Register benefits */
.register-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: .9rem;
  margin-bottom: 1.25rem;
}
.benefit-item { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--gray-700); }
.benefit-item i { color: var(--green); font-size: .8rem; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.auth-switch { text-align: center; font-size: .85rem; color: var(--gray-500); margin-top: 1.25rem; }
.link-btn { color: var(--red); font-weight: 600; transition: opacity var(--transition); }
.link-btn:hover { opacity: .8; }

/* ─── Dashboard Layout ───────────────────────── */
.dashboard { padding: 1.5rem 0 5rem; }
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

/* ─── Sidebar ────────────────────────────────── */
.dash-sidebar { position: sticky; top: calc(var(--nav-height) + 68px + 1rem); }

.dash-profile-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  border-radius: var(--radius-md);
  color: var(--white);
  margin-bottom: .75rem;
}
.dash-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.3);
}
.dash-profile-info { overflow: hidden; }
.dash-profile-info strong { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-profile-info span   { display: block; font-size: .75rem; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-member-since { font-size: .68rem !important; opacity: .55 !important; margin-top: .15rem; }

.dash-nav {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.dash-nav__item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem 1.1rem;
  font-size: .88rem;
  color: var(--gray-700);
  border-left: 3px solid transparent;
  transition: all var(--transition);
  position: relative;
}
.dash-nav__item:not(:last-child) { border-bottom: 1px solid var(--gray-100); }
.dash-nav__item:hover { background: var(--gray-50); color: var(--red); }
.dash-nav__item.active { color: var(--red); border-left-color: var(--red); background: #fff5f5; font-weight: 600; }
.dash-nav__item i { font-size: .9rem; width: 16px; flex-shrink: 0; }
.dash-nav__item--logout { color: var(--red); }
.dash-nav__badge {
  margin-left: auto;
  background: var(--red);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.dash-nav__sep { height: 1px; background: var(--gray-200); margin: .2rem 0; }

/* ─── Dashboard Content ──────────────────────── */
.dash-content { min-width: 0; }
.dash-section { display: none; }
.dash-section.active { display: block; }
.dash-section h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.dash-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.dash-section__header h2 { margin-bottom: 0; }

/* Overview stats */
.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-card__body strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--gray-900); line-height: 1; margin-bottom: .15rem; }
.stat-card__body span  { font-size: .75rem; color: var(--gray-500); }

/* Dash card */
.dash-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.dash-card--danger { border-color: #ffa8a8; }
.dash-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.dash-card__header h3 { font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.dash-card__header h3 i { color: var(--red); }
.dash-card > form,
.dash-card > div:not(.dash-card__header) { padding: 1.25rem; }

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: .82rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.quick-action i { font-size: 1.4rem; color: var(--red); }
.quick-action:hover { border-color: var(--red); color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ─── Orders Table ───────────────────────────── */
.order-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: .88rem;
  transition: background var(--transition);
}
.order-row:last-child { border-bottom: none; }
.order-row:hover { background: var(--gray-50); }
.order-row__header { font-size: .75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; background: var(--gray-50); }

.order-num  { font-weight: 600; color: var(--gray-900); }
.order-date { color: var(--gray-500); font-size: .8rem; margin-top: .15rem; }
.order-items { font-size: .78rem; color: var(--gray-600); }
.order-price { font-weight: 700; white-space: nowrap; }

.order-status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .7rem;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
}
.status-processing { background: #fff9db; color: #e67700; }
.status-production  { background: #dbe4ff; color: #1971c2; }
.status-shipped     { background: #d8f3dc; color: #2d6a4f; }
.status-delivered   { background: #d8f3dc; color: #1b4332; }

.order-row__actions { display: flex; gap: .4rem; }
.order-row__actions .btn { padding: .3rem .65rem; font-size: .75rem; }

/* ─── Designs Grid ───────────────────────────── */
.designs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.design-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.design-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.design-card__preview {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.design-card__body { padding: .9rem; }
.design-card__body strong { display: block; font-size: .85rem; margin-bottom: .2rem; }
.design-card__body span   { font-size: .72rem; color: var(--gray-500); display: block; margin-bottom: .65rem; }
.design-card__actions { display: flex; gap: .4rem; }
.design-card__actions .btn { flex: 1; justify-content: center; padding: .35rem .5rem; font-size: .75rem; }
.design-card--new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 100%;
  min-height: 180px;
  border: 2px dashed var(--gray-300);
  color: var(--gray-400);
  font-size: .88rem;
  transition: all var(--transition);
  cursor: pointer;
  background: var(--white);
}
.design-card--new i { font-size: 2rem; }
.design-card--new:hover { border-color: var(--red); color: var(--red); background: #fff5f5; }

/* ─── Empty Section ──────────────────────────── */
.empty-section { text-align: center; padding: 3rem; color: var(--gray-400); }
.empty-section i { font-size: 3rem; display: block; margin-bottom: 1rem; }
.empty-section h3 { font-size: 1.2rem; color: var(--gray-700); margin-bottom: .5rem; }
.empty-section p  { margin-bottom: 1.5rem; }

/* ─── Addresses ──────────────────────────────── */
.addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.address-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.address-card:hover { box-shadow: var(--shadow-md); }
.address-card--default { border-color: var(--red); }
.address-card__badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--red);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.address-card__body strong { display: block; margin-bottom: .4rem; }
.address-card__body p      { font-size: .85rem; color: var(--gray-600); line-height: 1.6; margin-bottom: .4rem; }
.address-card__actions { display: flex; gap: .4rem; margin-top: .9rem; }
.address-card--add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 2px dashed var(--gray-300);
  color: var(--gray-400);
  font-size: .88rem;
  min-height: 160px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}
.address-card--add i { font-size: 1.75rem; }
.address-card--add:hover { border-color: var(--red); color: var(--red); }

/* ─── Profile Form ───────────────────────────── */
.profile-form { max-width: 540px; }
.profile-avatar-section { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

/* ─── Security ───────────────────────────────── */
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.twofa-status {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem;
  border-radius: var(--radius-sm);
}
.twofa-status--off { background: #fff9db; }
.twofa-status i { font-size: 1.5rem; color: #e67700; flex-shrink: 0; }
.twofa-status strong { display: block; font-size: .9rem; }
.twofa-status p { font-size: .8rem; color: var(--gray-600); margin-top: .2rem; }

.login-history { display: flex; flex-direction: column; gap: .6rem; }
.login-entry {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
}
.login-entry.current { background: var(--gray-50); }
.login-entry i { color: var(--gray-500); width: 16px; flex-shrink: 0; }
.login-entry strong { display: block; }
.login-entry span   { color: var(--gray-500); font-size: .75rem; }
.login-entry .badge { margin-left: auto; }

/* ─── Wishlist in dashboard ──────────────────── */
#section-wishlist .products__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1100px) { .overview-stats { grid-template-columns: 1fr 1fr; } .quick-actions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px)  { .dashboard-layout { grid-template-columns: 1fr; } .dash-sidebar { position: static; } .security-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px)  { .form-row-2 { grid-template-columns: 1fr; } .overview-stats { grid-template-columns: 1fr 1fr; } .quick-actions { grid-template-columns: 1fr 1fr; } }
