/* ═══════════════════════════════════════════
   DESIGN SYSTEM — My Computers Sales & Services
   Green Corporate Theme
   ═══════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* ── CSS VARIABLES ── */
:root {
  --primary: #0F3D2E;
  --primary-dark: #0a2e21;
  --secondary: #1B5E20;
  --accent: #2E7D32;
  --light-bg: #E8F5E9;
  --lighter-bg: #F1F8E9;
  --white: #FFFFFF;
  --dark: #1a1a1a;
  --gray: #6b6b6b;
  --light-gray: #e0e0e0;
  --border: #d0d0d0;

  --font-heading: 'Inter', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --section-padding: 120px 0;
  --container-width: 1200px;
  --nav-height: 80px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: 0.3s ease;
  --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --easing-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: 3px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: 2px; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.8;
  max-width: 680px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-white p { color: rgba(255,255,255,0.8); }

/* ── LAYOUT ── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

section {
  padding: var(--section-padding);
  position: relative;
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255,255,255,0.75);
}

.section-light {
  background: var(--light-bg);
}

.section-lighter {
  background: var(--lighter-bg);
}

/* ── NAVIGATION ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo span {
  color: #81C784;
}

.footer h4:first-child {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #81C784;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  animation: float 0.4s ease-in-out infinite;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-primary:hover {
  background: #81C784;
  color: var(--white);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 30px rgba(15, 61, 46, 0.2);
  animation: glow 0.6s ease infinite;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px) scale(1.02);
}

.btn-green {
  background: var(--primary);
  color: var(--white);
}

.btn-green:hover {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 30px rgba(15, 61, 46, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.015);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  animation: slideInFromLeft 0.8s var(--easing-smooth) forwards;
  opacity: 0;
}

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  margin-bottom: 48px;
  max-width: 550px;
  animation: slideInFromRight 0.8s var(--easing-smooth) 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  animation: fadeInScale 0.8s var(--easing-smooth) 0.4s forwards;
  opacity: 0;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 160px 0 80px;
  background: var(--primary);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(255,255,255,0.65);
  margin: 0 auto;
}

/* ── GRID SYSTEM ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-2 .card:nth-child(1) {
  animation: fadeInUp 0.6s var(--easing-smooth) 0.1s backwards;
}

.grid-2 .card:nth-child(2) {
  animation: fadeInUp 0.6s var(--easing-smooth) 0.2s backwards;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-3 .card:nth-child(1) {
  animation: fadeInUp 0.6s var(--easing-smooth) 0.1s backwards;
}

.grid-3 .card:nth-child(2) {
  animation: fadeInUp 0.6s var(--easing-smooth) 0.2s backwards;
}

.grid-3 .card:nth-child(3) {
  animation: fadeInUp 0.6s var(--easing-smooth) 0.3s backwards;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-4 .card:nth-child(1) {
  animation: fadeInUp 0.6s var(--easing-smooth) 0.05s backwards;
}

.grid-4 .card:nth-child(2) {
  animation: fadeInUp 0.6s var(--easing-smooth) 0.15s backwards;
}

.grid-4 .card:nth-child(3) {
  animation: fadeInUp 0.6s var(--easing-smooth) 0.25s backwards;
}

.grid-4 .card:nth-child(4) {
  animation: fadeInUp 0.6s var(--easing-smooth) 0.35s backwards;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all var(--transition);
  border: 1px solid transparent;
  animation: fadeInUp 0.6s var(--easing-smooth);
}

.card:hover {
  box-shadow: 0 8px 40px rgba(15, 61, 46, 0.15);
  border-color: #81C784;
  transform: translateY(-8px) scale(1.02);
  animation: glow 0.6s ease infinite;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--light-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--primary);
}

.card-image {
  width: 100%;
  height: 200px;
  background: #f5f5f5;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  margin: -40px -32px 24px -32px;
  object-fit: cover;
  display: block;
}

.card-image-wrapper {
  width: 100%;
  height: 200px;
  background: #f5f5f5;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  margin: -40px -32px 24px -32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h4 {
  margin-bottom: 12px;
  color: var(--primary);
}

.card p {
  font-size: 0.9rem;
}

/* ── BRANCH CARD ── */
.branch-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  animation: fadeInUp 0.6s var(--easing-smooth);
  transition: all var(--transition);
}

.branch-card:hover {
  box-shadow: 0 8px 40px rgba(15, 61, 46, 0.15);
  transform: translateY(-6px);
}

.branch-card h3 {
  color: var(--primary);
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.branch-card .branch-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--gray);
}

.branch-card .branch-detail i {
  color: var(--primary);
  margin-top: 3px;
  min-width: 20px;
}

/* ── FORMS ── */
.form-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
  animation: fadeInUp 0.6s var(--easing-smooth) 0.2s backwards;
}

.form-container h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.form-container > p {
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--dark);
  background: #fafafa;
  transition: border-color 0.3s var(--easing-smooth), background 0.3s var(--easing-smooth), box-shadow 0.3s var(--easing-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block;
  animation: scaleIn 0.6s var(--easing-bounce) forwards;
}

.form-success h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.form-success p {
  margin: 0 auto;
}

/* ── FEEDBACK CARD ── */
.feedback-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
  animation: fadeInUp 0.6s var(--easing-smooth);
  transition: all var(--transition);
}

.feedback-card:hover {
  box-shadow: 0 8px 40px rgba(15, 61, 46, 0.15);
  transform: translateY(-4px);
}

.feedback-card .feedback-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.feedback-card .feedback-rating {
  color: #FFB300;
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 2px;
}

.feedback-card .feedback-comment {
  font-size: 0.9rem;
  color: var(--gray);
  font-style: italic;
}

.feedback-card .feedback-date {
  font-size: 0.75rem;
  color: var(--light-gray);
  margin-top: 12px;
}

/* ── WHO WE ARE (Split Layout) ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-section .big-text {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  color: var(--primary);
}

/* ── CTA SECTION ── */
.cta-section {
  padding: 100px 0;
  background: var(--primary);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 32px;
}

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  margin: 0 auto;
}

/* ── FOOTER ── */
.footer {
  background: var(--primary-dark);
  padding: 80px 0 32px;
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.footer p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-contact {
  display: grid;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color var(--transition), transform var(--transition);
}

.footer-contact-item i {
  width: 18px;
  color: #81C784;
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-contact-item:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: #81C784;
  color: var(--primary-dark);
  transform: translateY(-2px);
  border-color: #81C784;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── ADMIN ── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--primary);
  padding: 32px 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar .sidebar-logo {
  padding: 0 24px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.admin-sidebar .sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.admin-sidebar .sidebar-nav a:hover,
.admin-sidebar .sidebar-nav a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.admin-main {
  margin-left: 260px;
  flex: 1;
  padding: 32px 40px;
  background: #f5f5f5;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-header h2 {
  font-size: 1.5rem;
}

.admin-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--primary);
  color: var(--white);
  padding: 16px 20px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: var(--dark);
}

.admin-table tr:hover td {
  background: #fafafa;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: #FFF3E0;
  color: #E65100;
}

.status-completed {
  background: #E8F5E9;
  color: #2E7D32;
}

.status-cancelled {
  background: #FFEBEE;
  color: #C62828;
}

.admin-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.admin-btn-update {
  background: var(--primary);
  color: var(--white);
}

.admin-btn-delete {
  background: #C62828;
  color: var(--white);
  margin-left: 6px;
}

.admin-btn:hover {
  opacity: 0.85;
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.6s var(--easing-smooth);
  transition: all var(--transition);
}

.stat-card:hover {
  box-shadow: 0 8px 40px rgba(15, 61, 46, 0.15);
  transform: translateY(-4px);
}

.stat-card h4 {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Admin Login */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
}

.login-box {
  background: var(--white);
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.login-box > p {
  text-align: center;
  margin-bottom: 36px;
  font-size: 0.9rem;
}

.login-error {
  display: none;
  background: #FFEBEE;
  color: #C62828;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-align: center;
}

/* ── MAP ── */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

/* ── LOADING SPINNER ── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: rotateSpin 0.8s ease-in-out infinite;
}

/* ── USER AUTH NAV ── */
.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

.nav-user .user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #81C784;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nav-user .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav-user .user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  display: none;
  z-index: 1001;
  animation: slideDown 0.3s var(--easing-smooth);
}

.nav-user .user-dropdown.open {
  display: block;
}

.nav-user .user-dropdown .dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.8rem;
}

.nav-user .user-dropdown .dropdown-header strong {
  display: block;
  color: var(--dark);
  font-size: 0.85rem;
}

.nav-user .user-dropdown .dropdown-header span {
  color: var(--gray);
  font-size: 0.75rem;
}

.nav-user .user-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--dark);
  transition: background 0.2s;
}

.nav-user .user-dropdown a:hover {
  background: var(--light-bg);
}

.nav-user .user-dropdown a i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
  color: var(--primary);
}

.btn-login-nav {
  padding: 8px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: #81C784;
  color: var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  margin-left: 12px;
  display: inline-block;
}

.btn-login-nav:hover {
  background: var(--white);
  transform: translateY(-1px);
}

/* ── AUTH GUARD OVERLAY ── */
.auth-guard-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 61, 46, 0.95);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeInUp 0.4s var(--easing-smooth);
}

.auth-guard-box {
  background: var(--white);
  padding: 56px 48px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.4s var(--easing-bounce);
}

.auth-guard-box h3 {
  margin-bottom: 12px;
  color: var(--primary);
}

.auth-guard-box p {
  margin: 0 auto 28px;
  font-size: 0.9rem;
}

.auth-guard-box .btn {
  margin: 0 6px;
}

/* ── ANIMATIONS ── */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%, 100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  50% {
    box-shadow: 0 4px 30px rgba(15, 61, 46, 0.15);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes colorShift {
  from {
    background-color: var(--white);
  }
  to {
    background-color: var(--light-bg);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes drawCheckmark {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-section {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .container {
    padding: 0 24px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 36px 24px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Admin responsive */
  .admin-sidebar {
    width: 200px;
  }

  .admin-main {
    margin-left: 200px;
    padding: 24px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-table {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .admin-sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-layout {
    flex-direction: column;
  }

  h1 {
    font-size: 2rem;
  }
}
