/* Southeast Asia tropical theme */
:root {
  --sea-primary: #0a6e54;
  --sea-primary-dark: #064d3b;
  --sea-primary-light: #1a8f6e;
  --sea-gold: #f0a500;
  --sea-gold-light: #ffc94d;
  --sea-coral: #ff7a2f;
  --sea-coral-hover: #e5651f;
  --sea-teal: #0d8a7a;
  --sea-cream: #fffbf5;
  --sea-sand: #f5efe3;
  --sea-leaf: #e8f5ef;
  --sea-text: #2c3e35;
  --sea-muted: #5c6b63;
  --sea-shadow: rgba(10, 110, 84, 0.12);
  --sea-shadow-warm: rgba(255, 122, 47, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color: var(--sea-text);
  background-color: var(--sea-cream);
  line-height: 1.6;
}

/* ---- Navbar ---- */
.navbar-gt {
  background: linear-gradient(90deg, var(--sea-primary-dark) 0%, var(--sea-primary) 55%, var(--sea-teal) 100%);
  box-shadow: 0 4px 24px var(--sea-shadow);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.navbar-gt.navbar-dark .navbar-brand,
.navbar-gt.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500;
}

.navbar-gt .navbar-brand {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.navbar-gt .navbar-brand i {
  color: var(--sea-gold-light);
}

.navbar-gt .nav-link {
  position: relative;
  padding: 0.5rem 0.7rem !important;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  font-size: 0.9rem;
}

@media (min-width: 1200px) {
  .navbar-gt .nav-link {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.95rem;
  }
}

.navbar-gt .nav-link:hover,
.navbar-gt .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.navbar-gt .navbar-nav {
  flex-wrap: nowrap;
}

.navbar-gt .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--sea-gold);
  border-radius: 2px;
}

/* H5 折叠菜单内 dropdown / 语言切换 */
@media (max-width: 991.98px) {
  .navbar-gt .navbar-collapse {
    overflow: visible;
    padding-bottom: 0.5rem;
  }

  .navbar-gt .navbar-actions {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar-gt .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin-top: 0.35rem;
    border: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
  }

  .navbar-gt .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
  }

  .navbar-gt .dropdown-menu .dropdown-item:hover,
  .navbar-gt .dropdown-menu .dropdown-item.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
  }
}

.lang-switch-mobile .lang-pill {
  border-radius: 50px;
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  font-weight: 600;
}

.lang-switch-mobile .lang-pill-active {
  background: #fff;
  color: var(--sea-primary-dark);
  border: 1px solid #fff;
}

.lang-switch-mobile .lang-pill-inactive {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.lang-switch-mobile .lang-pill-inactive:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ---- Auth pages (login / register) ---- */
.auth-page {
  background: linear-gradient(160deg, var(--sea-cream) 0%, #e8f5f0 45%, #fff8f0 100%);
  min-height: calc(100vh - 72px);
}

.min-vh-auth {
  min-height: calc(100vh - 120px);
  padding: 2rem 0;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(10, 110, 84, 0.1);
  overflow: hidden;
  border: 1px solid rgba(10, 110, 84, 0.08);
}

.auth-card-wide .auth-card-body {
  padding: 1.75rem 2rem 2rem;
}

.auth-card-header {
  padding: 2rem 2rem 0.5rem;
  background: linear-gradient(180deg, rgba(10, 110, 84, 0.04) 0%, transparent 100%);
}

.auth-card-body {
  padding: 1.25rem 2rem 1.5rem;
}

.auth-card-footer {
  padding: 0 2rem 2rem;
}

.auth-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sea-primary) 0%, var(--sea-teal) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 20px rgba(10, 110, 84, 0.25);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sea-primary-dark);
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  color: #6b7c75;
  font-size: 0.95rem;
}

.auth-input-group {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-input-group .input-group-text {
  background: #f4faf7;
  border: 1px solid #dceee6;
  border-right: none;
  color: var(--sea-primary);
  padding-left: 1rem;
  padding-right: 0.75rem;
}

.auth-input-group .form-control,
.auth-input-group .form-select {
  border: 1px solid #dceee6;
  border-left: none;
  padding: 0.7rem 1rem;
  border-radius: 0 12px 12px 0;
  background: #fff;
}

.auth-input-group .form-control:focus {
  border-color: var(--sea-primary);
  box-shadow: none;
}

.auth-input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(10, 110, 84, 0.12);
  border-radius: 12px;
}

.auth-input-group:focus-within .input-group-text,
.auth-input-group:focus-within .form-control {
  border-color: var(--sea-primary);
}

.auth-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px dashed #e0ebe6;
}

.auth-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.auth-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sea-primary);
  margin-bottom: 1rem;
}

.auth-role-card {
  display: block;
  cursor: pointer;
  margin: 0;
}

.auth-role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-role-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  border: 2px solid #e0ebe6;
  border-radius: 14px;
  background: #fafcfb;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  height: 100%;
}

.auth-role-card input:checked + .auth-role-card-inner {
  border-color: var(--sea-primary);
  background: rgba(10, 110, 84, 0.06);
  box-shadow: 0 4px 14px rgba(10, 110, 84, 0.12);
}

.auth-role-icon {
  font-size: 1.35rem;
  color: var(--sea-primary);
  margin-bottom: 0.15rem;
}

.auth-role-name {
  font-weight: 700;
  color: var(--sea-text);
}

.auth-role-desc {
  font-size: 0.8rem;
  color: #6b7c75;
  line-height: 1.4;
}

.auth-form-actions {
  margin-top: 1.75rem;
  padding-top: 0.5rem;
}

.auth-submit {
  border-radius: 50px;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
}

.auth-register-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(10, 110, 84, 0.08) 0%, rgba(255, 154, 77, 0.1) 100%);
  border-radius: 14px;
  border: 1px solid rgba(10, 110, 84, 0.12);
}

.auth-register-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--sea-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-register-link {
  border-radius: 50px;
  font-weight: 600;
  white-space: nowrap;
}

.auth-inline-link {
  color: var(--sea-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-inline-link:hover {
  color: var(--sea-primary-dark);
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .auth-card-header,
  .auth-card-body,
  .auth-card-footer,
  .auth-card-wide .auth-card-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .auth-register-banner {
    flex-wrap: wrap;
  }

  .auth-register-link {
    width: 100%;
    text-align: center;
  }

  .auth-form-actions .auth-submit {
    width: 100%;
  }
}

/* ---- Buttons ---- */
.btn-accent {
  background: linear-gradient(135deg, var(--sea-coral) 0%, #ff9a4d 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 14px var(--sea-shadow-warm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--sea-coral-hover) 0%, #ff8a3d 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--sea-shadow-warm);
}

.btn-outline-sea {
  border: 2px solid var(--sea-primary);
  color: var(--sea-primary);
  border-radius: 50px;
  font-weight: 600;
}

.btn-outline-sea:hover {
  background: var(--sea-primary);
  color: #fff;
}

.text-accent {
  color: var(--sea-coral) !important;
}

.text-sea-primary {
  color: var(--sea-primary) !important;
}

/* ---- Hero ---- */
.hero-section {
  background: linear-gradient(135deg, var(--sea-primary-dark) 0%, var(--sea-primary) 40%, var(--sea-teal) 100%);
  color: #fff;
  min-height: 560px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1528183429752-a97d0bf99b5a?w=1600&q=80") center/cover;
  opacity: 0.22;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23fffbf5' d='M0,40 C360,90 720,0 1080,50 C1260,70 1380,60 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") bottom center / cover no-repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  background: linear-gradient(135deg, var(--sea-gold) 0%, var(--sea-gold-light) 100%);
  color: var(--sea-primary-dark) !important;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(240, 165, 0, 0.35);
}

.hero-section .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  font-weight: 600;
}

.hero-section .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ---- Stats ---- */
.stat-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.35rem 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.stat-card-link {
  display: block;
  color: inherit;
}

.stat-card-link:hover .stat-card {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

.stat-card-link:hover .stat-number {
  background: linear-gradient(135deg, var(--sea-teal) 0%, var(--sea-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sea-primary) 0%, var(--sea-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Sections ---- */
.bg-sea-warm {
  background-color: var(--sea-sand);
}

.bg-sea-light {
  background-color: var(--sea-leaf);
}

.bg-sea-cream {
  background-color: var(--sea-cream);
}

.section-title {
  font-weight: 800;
  color: var(--sea-primary-dark);
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--sea-gold), var(--sea-coral));
  border-radius: 2px;
  margin-top: 0.5rem;
}

.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--sea-muted);
}

/* ---- Cards ---- */
.region-card,
.product-card,
.case-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px var(--sea-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.region-card {
  position: relative;
}

.region-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sea-gold), var(--sea-primary-light));
  z-index: 2;
}

.region-card:hover,
.product-card:hover,
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--sea-shadow);
}

.region-card .card-img-top {
  height: 170px;
  object-fit: cover;
}

.region-card.featured-sea {
  box-shadow: 0 8px 32px rgba(10, 110, 84, 0.2);
  border: 2px solid var(--sea-gold);
}

.region-card.featured-sea::before {
  height: 6px;
  background: linear-gradient(90deg, var(--sea-gold), var(--sea-coral), var(--sea-gold));
}

.badge-sea {
  background: linear-gradient(135deg, var(--sea-primary) 0%, var(--sea-teal) 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.35em 0.75em;
}

.badge-gold {
  background: var(--sea-gold);
  color: var(--sea-primary-dark);
  font-weight: 700;
}

.badge-region {
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 50px;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--sea-primary-dark) 0%, var(--sea-primary) 50%, var(--sea-teal) 100%);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

/* ---- Footer ---- */
.footer-gt {
  background: linear-gradient(180deg, var(--sea-primary-dark) 0%, #033529 100%);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

.footer-gt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sea-gold), var(--sea-coral), var(--sea-gold-light), var(--sea-gold));
}

.footer-gt h5,
.footer-gt h6 {
  color: var(--sea-gold-light);
  font-weight: 700;
}

.footer-gt a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-gt a:hover {
  color: var(--sea-gold-light);
}

/* ---- Floating CTA ---- */
.inquiry-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inquiry-float .btn {
  border-radius: 50px;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.inquiry-float .btn-success {
  background: #25d366;
  border-color: #25d366;
}

/* ---- Bootstrap overrides ---- */
.btn-primary {
  background: var(--sea-primary);
  border-color: var(--sea-primary);
  border-radius: 50px;
}

.btn-primary:hover {
  background: var(--sea-primary-dark);
  border-color: var(--sea-primary-dark);
}

.btn-outline-primary {
  color: var(--sea-primary);
  border-color: var(--sea-primary);
  border-radius: 50px;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--sea-primary);
  border-color: var(--sea-primary);
}

.card {
  border-radius: 16px;
}

.bg-primary {
  background-color: var(--sea-primary) !important;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--sea-leaf) 0%, var(--sea-sand) 100%);
  border-top: 1px solid rgba(10, 110, 84, 0.1);
  border-bottom: 1px solid rgba(10, 110, 84, 0.1);
}

/* ---- Admin (keep readable) ---- */
.admin-sidebar {
  min-height: 100vh;
  background: var(--sea-primary-dark);
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 2px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .inquiry-float {
    right: 12px;
    bottom: 12px;
  }

  .inquiry-float .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* ---- User center ---- */
.user-sidebar .user-nav .nav-link {
  color: var(--sea-text);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-weight: 500;
}

.user-sidebar .user-nav .nav-link:hover,
.user-sidebar .user-nav .nav-link.active {
  background: rgba(10, 110, 84, 0.08);
  color: var(--sea-primary);
}

.min-vh-50 {
  min-height: 50vh;
}

/* ---- RTL (Arabic) ---- */
html[dir="rtl"] .navbar-nav.me-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

html[dir="rtl"] .me-2,
html[dir="rtl"] .me-auto {
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
}

html[dir="rtl"] .ms-1,
html[dir="rtl"] .ms-2 {
  margin-right: 0.25rem !important;
  margin-left: 0 !important;
}

html[dir="rtl"] .dropdown-menu-end {
  left: 0;
  right: auto;
}

html[dir="rtl"] .inquiry-float {
  left: 20px;
  right: auto;
}

html[dir="rtl"] .text-truncate {
  text-align: right;
}
