/*
Theme Name: Hayaa Reseller
Theme URI: https://friendsgallery.shop
Author: Hayaa by Moriyom
Author URI: https://friendsgallery.shop
Description: Exclusive Reseller Platform for Hayaa by Moriyom — Luxury Modest Fashion Bangladesh
Version: 1.0.0
License: Private
Text Domain: hayaa-reseller
*/

/* =============================================
   HAYAA RESELLER — DESIGN TOKENS
   Maroon + Golden + Black Premium Theme
   ============================================= */

:root {
  /* Brand Colors */
  --maroon:       #6D0B2F;
  --maroon-dark:  #4A0820;
  --maroon-light: #8B1040;
  --golden:       #C9A84C;
  --golden-light: #E2C97E;
  --golden-dark:  #A8863A;
  --black:        #0D0D0D;
  --black-soft:   #1A1A1A;
  --white:        #FFFFFF;
  --off-white:    #FAF7F2;
  --gray-100:     #F5F0EB;
  --gray-200:     #E8E0D8;
  --gray-400:     #9E8E80;
  --gray-600:     #5C4F45;

  /* Semantic */
  --bg-primary:   var(--off-white);
  --bg-sidebar:   var(--maroon-dark);
  --text-primary: var(--black-soft);
  --text-light:   var(--gray-600);
  --accent:       var(--golden);
  --danger:       #C0392B;
  --success:      #27AE60;
  --warning:      #F39C12;
  --info:         #2980B9;

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-arabic:  'Amiri', serif;

  /* Spacing */
  --sidebar-w:    260px;
  --header-h:     64px;
  --radius:       8px;
  --radius-lg:    16px;
  --shadow:       0 2px 12px rgba(109,11,47,0.08);
  --shadow-md:    0 4px 24px rgba(109,11,47,0.14);
  --shadow-lg:    0 8px 40px rgba(109,11,47,0.18);

  /* Transitions */
  --transition:   all 0.25s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* =============================================
   LAYOUT — DASHBOARD SHELL
   ============================================= */
.hr-shell {
  display: flex;
  min-height: 100vh;
}

/* =============================================
   SIDEBAR
   ============================================= */
.hr-sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--maroon-dark) 0%, var(--black-soft) 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 1000;
  transition: var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.hr-sidebar::-webkit-scrollbar { width: 4px; }
.hr-sidebar::-webkit-scrollbar-track { background: transparent; }
.hr-sidebar::-webkit-scrollbar-thumb { background: var(--golden-dark); border-radius: 2px; }

/* Logo */
.hr-sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  text-align: center;
}

.hr-sidebar-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid var(--golden);
  object-fit: cover;
}

.hr-sidebar-logo .brand-name {
  font-family: var(--font-display);
  color: var(--golden);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.hr-sidebar-logo .brand-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* User info in sidebar */
.hr-sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hr-sidebar-user .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--maroon);
  border: 2px solid var(--golden);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--golden);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  overflow: hidden;
}

.hr-sidebar-user .avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

.hr-sidebar-user .user-info { overflow: hidden; }
.hr-sidebar-user .user-name {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hr-sidebar-user .user-role {
  display: inline-block;
  background: var(--golden);
  color: var(--maroon-dark);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 20px;
  margin-top: 2px;
}

/* Nav */
.hr-nav { flex: 1; padding: 12px 0; }

.hr-nav-section {
  padding: 12px 20px 4px;
  color: rgba(201,168,76,0.5);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.hr-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.hr-nav-item:hover {
  color: var(--golden-light);
  background: rgba(201,168,76,0.06);
}

.hr-nav-item.active {
  color: var(--golden);
  background: rgba(201,168,76,0.12);
}

.hr-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: 100%;
  background: var(--golden);
  border-radius: 0 2px 2px 0;
}

.hr-nav-item .nav-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.hr-nav-item .nav-badge {
  margin-left: auto;
  background: var(--maroon);
  color: var(--golden);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Sidebar Footer */
.hr-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.hr-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  padding: 8px 0;
  transition: var(--transition);
}

.hr-sidebar-footer a:hover { color: var(--golden); }

/* =============================================
   MAIN CONTENT
   ============================================= */
.hr-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.hr-topbar {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 8px rgba(109,11,47,0.06);
}

.hr-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hr-topbar-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--maroon);
}

.hr-topbar-subtitle {
  color: var(--gray-400);
  font-size: 0.78rem;
}

.hr-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hr-topbar-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.hr-topbar-btn:hover {
  background: var(--maroon);
  color: var(--golden);
  border-color: var(--maroon);
}

.hr-topbar-btn .notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--white);
}

/* Profile Dropdown */
.hr-profile-dropdown {
  position: relative;
}

.hr-profile-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 24px;
  border: 1px solid var(--gray-200);
  background: var(--off-white);
  cursor: pointer;
  transition: var(--transition);
}

.hr-profile-trigger:hover {
  border-color: var(--golden);
  background: var(--white);
}

.hr-profile-trigger .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  color: var(--golden);
  font-weight: 700;
  font-size: 0.78rem;
  overflow: hidden;
}

.hr-profile-trigger .name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hr-profile-trigger .arrow {
  color: var(--gray-400);
  font-size: 0.7rem;
  transition: var(--transition);
}

.hr-profile-dropdown.open .arrow { transform: rotate(180deg); }

.hr-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: none;
  z-index: 1100;
}

.hr-profile-dropdown.open .hr-dropdown-menu { display: block; }

.hr-dropdown-menu a,
.hr-dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--text-primary);
  font-size: 0.83rem;
  transition: var(--transition);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}

.hr-dropdown-menu a:hover,
.hr-dropdown-menu button:hover {
  background: var(--gray-100);
  color: var(--maroon);
}

.hr-dropdown-menu .divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 4px 0;
}

.hr-dropdown-menu .logout {
  color: var(--danger) !important;
}

/* =============================================
   PAGE CONTENT
   ============================================= */
.hr-page {
  padding: 28px;
  flex: 1;
}

/* Page header */
.hr-page-header {
  margin-bottom: 24px;
}

.hr-page-header h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 4px;
}

.hr-page-header p {
  color: var(--gray-400);
  font-size: 0.88rem;
}

/* =============================================
   STAT CARDS
   ============================================= */
.hr-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.hr-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.hr-stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--golden);
}

.hr-stat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--golden);
  transform: translateY(-2px);
}

.hr-stat-card.maroon::after { background: var(--maroon); }
.hr-stat-card.success::after { background: var(--success); }
.hr-stat-card.warning::after { background: var(--warning); }
.hr-stat-card.info::after { background: var(--info); }

.hr-stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--gray-100);
}

.hr-stat-card.maroon .hr-stat-icon { background: rgba(109,11,47,0.08); }
.hr-stat-card.success .hr-stat-icon { background: rgba(39,174,96,0.08); }
.hr-stat-card.warning .hr-stat-icon { background: rgba(243,156,18,0.08); }
.hr-stat-card.info .hr-stat-icon { background: rgba(41,128,185,0.08); }

.hr-stat-info .label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 4px;
}

.hr-stat-info .value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.hr-stat-info .change {
  font-size: 0.72rem;
  margin-top: 4px;
  font-weight: 600;
}

.hr-stat-info .change.up { color: var(--success); }
.hr-stat-info .change.down { color: var(--danger); }

/* =============================================
   CARDS & PANELS
   ============================================= */
.hr-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}

.hr-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hr-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--maroon);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hr-card-body { padding: 22px; }

/* =============================================
   TABLES
   ============================================= */
.hr-table-wrap { overflow-x: auto; }

.hr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.hr-table thead th {
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.hr-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-primary);
  vertical-align: middle;
}

.hr-table tbody tr:last-child td { border-bottom: none; }

.hr-table tbody tr:hover td { background: var(--off-white); }

/* Status badges */
.hr-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hr-badge.pending  { background: rgba(243,156,18,0.12); color: #B7770D; }
.hr-badge.active   { background: rgba(39,174,96,0.12);  color: #1E8449; }
.hr-badge.inactive { background: var(--gray-100); color: var(--gray-400); }
.hr-badge.success  { background: rgba(39,174,96,0.12);  color: #1E8449; }
.hr-badge.danger   { background: rgba(192,57,43,0.12);  color: var(--danger); }
.hr-badge.maroon   { background: rgba(109,11,47,0.1);   color: var(--maroon); }
.hr-badge.golden   { background: rgba(201,168,76,0.15); color: var(--golden-dark); }
.hr-badge.info     { background: rgba(41,128,185,0.12); color: #1A5276; }

/* =============================================
   BUTTONS
   ============================================= */
.hr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.83rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.hr-btn-primary {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}

.hr-btn-primary:hover {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(109,11,47,0.25);
}

.hr-btn-golden {
  background: var(--golden);
  color: var(--black);
  border-color: var(--golden);
  font-weight: 700;
}

.hr-btn-golden:hover {
  background: var(--golden-dark);
  border-color: var(--golden-dark);
  transform: translateY(-1px);
}

.hr-btn-outline {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}

.hr-btn-outline:hover {
  background: var(--maroon);
  color: var(--white);
}

.hr-btn-sm {
  padding: 5px 12px;
  font-size: 0.76rem;
}

.hr-btn-icon {
  padding: 7px;
  width: 34px; height: 34px;
  border-radius: var(--radius);
}

.hr-btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.hr-btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

/* =============================================
   FORMS
   ============================================= */
.hr-form-group {
  margin-bottom: 18px;
}

.hr-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.hr-form-group label .req {
  color: var(--danger);
  margin-left: 2px;
}

.hr-input,
.hr-select,
.hr-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.hr-input:focus,
.hr-select:focus,
.hr-textarea:focus {
  border-color: var(--golden);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.hr-input::placeholder { color: var(--gray-400); }
.hr-textarea { resize: vertical; min-height: 100px; }

.hr-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239E8E80' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

.hr-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hr-form-hint {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.hr-form-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =============================================
   NOTICES / ALERTS
   ============================================= */
.hr-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.hr-alert.success { background: rgba(39,174,96,0.1);  border-left: 4px solid var(--success);  color: #1E8449; }
.hr-alert.danger  { background: rgba(192,57,43,0.1);  border-left: 4px solid var(--danger);   color: var(--danger); }
.hr-alert.warning { background: rgba(243,156,18,0.1); border-left: 4px solid var(--warning);  color: #B7770D; }
.hr-alert.info    { background: rgba(41,128,185,0.1); border-left: 4px solid var(--info);     color: #1A5276; }

/* =============================================
   MARQUEE NOTICE
   ============================================= */
.hr-marquee-bar {
  background: linear-gradient(90deg, var(--maroon-dark), var(--maroon));
  color: var(--golden-light);
  padding: 8px 0;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hr-marquee-inner {
  display: inline-block;
  animation: marqueeScroll 30s linear infinite;
  padding-left: 100%;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.hr-marquee-bar:hover .hr-marquee-inner { animation-play-state: paused; }

/* =============================================
   PRODUCT CARD (Catalog)
   ============================================= */
.hr-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.hr-product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.hr-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--golden);
}

.hr-product-img {
  aspect-ratio: 3/4;
  background: var(--gray-100);
  overflow: hidden;
  position: relative;
}

.hr-product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hr-product-card:hover .hr-product-img img { transform: scale(1.04); }

.hr-product-label {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--maroon);
  color: var(--golden-light);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hr-product-info {
  padding: 14px;
}

.hr-product-info h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.hr-product-info .price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.hr-product-info .price-retail {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--maroon);
}

.hr-product-info .price-profit {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(39,174,96,0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.hr-product-info .price-cost {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

/* =============================================
   CATEGORY CARDS
   ============================================= */
.hr-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.hr-category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  padding: 20px 12px;
}

.hr-category-card:hover,
.hr-category-card.active {
  border-color: var(--golden);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hr-category-card .cat-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
  border: 2px solid var(--golden);
}

.hr-category-card .cat-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.hr-category-card .cat-count {
  font-size: 0.72rem;
  color: var(--gray-400);
}

/* =============================================
   ORDER STATUS TIMELINE
   ============================================= */
.hr-timeline {
  position: relative;
  padding-left: 24px;
}

.hr-timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gray-200);
}

.hr-timeline-item {
  position: relative;
  padding: 0 0 20px 20px;
}

.hr-timeline-item::before {
  content: '';
  position: absolute;
  left: -18px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 2px solid var(--white);
}

.hr-timeline-item.done::before { background: var(--success); }
.hr-timeline-item.current::before { background: var(--golden); box-shadow: 0 0 0 3px rgba(201,168,76,0.2); }

.hr-timeline-item .tl-time {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.hr-timeline-item .tl-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hr-timeline-item .tl-desc {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 2px;
}

/* =============================================
   AUTH PAGES (Login/Register)
   ============================================= */
.hr-auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--black-soft) 60%, var(--maroon) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.hr-auth-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
}

.hr-auth-page::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  bottom: -50px; left: -50px;
}

.hr-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.hr-auth-header {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  padding: 32px 36px;
  text-align: center;
  border-bottom: 3px solid var(--golden);
}

.hr-auth-header img {
  width: 70px; height: 70px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid var(--golden);
  object-fit: cover;
}

.hr-auth-header h2 {
  font-family: var(--font-display);
  color: var(--golden);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.hr-auth-header p {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}

.hr-auth-body {
  padding: 32px 36px;
}

.hr-auth-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
}

.hr-auth-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-400);
  background: none;
  border: none;
}

.hr-auth-tab.active {
  background: var(--maroon);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(109,11,47,0.2);
}

.hr-auth-footer-text {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 20px;
}

.hr-auth-footer-text a {
  color: var(--maroon);
  font-weight: 600;
}

/* Social login buttons */
.hr-social-login {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.hr-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: pointer;
}

.hr-social-btn:hover {
  border-color: var(--golden);
  background: var(--off-white);
}

/* =============================================
   PAGINATION
   ============================================= */
.hr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.hr-page-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.hr-page-btn:hover { border-color: var(--golden); color: var(--maroon); }
.hr-page-btn.active { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.hr-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* =============================================
   MODAL
   ============================================= */
.hr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.hr-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.hr-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.2s;
}

.hr-modal-overlay.open .hr-modal { transform: scale(1); }

.hr-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hr-modal-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--maroon);
}

.hr-modal-close {
  width: 30px; height: 30px;
  border-radius: var(--radius);
  border: none;
  background: var(--gray-100);
  color: var(--gray-400);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.hr-modal-close:hover { background: var(--danger); color: var(--white); }

.hr-modal-body { padding: 24px; }
.hr-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
.hr-sidebar-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--maroon);
}

@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
}

@media (max-width: 768px) {
  .hr-sidebar {
    transform: translateX(-100%);
  }
  .hr-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .hr-main { margin-left: 0; }
  .hr-sidebar-toggle { display: flex; }
  .hr-page { padding: 16px; }
  .hr-form-row { grid-template-columns: 1fr; }
  .hr-stats-grid { grid-template-columns: 1fr 1fr; }
  .hr-topbar { padding: 0 16px; }
  .hr-auth-body { padding: 24px 20px; }
  .hr-auth-header { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .hr-stats-grid { grid-template-columns: 1fr; }
  .hr-products-grid { grid-template-columns: 1fr 1fr; }
  .hr-auth-card { border-radius: 12px; }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-maroon  { color: var(--maroon) !important; }
.text-golden  { color: var(--golden) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-muted   { color: var(--gray-400) !important; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.w-full { width: 100%; }

.hr-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 20px 0;
}

/* Loading spinner */
.hr-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--maroon);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Golden shimmer for premium feel */
.hr-golden-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--golden), transparent);
  margin: 0;
}
