/* MIM Analytics App - Extended Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --navy: #0a1628;
  --navy-light: #1a2744;
  --navy-mid: #0f1d35;
  --gold: #c9a84c;
  --gold-light: #e8d5a0;
  --gold-dark: #a88a3a;
  --white: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --text: #c8cdd3;
  --text-light: #9ca3ab;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --container: 1200px;
  --sidebar-width: 260px;
  --transition: 0.3s ease;
  --success: #2ecc71;
  --error: #e74c3c;
  --warning: #f39c12;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--white); line-height: 1.3; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }

.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-danger {
  background: var(--error);
  color: white;
  border-color: var(--error);
  font-size: 12px;
  padding: 8px 16px;
}
.btn-danger:hover { opacity: 0.85; color: white; }

.btn-sm { padding: 8px 20px; font-size: 12px; }

/* ========== HEADER / NAV ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  transition: all var(--transition);
  height: 80px;
  display: flex;
  align-items: center;
}
.header.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img { height: 45px; border-radius: 4px; }
.nav-logo span { font-family: var(--font-heading); font-size: 18px; color: var(--white); font-weight: 600; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-cta:hover { background: var(--gold-light); color: var(--navy) !important; }

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.mobile-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== PAGE HEADER (inner pages) ========== */
.page-header {
  background: var(--navy-mid);
  padding: 140px 0 60px;
  text-align: center;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}
.page-header .section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 16px;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ========== FLASH MESSAGES ========== */
.flash {
  padding: 16px 24px;
  border-radius: 8px;
  margin: 100px auto 0;
  max-width: var(--container);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: flashIn 0.3s ease;
}
.flash-success { background: rgba(46, 204, 113, 0.15); color: var(--success); border: 1px solid rgba(46, 204, 113, 0.3); }
.flash-error { background: rgba(231, 76, 60, 0.15); color: var(--error); border: 1px solid rgba(231, 76, 60, 0.3); }
.flash-warning { background: rgba(243, 156, 18, 0.15); color: var(--warning); border: 1px solid rgba(243, 156, 18, 0.3); }
.flash-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  padding: 0 0 0 16px;
}

@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}

.auth-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
}

.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-card .auth-logo img { height: 50px; border-radius: 4px; }
.auth-card .auth-logo h2 { font-size: 28px; margin-top: 12px; }
.auth-card .auth-logo p { color: var(--text-light); font-size: 14px; margin-top: 4px; }

.auth-form .form-group {
  margin-bottom: 20px;
}
.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.auth-form input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--gold);
}
.auth-form input::placeholder { color: var(--gray-500); }

.auth-form .btn { width: 100%; margin-top: 8px; }

.auth-form .auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-light);
  font-size: 14px;
}
.auth-form .auth-footer a { color: var(--gold); font-weight: 500; }
.auth-footer { color: var(--text-light); font-size: 14px; }
.auth-footer a { color: var(--gold); font-weight: 500; }

.form-error-msg {
  color: var(--error);
  font-size: 13px;
  margin-top: 4px;
}

/* ========== SECTIONS ========== */
.section { padding: 100px 0; }
.section-dark { background: var(--navy-mid); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ========== ABOUT SECTION ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-stat-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
.about-stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.about-stat-label {
  font-size: 13px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== APPROACH SECTION ========== */
.approach-steps {
  max-width: 700px;
  margin: 0 auto;
}
.approach-step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.approach-step:last-child { border-bottom: none; }
.approach-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
}
.approach-body h3 {
  font-size: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 8px;
}
.approach-body p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.portfolio-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.portfolio-icon {
  width: 56px;
  height: 56px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.portfolio-card h3 {
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 12px;
}
.portfolio-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.portfolio-tags span {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px;
}
.testimonial-quote {
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.testimonial-name {
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
}
.testimonial-role {
  color: var(--text-light);
  font-size: 12px;
}

/* ========== TEAM SECTION ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.team-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.2);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
}
.team-initials {
  width: 100%;
  height: 100%;
  background: rgba(201, 168, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
}
.team-card h3 {
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 4px;
}
.team-title {
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.team-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

/* ========== FAQ SECTION ========== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--gold);
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

/* ========== TOGGLE SWITCH ========== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.1);
  transition: var(--transition);
  border-radius: 28px;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--gold);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: var(--navy);
}

/* ========== CONTACT PAGE ========== */
.contact-page { padding: 40px 0 100px; }

.map-placeholder {
  width: 100%;
  height: 350px;
  background: var(--navy-mid);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 48px;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.office-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}
.office-card .icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold);
}
.office-card h4 { font-size: 16px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; }
.office-card p { color: var(--text-light); font-size: 14px; }

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form-grid .full-width { grid-column: 1 / -1; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gray-500); }

/* ========== BLOG ========== */
.blog-page { padding: 40px 0 100px; }

.blog-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.blog-filter {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: all var(--transition);
}
.blog-filter:hover, .blog-filter.active {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.blog-card-body { padding: 28px; }
.blog-card .category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 12px;
}
.blog-card h3 { font-size: 20px; margin-bottom: 12px; }
.blog-card h3 a { color: var(--white); }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card .excerpt { color: var(--text-light); font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.blog-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: var(--text-light);
}
.blog-card .read-more { color: var(--gold); font-weight: 500; }

/* Blog Article */
.blog-article-page { padding: 40px 0 100px; }

.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-article { line-height: 1.8; }
.blog-article h2 { font-size: 24px; margin: 32px 0 16px; }
.blog-article h3 { font-size: 20px; margin: 24px 0 12px; }
.blog-article p { margin-bottom: 20px; color: var(--text); }
.blog-article blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(201, 168, 76, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.blog-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 16px;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget li a { color: var(--text); font-size: 14px; }
.sidebar-widget li a:hover { color: var(--gold); }

/* ========== DASHBOARD ========== */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
}

.dash-sidebar {
  width: var(--sidebar-width);
  background: var(--navy-light);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
  position: fixed;
  top: 80px;
  bottom: 0;
  overflow-y: auto;
}

.dash-sidebar-header {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}
.dash-sidebar-header h3 { font-size: 16px; font-family: var(--font-body); font-weight: 600; }
.dash-sidebar-header p { font-size: 13px; color: var(--text-light); }

.dash-nav { list-style: none; }
.dash-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.dash-nav li a:hover, .dash-nav li a.active {
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold);
  border-left-color: var(--gold);
}
.dash-nav .badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.dash-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
}

.dash-welcome {
  margin-bottom: 32px;
}
.dash-welcome h1 { font-size: 28px; margin-bottom: 4px; }
.dash-welcome p { color: var(--text-light); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px;
}
.stat-card .stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
}
.stat-card .stat-value.gold { color: var(--gold); }

/* Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.project-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 28px;
}
.project-card h3 { font-size: 18px; font-family: var(--font-body); font-weight: 600; margin-bottom: 8px; }
.project-card p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }

.project-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-active { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.status-completed { background: rgba(201, 168, 76, 0.15); color: var(--gold); }
.status-on-hold { background: rgba(243, 156, 18, 0.15); color: var(--warning); }

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  margin-top: 16px;
  overflow: hidden;
}
.progress-bar .progress {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
}

/* Message List */
.message-list { list-style: none; }
.message-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all var(--transition);
  cursor: pointer;
}
.message-item:hover { border-color: rgba(201, 168, 76, 0.15); }
.message-item.unread { border-left: 3px solid var(--gold); }

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.message-content { flex: 1; }
.message-content h4 { font-size: 15px; font-family: var(--font-body); font-weight: 600; margin-bottom: 4px; }
.message-content p { font-size: 13px; color: var(--text-light); }
.message-date { font-size: 12px; color: var(--text-light); white-space: nowrap; }

/* ========== ADMIN ========== */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
}

.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--navy-light);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
  position: fixed;
  top: 80px;
  bottom: 0;
  overflow-y: auto;
}
.admin-sidebar-header {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}
.admin-sidebar-header h3 { font-size: 14px; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }

.admin-nav { list-style: none; }
.admin-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav li a:hover, .admin-nav li a.active {
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold);
  border-left-color: var(--gold);
}
.admin-nav .divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 12px 0;
}

.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.admin-header h1 { font-size: 28px; }

/* Admin Tables */
.admin-table-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.admin-table .actions { display: flex; gap: 8px; }

/* Status Badges */
.badge-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-new { background: rgba(231, 76, 60, 0.15); color: var(--error); }
.badge-in-progress { background: rgba(201, 168, 76, 0.15); color: var(--gold); }
.badge-resolved { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.badge-published { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.badge-draft { background: rgba(108, 117, 125, 0.15); color: var(--gray-400); }
.badge-admin { background: rgba(201, 168, 76, 0.15); color: var(--gold); }
.badge-client { background: rgba(108, 117, 125, 0.15); color: var(--gray-400); }

/* Admin Post Form */
.admin-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px;
  max-width: 800px;
}
.admin-form .form-group { margin-bottom: 24px; }
.admin-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition);
}
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--gold);
}
.admin-form textarea { min-height: 200px; resize: vertical; }
.admin-form select { cursor: pointer; }
.admin-form select option { background: var(--navy-light); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.radio-group {
  display: flex;
  gap: 20px;
  padding: 8px 0;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.radio-group input[type="radio"] {
  width: auto;
  accent-color: var(--gold);
}

/* ========== HOMEPAGE (App version) ========== */
.hero-mini {
  background: var(--navy-mid);
  padding: 160px 0 80px;
  text-align: center;
}
.hero-mini h1 { margin-bottom: 16px; }
.hero-mini p { color: var(--text-light); max-width: 600px; margin: 0 auto 32px; font-size: 17px; }
.hero-mini .hero-actions { display: flex; gap: 16px; justify-content: center; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.features-grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.2);
}
.feature-card .icon {
  width: 56px;
  height: 56px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}
.feature-card h3 { font-size: 18px; font-family: var(--font-body); font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 14px; }

/* ========== FOOTER ========== */
.footer {
  background: var(--navy-light);
  padding: 60px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand h3 { font-size: 20px; margin-bottom: 8px; }
.footer-brand p { color: var(--text-light); font-size: 14px; }
.footer-brand img { height: 40px; border-radius: 4px; margin-bottom: 12px; }

.footer h4 {
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-light); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }

.footer-newsletter { display: flex; gap: 8px; }
.footer-newsletter input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
}
.footer-newsletter button {
  padding: 12px 20px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 13px; color: var(--text-light); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all var(--transition);
}
.footer-social a:hover { background: rgba(201, 168, 76, 0.15); color: var(--gold); }

/* ========== BREADCRUMB ========== */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .separator { color: var(--gray-500); }

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-light);
}
.empty-state h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .mobile-nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background: var(--navy-light);
    flex-direction: column;
    padding: 32px 24px;
    transition: right var(--transition);
  }
  .nav-menu.open { right: 0; }
  .nav-link { padding: 12px 0; font-size: 15px; }

  .dash-sidebar, .admin-sidebar { display: none; }
  .dash-sidebar.open, .admin-sidebar.open {
    display: block;
    position: fixed;
    z-index: 100;
    width: 260px;
    left: 0;
  }
  .dash-main, .admin-main { margin-left: 0; }

  .blog-article-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
  .hero-mini { padding: 120px 0 60px; }
  .hero-mini .hero-actions { flex-direction: column; align-items: center; }
  .stat-grid { grid-template-columns: 1fr; }
  .dash-main, .admin-main { padding: 20px; }
  .about-stats { grid-template-columns: 1fr; }
}


/* ========== INQUIRY DETAIL ========== */
.inquiry-detail-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.inquiry-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.inquiry-meta-item {
  padding: 12px 0;
}
.inquiry-meta-item label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.inquiry-meta-item span {
  font-size: 15px;
  color: var(--text);
}
.inquiry-message-body {
  padding: 28px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.inquiry-message-body h3 {
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
  margin-bottom: 16px;
}
.inquiry-message-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
}
.inquiry-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: rgba(255,255,255,0.02);
}
.inquiry-status-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== ADMIN FORM CARD ========== */
.admin-form-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px;
  max-width: 700px;
}
.admin-form-card .form-group { margin-bottom: 20px; }
.admin-form-card .form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-form-card .form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition);
}
.admin-form-card .form-control:focus {
  outline: none;
  border-color: var(--gold);
}
.admin-form-card textarea.form-control { min-height: 120px; resize: vertical; }
.admin-form-card select.form-control { cursor: pointer; }
.admin-form-card select.form-control option { background: var(--navy-light); }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

/* Admin Nav Section Header */
.admin-nav-section {
  padding: 8px 24px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
}

/* Content Management Tables */
.content-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
}
.content-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-right: 4px;
}
.truncate-cell {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .inquiry-meta-grid { grid-template-columns: 1fr; }
  .inquiry-actions-bar { flex-direction: column; gap: 16px; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
