@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img,
svg,
video {
  max-width: 100%;
}

:root {
  /* Modern Color Palette */
  --primary-dark: #0f172a;
  --primary: #1e293b;
  --secondary: #3b82f6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-light: #6b7280;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.3px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

nav {
  display: flex;
  gap: 35px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--secondary);
}

nav a:hover::after {
  width: 100%;
}

.nav-btn {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-btn:hover::before {
  left: 100%;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

.nav-btn.admin-btn {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
}

.nav-btn.admin-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  width: min(100%, 700px);
  padding: 0 20px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.95;
  line-height: 1.7;
}

.search-box {
  background-color: var(--white);
  border-radius: 12px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  box-shadow: var(--shadow-2xl);
  margin-top: 30px;
  backdrop-filter: blur(10px);
}

.search-field {
  display: flex;
  flex-direction: column;
}

.search-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-field input,
.search-field select {
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  transition: all 0.3s ease;
  background-color: var(--white);
}

.search-field input::placeholder {
  color: var(--text-light);
}

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: rgba(59, 130, 246, 0.02);
}

.search-btn {
  grid-column: 4;
  align-self: flex-end;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .search-box {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .search-btn {
    grid-column: 1;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.about h2 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: -1px;
}

.about-content {
  margin-bottom: 40px;
}

.about-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.feature-box {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
  background: linear-gradient(135deg, var(--white) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.feature-box h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.feature-box p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== UNITS SECTION ===== */
.available-units {
  padding: 100px 0;
  background: var(--white);
}

.available-units h2 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: -1px;
}

.units-filter {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 1024px) {
  .units-filter {
    gap: 12px;
  }
}

.filter-dropdowns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 10px 16px;
  border: 2px solid var(--gray-300);
  background-color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  min-width: 140px;
}

.filter-select:hover {
  border-color: var(--secondary);
}

.filter-select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--gray-300);
  background-color: var(--white);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.filter-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.unit-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.unit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.unit-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.unit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.unit-card:hover .unit-image img {
  transform: scale(1.08);
}

.unit-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: var(--shadow-lg);
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
}

.unit-info {
  padding: 24px;
}

.unit-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.unit-floor {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 12px;
  font-weight: 600;
}

.unit-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.unit-amenities {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 12px 0;
  font-weight: 500;
  line-height: 1.6;
}

.unit-price {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 14px 0;
}

.unit-price span {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 400;
  margin-left: 5px;
}

.btn-view {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-view:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

/* ===== GENERAL BUTTON STYLES ===== */
.btn {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  padding: 16px 40px;
  font-size: 16px;
}

.btn-create {
  margin-bottom: 24px;
}

.btn-small {
  padding: 8px 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-small:hover {
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-small.danger {
  background: var(--danger);
}

.btn-small.danger:hover {
  background: #dc2626;
}

/* ===== CARDS & COMPONENTS ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.dashboard-card {
  background: var(--white);
  border: none;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
}

.dashboard-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

.dashboard-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 700;
}

.dashboard-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.alert-card {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border-top: 4px solid var(--danger);
}

.alert-card::before {
  background: linear-gradient(90deg, var(--danger) 0%, #ff6b6b 100%);
}

.big-text {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--danger) 0%, var(--warning) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 16px 0 8px 0;
  letter-spacing: -0.5px;
}

/* ===== TABLES ===== */
.bills-table,
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: var(--white);
}

.bills-table th,
.admin-table th {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 18px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--white);
  border-bottom: none;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bills-table td,
.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-secondary);
  font-size: 13px;
}

.bills-table tbody tr:hover,
.admin-table tbody tr:hover {
  background-color: #f8f9fb;
  transition: background-color 0.2s ease;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.paid,
.status-badge.completed,
.status-badge.resolved,
.status-badge.active,
.status-badge.available,
.status-badge.confirmed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-badge.unpaid,
.status-badge.pending {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.status-badge.in-progress,
.status-badge.occupied {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.status-badge.in-review {
  background: rgba(59, 130, 246, 0.1);
  color: var(--secondary);
}

.status-badge.payment-submitted,
.status-badge.reserved {
  background: rgba(59, 130, 246, 0.1);
  color: var(--secondary);
}

.status-badge.expired {
  background: rgba(100, 116, 139, 0.14);
  color: var(--text-secondary);
}

.nav-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
}

.nav-link-btn:hover {
  color: var(--secondary);
}

.booking-page {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98)),
    url('hero.jfif') center/cover fixed;
  min-height: 100vh;
}

.booking {
  padding: 72px 20px;
}

.booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.booking-panel,
.booking-payment-panel,
.payment-review-list {
  margin-top: 32px;
}

.booking-panel,
.booking-payment-panel {
  margin-top: 0;
  padding: 32px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-xl);
}

.booking-heading {
  margin-bottom: 24px;
}

.booking-heading h1,
.booking-heading h2 {
  font-family: 'Playfair Display', serif;
  color: var(--text-primary);
  letter-spacing: 0;
}

.booking-heading h1 {
  font-size: 42px;
  line-height: 1.1;
}

.booking-heading h2 {
  font-size: 28px;
  line-height: 1.2;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.booking-form input,
.booking-form select {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  color: var(--text-primary);
  font: inherit;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-form input:focus,
.booking-form select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.booking-payment-card,
.payment-review-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  margin-top: 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.booking-payment-card h3,
.payment-review-card h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.booking-payment-card p,
.payment-review-card p,
.payment-instructions p {
  margin: 6px 0;
  color: var(--text-secondary);
}

.compact-proof-form {
  min-width: 240px;
  max-width: 320px;
}

.payment-review-actions,
.table-action-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.payment-review-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.payment-proof-preview {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-50);
}

.payment-proof-placeholder {
  padding: 20px;
  border: 1px dashed var(--gray-300);
  border-radius: 8px;
  color: var(--text-secondary);
  background: var(--gray-50);
}

.payment-review-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ===== PORTAL & ADMIN STYLES ===== */
.portal-body,
.admin-body {
  background: var(--gray-50);
}

.portal-header,
.admin-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-bottom: none;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.portal-header .logo,
.admin-header .logo {
  color: var(--white);
  background: none;
  -webkit-text-fill-color: unset;
  font-weight: 800;
  letter-spacing: 1px;
}

.portal-container,
.admin-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 70px);
}

.sidebar,
.admin-sidebar {
  background: linear-gradient(180deg, var(--primary-dark) 0%, #1a1f2e 100%);
  padding: 24px 0;
  border-right: none;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-nav,
.admin-nav {
  display: flex;
  flex-direction: column;
}

.nav-item,
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  font-weight: 500;
  font-size: 14px;
  margin: 0 12px;
  border-radius: 8px;
}

.nav-item:hover,
.admin-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transform: translateX(4px);
}

.nav-item.active,
.admin-nav-item.active {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
  border-left-color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.nav-item .icon,
.admin-nav-item .icon {
  font-size: 18px;
}

.portal-main,
.admin-main {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
  padding: 40px;
  overflow-y: auto;
}

.portal-section,
.admin-section {
  display: none;
}

.portal-section.active,
.admin-section.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.portal-section h1,
.admin-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--text-primary);
  margin-bottom: 30px;
  font-weight: 800;
}

.portal-section h2,
.admin-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-weight: 800;
}

.announcements-list,
.requests-list,
.reports-list,
.announcements-admin,
.requests-admin,
.reports-admin {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.announcement-item,
.request-card,
.report-card,
.request-admin-card,
.report-admin-card,
.announcement-admin-card {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  border-left: 5px solid var(--secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.announcement-item:hover,
.request-card:hover,
.report-card:hover,
.request-admin-card:hover,
.report-admin-card:hover,
.announcement-admin-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.announcement-item:hover,
.request-card:hover,
.report-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.request-header,
.report-header,
.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.request-header h3,
.report-header h3,
.announcement-header h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0;
  font-weight: 700;
}

.request-id,
.report-id,
.announcement-header .date {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

.request-description,
.report-description,
.announcement-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 10px 0;
  line-height: 1.6;
}

.request-info,
.report-info {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.request-actions,
.report-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--white);
  border: none;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
}

.stat-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

.stat-card.alert::before {
  background: linear-gradient(90deg, var(--danger) 0%, #ff6b6b 100%);
}

.stat-card.alert {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.stat-card h3 {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.big-number {
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
}

.admin-widget {
  background: var(--white);
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: none;
  transition: all 0.3s ease;
}

.admin-widget:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.admin-widget h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 18px;
  font-weight: 700;
}

.activity-list,
.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-list li,
.task-list li {
  font-size: 13px;
  color: var(--text-secondary);
  list-style: none;
}

.activity-list li strong,
.task-list li strong {
  color: var(--text-primary);
  font-weight: 700;
}

.task-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 8px;
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.document-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.doc-icon {
  font-size: 28px;
}

.doc-info {
  flex: 1;
}

.doc-info h4 {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 700;
}

.doc-date {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== TENANT PORTAL REDESIGN ===== */
.portal-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 116, 144, 0.14), transparent 24%),
    linear-gradient(180deg, #eef6f7 0%, #f6f1e8 48%, #fbfcfe 100%);
}

.portal-header {
  background:
    linear-gradient(135deg, rgba(13, 27, 42, 0.96) 0%, rgba(23, 54, 76, 0.96) 100%);
  backdrop-filter: blur(18px);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.user-chip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

.portal-shell {
  grid-template-columns: 300px 1fr;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px;
  gap: 24px;
  min-height: calc(100vh - 88px);
}

.portal-sidebar {
  border-radius: 28px;
  padding: 28px 20px;
  background:
    linear-gradient(180deg, rgba(10, 23, 37, 0.98) 0%, rgba(19, 44, 60, 0.98) 100%);
  position: sticky;
  top: 112px;
  height: fit-content;
  overflow: hidden;
}

.portal-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(138, 210, 219, 0.18), transparent 30%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
}

.portal-side-top,
.portal-support-card,
.sidebar-nav {
  position: relative;
  z-index: 1;
}

.portal-side-kicker,
.portal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6aa9b6;
}

.portal-side-top h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  line-height: 1.15;
  color: var(--white);
  margin-top: 14px;
}

.sidebar-nav {
  gap: 8px;
  margin-top: 28px;
}

.nav-item {
  padding: 14px 16px;
  margin: 0;
  border-radius: 16px;
  border-left: none;
}

.nav-item .icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.nav-item.active {
  border-left-color: transparent;
  background: linear-gradient(135deg, #c78b49 0%, #f0c48d 100%);
  color: #14283a;
  box-shadow: 0 16px 34px rgba(199, 139, 73, 0.28);
}

.nav-item.active .icon {
  background: rgba(20, 40, 58, 0.12);
}

.portal-support-card {
  margin-top: 28px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
}

.portal-support-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8dc7d2;
  margin-bottom: 8px;
}

.portal-support-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 10px;
}

.portal-support-card p {
  font-size: 13px;
  line-height: 1.7;
}

.portal-sidebar-footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.sidebar-mini-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.sidebar-mini-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.sidebar-mini-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8dc7d2;
}

.portal-main {
  background: transparent;
  padding: 0;
}

.portal-section {
  padding: 8px 0 24px;
}

.portal-hero-card {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 22px;
  padding: 34px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(18, 44, 62, 0.96) 0%, rgba(40, 92, 105, 0.94) 50%, rgba(222, 184, 135, 0.82) 100%);
  box-shadow: 0 30px 70px rgba(19, 46, 64, 0.2);
  position: relative;
  overflow: hidden;
}

.portal-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.2), transparent 22%),
    radial-gradient(circle at 80% 85%, rgba(255, 255, 255, 0.16), transparent 22%);
  pointer-events: none;
}

.portal-hero-copy,
.portal-hero-summary {
  position: relative;
  z-index: 1;
}

.portal-hero-copy h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  line-height: 1;
  color: var(--white);
  margin: 18px 0 16px;
  max-width: 11ch;
}

.portal-lead {
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

.portal-quick-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.portal-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.btn-secondary-portal {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.btn-secondary-portal:hover {
  background: rgba(255, 255, 255, 0.22);
}

.portal-hero-summary {
  display: grid;
  gap: 14px;
}

.summary-stat {
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(249, 250, 251, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.summary-stat.emphasis {
  background: rgba(255, 248, 239, 0.22);
}

.summary-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 10px;
}

.summary-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.summary-stat span:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.portal-dashboard-grid {
  margin-top: 24px;
}

.portal-status-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.status-rail-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(16px);
}

.status-rail-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0f6a7c 0%, #c78b49 100%);
}

.status-rail-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0f6a7c;
}

.status-rail-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
  color: var(--text-primary);
}

.status-rail-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.portal-card {
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.portal-card-accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 249, 250, 0.97) 100%);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 127, 151, 0.1);
  color: #0f6a7c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.card-badge.warm {
  background: rgba(199, 139, 73, 0.12);
  color: #9d6424;
}

.card-badge.cool {
  background: rgba(54, 139, 187, 0.12);
  color: #225b89;
}

.card-badge.neutral {
  background: rgba(71, 85, 105, 0.12);
  color: #334155;
}

.portal-key-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.portal-key-values div {
  padding: 16px;
  border-radius: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.portal-key-values span {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.portal-key-values strong {
  font-size: 18px;
  color: var(--text-primary);
}

.portal-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.section-intro {
  max-width: 48ch;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

.portal-panel {
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.announcement-item,
.request-card,
.report-card,
.document-item {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.announcement-item {
  border-left: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 250, 251, 0.95) 100%);
}

.announcement-item::after,
.request-card::after,
.report-card::after,
.document-item::after {
  content: '';
  position: absolute;
  inset: auto 18px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.08) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.request-card,
.report-card {
  border-left: none;
  background: rgba(255, 255, 255, 0.92);
}

.announcement-item,
.request-card,
.report-card,
.document-item,
.billing-card,
.portal-panel,
.portal-card,
.status-rail-card {
  position: relative;
}

.announcement-item:hover::after,
.request-card:hover::after,
.report-card:hover::after,
.document-item:hover::after {
  opacity: 1;
}

.documents-list.portal-documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.document-item {
  padding: 20px;
  min-height: 118px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.doc-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #14384c 0%, #3a7b88 100%);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ===== MODALS ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-2xl);
  position: relative;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  right: 24px;
  top: 24px;
  font-size: 24px;
  font-weight: bold;
  color: var(--text-light);
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.3s ease;
}

.close:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gray-200);
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  font-size: 14px;
}

.tab-btn.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

.form-container {
  display: none;
}

.form-container.active {
  display: block;
}

.form-container h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-weight: 700;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  transition: all 0.3s ease;
  background: var(--white);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: var(--text-light);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: rgba(59, 130, 246, 0.02);
}

.form-note {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

.auth-switch-note {
  margin-top: 8px;
}

.auth-switch-note a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch-note a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== ROOM PREVIEW MODAL ===== */
.room-preview-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.room-preview-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-preview-content {
  background: var(--white);
  border-radius: 16px;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  position: relative;
  animation: slideUp 0.4s ease-out;
}

.room-preview-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 32px;
  color: var(--white);
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
}

.room-preview-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
  margin: 0;
}

.room-preview-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-preview-close:hover {
  transform: rotate(90deg) scale(1.1);
}

.room-preview-gallery {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  overflow: hidden;
}

.room-preview-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.room-preview-gallery:hover img {
  transform: scale(1.05);
}

.room-preview-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  box-shadow: var(--shadow-lg);
}

.room-preview-body {
  padding: 40px;
}

.room-preview-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.room-info-item {
  text-align: center;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.room-info-item:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(6, 182, 212, 0.05));
  border-color: var(--secondary);
}

.room-info-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.room-info-value {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.room-preview-section {
  margin-bottom: 32px;
}

.room-preview-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 700;
}

.room-preview-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.amenities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
  border-left: 3px solid var(--secondary);
  transition: all 0.3s ease;
}

.amenity-item:hover {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), transparent);
  transform: translateX(4px);
}

.amenity-icon {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
}

.amenity-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.room-preview-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(6, 182, 212, 0.05));
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  margin-bottom: 32px;
}

.price-label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.price-amount {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.room-preview-actions {
  display: flex;
  gap: 16px;
}

.btn-inquiry,
.btn-schedule {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-inquiry {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
}

.btn-inquiry:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-schedule {
  background: var(--white);
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-schedule:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .portal-main,
  .admin-main {
    padding: 28px;
  }

  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }

  .portal-hero-card {
    grid-template-columns: 1fr;
  }
  
  .filter-select {
    min-width: 130px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 12px 0;
  }
  
  .header-container {
    padding: 12px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  
  .logo {
    font-size: 24px;
  }
  
  nav {
    width: 100%;
    gap: 10px;
    justify-content: flex-start;
  }
  
  nav a {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--gray-50);
  }

  nav a::after {
    display: none;
  }
  
  .nav-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .hero {
    height: 450px;
    padding: 0 20px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .search-box {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }
  
  .search-btn {
    grid-column: 1;
  }
  
  .portal-container,
  .admin-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .portal-header .header-container,
  .admin-header .header-container {
    align-items: stretch;
  }

  .portal-header .logo,
  .admin-header .logo {
    font-size: 21px;
  }

  .user-info {
    justify-content: space-between;
  }

  .portal-shell {
    padding: 12px;
    gap: 16px;
  }

  .portal-sidebar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 12px;
    border-radius: 16px;
  }

  .portal-side-top {
    display: none;
  }

  .portal-sidebar .sidebar-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-top: 0;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .portal-sidebar .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .portal-sidebar .nav-item {
    flex: 0 0 auto;
    min-width: 132px;
    flex-direction: row;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
  }
  
  .sidebar,
  .admin-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 10px;
  }
  
  .nav-item,
  .admin-nav-item {
    flex-direction: column;
    padding: 10px;
    gap: 5px;
    font-size: 12px;
    text-align: center;
  }
  
  .nav-item .icon,
  .admin-nav-item .icon {
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 6px 8px;
    font-size: 9px;
  }
  
  .portal-main,
  .admin-main {
    padding: 20px;
  }

  .portal-main {
    padding: 0;
  }

  .portal-side-top h2 {
    font-size: 24px;
  }

  .portal-support-card {
    margin-top: 18px;
  }

  .portal-hero-card {
    padding: 24px;
    border-radius: 24px;
  }

  .portal-hero-copy h1 {
    font-size: 34px;
  }

  .portal-quick-actions,
  .portal-card-actions,
  .section-heading,
  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section-actions.stacked {
    align-items: stretch;
  }

  .portal-workspace-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-workspace-heading h1 {
    font-size: 28px;
  }

  .portal-overview-grid,
  .admin-overview-grid,
  .portal-task-grid,
  .admin-task-grid {
    grid-template-columns: 1fr;
  }

  .overview-card,
  .task-card {
    min-height: auto;
  }

  .portal-key-values,
  .documents-list.portal-documents-grid {
    grid-template-columns: 1fr;
  }
  
  .units-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .units-filter {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  
  .filter-dropdowns {
    justify-content: center;
    width: 100%;
  }
  
  .filter-select {
    flex: 1 1 170px;
    min-width: 120px;
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .filter-btn {
    align-self: center;
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .modal-content {
    max-width: 90%;
    padding: 24px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .modal-header {
    flex-wrap: wrap;
    padding-right: 30px;
  }

  .booking-payment-card,
  .payment-review-card {
    flex-direction: column;
  }

  .booking {
    padding: 40px 16px;
  }

  .booking-shell {
    grid-template-columns: 1fr;
  }

  .booking-panel,
  .booking-payment-panel {
    padding: 24px;
  }

  .booking-heading h1 {
    font-size: 32px;
  }

  .booking-heading h2 {
    font-size: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .compact-proof-form {
    min-width: 0;
    max-width: none;
  }
  
  .bills-table,
  .admin-table {
    min-width: 0;
    font-size: 13px;
  }

  .bills-table thead,
  .admin-table thead {
    display: none;
  }

  .bills-table,
  .bills-table tbody,
  .bills-table tr,
  .bills-table td,
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .bills-table tr,
  .admin-table tr {
    padding: 14px;
    border-bottom: 1px solid var(--gray-200);
  }

  .bills-table td,
  .admin-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: none;
    text-align: right;
  }
  
  .bills-table td::before,
  .admin-table td::before {
    content: 'Detail';
    flex: 0 0 42%;
    color: var(--text-light);
    font-weight: 700;
    text-align: left;
  }

  #bills .bills-table td:nth-child(1)::before { content: 'Month'; }
  #bills .bills-table td:nth-child(2)::before { content: 'Rent'; }
  #bills .bills-table td:nth-child(3)::before { content: 'Utilities'; }
  #bills .bills-table td:nth-child(4)::before { content: 'Other Fees'; }
  #bills .bills-table td:nth-child(5)::before { content: 'Total'; }
  #bills .bills-table td:nth-child(6)::before { content: 'Status'; }
  #bills .bills-table td:nth-child(7)::before { content: 'Action'; }

  #tenants .admin-table td:nth-child(1)::before { content: 'Name'; }
  #tenants .admin-table td:nth-child(2)::before { content: 'Unit'; }
  #tenants .admin-table td:nth-child(3)::before { content: 'Email'; }
  #tenants .admin-table td:nth-child(4)::before { content: 'Phone'; }
  #tenants .admin-table td:nth-child(5)::before { content: 'Lease Start'; }
  #tenants .admin-table td:nth-child(6)::before { content: 'Lease End'; }
  #tenants .admin-table td:nth-child(7)::before { content: 'Status'; }
  #tenants .admin-table td:nth-child(8)::before { content: 'Actions'; }

  #units .admin-table td:nth-child(1)::before { content: 'Apartment'; }
  #units .admin-table td:nth-child(2)::before { content: 'Type'; }
  #units .admin-table td:nth-child(3)::before { content: 'Floor'; }
  #units .admin-table td:nth-child(4)::before { content: 'Size'; }
  #units .admin-table td:nth-child(5)::before { content: 'Tenant'; }
  #units .admin-table td:nth-child(6)::before { content: 'Rent'; }
  #units .admin-table td:nth-child(7)::before { content: 'Status'; }
  #units .admin-table td:nth-child(8)::before { content: 'Actions'; }

  #billing .admin-table td:nth-child(1)::before { content: 'Tenant'; }
  #billing .admin-table td:nth-child(2)::before { content: 'Unit'; }
  #billing .admin-table td:nth-child(3)::before { content: 'Month'; }
  #billing .admin-table td:nth-child(4)::before { content: 'Amount'; }
  #billing .admin-table td:nth-child(5)::before { content: 'Due Date'; }
  #billing .admin-table td:nth-child(6)::before { content: 'Status'; }
  #billing .admin-table td:nth-child(7)::before { content: 'Actions'; }
  
  .about h2,
  .available-units h2,
  .portal-section h1,
  .admin-section h1 {
    font-size: 28px;
  }
  
  .room-preview-header {
    padding: 24px;
  }
  
  .room-preview-header h2 {
    font-size: 24px;
  }
  
  .room-preview-info {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .room-preview-body {
    padding: 24px;
  }
  
  .amenities-list {
    grid-template-columns: 1fr;
  }
  
  .room-preview-actions {
    flex-direction: column;
  }
  
  .room-preview-gallery {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .container,
  .footer-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  header {
    padding: 0;
  }

  .header-container {
    padding: 10px 14px;
    gap: 10px;
  }

  .logo {
    font-size: 22px;
    line-height: 1.1;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  nav a,
  .nav-btn,
  #inquiry-logout,
  #inquiry-logout-btn {
    width: 100%;
  }

  nav a,
  .nav-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .user-info {
    gap: 10px;
  }

  .user-chip {
    padding: 8px 10px;
  }

  .hero {
    min-height: 360px;
    height: auto;
    padding: 64px 0;
  }
  
  .hero h1 {
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -0.5px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .btn-large {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
  }
  
  .search-box {
    padding: 16px;
  }
  
  .dashboard-card {
    padding: 16px;
  }

  .portal-card,
  .portal-hero-card,
  .document-item {
    padding: 18px;
  }

  .summary-stat strong {
    font-size: 22px;
  }

  .portal-hero-copy h1 {
    font-size: 28px;
  }
  
  .unit-info {
    padding: 16px;
  }

  .unit-image {
    height: 190px;
  }
  
  .modal-content {
    width: calc(100% - 24px);
    max-width: none;
    padding: 20px;
    border-radius: 10px;
  }

  .close {
    top: 16px;
    right: 16px;
  }

  .modal-header {
    gap: 6px;
    margin-right: 24px;
  }

  .tab-btn {
    flex: 1 1 calc(50% - 6px);
    padding: 10px 8px;
    font-size: 12px;
  }
  
  .units-filter {
    gap: 15px;
    margin-bottom: 32px;
  }
  
  .filter-dropdowns {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .filter-select {
    min-width: 100%;
    max-width: 280px;
    font-size: 14px;
  }

  .filter-btn {
    width: 100%;
  }

  .about,
  .available-units {
    padding: 64px 0;
  }

  .about-content p {
    text-align: left;
  }

  .feature-box {
    padding: 24px;
  }

  .room-preview-modal.active {
    align-items: stretch;
  }

  .room-preview-content {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .room-preview-header {
    padding: 18px 16px;
    border-radius: 0;
    align-items: center;
    gap: 12px;
  }

  .room-preview-header h2 {
    font-size: 22px;
    line-height: 1.2;
    min-width: 0;
  }

  .room-preview-close {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }

  .room-preview-gallery {
    height: 220px;
  }

  .room-preview-badge {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .room-preview-body {
    padding: 20px 16px 24px;
  }

  .room-preview-pricing {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
  }

  .price-amount {
    font-size: 28px;
  }

  .btn-inquiry,
  .btn-schedule {
    width: 100%;
    padding: 14px 18px;
  }
}

/* ===== ADMIN PREMIUM ALIGNMENT ===== */
.admin-premium-body .portal-main {
  background: transparent;
  padding: 0;
}

.admin-premium-body .admin-nav {
  display: flex;
  flex-direction: column;
}

.admin-premium-body .admin-nav-item {
  padding: 14px 16px;
  margin: 0;
  border-radius: 16px;
  border-left: none;
  color: rgba(255, 255, 255, 0.65);
}

.admin-premium-body .admin-nav-item .icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.admin-premium-body .admin-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transform: translateX(4px);
}

.admin-premium-body .admin-nav-item.active {
  border-left-color: transparent;
  background: linear-gradient(135deg, #c78b49 0%, #f0c48d 100%);
  color: #14283a;
  box-shadow: 0 16px 34px rgba(199, 139, 73, 0.28);
}

.admin-premium-body .admin-nav-item.active .icon {
  background: rgba(20, 40, 58, 0.12);
}

.portal-stats-grid {
  margin-top: 24px;
}

.admin-hero-card {
  margin-bottom: 24px;
}

.admin-premium-body .portal-hero-card {
  background:
    linear-gradient(135deg, rgba(24, 36, 53, 0.97) 0%, rgba(37, 73, 94, 0.95) 48%, rgba(185, 142, 92, 0.84) 100%);
}

.admin-premium-body .status-rail-card::before {
  background: linear-gradient(90deg, #225b89 0%, #d4a76a 100%);
}

.admin-dashboard-lite {
  grid-template-columns: 1.15fr 0.95fr;
}

.admin-jump-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-jump-card {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  border-radius: 20px;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(10px);
}

.admin-jump-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.admin-jump-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(20, 40, 58, 0.22);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-jump-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.25;
}

.admin-jump-card span:last-child {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.admin-dashboard-note {
  margin-top: 24px;
}

.section-focus-card {
  margin-bottom: 20px;
  padding: 24px 26px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(245, 248, 251, 0.96) 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.section-focus-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #225b89;
}

.section-focus-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.section-focus-card p {
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.announcement-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.billing-summary,
.portal-billing-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.billing-card {
  background: rgba(255, 255, 255, 0.92);
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.billing-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0f6a7c 0%, #c78b49 100%);
}

.billing-card h3 {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.billing-card.alert {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.admin-subheading {
  margin-top: 12px;
}

/* ===== PORTAL USABILITY CLEANUP ===== */
.portal-body {
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef7f8 42%, #f8fafc 100%);
}

.portal-shell {
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.portal-sidebar {
  border-radius: 20px;
  padding: 24px 16px;
  top: 96px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.portal-side-top h2 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
  margin-top: 8px;
}

.sidebar-nav {
  margin-top: 20px;
}

.nav-item,
.admin-premium-body .admin-nav-item {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
}

.nav-item .icon,
.admin-premium-body .admin-nav-item .icon {
  min-width: 44px;
  width: 44px;
  font-size: 9px;
}

.portal-hero-card {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  border-radius: 18px;
  padding: 26px;
  gap: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.admin-dashboard-lite {
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
}

.portal-hero-card::before {
  opacity: 0.35;
}

.portal-hero-copy h1 {
  font-family: 'Inter', sans-serif;
  max-width: 18ch;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 12px 0;
}

.portal-lead {
  font-size: 14px;
  line-height: 1.65;
}

.portal-quick-actions {
  margin-top: 18px;
  gap: 10px;
}

.portal-quick-actions .btn,
.portal-card-actions .btn,
.filter-group .filter-btn {
  min-height: 42px;
}

.portal-hero-summary {
  gap: 10px;
}

.summary-stat {
  padding: 16px;
  border-radius: 14px;
}

.summary-stat strong {
  font-size: 22px;
}

.portal-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.portal-card {
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.portal-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
}

.portal-panel {
  overflow-x: auto;
  border-radius: 16px;
  padding: 0;
}

.portal-panel table {
  margin-top: 0;
  min-width: 760px;
  box-shadow: none;
}

.section-heading {
  align-items: center;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  letter-spacing: 0;
  margin-bottom: 0;
}

.admin-jump-grid {
  gap: 10px;
}

.admin-jump-card {
  border-radius: 14px;
  padding: 14px;
}

.admin-jump-code {
  min-width: 32px;
  height: 32px;
  margin-bottom: 10px;
}

.admin-jump-card strong {
  font-size: 15px;
}

.admin-jump-card span:last-child {
  font-size: 12px;
  line-height: 1.45;
}

.billing-summary,
.portal-billing-summary {
  gap: 14px;
}

.billing-card {
  border-radius: 16px;
  padding: 20px;
}

.portal-workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
  padding: 4px 2px;
}

.portal-workspace-heading h1 {
  font-family: 'Inter', sans-serif;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--text-primary);
  margin: 8px 0 0;
}

.section-help {
  max-width: none;
  margin: -6px 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eef7f8;
  border: 1px solid rgba(15, 106, 124, 0.12);
  color: #24515d;
  font-weight: 600;
}

.section-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-actions.stacked {
  align-items: flex-end;
  flex-direction: column;
}

.portal-overview-grid,
.admin-overview-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.overview-card {
  min-height: 164px;
  padding: 24px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.overview-card.primary {
  background:
    linear-gradient(135deg, rgba(16, 36, 58, 0.98) 0%, rgba(31, 111, 131, 0.98) 100%);
  color: var(--white);
}

.overview-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.overview-card.primary .overview-label,
.overview-card.primary p {
  color: rgba(255, 255, 255, 0.76);
}

.overview-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 28px;
  line-height: 1.1;
  color: var(--text-primary);
}

.overview-card.primary strong {
  color: var(--white);
  font-size: 34px;
}

.overview-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.overview-card .btn {
  width: fit-content;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #10243a;
  box-shadow: none;
}

.portal-task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-task-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-card {
  min-height: 144px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.task-card:focus-visible,
.nav-item:focus-visible,
.btn:focus-visible,
.filter-btn:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 3px;
}

.task-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 131, 0.32);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.task-code {
  width: auto;
  min-width: 46px;
  height: 38px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef7f8;
  color: #0f6a7c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-back-btn {
  color: var(--text-primary);
}

.portal-panel {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.portal-panel table {
  border-radius: 16px;
}

.task-card strong,
.task-card span:last-child {
  display: block;
}

.task-card strong {
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 6px;
}

.task-card span:last-child {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.45;
}

.portal-quick-actions .btn-secondary-portal {
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.portal-quick-actions .btn-secondary-portal:hover {
  background: var(--gray-50);
  color: var(--secondary);
}

@media (max-width: 1200px) {
  .portal-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-overview-grid,
  .admin-overview-grid,
  .portal-task-grid,
  .admin-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .admin-dashboard-lite {
    grid-template-columns: 1fr;
  }

  .admin-jump-grid {
    grid-template-columns: 1fr;
  }

  .portal-status-rail {
    grid-template-columns: 1fr;
  }

  .portal-hero-tags {
    gap: 8px;
  }

  .billing-summary,
  .portal-billing-summary {
    grid-template-columns: 1fr;
  }

  .admin-premium-body .admin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-premium-body .admin-nav-item {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .section-focus-card {
    padding: 20px;
  }

  .section-focus-card h3 {
    font-size: 24px;
  }

  .sidebar-mini-card,
  .status-rail-card {
    padding: 18px;
  }

  .billing-card {
    padding: 20px;
  }
}

