:root {
  --primary-color: #55b379f3;
  --primary-dark: #dd2c85;
  --secondary-color: #ac2162;
  --bg-color: #FFF3E6;
  --surface-color: #eff3f7;
  --text-primary: #2f3542;
  --text-secondary: #2a2f36;
  --glass-bg: rgba(184, 89, 89, 0.774);
  --glass-border: rgba(253, 9, 102, 0.884);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 16px;
  --footer-bg: #d3d621c2;
}

body.dark-theme {
  --primary-color: #f59e0b;
  --primary-dark: #d97706;
  --secondary-color: #e2e8f0;
  --bg-color: #0f172a;
  --surface-color: #111827;
  --text-primary: #f8fafc;
  --text-secondary: #f5f8fd;
  --glass-bg: rgba(15, 23, 42, 0.85);
  --glass-border: rgba(148, 163, 184, 0.18);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.35);
  --footer-bg: #17223bab;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
header {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ff3b4f;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--bg-color);
  background: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-location:hover {
  background: var(--text-primary);
  color: var(--bg-color);
  transform: scale(1.05);
}

.header-location i {
  color: var(--primary-color);
}

.logo i {
  color: #ff3b4f;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(233, 37, 53, 0.3);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.cart-icon {
  position: relative;
  font-size: 1.2rem;
  padding: 0.5rem;
  background: var(--surface-color);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.cart-icon:hover {
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--primary-color);
  color: rgb(112, 85, 85);
  font-size: 0.75rem;
  font-weight: bold;
  height: 20px;
  width: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.theme-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--surface-color);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease;
}

.theme-btn:hover {
  transform: translateY(-2px);
  background: var(--glass-bg);
}

.theme-btn i {
  font-size: 1rem;
}

/* Premium Hero Banner */
.hero-banner {
  background-image: url('../img/WhatsApp Image 2026-05-10 at 14.26.19.jpeg');
  background-color: #f26b27;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 5rem 4rem;
  min-height: 300px;
  margin-bottom: 5rem;
  box-shadow: 0 20px 40px rgba(242, 107, 39, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-banner:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(242, 107, 39, 0.4);
}

.hero-content {
  flex: 1;
  max-width: 55%;
  z-index: 2;
  animation: slideInLeft 0.8s ease-out forwards;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 90%;
}

.btn-hero {
  background-color: white;
  color: #f26b27;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
}

.btn-hero:hover {
  background-color: #fdfdfd;
  color: #e05a1f;
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

/* Premium Search Container */
.search-container {
  display: flex;
  justify-content: center;
  margin-top: -2.5rem;
  /* Pull it up slightly to overlap banner */
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}

.search-bar {
  display: flex;
  background: white;
  border-radius: 50px;
  padding: 0.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  max-width: 650px;
  width: 100%;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-bar:hover,
.search-bar:focus-within {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(242, 107, 39, 0.2);
  border-color: rgba(242, 107, 39, 0.4);
}

.search-bar input {
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  outline: none;
  width: 100%;
  font-size: 1.1rem;
  color: #050101;
  background: transparent;
}

.btn-search {
  margin: 0;
  padding: 1rem 2.5rem;
  background-color: #f26b27;
  color: white;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(242, 107, 39, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-search:hover {
  background-color: #e05a1f;
  box-shadow: 0 10px 25px rgba(242, 107, 39, 0.5);
  transform: translateY(-3px) scale(1.1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Ads Banner */
.ads-banner-section {
  padding: 0 1.5rem;
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.ad-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  height: 200px;
}

.ad-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.ad-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ad-card:hover img {
  transform: scale(1.05);
}

/* Main Content */
main {
  flex: 1;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* Food Grid */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.food-card {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.food-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 25px 35px rgba(0, 0, 0, 0.2);
}

.food-img-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.food-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.food-card:hover .food-img-container img {
  transform: scale(1.1) rotate(1deg);
}

.food-price-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 700;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.food-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.food-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.food-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.rating-score {
  background: rgba(233, 37, 53, 0.12);
  color: var(--primary-color);
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  color: #ffb703;
  font-size: 0.9rem;
}

.rating-stars i.fa-regular {
  color: rgba(255, 183, 3, 0.4);
}

.food-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  background: linear-gradient(135deg, var(--primary-color), #ff5b6d);
  color: white;
  border: none;
  border-radius: 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(233, 37, 53, 0.18);
}

.btn:hover {
  background: linear-gradient(135deg, #ff3b4f, #d82f45);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 30px rgba(233, 37, 53, 0.25);
}

.btn-large {
  width: 100%;
  max-width: 100%;
  padding: 1.1rem 1.8rem;
  font-size: 1.05rem;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid rgba(233, 37, 53, 0.35);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(233, 37, 53, 0.08);
  color: var(--primary-dark);
  box-shadow: 0 12px 20px rgba(233, 37, 53, 0.12);
}

.address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.address-actions .btn {
  flex: 1 1 180px;
}

.btn-add {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* Cart Styles */
.cart-container {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 4rem;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  gap: 1.5rem;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: 700;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qty-btn {
  background: var(--bg-color);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.qty-btn:hover {
  background: #dfe4ea;
  transform: scale(1.15);
}

.cart-item-qty {
  font-weight: 600;
  width: 20px;
  text-align: center;
}

.cart-item-remove {
  color: #ff4757;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.cart-item-remove:hover {
  transform: scale(1.2) rotate(15deg);
  color: #c0392b;
}

/* Customer Orders */
.orders-page {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.orders-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.orders-page-header h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.orders-page-header p {
  color: var(--text-secondary);
  max-width: 560px;
}

.customer-orders-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.orders-empty-state {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 3rem 2rem;
  text-align: center;
}

.orders-empty-state i {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(233, 37, 53, 0.1);
  color: var(--primary-color);
  font-size: 2rem;
}

.orders-empty-state h2 {
  margin-bottom: 0.5rem;
}

.orders-empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.customer-order-card {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.customer-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-theme .customer-order-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.customer-order-head h2 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.customer-order-head p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-status-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(233, 37, 53, 0.08);
  color: var(--text-primary);
}

.order-status-summary span {
  color: var(--text-secondary);
  font-weight: 700;
  white-space: nowrap;
}

.order-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.order-timeline.cancelled {
  grid-template-columns: minmax(0, 1fr);
}

.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--text-secondary);
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 3px;
  background: rgba(47, 53, 66, 0.16);
}

.timeline-step.completed:not(:last-child)::after {
  background: var(--primary-color);
}

.timeline-step span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  border: 2px solid rgba(47, 53, 66, 0.16);
  color: var(--text-secondary);
  z-index: 1;
}

.timeline-step.completed span {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.timeline-step p {
  font-size: 0.85rem;
  font-weight: 700;
}

.customer-order-details {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 1.5rem;
}

.customer-order-details h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.customer-order-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.customer-order-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--bg-color);
}

.customer-order-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.customer-order-item p {
  margin-top: 0.15rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.customer-order-item span {
  font-weight: 800;
  color: var(--primary-color);
}

.customer-order-meta {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 1rem;
}

.customer-order-meta p {
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.cancel-order-btn {
  margin-top: 0.5rem;
  background: #dc3545;
  width: 100%;
  justify-content: center;
}

.checkout-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: start;
}

.cart-summary {
  margin-top: 0;
  padding: 2rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 239, 241, 0.95));
  box-shadow: 0 28px 60px rgba(233, 37, 53, 0.14);
  border: 1px solid rgba(233, 37, 53, 0.16);
  text-align: left;
}

.cart-total {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.checkout-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.address-preview {
  margin-top: 1rem;
  border-radius: 20px;
  padding: 1.15rem 1.35rem;
  background: rgba(246, 75, 105, 0.12);
  border: 1px solid rgba(246, 75, 105, 0.2);
}

.address-preview span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.address-preview p {
  margin: 0;
  color: #8a3a4d;
  line-height: 1.6;
  word-break: break-word;
}

.checkout-address {
  position: relative;
  background: linear-gradient(180deg, rgba(243, 241, 241, 0.98), rgba(255, 246, 247, 0.95));
  border: 1px solid rgba(233, 37, 53, 0.16);
  border-radius: 26px;
  padding: 2rem;
  box-shadow: 0 26px 60px rgba(233, 37, 53, 0.12);
  overflow: hidden;
}

.checkout-address::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, rgba(246, 75, 105, 0.95), rgba(255, 161, 112, 0.95));
}

body.dark-theme .cart-summary {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

body.dark-theme .checkout-address {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(22, 29, 49, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
}

body.dark-theme .checkout-address::before {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.9), rgba(249, 115, 22, 0.9));
}

body.dark-theme .address-input {
  background: rgba(15, 23, 42, 0.94);
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 4px 18px rgba(148, 163, 184, 0.12);
}

body.dark-theme .address-input::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

body.dark-theme .address-preview {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .address-preview p {
  color: var(--text-secondary);
}

body.dark-theme .address-preview span {
  color: var(--primary-color);
}

.checkout-address h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  color: var(--primary-color);
}

.address-header {
  margin-bottom: 1rem;
}

.address-input {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border: 1px solid rgba(233, 37, 53, 0.18);
  border-radius: 20px;
  padding: 1.15rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 4px 15px rgba(233, 37, 53, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.address-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(233, 37, 53, 0.12);
  transform: translateY(-1px);
}

.address-save-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), #ff7d60);
  border: none;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1.35fr 0.95fr;
  }
}

.empty-cart {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.empty-cart i {
  font-size: 4rem;
  color: #dfe4ea;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--text-primary);
  padding: 3rem 0;
  text-align: center;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

footer p {
  opacity: 0.8;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-dark);
}

footer .footer-row {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background: var(--surface-color);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(0);
}

.toast i {
  color: #2ed573;
  font-size: 1.2rem;
}

/* Dietary Filter */
.dietary-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--text-primary);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn:hover {
  background-color: rgba(233, 37, 53, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.filter-btn.active i {
  color: white !important;
}



/* Mobile responsiveness */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 0.5rem;
  }

  header h1 {
    font-size: 1rem;
  }

  header p {
    font-size: 0.75rem;
  }

  .lang-switch {
    margin-left: 0;
    justify-content: center;
  }

  .intro {
    margin: 2rem auto 1rem auto;
    padding: 0 0.5rem;
  }

  .intro h2 {
    font-size: 1.5rem;
  }

  .intro p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .feature-list {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto;
  }

  .feature {
    width: 100%;
    max-width: 300px;
  }

  .how-it-works {
    margin: 2rem auto 1rem auto;
    padding: 1rem;
  }

  .how-it-works h3 {
    font-size: 1.25rem;
  }

  .steps {
    flex-direction: column;
    gap: 1rem;
  }

  .step {
    flex: none;
    width: 100%;
  }

  .stats {
    flex-direction: column;
    margin: 2rem auto;
  }

  .stat-block {
    width: 100%;
  }

  .ready-section {
    margin: 2rem auto 3rem auto;
    padding: 2rem 1rem;
  }

  .ready-section h2 {
    font-size: 1.25rem;
  }

  .btn-secondary {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  footer {
    font-size: 1rem;
  }

  .checkout-address {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 247, 0.95));
    border: 1px solid rgba(233, 37, 53, 0.16);
    border-radius: 22px;
    padding: 1.75rem;
    margin-top: 1.5rem;
    box-shadow: 0 22px 40px rgba(233, 37, 53, 0.12);
    overflow: hidden;
  }

  .checkout-address::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(246, 75, 105, 0.95), rgba(255, 161, 112, 0.95));
  }

  .checkout-address h3 {
    margin-bottom: 0.35rem;
    font-size: 1.25rem;
    color: var(--primary-color);
  }

  .address-subtext {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .address-input {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 1px solid rgba(233, 37, 53, 0.18);
    border-radius: 18px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 4px 18px rgba(233, 37, 53, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .address-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(233, 37, 53, 0.12);
    transform: translateY(-1px);
  }

  .address-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #ff7d60);
    border: none;
  }

  /* Navigation */
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-left {
    width: 100%;
    justify-content: space-between;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* Hero Banner */
  .hero-banner {
    padding: 3rem 1.5rem;
    min-height: 250px;
    background-size: cover;
    margin-bottom: 3rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 0 auto 1.5rem auto;
  }

  /* Search Container */
  .search-container {
    margin-top: -3rem;
  }

  .search-bar {
    flex-direction: column;
    border-radius: 20px;
    padding: 1rem;
  }

  .search-bar input {
    padding: 0.5rem;
    text-align: center;
  }

  .btn-search {
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 12px;
  }

  /* Admin Layout */
  .admin-container {
    grid-template-columns: 1fr;
  }

  /* Auth Container */
  .auth-container {
    margin: 2rem auto;
    padding: 1.5rem;
    max-width: 90%;
  }

  /* Dietary Filter */
  .dietary-filter {
    flex-wrap: wrap;
  }

  .filter-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  /* Cart Layout */
  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item-img {
    width: 100px;
    height: 100px;
    margin-bottom: 0.5rem;
  }

  .cart-item-actions {
    margin-top: 0.5rem;
    justify-content: center;
  }
}

a,
button,
.btn,
.header-location,
.cart-item-remove,
.qty-btn,
.filter-btn,
.cart-icon,
select,
input[type="submit"],
input[type="button"],
input[type="radio"],
input[type="checkbox"],
.theme-btn {
  cursor: pointer;
}

/* Payment Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.payment-modal-content {
  background: var(--surface-color);
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}

body.dark-theme .payment-modal-content {
  background: var(--bg-color);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.payment-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
}

body.dark-theme .payment-header {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.payment-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-modal {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0.5rem;
}

.close-modal:hover {
  color: var(--primary-color);
}

.payment-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--bg-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

body.dark-theme .payment-method {
  background: var(--surface-color);
}

.payment-method:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.payment-method.selected {
  border-color: var(--primary-color);
  background: rgba(233, 37, 53, 0.05);
}

body.dark-theme .payment-method.selected {
  background: rgba(245, 158, 11, 0.1);
}

.payment-method input[type="radio"] {
  accent-color: var(--primary-color);
  transform: scale(1.2);
}

.payment-method i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 30px;
  text-align: center;
}

.payment-details {
  display: none;
  animation: fadeIn 0.3s ease;
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-theme .payment-details {
  background: var(--surface-color);
  border-color: rgba(255, 255, 255, 0.05);
}

.payment-details.active {
  display: block;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 1rem;
  background: var(--surface-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

body.dark-theme .form-control {
  background: var(--bg-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(233, 37, 53, 0.1);
}

body.dark-theme .form-control:focus {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.payment-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--glass-bg);
}

body.dark-theme .payment-footer {
  border-top-color: rgba(255, 255, 255, 0.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Restaurant Info Section */
.restaurant-info-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

body.dark-theme .restaurant-info-section {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.info-card {
  background: var(--surface-color);
  padding: 2.5rem 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.info-icon {
  width: 70px;
  height: 70px;
  background: rgba(242, 107, 39, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.info-card:hover .info-icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.info-card h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 0;
}

.info-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  header {
    padding: 0.75rem 0;
  }

  .nav-container {
    align-items: stretch;
  }

  .nav-left {
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
  }

  .logo {
    justify-content: center;
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .header-location {
    justify-content: center;
    width: 100%;
    border-radius: 12px;
  }

  nav ul {
    width: 100%;
    gap: 0.75rem;
  }

  nav li {
    display: flex;
    align-items: center;
  }

  nav a {
    font-size: 0.95rem;
  }

  .hero-banner-section {
    margin-bottom: 2rem !important;
  }

  .hero-banner {
    min-height: 360px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    padding: 3rem 1.5rem;
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .food-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .food-img-container {
    height: 190px;
  }

  .admin-container {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
  }

  .admin-sidebar,
  .admin-content,
  .auth-container {
    padding: 1.25rem !important;
    border-radius: 12px !important;
  }

  .auth-container {
    width: 100% !important;
    max-width: 420px !important;
    margin: 2rem auto !important;
  }

  .admin-sidebar ul {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .admin-sidebar li {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
  }

  .admin-sidebar a {
    white-space: nowrap;
  }

  .admin-content>div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem;
  }

  .admin-content>div:first-child .btn {
    width: 100%;
    justify-content: center;
  }

  .orders-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-page-header .btn {
    justify-content: center;
  }

  .customer-order-head,
  .order-status-summary {
    flex-direction: column;
  }

  .order-status-summary span {
    white-space: normal;
  }

  .order-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1rem;
  }

  .timeline-step::after {
    display: none;
  }

  .customer-order-details {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .payment-modal-content {
    max-height: calc(100vh - 2rem);
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  nav ul {
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .theme-btn {
    width: 40px;
    height: 40px;
  }

  .hero-banner {
    min-height: 330px;
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .food-info {
    padding: 1.15rem;
  }

  .food-title {
    font-size: 1.1rem;
  }

  .cart-item {
    padding: 1rem;
  }

  .orders-page {
    padding-top: 2rem;
  }

  .orders-page-header h1 {
    font-size: 1.8rem;
  }

  .customer-order-card {
    padding: 1rem;
  }

  .customer-order-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .customer-order-item img {
    width: 48px;
    height: 48px;
  }

  .customer-order-item span {
    grid-column: 2;
  }

  .payment-header,
  .payment-body,
  .payment-footer {
    padding: 1rem;
  }
}

/* Coins Section */
.coins-section {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.coins-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #f59e0b;
  margin-bottom: 0.75rem;
}

.coins-redeem {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.coins-redeem label {
  font-weight: 600;
  color: var(--text-primary);
}

.coins-redeem input {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

.coins-value {
  font-weight: 700;
  color: #dc3545;
}



/* ==========================================================================
   USER PROFILE PAGE STYLES
   ========================================================================== */

.profile-page-wrapper {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Profile Hero Header */
.profile-hero-card {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--surface-color) 0%, rgba(255, 107, 53, 0.05) 100%);
}

.profile-hero-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profile-avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-md);
  background: var(--surface-color);
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: 2px solid var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.avatar-edit-btn:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.profile-identity {
  flex: 1;
  min-width: 240px;
}

.profile-username-heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.user-badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-badge.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.user-badge.admin {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
}

.profile-email-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-joined-text {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* Stat Cards */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
}

.profile-stat-card {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon-wrapper.orders {
  background: rgba(255, 107, 53, 0.15);
  color: #ff6b35;
}

.stat-icon-wrapper.spent {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.stat-icon-wrapper.addresses {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.stat-icon-wrapper.member {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Tabs Navigation */
.profile-nav-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 2px solid var(--glass-border);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.profile-tab-btn {
  padding: 0.75rem 1.4rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.profile-tab-btn:hover {
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary-color);
}

.profile-tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Tab Content Panes */
.profile-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.profile-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards & Sections in Tab Panes */
.profile-section-card {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.section-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Forms */
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.profile-form-group input,
.profile-form-group textarea {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--bg-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-form-group input:focus,
.profile-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.profile-form-group input[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.05);
}

.form-action-row {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-profile-save {
  padding: 0.75rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-profile-save:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Address Cards */
.addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.address-card {
  background: var(--bg-color);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.address-card.default-address {
  border: 2px solid var(--primary-color);
  background: rgba(255, 107, 53, 0.03);
}

.address-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.address-type-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.address-default-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--primary-color);
  color: #fff;
}

.address-card-body p {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.address-card-actions {
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 0.75rem;
  justify-content: flex-end;
}

.btn-address-action {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-address-action:hover {
  background: var(--surface-color);
  color: var(--primary-color);
}

.btn-address-action.delete:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* Order History Quick Cards */
.recent-orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-order-card {
  background: var(--bg-color);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.order-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-card-id {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.order-card-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.order-status-pill {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.order-status-pill.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.order-status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.order-status-pill.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.order-card-total {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* Avatar Modal Picker */
.avatar-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.avatar-modal-overlay.active {
  display: flex;
}

.avatar-modal {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.avatar-option-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.avatar-option-img:hover,
.avatar-option-img.selected {
  transform: scale(1.1);
  border-color: var(--primary-color);
}

/* Custom Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-msg {
  background: var(--surface-color);
  color: var(--text-primary);
  border-left: 5px solid var(--primary-color);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  animation: slideInRight 0.3s ease-out forwards;
}

.toast-msg.success {
  border-left-color: #10b981;
}

.toast-msg.error {
  border-left-color: #ef4444;
}

.toast-msg.info {
  border-left-color: #3b82f6;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .profile-hero-top {
    flex-direction: column;
    text-align: center;
  }

  .profile-username-heading {
    justify-content: center;
  }

  .profile-email-text {
    justify-content: center;
  }

  .avatar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Password Visibility Toggle Styles */
.password-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-toggle-wrapper input {
  width: 100%;
  padding-right: 2.75rem !important;
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.15s ease;
  z-index: 5;
  border-radius: 6px;
  user-select: none;
}

.password-toggle-btn:hover {
  color: var(--primary-color, #ff6b35);
  transform: translateY(-50%) scale(1.1);
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--primary-color, #ff6b35);
}