/* ============================================
   ARCANA TECNOLOGIA — PWA Design System
   ============================================ */

/* --- CSS Variables / Tokens --- */
/* --- CSS Variables / Tokens --- */
:root {
  /* Default to Dark Mode variables (will be overridden by [data-theme="light"]) */
  --primary: #00d9c0;
  --primary-light: #1de9b6;
  --primary-dark: #00b3a0;
  --secondary: #7c4dff;
  --secondary-light: #b388ff;

  --bg-deep: #0a0a14;
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(30, 30, 50, 0.7);
  --bg-card-hover: rgba(40, 40, 65, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.04);

  --text-primary: #f1f1f6;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b85;

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  --border: rgba(255, 255, 255, 0.06);
  --border-active: rgba(0, 217, 192, 0.4);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 217, 192, 0.15);

  /* Layout */
  --header-height: 60px;
  --nav-height: 72px;
  --max-width: 480px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Branding */
  --brand-font: 'Orbitron', sans-serif;
  --brand-cyan: #00d9c0;
  --brand-green: #22c55e;
}

[data-theme="light"] {
  /* Official Arcana Colors (Web) */
  --primary: #00d9c0;
  --primary-light: #1de9b6;
  --primary-dark: #00b3a0;
  --secondary: #7c4dff;
  /* Accent from site */
  --secondary-light: #b388ff;

  --bg-deep: #f5f7fa;
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0fcf9;
  --bg-glass: rgba(0, 217, 192, 0.05);

  --text-primary: #1a2332;
  --text-secondary: #5a6c7d;
  --text-muted: #94a3b8;

  --border: #e2e8f0;
  --border-active: rgba(0, 217, 192, 0.4);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 217, 192, 0.15);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

a:hover {
  color: var(--secondary-light);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* --- Splash Screen --- */
.splash {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
}

.splash-logo {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  animation: pulse-glow 2s ease infinite;
}

.splash-title {
  font-family: var(--brand-font);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 4px;
}

.brand-separator {
  width: 140px;
  height: 4px;
  background: var(--brand-cyan);
  margin: 10px auto;
  border-radius: var(--radius-full);
}

.splash-subtitle {
  font-family: var(--brand-font);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-cyan);
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 5px;
}

.splash-loader {
  width: 120px;
  height: 3px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  margin: var(--space-xl) auto 0;
  overflow: hidden;
}

.splash-loader-bar {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  animation: loader-slide 1.2s ease infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.7));
  }
}

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

  100% {
    transform: translateX(350%);
  }
}

/* --- App Shell --- */
.app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: var(--bg-primary);
}

/* --- Header --- */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--header-height);
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-logo {
  font-size: 1.5rem;
}

.header-title {
  font-family: var(--brand-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.header-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.header-btn:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* --- Page Container --- */
.page-container {
  padding-top: var(--header-height);
  padding-bottom: calc(var(--nav-height) + var(--space-md));
  min-height: 100vh;
  min-height: 100dvh;
}

.page {
  padding: var(--space-lg) var(--space-md);
  animation: page-enter 0.35s ease forwards;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

/* --- Bottom Navigation --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--nav-height);
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-sm);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  position: relative;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: var(--transition-fast);
}

.nav-item.active {
  color: var(--primary-light);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.nav-item:hover:not(.active) {
  color: var(--text-secondary);
}

/* --- Toast --- */
.toast {
  position: fixed;
  top: calc(var(--header-height) + var(--space-md));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(var(--max-width) - var(--space-xl));
  width: calc(100% - var(--space-xl));
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  z-index: 200;
  animation: toast-in 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast.success {
  background: var(--success);
  color: #fff;
}

.toast.error {
  background: var(--error);
  color: #fff;
}

.toast.info {
  background: var(--info);
  color: #fff;
}

.toast.warning {
  background: var(--warning);
  color: #1a1a2e;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* --- Utility classes --- */
.hidden {
  display: none !important;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

.card-clickable {
  cursor: pointer;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.1);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px var(--space-md);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: 14px var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23a0a0b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* --- Search Bar --- */
.search-container {
  position: relative;
  margin-bottom: var(--space-lg);
}

.search-container .form-input {
  padding-right: 48px;
  background: var(--bg-glass);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  pointer-events: none;
}

/* --- Tabs --- */
.tabs {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-lg);
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 12px var(--space-md);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.tab:not(.active):hover {
  color: var(--text-secondary);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-progress {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.badge-done {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.badge-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.badge-category {
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary-light);
}

/* --- Statistics / Metric Cards --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.stat-card:nth-child(1)::after {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.stat-card:nth-child(2)::after {
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
}

.stat-card:nth-child(3)::after {
  background: linear-gradient(90deg, var(--warning), #fbbf24);
}

.stat-card:nth-child(4)::after {
  background: linear-gradient(90deg, var(--success), #4ade80);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Service Cards --- */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.service-info {
  flex: 1;
  min-width: 0;
}

.service-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.service-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.service-time,
.service-warranty {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* --- Category Filter --- */
.category-filter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
  scrollbar-width: none;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.category-chip svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex-shrink: 0;
}

.category-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.category-chip:not(.active):hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

/* --- Service Detail Modal --- */
.service-detail {
  margin-top: var(--space-md);
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.service-detail-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.1));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.service-detail-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.service-detail-category {
  font-size: 0.8rem;
  color: var(--primary-light);
}

.service-detail-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.feature-list {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.feature-list li {
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-check {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-full);
  color: var(--success);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.detail-info-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.detail-info-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.detail-info-value {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Order Timeline --- */
.order-card {
  margin-bottom: var(--space-md);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.order-service {
  font-size: 1rem;
  font-weight: 600;
}

.order-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.order-timeline {
  padding-left: var(--space-md);
  border-left: 2px solid var(--border);
}

.timeline-step {
  position: relative;
  padding: 0 0 var(--space-lg) var(--space-lg);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-md) - 5px);
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 2px solid var(--text-muted);
}

.timeline-step.completed .timeline-dot {
  background: var(--success);
  border-color: var(--success);
}

.timeline-step.current .timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.timeline-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.timeline-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.empty-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

/* --- Login Page Specific --- */
.login-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding: var(--space-xl) var(--space-lg);
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.login-logo {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
}

.login-title {
  font-family: var(--brand-font);
  font-size: 1.8rem;
  color: var(--text-primary);
  letter-spacing: 3px;
}

.login-subtitle {
  font-family: var(--brand-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-cyan);
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.login-context {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-separator.login-brand-sep {
  width: 100px;
  height: 3px;
  margin: 8px auto;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-switch {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.login-switch a {
  color: var(--primary-light);
  font-weight: 600;
  cursor: pointer;
}

/* --- Welcome Section --- */
.welcome-section {
  margin-bottom: var(--space-xl);
}

.welcome-greeting {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.welcome-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.welcome-name span {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Quick Actions --- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.quick-action {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
}

.quick-action:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: var(--border-active);
}

.quick-action-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.quick-action-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- Loading spinner --- */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  gap: var(--space-md);
}

.loading-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Responsive tweaks for wider screens --- */
@media (min-width: 481px) {
  .app {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.05);
  }
}

/* --- Service detail action buttons --- */
.service-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* --- Quote success --- */
.quote-success {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.quote-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-full);
  animation: success-pop 0.5s ease;
}

@keyframes success-pop {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.quote-success h2 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.quote-success p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: var(--space-xl);
}

/* --- Notification Panel --- */
.header-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--error);
  border-radius: 50%;
  border: 1px solid var(--bg-primary);
}

.notif-panel {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  right: var(--space-md);
  width: 320px;
  max-width: calc(100vw - 32px);
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  max-height: 480px;
  animation: slide-down 0.2s ease;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.notif-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.text-btn {
  font-size: 0.75rem;
  color: var(--primary-light);
  background: none;
  border: none;
  cursor: pointer;
}

.text-btn:hover {
  text-decoration: underline;
}

.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xs);
}

.notif-empty {
  padding: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.notif-item {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: 2px;
  cursor: pointer;
  background: transparent;
  transition: var(--transition-fast);
  position: relative;
}

.notif-item:hover {
  background: var(--bg-glass);
}

.notif-item.unread {
  background: rgba(124, 58, 237, 0.08);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 18px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.notif-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.notif-msg {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notif-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  z-index: 1;
  animation: modal-spring 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-spring {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }

  70% {
    transform: scale(1.02) translateY(-2px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-weight: 700;
}

.modal-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* --- Urgency Warning --- */
.urgency-warning {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--warning);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* --- Profile Page --- */
.profile-page {
  padding-bottom: 30px;
}

.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.profile-avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.profile-email {
  font-size: 14px;
  color: var(--text-muted);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.avatar-item {
  aspect-ratio: 1;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.avatar-item:hover {
  transform: scale(1.05);
  background: var(--card-bg);
}

.avatar-item.selected {
  border-color: var(--primary);
  background: var(--card-bg);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
}

.info-note {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}

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


/* --- NOVO SISTEMA FIDELIDADE --- */

/* Missing layout classes restored */
.loyalty-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.loyalty-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stamps-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.loyalty-footer {
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

.loyalty-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: all 0.5s ease;
}

/* Base backgrounds */
.loyalty-card.tier-bronze {
  background: linear-gradient(135deg, rgba(25, 15, 5, 0.95), rgba(40, 20, 5, 0.95));
  border-color: #b45309;
}

.loyalty-card.tier-silver {
  background: linear-gradient(135deg, rgba(15, 15, 20, 0.95), rgba(30, 30, 40, 0.95));
  border-color: #9ca3af;
}

.loyalty-card.tier-gold {
  background: linear-gradient(135deg, rgba(30, 20, 5, 0.95), rgba(45, 30, 5, 0.95));
  border-color: #d97706;
}

.loyalty-card.tier-diamond {
  background: linear-gradient(135deg, rgba(10, 10, 25, 0.95), rgba(15, 15, 40, 0.95));
  border-color: #06b6d4;
}

/* Aurora effects tailored for tiers */
.loyalty-card::before,
.loyalty-card::after {
  content: '';
  position: absolute;
  inset: -50%;
  z-index: -1;
  filter: blur(30px);
}

/* Base animation speeds */
.loyalty-card::before {
  animation: aurora-flow 8s ease-in-out infinite alternate;
}

.loyalty-card::after {
  animation: aurora-flow-reverse 10s ease-in-out infinite alternate;
  filter: blur(25px);
}

/* Bronze Tier (Copper/Amber) */
.loyalty-card.tier-bronze::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(180, 83, 9, 0.4) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(217, 119, 6, 0.35) 0%, transparent 50%);
}

.loyalty-card.tier-bronze::after {
  background: radial-gradient(ellipse at 60% 40%, rgba(245, 158, 11, 0.3) 0%, transparent 45%), radial-gradient(ellipse at 30% 70%, rgba(146, 64, 14, 0.25) 0%, transparent 45%);
}

/* Silver Tier (Platinum/Gray/Cyan) */
.loyalty-card.tier-silver::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(156, 163, 175, 0.4) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(229, 231, 235, 0.35) 0%, transparent 50%);
}

.loyalty-card.tier-silver::after {
  background: radial-gradient(ellipse at 60% 40%, rgba(209, 213, 219, 0.3) 0%, transparent 45%), radial-gradient(ellipse at 30% 70%, rgba(107, 114, 128, 0.25) 0%, transparent 45%);
}

/* Gold Tier (Yellow/Gold) */
.loyalty-card.tier-gold::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(251, 191, 36, 0.4) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.35) 0%, transparent 50%);
}

.loyalty-card.tier-gold::after {
  background: radial-gradient(ellipse at 60% 40%, rgba(252, 211, 77, 0.3) 0%, transparent 45%), radial-gradient(ellipse at 30% 70%, rgba(217, 119, 6, 0.25) 0%, transparent 45%);
}

/* Diamond Tier (Cyan/Purple/Blue) */
.loyalty-card.tier-diamond::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.4) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.35) 0%, transparent 50%), radial-gradient(ellipse at 40% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
}

.loyalty-card.tier-diamond::after {
  background: radial-gradient(ellipse at 60% 40%, rgba(6, 182, 212, 0.3) 0%, transparent 45%), radial-gradient(ellipse at 30% 70%, rgba(124, 58, 237, 0.25) 0%, transparent 45%);
}

/* Badges */
.loyalty-badge {
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.loyalty-card.tier-bronze .loyalty-badge {
  background: #b45309;
}

.loyalty-card.tier-silver .loyalty-badge {
  background: #6b7280;
}

.loyalty-card.tier-gold .loyalty-badge {
  background: #fbbf24;
  color: #78350f;
}

.loyalty-card.tier-diamond .loyalty-badge {
  background: #06b6d4;
}

/* Stamps */
.stamp-slot {
  flex: 1;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-normal);
}

.stamp-slot.active.bronze {
  background: rgba(180, 83, 9, 0.2);
  border: 2px solid #b45309;
  box-shadow: 0 0 15px rgba(180, 83, 9, 0.3);
  animation: stamp-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stamp-slot.active.silver {
  background: rgba(156, 163, 175, 0.2);
  border: 2px solid #9ca3af;
  box-shadow: 0 0 15px rgba(156, 163, 175, 0.3);
  animation: stamp-pop 0.5s;
}

.stamp-slot.active.gold {
  background: rgba(251, 191, 36, 0.2);
  border: 2px solid #fbbf24;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
  animation: stamp-pop 0.5s;
}

.stamp-slot.active.diamond {
  background: rgba(6, 182, 212, 0.2);
  border: 2px solid #06b6d4;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
  animation: stamp-pop 0.5s;
}

/* Icons */
.stamp-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.stamp-icon.bronze {
  background-image: url('/img/logo.svg');
  filter: sepia(1) hue-rotate(-30deg) saturate(3) brightness(0.85);
}

.stamp-icon.silver {
  background-image: url('/img/logo.svg');
  filter: grayscale(1) brightness(1.7) contrast(1.2);
}

.stamp-icon.gold {
  background-image: url('/img/logo.svg');
  filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(1.3);
}

.stamp-icon.diamond::before {
  content: '💎';
}

.diamond-container.diamond {
  animation: diamond-vibrate 4s ease-in-out infinite;
}

/* Sparkles color */
.diamond-sparkle {
  background: white;
  box-shadow: 0 0 10px white;
}

.diamond-container.bronze .diamond-sparkle {
  background: #fcd34d;
  box-shadow: 0 0 10px #fcd34d;
}

.diamond-container.gold .diamond-sparkle {
  background: #fef3c7;
  box-shadow: 0 0 10px #fbbf24;
}

.diamond-container.diamond .diamond-sparkle {
  background: #cffafe;
  box-shadow: 0 0 10px #06b6d4;
}

/* Bonus ready message */
.loyalty-bonus-ready {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.loyalty-bonus-ready.bronze {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  animation: pulse-bronze 2s infinite;
}

.loyalty-bonus-ready.silver {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  animation: pulse-silver 2s infinite;
}

.loyalty-bonus-ready.gold {
  background: linear-gradient(135deg, #fbbf24 0%, #eab308 100%);
  color: #78350f;
  animation: pulse-gold 2s infinite;
}

.loyalty-bonus-ready.diamond {
  background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  animation: pulse-diamond 2s infinite;
}

@keyframes pulse-bronze {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(217, 119, 6, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
  }
}

@keyframes pulse-silver {
  0% {
    box-shadow: 0 0 0 0 rgba(156, 163, 175, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(156, 163, 175, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(156, 163, 175, 0);
  }
}

@keyframes pulse-diamond {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

/* --- PWA Install Banner --- */

.install-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: slide-in-top 0.5s ease-out, banner-pulse 3s infinite;
}

.install-banner:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(6, 182, 212, 0.3) 100%);
  transform: scale(1.02);
}

.install-banner-icon {
  font-size: 1.5rem;
}

.install-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.install-banner-text strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.install-banner-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.install-banner-arrow {
  color: var(--primary-light);
  font-weight: bold;
}

@keyframes banner-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
  }

  50% {
    box-shadow: 0 0 15px 0 rgba(124, 58, 237, 0.3);
  }
}

.hidden {
  display: none !important;
}

/* --- Admin Loyalty Badges --- */
.badge-loyalty {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border: none !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.75rem !important;
}

/* --- Notification History Page --- */
.notifications-page .notifications-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.notifications-page .notif-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.notif-history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.notif-history-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.notif-history-item:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.notif-history-item.unread {
  border-left: 4px solid var(--primary);
}

.notif-history-item.unread .notif-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: var(--space-xs);
}

.notif-history-item .notif-content {
  flex: 1;
  cursor: pointer;
}

.notif-history-item .notif-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-xs);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.notif-history-item .notif-title {
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-size: 1rem;
}

.notif-history-item .notif-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.notif-history-item .notif-msg {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.notif-history-item .notif-actions {
  display: flex;
  align-items: center;
}

.notif-history-item .btn-delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.notif-history-item .btn-delete:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.notif-panel-footer {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--glass-border);
  margin-top: var(--space-xs);
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

@media (max-width: 480px) {
  .notifications-page .notifications-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .notifications-page .action-buttons {
    width: 100%;
    display: flex;
    gap: var(--space-xs);
  }

  .notifications-page .action-buttons .btn {
    flex: 1;
    font-size: 0.75rem;
  }
}

/* --- Profile Photo Enhancements --- */
.profile-avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.profile-avatar {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--bg-secondary) !important;
  border: 4px solid var(--glass-border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  margin-bottom: var(--space-md) !important;
}

.avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.avatar-actions {
  margin: var(--space-sm) 0 var(--space-lg);
  display: flex;
  justify-content: center;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* --- Home Header Avatar --- */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.header-avatar-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-light);
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-avatar-container:hover {
  transform: scale(1.1);
}

.header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-secondary);
}

/* --- Fix Home Header Avatar Constraints --- */
.header-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.header-avatar-fallback {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* --- Increase Home Header Avatar Size --- */
.header-avatar-container {
  width: 64px !important;
  height: 64px !important;
  border-width: 3px !important;
}

.header-avatar-fallback {
  font-size: 1.8rem !important;
}

/* --- Set Home Header Avatar to 80px --- */
.header-avatar-container {
  width: 80px !important;
  height: 80px !important;
}

.header-avatar-fallback {
  font-size: 2.2rem !important;
}

/* --- Home Header Refinements --- */
.header-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.header-status {
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-top: 4px;
  font-weight: 500;
  opacity: 0.9;
}

.welcome-name {
  margin-bottom: 0 !important;
}

.welcome-greeting {
  margin-bottom: 2px !important;
}

/* --- Premium UX: Skeleton Screens & Micro-interactions --- */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

.skeleton {
  background: var(--bg-card);
  background-image: linear-gradient(to right, var(--bg-card) 0%, rgba(255, 255, 255, 0.05) 20%, var(--bg-card) 40%, var(--bg-card) 100%);
  background-repeat: no-repeat;
  background-size: 200% 100%;
  display: inline-block;
  position: relative;
  animation: shimmer 1.5s linear infinite forwards;
}

[data-theme="light"] .skeleton {
  background-image: linear-gradient(to right, var(--bg-card) 0%, rgba(0, 0, 0, 0.05) 20%, var(--bg-card) 40%, var(--bg-card) 100%);
}

.skeleton-text {
  height: 12px;
  margin-bottom: 6px;
  border-radius: 4px;
  width: 100%;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton-card {
  height: 180px;
  width: 100%;
  border-radius: var(--radius-lg);
}

/* Micro-interactions */
.btn {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, box-shadow 0.3s ease !important;
}

.btn:active {
  transform: scale(0.95);
}

.card,
.service-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.card:hover,
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.nav-item {
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item:active {
  transform: translateY(2px);
}

/* --- Premium UX: Illustrated Empty States --- */
.empty-state-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  min-height: 300px;
  animation: fadeInUp 0.5s ease-out;
}

.empty-state-illustration {
  width: 180px;
  height: 180px;
  margin-bottom: var(--space-lg);
  color: var(--primary);
  opacity: 0.8;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.empty-state-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 280px;
  line-height: 1.5;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* --- Advanced Animations: Staggered Entry & Sliding Tabs --- */
@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.stagger-item {
  opacity: 0;
  animation: staggerIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.tabs {
  display: flex;
  position: relative;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border);
  isolation: isolate;
}

.tab {
  flex: 1;
  padding: 10px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  border-radius: var(--radius-sm);
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.tab.active {
  color: #fff;
}

[data-theme="light"] .tab.active {
  color: #fff;
}

.tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
  z-index: 1;
}

.tabs[data-active="1"] .tab-indicator {
  transform: translateX(100%);
}

@keyframes pulse-soft {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
  }

  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(124, 58, 237, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
  }
}

@keyframes pulse-red {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.pulse {
  animation: pulse-soft 2s infinite;
}

.pulse-red {
  animation: pulse-red 2s infinite;
}

/* --- Advanced Animations: Animated Checkmark --- */
.checkmark-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.checkmark {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--primary);
  stroke-miterlimit: 10;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}

@keyframes drawCheck {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Loyalty Diamond Animation --- */
.diamond-container {
  display: inline-block;
  position: relative;
  animation: diamond-wobble 3s infinite ease-in-out;
}

.stamp-slot:hover .diamond-container {
  animation: diamond-wobble 0.8s infinite ease-in-out;
}

@keyframes diamond-wobble {

  0%,
  100% {
    transform: rotate(0deg) scale(1.1);
  }

  25% {
    transform: rotate(-8deg) scale(1.2);
  }

  75% {
    transform: rotate(8deg) scale(1.2);
  }
}

.diamond-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 4px #fff, 0 0 8px var(--primary-light);
  opacity: 0;
  pointer-events: none;
}

.s1 {
  top: -2px;
  left: 50%;
  animation: sparkle-flicker 2s infinite 0.2s;
}

.s2 {
  bottom: -2px;
  right: 10%;
  animation: sparkle-flicker 2.5s infinite 0.5s;
}

.s3 {
  top: 40%;
  left: -4px;
  animation: sparkle-flicker 1.8s infinite 1s;
}

@keyframes sparkle-flicker {

  0%,
  100% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Custom Dropdown --- */
.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.custom-select-trigger .selected-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-trigger .selected-content svg {
  flex-shrink: 0;
}

.custom-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: rgba(15, 15, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 250px;
  overflow-y: auto;
}

.custom-options.hidden {
  display: none;
}

.custom-option {
  padding: 12px var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: var(--bg-hover);
}

.custom-option.selected {
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary-light);
}

.custom-option .option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: inherit;
}
/* App Light Mode Bug Fixes */
[data-theme="light"] .custom-options {
    background: rgba(255, 255, 255, 0.98);
}
