/* ===== Ripples Solutions — Professional Blue Theme ===== */
:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --blue-950: #172554;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header & Logo ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-700);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.logo:hover {
  color: var(--blue-800);
  text-decoration: none;
}

.logo-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
}

.header .nav.nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-nav {
  padding: 8px 16px;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.9375rem;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.btn-nav:hover {
  color: var(--blue-600);
  background: var(--blue-50);
  border-color: var(--blue-200);
  text-decoration: none;
}

.btn-nav:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.btn-admin {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  color: var(--white);
  border: none;
}

.btn-admin:hover {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-800) 100%);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 1px;
}

/* Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--blue-600);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-600);
}

.btn-outline:hover {
  background: var(--blue-50);
  color: var(--blue-700);
  text-decoration: none;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ===== Logo ===== */
.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-img-footer {
  height: 36px;
  filter: brightness(0) invert(1);
}

.logo-fallback {
  width: 40px;
  height: 40px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-carousel {
  display: flex;
  animation: heroScroll 25s linear infinite;
  width: max-content;
}

.hero-slide {
  flex-shrink: 0;
  width: 100vw;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.75) 0%, rgba(30, 64, 175, 0.6) 50%, rgba(37, 99, 235, 0.5) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-inner h1,
.hero-inner .hero-tagline,
.hero-inner .hero-tagline-sub,
.hero-inner .hero-desc {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-inner .hero-desc {
  color: rgba(255, 255, 255, 0.95);
}

.hero-tagline-sub {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.hero-inner h1 {
  color: var(--white);
}

.hero-inner .hero-tagline {
  color: rgba(255, 255, 255, 0.95);
}

.hero-inner .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero-inner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

@keyframes heroScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-500vw); }
}

.hero-carousel:hover {
  animation-play-state: paused;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-tagline {
  margin: 0 0 12px;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  color: var(--blue-700);
}

.hero-desc {
  margin: 0 0 32px;
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--blue-900);
  text-align: center;
}

.section-subtitle {
  margin: 0 0 40px;
  font-size: 1.0625rem;
  color: var(--gray-500);
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Services ===== */
.section-services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 28px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-800);
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Products ===== */
.section-products {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
}

.product-placeholder {
  height: 160px;
  background: var(--gray-100);
}

.product-lenovo {
  background: linear-gradient(135deg, var(--blue-100) 0%, var(--blue-200) 100%);
}

.product-desktop {
  background: linear-gradient(135deg, var(--blue-200) 0%, var(--blue-300) 100%);
}

.product-workstation {
  background: linear-gradient(135deg, var(--blue-300) 0%, var(--blue-400) 100%);
}

.product-sophos {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-500) 100%);
}

.product-card h3 {
  margin: 0;
  padding: 20px 20px 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-800);
}

.product-card p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.product-flash-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-flash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
}

.product-placeholder {
  position: relative;
  overflow: hidden;
}

.product-placeholder .product-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-click-hint {
  display: block;
  padding: 0 20px 16px;
  font-size: 0.8125rem;
  color: var(--blue-600);
  font-weight: 500;
}

.product-detail-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 32px 36px 36px;
  z-index: 201;
}

#product-detail-modal .modal-backdrop {
  backdrop-filter: blur(4px);
}

.product-detail-inner {
  opacity: 1;
  color: var(--gray-900);
}

.product-detail-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.3;
}

.product-detail-inner h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: var(--blue-900);
}

.product-detail-img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.product-detail-file {
  padding: 14px 18px;
  margin: 0 0 20px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--blue-900);
  font-weight: 500;
}

.product-detail-desc {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.65;
  font-weight: 500;
}

.product-detail-specs h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--blue-800);
}

.product-detail-specs ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.product-detail-specs li {
  padding: 10px 12px;
  margin-bottom: 4px;
  background: var(--gray-50);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}

.product-detail-cta {
  margin: 20px 0 0;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  text-align: center;
}

.product-detail-purchase {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease;
}

.product-detail-purchase:hover {
  background: var(--blue-700);
  color: var(--white);
}

.admin-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 28px 32px 32px;
  z-index: 201;
}

#admin-modal .modal-backdrop {
  backdrop-filter: blur(4px);
}

.admin-heading {
  margin: 0 0 20px;
  font-size: 1.25rem;
  color: var(--blue-900);
}

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

.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  opacity: 1;
  pointer-events: auto;
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.admin-form input[type="file"] {
  padding: 10px;
  background: var(--gray-50);
  cursor: pointer;
}

.admin-form button {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-form input:disabled,
.admin-form textarea:disabled {
  opacity: 1;
  cursor: text;
}

/* About ===== */
.section-about {
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content .section-title {
  text-align: left;
}

.about-content p {
  margin: 0 0 16px;
  color: var(--gray-600);
}

.about-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--gray-700);
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--blue-500);
  border-radius: 50%;
}

.about-sub {
  margin: 24px 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-800);
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-ripple-box {
  position: relative;
  width: 200px;
  height: 200px;
}

.ripple-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--blue-300);
  border-radius: 50%;
  animation: ripple 3s ease-out infinite;
}

.ripple-ring:nth-child(2) { animation-delay: 0.5s; }
.ripple-ring:nth-child(3) { animation-delay: 1s; }

@keyframes ripple {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* Contact ===== */
#about,
#contact {
  scroll-margin-top: 88px;
}

.section-contact {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--blue-100) 100%);
}

.section-contact.highlight {
  animation: contactHighlight 1.5s ease-out;
}

@keyframes contactHighlight {
  0% { background: var(--blue-200); }
  100% { background: linear-gradient(180deg, var(--blue-50) 0%, var(--blue-100) 100%); }
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-form-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.contact-info-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.contact-address {
  margin: 0 0 12px;
  line-height: 1.6;
}

.contact-branch {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9375rem;
}

.contact-branch:last-of-type {
  border-bottom: none;
}

.contact-website {
  margin-top: 16px;
  font-weight: 600;
}

.contact-login-required {
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
}

.contact-login-required[hidden] {
  display: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition);
}

.contact-form select {
  cursor: pointer;
  appearance: auto;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#contact-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}

.contact-spec-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.data-error {
  color: var(--gray-500);
  font-size: 0.9375rem;
  text-align: center;
  padding: 24px;
}

.contact-info-title {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-800);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.contact-item strong {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.contact-item a,
.contact-item span {
  font-size: 1rem;
  color: var(--blue-700);
  font-weight: 500;
  line-height: 1.5;
}

.contact-item span br {
  margin-top: 4px;
  display: block;
}

/* Footer ===== */
.footer {
  background: var(--blue-950);
  color: var(--blue-200);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: var(--white);
}

.footer-brand .logo:hover {
  color: var(--blue-100);
  text-decoration: none;
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--blue-300);
  line-height: 1.5;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-details li {
  margin-bottom: 10px;
  font-size: 0.9375rem;
  color: var(--blue-200);
  line-height: 1.5;
}

.footer-details li a {
  color: var(--blue-200);
  text-decoration: none;
}

.footer-details li a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-details .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.footer-details li br {
  display: block;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--blue-200);
  font-weight: 500;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-copy {
  width: 100%;
  margin: 0;
  padding: 20px 24px;
  font-size: 0.875rem;
  color: var(--blue-400);
  text-align: center;
  grid-column: 1 / -1;
}

/* ===== Auth Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

.modal-dialog.auth-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 28px 32px 32px;
  overflow: hidden;
}

.auth-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500) 0%, var(--blue-600) 50%, var(--blue-700) 100%);
  border-radius: 20px 20px 0 0;
}

.auth-dialog .modal-close {
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
}

.auth-dialog .auth-tabs {
  margin-top: 4px;
}

.auth-dialog .auth-panel {
  padding-top: 4px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
  color: var(--gray-700);
  background: var(--gray-100);
}

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

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-600);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.auth-tab:hover {
  color: var(--gray-800);
}

.auth-tab.active {
  color: var(--blue-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Auth panels ===== */
.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.auth-heading {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-900);
}

.auth-subtext {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.auth-error-msg {
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
}

.auth-error-msg[hidden] {
  display: none;
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.auth-btn-social:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.auth-btn-social[data-provider="google"]:hover {
  border-color: #4285f4;
  background: #f8faff;
}

.auth-btn-social[data-provider="microsoft"]:hover {
  border-color: #00a4ef;
  background: #f5fbff;
}

.auth-btn-social[data-provider="apple"]:hover {
  border-color: var(--gray-400);
  background: var(--gray-900);
  color: var(--white);
}

.auth-social-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.auth-form input {
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
  transition: all 0.2s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-form input::placeholder {
  color: var(--gray-400);
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
}

.auth-checkbox input {
  width: 18px;
  height: 18px;
}

.auth-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.auth-link:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.auth-back {
  display: block;
  margin-top: 20px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Auth error, spinner, toast */
.auth-error {
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
}

.auth-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
  border: 2px solid var(--blue-200);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

.auth-spinner-sm {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

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

.auth-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.35);
  z-index: 300;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-toast.auth-toast-error {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 10px 40px rgba(185, 28, 28, 0.3);
}

/* Profile dropdown */
.profile-dropdown {
  position: relative;
  align-items: center;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.profile-trigger:hover {
  background: var(--white);
  border-color: var(--blue-300);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.profile-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue-100);
}

.profile-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chevron {
  width: 18px;
  height: 18px;
  color: var(--gray-500);
  transition: transform var(--transition);
}

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

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  padding: 20px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 110;
}

.profile-dropdown.open .profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin: -20px -20px 16px;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid var(--gray-100);
}

.profile-photo-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-menu-name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue-900);
}

.profile-menu-email {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}

.profile-menu-item:hover {
  background: var(--gray-100);
  color: var(--blue-600);
}

.profile-logout {
  color: #dc2626;
}

.profile-logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.profile-logout svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .header.open .header-nav-wrap {
    display: flex;
  }

  .header.open .nav {
    flex-direction: column;
    width: 100%;
  }

  .header.open .nav a {
    width: 100%;
    padding: 12px 16px;
  }

  .header.open .header-actions {
    flex-direction: column;
    width: 100%;
  }

  .header.open .header-actions .btn {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-content .section-title {
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
}

@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
