@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  /* Light Theme Colors */
  --primary-color: #87E8DE;      
  --primary-light: #65d3c6;    
  --secondary-color: #888888;    
  --accent-color: #00a8cc;       
  --success-color: #87E8DE;
  --warning-color: #faad14;
  --danger-color: #ff4d4f;
  --text-main: #2c3e50;
  --text-muted: #7f8c8d;
  --border-color: #e2e8f0;
  --background-main: #ffffff;
  --background-card: rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 15px 30px rgba(0,0,0,0.12);
  --border-radius: 16px;
  --transition: all 0.3s ease;
  /* Holographic Channels */
  --c1: #38bdf8;
  --c2: #a855f7;
  --c3: #22c55e;
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --primary-color: #5cdbd3;      
  --primary-light: #36cfc9;    
  --secondary-color: #888888;    
  --accent-color: #0ea5e9;       
  --success-color: #5cdbd3;
  --warning-color: #faad14;
  --danger-color: #ff4d4f;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --background-main: #121212;
  --background-card: rgba(30, 41, 59, 0.9);
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 15px 30px rgba(0,0,0,0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  background: linear-gradient(-45deg, #ffffff, #e0f7fa, #87E8DE, #b2ebf2);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite, fadeInGlobal 0.6s ease-out forwards;
  line-height: 1.6;
  overflow-x: hidden;
  transition: color var(--transition);
}

[data-theme="dark"] body {
  background: linear-gradient(-45deg, #091316, #122429, #0a1f26, #183335);
  background-size: 400% 400%;
}

/* Page Loader & Transitions */
.page-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #050811; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.fade-out { opacity: 0; visibility: hidden; }

.loader-spinner {
    width: 60px; height: 60px;
    border: 4px solid rgba(135, 232, 222, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Empty States */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3.5rem; color: rgba(135, 232, 222, 0.2); margin-bottom: 20px; display: block; }
.empty-state h4 { font-weight: 800; color: var(--text-main); margin-bottom: 5px; }

/* Interactive Hover Feedback */
.btn:active, .btn-primary:active, .btn-nav-premium:active { transform: scale(0.95); }


h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

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

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .sidebar {
  left: auto;
  right: 0;
  box-shadow: -2px 0 5px rgba(0,0,0,0.05);
}

[dir="rtl"] .main-content {
  margin-left: 0;
  margin-right: 260px;
}

[dir="rtl"] .sidebar-nav a { border-right: none; border-left: 4px solid transparent; }
[dir="rtl"] .sidebar-nav a:hover, [dir="rtl"] .sidebar-nav a.active { border-left: 4px solid var(--primary-color); }

@media (max-width: 900px) {
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  [dir="rtl"] .sidebar.active { transform: translateX(0); }
  [dir="rtl"] .main-content { margin-right: 0; }
  [dir="rtl"] .nav-links { left: -100%; right: auto; }
  [dir="rtl"] .nav-links.active { left: 0; }
}

[dir="rtl"] .ms-auto { margin-left: 0; margin-right: auto; }
[dir="rtl"] .me-3 { margin-right: 0; margin-left: 1rem; }
[dir="rtl"] .text-end { text-align: left; }

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* Grid System */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}
.col { flex: 1; padding: 10px; }
.col-3 { flex: 0 0 33.333%; max-width: 33.333%; padding: 10px; }
.col-4 { flex: 0 0 25%; max-width: 25%; padding: 10px; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 10px; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 10px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 10px; }

@media (max-width: 768px) {
  .col-3, .col-4, .col-6, .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  text-align: center;
  font-family: inherit;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn:active {
  transform: scale(0.95);
  box-shadow: none;
}

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

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

.btn-accent {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-accent:hover {
  background-color: #008ca8;
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.btn-block {
  display: flex;
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--background-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 75, 130, 0.1);
}

.form-error {
  color: var(--danger-color);
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

/* Cards */
.card {
  background-color: var(--background-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Badges */
.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}
.badge-success { background-color: rgba(40, 167, 69, 0.1); color: var(--success-color); }
.badge-warning { background-color: rgba(255, 193, 7, 0.1); color: var(--warning-color); }
.badge-danger { background-color: rgba(220, 53, 69, 0.1); color: var(--danger-color); }
.badge-primary { background-color: rgba(26, 75, 130, 0.1); color: var(--primary-color); }

/* Tables */
.table-responsive {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 15px;
  text-align: start; /* Supports RTL */
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}
th {
  font-weight: 600;
  color: var(--text-muted);
  background-color: rgba(0,0,0,0.02);
}
[data-theme="dark"] th { background-color: rgba(255,255,255,0.02); }

/* Theme & Lang Toggles */
.controls-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
}
.lang-select {
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-card);
  color: var(--text-main);
  font-family: inherit;
  cursor: pointer;
}

/* Navbar */
.navbar {
  background-color: var(--background-card);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 20px;
}

.nav-links li a {
  color: var(--text-main);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--border-radius);
}

.nav-links li a:hover, .nav-links li a.active {
  color: var(--primary-color);
  background-color: rgba(26, 75, 130, 0.05);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    background-color: var(--background-card);
    flex-direction: column;
    width: 250px;
    height: calc(100vh - 70px);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    transition: right 0.3s ease;
    align-items: flex-start;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-toggle {
    display: block;
  }
  .controls-bar {
    margin-right: 15px;
  }
}

/* Sections */
.section {
  padding: 80px 0;
  background-color: transparent;
}
.section.alt {
  background-color: rgba(255, 255, 255, 0.4);
}
[data-theme="dark"] .section.alt {
  background-color: rgba(0, 0, 0, 0.2);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(26, 75, 130, 0.9) 0%, rgba(0, 168, 204, 0.8) 100%), url('https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1920&q=80') center/cover;
  color: #fff;
  padding: 100px 0;
  text-align: center;
  min-height: 50vh;
  display: flex;
  align-items: center;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* Dashboard Layout */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: transparent;
}

.sidebar {
  width: 260px;
  background-color: var(--background-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-nav {
  padding: 20px 0;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text-main);
  font-weight: 500;
  gap: 15px;
  transition: var(--transition);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background-color: rgba(26, 75, 130, 0.05);
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 30px;
  transition: margin-left 0.3s ease;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background: var(--background-card);
  padding: 20px 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.active { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 15px; }
  .sidebar-toggle { display: block; }
}

/* Modals, Tabs, etc reused from previous, just using CSS vars */
.auth-wrapper {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-container {
  background: var(--background-card);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--border-color);
}

.auth-tabs { display: flex; margin-bottom: 30px; border-bottom: 2px solid var(--border-color); }
.auth-tab {
  flex: 1; text-align: center; padding: 10px; cursor: pointer; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition);
}
.auth-tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }

/* Footer decommissioned/replaced by footer-premium */

/* Pricing Grid */
.pricing-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-card.recommended {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(26, 75, 130, 0.2);
  transform: scale(1.05);
}
.pricing-badge {
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--accent-color);
  color: white;
  padding: 5px 40px;
  transform: rotate(45px);
  font-size: 0.8rem;
  font-weight: bold;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 20px 0;
}
.pricing-features {
  list-style: none;
  margin: 20px 0 30px;
  text-align: left;
}
.pricing-features li {
  margin-bottom: 15px;
  color: var(--text-muted);
}
[dir="rtl"] .pricing-features { text-align: right; }

/* Animations */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

[dir="rtl"] .hero-content {
  animation-name: slideInRight;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
  0% { transform: scale(0.9); opacity: 0; }
  60% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInGlobal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- AI Chat Global Feature --- */
.ai-chat-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ai-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(135,232,222,0.4);
}
.ai-chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 360px;
  height: 550px;
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.ai-chat-window.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.ai-chat-header {
  padding: 15px 20px;
  background: var(--primary-color);
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.ai-chat-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #000;
  transition: transform 0.2s;
}
.ai-chat-close:hover { transform: scale(1.1); }
.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
  animation: slideInRight 0.3s ease-out forwards;
}
[dir="rtl"] .chat-bubble { animation: slideInLeft 0.3s ease-out forwards; }

.chat-bubble.user {
  align-self: flex-end;
  background: var(--primary-color);
  color: #000;
  border-bottom-right-radius: 4px;
}
[dir="rtl"] .chat-bubble.user {
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--border-color);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}
[dir="rtl"] .chat-bubble.ai {
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.ai-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 15px 15px;
}
.ai-suggestion-btn {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--text-main);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ai-suggestion-btn:hover {
  background: var(--primary-color);
  color: #000;
}
.ai-chat-input-area {
  padding: 15px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  background: var(--background-card);
}
.ai-chat-input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 15px;
  background: var(--background-main);
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
}
.ai-chat-input:focus { border-color: var(--primary-color); }

/* --- AI COMMAND CENTER ENHANCEMENTS --- */
.ai-tab-nav {
    display: flex; background: rgba(0,0,0,0.03); padding: 5px; gap: 5px;
    border-bottom: 1px solid var(--border-color);
}
.ai-tab-btn {
    flex: 1; border: none; background: none; padding: 10px; font-size: 0.75rem;
    font-weight: 700; color: var(--text-muted); cursor: pointer; border-radius: 8px;
    transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.ai-tab-btn.active { background: var(--primary-color); color: #000; box-shadow: 0 4px 10px rgba(135,232,222,0.3); }

.ai-content-wrapper { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.ai-tab-content { position: absolute; inset: 0; padding: 15px; overflow-y: auto; display: none; background: var(--background-card); }
.ai-tab-content.active { display: block; animation: fadeIn 0.3s ease-out forwards; }

#aiTabChat { display: flex; flex-direction: column; padding: 0; }
#aiTabChat .ai-chat-messages { flex: 1; padding: 20px; }

.ai-tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 5px; }
.ai-tool-card { 
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
    padding: 20px 10px; border-radius: 12px; text-align: center; cursor: pointer; transition: 0.3s;
}
.ai-tool-card i { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 10px; display: block; }
.ai-tool-card p { font-size: 0.75rem; font-weight: 700; margin: 0; color: var(--text-main); }
.ai-tool-card:hover { border-color: var(--primary-color); background: rgba(135,232,222,0.05); transform: translateY(-3px); }

.ai-actions-list { display: flex; flex-direction: column; gap: 10px; }
.ai-action-item { 
    width: 100%; padding: 15px; border-radius: 12px; border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.03); color: var(--text-main); font-weight: 700;
    font-size: 0.85rem; text-align: left; display: flex; align-items: center; gap: 12px; transition: 0.3s;
}
.ai-action-item i { color: var(--primary-color); font-size: 1rem; }
.ai-action-item:hover { border-color: var(--primary-color); background: rgba(135,232,222,0.05); }

/* --- SMART MODES BAR (ADDITIVE) --- */
.ai-smart-modes {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: sticky;
    top: 0;
    z-index: 5;
}
.ai-smart-modes::-webkit-scrollbar { display: none; }

.mode-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mode-btn i { color: var(--primary-color); font-size: 1rem; }

.mode-btn:hover {
    background: rgba(135, 232, 222, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 25px rgba(135, 232, 222, 0.25);
}

.mode-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(135, 232, 222, 0.4);
}
.mode-btn.active i { color: #000; }

[data-theme='dark'] .ai-smart-modes { background: rgba(0, 0, 0, 0.2); }
[data-theme='dark'] .mode-btn { background: rgba(255, 255, 255, 0.02); }

/* --- DYNAMIC MODE PANEL (ADDITIVE) --- */
.ai-dynamic-panel {
    display: none;
    margin: 15px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.ai-dynamic-panel.active {
    display: block;
    animation: dynamicPanelIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.dynamic-panel-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.dynamic-panel-content i {
    color: var(--primary-color);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(135, 232, 222, 0.4));
}

@keyframes dynamicPanelIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

[data-theme='dark'] .ai-dynamic-panel {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Marketplace Additive UI */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    width: 100%;
}

.supplier-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.supplier-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-color);
    background: rgba(135, 232, 222, 0.05);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.1);
}

.supplier-info h6 { 
    margin: 0 0 4px; color: #fff; font-size: 0.85rem; font-weight: 800; 
}
.supplier-info p { 
    margin: 0 0 10px; font-size: 0.7rem; color: rgba(255,255,255,0.5); line-height: 1.3; 
}
.supplier-rating { 
    font-size: 0.75rem; color: #facc15; font-weight: 700; margin-bottom: 5px;
}

.supplier-contact-btn {
    width: 100%;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(135, 232, 222, 0.3);
    background: rgba(135, 232, 222, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.supplier-contact-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}

/* Automation Workflow UI (Additive) */
.automation-workflow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.workflow-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
}

.workflow-step:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    background: rgba(135, 232, 222, 0.05);
}

.workflow-step i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.3));
}

.workflow-step span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.workflow-arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    animation: pulseArrow 2s infinite;
}

@keyframes pulseArrow {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(3px); }
}

/* Apps Mini-Store UI (Additive) */
.apps-mini-store {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-card-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.app-card-mini:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: rgba(135, 232, 222, 0.04);
}

.app-icon-mini {
    width: 42px;
    height: 42px;
    background: rgba(135, 232, 222, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.app-info-mini {
    flex: 1;
}

.app-info-mini h6 {
    margin: 0 0 2px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
}

.app-info-mini p {
    margin: 0;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.5);
}

.app-install-btn {
    padding: 6px 14px;
    border-radius: 50px;
    border: none;
    background: var(--primary-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.app-install-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-color);
}

/* Intelligence Insights UI (Additive) */
.intelligence-insights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-alert {
    padding: 14px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    border-left: 5px solid rgba(255,255,255,0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease;
}

.insight-alert:hover {
    transform: translateX(5px);
}

.insight-alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.insight-alert.positive {
    border-left-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.insight-alert.warning {
    border-left-color: #f59e0b;
    color: #ef9f0b;
    background: rgba(245, 158, 11, 0.08);
}

.insight-alert.danger {
    border-left-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* Funding Hub UI (Additive) */
.funding-hub {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.funding-card-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 18px;
    transition: all 0.3s ease;
}

.funding-card-mini:hover {
    border-color: var(--primary-color);
    background: rgba(135, 232, 222, 0.05);
    transform: translateY(-3px);
}

.funding-header-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.funding-header-mini i {
    color: var(--primary-color);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(135, 232, 222, 0.3));
}

.funding-header-mini h6 {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}

.funding-card-mini p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin: 0 0 15px;
    line-height: 1.4;
}

.funding-apply-btn {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.funding-apply-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-color);
}

/* --- AI EXECUTION ENGINE (ADDITIVE) --- */
.ai-execute-btn {
    display: block;
    margin-top: 10px;
    padding: 8px 15px;
    border-radius: 12px;
    background: rgba(135, 232, 222, 0.15);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 5px 15px rgba(135, 232, 222, 0.1);
}
.ai-execute-btn:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(135, 232, 222, 0.3);
}

.ai-execution-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ai-execution-modal.active { display: flex; animation: fadeIn 0.4s ease; }

.execution-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.execution-card h3 { color: #fff; margin-bottom: 30px; display: flex; align-items: center; justify-content: center; gap: 15px; font-weight: 900; }
.execution-card h3 i { color: var(--primary-color); animation: pulseGlow 1.5s infinite; }

.execution-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; text-align: left; }
.exec-step { display: flex; align-items: center; gap: 15px; color: var(--text-muted); font-weight: 700; transition: color 0.3s; }
.exec-step.active { color: #fff; }
.exec-step.active i { color: var(--primary-color); }
.exec-step.done { color: var(--primary-color); opacity: 1; }

.execution-progress { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 10px; margin-bottom: 40px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--primary-color); width: 0; transition: width 0.4s ease; box-shadow: 0 0 15px var(--primary-color); }

.execution-result { animation: slideUp 0.5s ease-out; }
.success-banner { background: rgba(16, 185, 129, 0.15); border: 1px solid #10b981; color: #10b981; padding: 15px; border-radius: 15px; font-weight: 800; margin-bottom: 20px; }

@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px var(--primary-color)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px var(--primary-color)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--primary-color)); }
}

/* --- SMART NETWORK FEED (ADDITIVE) --- */
.ai-feed-header {
    padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 15px;
}
.ai-feed-header h6 { color: var(--primary-color); font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ai-feed-header p { font-size: 0.7rem; color: var(--text-muted); margin: 0; }

.ai-smart-feed { display: flex; flex-direction: column; gap: 15px; padding-bottom: 20px; }

.ai-feed-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.ai-feed-card:hover {
    border-color: var(--primary-color);
    background: rgba(135, 232, 222, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 242, 255, 0.15);
}

.ai-suggested-tag {
    display: inline-flex;
    align-items: center; gap: 6px;
    padding: 4px 10px;
    background: rgba(135, 232, 222, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.ai-feed-card h5 { color: #fff; margin-bottom: 8px; font-weight: 800; font-size: 0.95rem; }
.ai-feed-card p { font-size: 0.78rem; color: rgba(255,255,255,0.6); line-height: 1.4; margin-bottom: 15px; }

.ai-feed-card-actions { display: flex; gap: 10px; }
.feed-cta-btn {
    flex: 1; padding: 10px; border-radius: 12px; border: none;
    background: var(--primary-color); color: #000; font-size: 0.75rem; 
    font-weight: 800; cursor: pointer; transition: 0.3s;
}
.feed-cta-btn.secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.feed-cta-btn:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(0, 242, 255, 0.4); }

@keyframes feedCardIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- LIVE BUSINESS MAP (ADDITIVE) --- */
.ai-map-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px);
    z-index: 11000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.ai-map-modal.active { display: flex; animation: fadeIn 0.4s ease; }

.mapp-container {
    background: #0f172a; border: 1px solid rgba(255,255,255,0.1); border-radius: 30px;
    width: 100%; max-width: 850px; height: 600px; display: flex; flex-direction: column; overflow: hidden;
}

.mapp-header { padding: 25px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mapp-header h3 { color: #fff; margin: 0; display: flex; align-items: center; gap: 15px; font-weight: 900; }
.mapp-header h3 i { color: var(--primary-color); }
.mapp-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; opacity: 0.5; transition: 0.3s; }
.mapp-close:hover { opacity: 1; transform: rotate(90deg); }

.mapp-filters { padding: 15px 25px; background: rgba(255,255,255,0.02); display: flex; gap: 15px; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mapp-select { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 8px 15px; border-radius: 12px; font-size: 0.8rem; outline: none; }
.mapp-stat { margin-left: auto; font-size: 0.75rem; color: #10b981; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.mapp-stat i { animation: pulseGreen 1.5s infinite; }

.mapp-viewport { flex: 1; position: relative; background: #1e293b; overflow: hidden; }
.mapp-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 40px 40px; }

.mapp-pin { position: absolute; color: var(--primary-color); cursor: pointer; transition: 0.3s; }
.mapp-pin i { font-size: 1.8rem; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); }
.mapp-pin:hover { color: #fff; transform: scale(1.2) translateY(-5px); }

.mapp-pin.pulsing i { animation: pinGlow 2s infinite ease-in-out; }

.mapp-tooltip {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(10px);
    background: #000; border: 1px solid var(--primary-color); border-radius: 18px;
    padding: 18px; width: 220px; opacity: 0; pointer-events: none; visibility: hidden;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.mapp-pin:hover .mapp-tooltip { opacity: 1; visibility: visible; pointer-events: all; transform: translateX(-50%) translateY(0); }

.mapp-tooltip h6 { color: #fff; margin: 0 0 5px; font-weight: 800; font-size: 1rem; }
.mapp-tooltip p { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin: 0 0 15px; }

@keyframes pinGlow {
    0%, 100% { filter: drop-shadow(0 0 5px var(--primary-color)); }
    50% { filter: drop-shadow(0 0 20px var(--primary-color)); }
}

@keyframes pulseGreen {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* --- AI MEMORY SYSTEM (ADDITIVE) --- */
.ai-memory-cloud { padding: 5px; }
.memory-sync-badge {
    padding: 15px; background: rgba(135, 232, 222, 0.05); color: var(--primary-color);
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 15px;
}
.memory-sync-badge i { font-size: 1rem; animation: memorySyncPulse 2s infinite alternate; }

.memory-list { display: flex; flex-direction: column; gap: 12px; padding: 0 15px 20px; }
.memory-entry {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px; padding: 15px; position: relative; transition: all 0.3s ease;
}
.memory-entry:hover { background: rgba(135, 232, 222, 0.05); border-color: rgba(135, 232, 222, 0.2); }
.memory-entry strong { color: var(--primary-color); font-size: 0.8rem; font-weight: 900; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.memory-entry span { color: #fff; font-size: 0.85rem; font-weight: 500; display: block; line-height: 1.4; }
.memory-entry small { color: rgba(255,255,255,0.3); font-size: 0.65rem; margin-top: 8px; display: block; }

.memory-empty-state {
    padding: 40px 20px; text-align: center; color: rgba(255,255,255,0.2); font-size: 0.85rem; font-weight: 700;
}

.memory-insight-alert {
    padding: 15px 20px; background: linear-gradient(135deg, rgba(135, 232, 222, 0.1), rgba(4, 190, 254, 0.1));
    border: 1px solid var(--primary-color); border-radius: 18px; margin-bottom: 15px;
    animation: fadeInSlideUp 0.5s cubic-bezier(0.19, 1, 0.22, 1); box-shadow: 0 10px 25px rgba(0, 242, 255, 0.1);
}
.memory-insight-alert h6 { color: var(--primary-color); margin: 0 0 5px; font-weight: 900; font-size: 0.8rem; display: flex; align-items: center; gap: 8px; }
.memory-insight-alert p { color: #fff; margin: 0; font-size: 0.85rem; font-weight: 700; line-height: 1.4; }

@keyframes memorySyncPulse {
    from { opacity: 0.4; filter: drop-shadow(0 0 0 var(--primary-color)); }
    to { opacity: 1; filter: drop-shadow(0 0 8px var(--primary-color)); }
}

/* --- DYNAMIC INTELLIGENCE UI STATUS (ADDITIVE) --- */
.ai-system-status-indicator {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.05); padding: 5px 12px; border-radius: 50px;
    font-size: 0.72rem; font-weight: 800; color: #fff; border: 1px solid rgba(255,255,255,0.1);
    margin-left: 15px; transition: 0.3s;
}
.ai-system-status-indicator i { font-size: 0.6rem; animation: statusBreathe 2s infinite ease-in-out; }

/* Status: Healthy (Optimal) */
.ai-status-healthy { border-color: rgba(16, 185, 129, 0.4) !important; }
.ai-status-healthy .ai-chat-header { background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), transparent); }
.ai-status-healthy .ai-system-status-indicator i { color: #10b981; filter: drop-shadow(0 0 5px #10b981); }

/* Status: Warning (Attention) */
.ai-status-warning { border-color: rgba(245, 158, 11, 0.4) !important; box-shadow: 0 0 40px rgba(245, 158, 11, 0.15); }
.ai-status-warning .ai-chat-header { background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), transparent); animation: warningPulse 3s infinite; }
.ai-status-warning .ai-system-status-indicator i { color: #f59e0b; filter: drop-shadow(0 0 8px #f59e0b); }

/* Status: Critical (Risk) */
.ai-status-critical { border-color: rgba(239, 68, 68, 0.6) !important; box-shadow: 0 0 60px rgba(239, 68, 68, 0.25); }
.ai-status-critical .ai-chat-header { background: linear-gradient(90deg, rgba(239, 68, 68, 0.3), transparent); animation: riskPulse 1s infinite alternate; }
.ai-status-critical .ai-system-status-indicator i { color: #ef4444; filter: drop-shadow(0 0 10px #ef4444); }

@keyframes statusBreathe {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}
@keyframes warningPulse {
    0%, 100% { background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), transparent); }
    50% { background: linear-gradient(90deg, rgba(245, 158, 11, 0.3), transparent); }
}
@keyframes riskPulse {
    from { border-color: rgba(239, 68, 68, 0.3); }
    to { border-color: rgba(239, 68, 68, 0.8); }
}

/* --- PROFIT HUB / REVENUE GENERATOR (ADDITIVE) --- */
.ai-revenue-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(20px);
    z-index: 12000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.ai-revenue-modal.active { display: flex; animation: fadeIn 0.4s ease; }

.rev-container {
    background: #0f172a; border: 1px solid rgba(255,255,255,0.1); border-radius: 40px;
    width: 100%; max-width: 950px; padding: 40px; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6); position: relative;
}

.rev-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.rev-header h3 { color: #fff; margin: 0; font-weight: 900; font-size: 1.5rem; display: flex; align-items: center; gap: 15px; }
.rev-header h3 i { color: var(--primary-color); animation: pulseGlow 2s infinite; }
.rev-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; opacity: 0.5; transition: 0.3s; }
.rev-close:hover { opacity: 1; transform: rotate(90deg); }

.rev-scanner-status { 
    background: rgba(135, 232, 222, 0.05); padding: 12px 20px; border-radius: 12px;
    color: var(--primary-color); font-size: 0.85rem; font-weight: 800; margin-bottom: 30px;
    display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
}

.rev-opportunity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.rev-card-premium {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); 
    border-radius: 25px; padding: 25px; transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.rev-card-premium:hover {
    border-color: var(--primary-color); background: rgba(135,232,222,0.04);
    transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,242,255,0.15);
}

.rev-tags { display: flex; gap: 8px; margin-bottom: 15px; }
.rev-tag { padding: 4px 10px; border-radius: 50px; font-size: 0.65rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }
.rev-tag.hot { background: #ef4444; color: #fff; }
.rev-tag.growing { background: var(--primary-color); color: #000; }

.rev-card-premium h5 { color: #fff; margin: 0 0 10px; font-weight: 800; font-size: 1.1rem; }
.rev-card-premium p { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.5; margin-bottom: 20px; height: 45px; overflow: hidden; }

.rev-metrics { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; margin-bottom: 20px; }
.rev-m-item span { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.3); font-weight: 800; text-transform: uppercase; margin-bottom: 4px; }
.rev-m-item strong { color: #fff; font-size: 0.95rem; }

.rev-execute-btn {
    width: 100%; padding: 12px; border-radius: 12px; border: none;
    background: var(--primary-color); color: #000; font-weight: 900; 
    font-size: 0.85rem; cursor: pointer; transition: 0.3s;
}
.rev-execute-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px var(--primary-color); }

.rev-footer-note { margin-top: 40px; text-align: center; color: rgba(255,255,255,0.15); font-size: 0.75rem; font-weight: 800; }

@keyframes revSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- AUTO-CLIENT ACQUISITION (ADDITIVE) --- */
.acq-engine-wrapper { padding: 5px 15px 20px; }
.acq-top-bar { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 15px; background: rgba(135,232,222,0.05); border-radius: 18px; margin-bottom: 20px;
}
.acq-top-bar h6 { color: #fff; margin: 0; font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; gap: 10px; }
.acq-top-bar h6 i { color: var(--primary-color); }
.acq-scan-trigger {
    background: var(--primary-color); color: #000; border: none; padding: 8px 15px;
    border-radius: 12px; font-weight: 900; font-size: 0.75rem; cursor: pointer; transition: 0.3s;
}
.acq-scan-trigger:hover { transform: scale(1.05); box-shadow: 0 0 15px var(--primary-color); }

.acq-loading { padding: 40px 20px; text-align: center; color: var(--primary-color); font-size: 0.85rem; font-weight: 700; }

.acq-results-list { display: flex; flex-direction: column; gap: 15px; }
.acq-empty-state { padding: 40px 20px; text-align: center; color: rgba(255,255,255,0.2); font-size: 0.85rem; font-weight: 700; }

.acq-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px; padding: 20px; transition: 0.3s;
}
.acq-card:hover { border-color: var(--primary-color); background: rgba(135,232,222,0.04); }

.acq-card-top { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.acq-avatar {
    width: 45px; height: 45px; background: linear-gradient(135deg, var(--primary-color), #04befe);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: #000; font-weight: 900; font-size: 1.2rem;
}
.acq-main h6 { color: #fff; margin: 0 0 4px; font-weight: 800; }
.acq-match-tag { 
    display: inline-flex; align-items: center; gap: 5px; font-size: 0.65rem; 
    color: var(--primary-color); background: rgba(135,232,222,0.1); 
    padding: 2px 8px; border-radius: 50px; font-weight: 900;
}

.acq-desc { color: rgba(255,255,255,0.5); font-size: 0.8rem; line-height: 1.4; margin-bottom: 15px; }

.acq-actions { display: flex; gap: 10px; }
.acq-btn {
    flex: 1; padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05); color: #fff; font-size: 0.72rem; font-weight: 800;
    cursor: pointer; transition: 0.3s;
}
.acq-btn.primary { background: var(--primary-color); color: #000; border: none; }
.acq-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.acq-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* --- INTERNAL SME ECONOMY (ADDITIVE) --- */
.eco-wrapper { padding: 5px 15px 25px; }
.eco-header { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 20px; text-align: center; }
.eco-header h6 { color: #fff; margin: 0 0 5px; font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.eco-header h6 i { color: var(--primary-color); }
.eco-header p { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin: 0; }

.eco-sections { display: flex; flex-direction: column; gap: 25px; }
.eco-sublabel { display: flex; align-items: center; gap: 10px; color: var(--primary-color); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }

.eco-match-list { display: flex; flex-direction: column; gap: 15px; }
.eco-loading { padding: 20px; text-align: center; color: rgba(255,255,255,0.2); font-size: 0.75rem; font-weight: 700; }

.eco-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px; padding: 20px; transition: 0.3s;
}
.eco-card:hover { border-color: var(--primary-color); background: rgba(135,232,222,0.04); transform: translateY(-3px); }

.eco-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.eco-card-header strong { color: #fff; font-size: 0.9rem; }
.eco-match-badge { 
    font-size: 0.65rem; background: rgba(135,232,222,0.1); color: var(--primary-color);
    padding: 3px 10px; border-radius: 50px; font-weight: 900; display: flex; align-items: center; gap: 5px;
}

.eco-card p { font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.4; margin-bottom: 15px; }

.eco-deal-btn {
    width: 100%; padding: 10px; border-radius: 12px; border: none;
    background: var(--primary-color); color: #000; font-weight: 900; font-size: 0.75rem;
    cursor: pointer; transition: 0.3s;
}
.eco-deal-btn:hover { box-shadow: 0 0 15px var(--primary-color); transform: scale(1.02); }

/* --- AI BUSINESS COACH (ADDITIVE) --- */
.coach-wrapper { padding: 5px 15px 25px; }
.coach-header { 
    padding: 20px; background: rgba(135,232,222,0.05); border-radius: 20px;
    margin-bottom: 25px; border: 1px solid rgba(255,255,255,0.05);
}
.coach-header h6 { color: #fff; margin: 0 0 15px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.coach-header h6 i { color: #fbbf24; animation: statusBreathe 2s infinite; }

.coach-stats-row { display: flex; gap: 12px; }
.coach-stat-pill {
    flex: 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    padding: 10px; border-radius: 12px; text-align: center;
}
.coach-stat-pill span { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.3); font-weight: 900; text-transform: uppercase; margin-bottom: 2px; }
.coach-stat-pill strong { color: #fff; font-size: 1rem; }

.coach-daily-challenge { margin-bottom: 25px; }
.coach-challenge-label { font-size: 0.72rem; color: var(--primary-color); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: block; }

.coach-tasks-list { display: flex; flex-direction: column; gap: 10px; }
.coach-task-item {
    display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.02);
    padding: 15px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.3s;
}
.coach-task-item:hover { background: rgba(255,255,255,0.05); }
.coach-task-item input { accent-color: var(--primary-color); width: 18px; height: 18px; cursor: pointer; }
.coach-task-item label { color: #fff; font-size: 0.85rem; font-weight: 700; cursor: pointer; flex: 1; }
.coach-task-item input:checked + label { text-decoration: line-through; opacity: 0.5; }

.coach-push-alert {
    padding: 15px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 18px; display: flex; align-items: center; gap: 12px;
    font-size: 0.78rem; font-weight: 700; color: #fff; animation: fadeInSlideUp 0.5s ease;
}
.coach-push-alert i { color: #ef4444; font-size: 1rem; }

/* --- COMPETITION RADAR (ADDITIVE) --- */
.radar-shield { padding: 5px 15px 25px; }
.radar-header-main { 
    padding: 20px; background: #0f172a; border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255,255,255,0.05); border-bottom: none;
    display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden;
}
.radar-header-main h6 { color: #fff; margin: 0; font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; gap: 12px; z-index: 2; }
.radar-header-main h6 i { color: var(--primary-color); }

.radar-search-fx {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(135,232,222,0.1), transparent);
    animation: radarScan 3s infinite linear;
}
@keyframes radarScan { to { left: 200%; } }

.radar-monitor-area {
    background: rgba(0,0,0,0.3); height: 260px; border: 1px solid rgba(255,255,255,0.05);
    position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 15px;
}
.radar-grid-bg { 
    position: absolute; inset: 0; 
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px; pointer-events: none;
}

.radar-alerts-flow { display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.radar-alert-item {
    background: rgba(255,255,255,0.03); border-radius: 12px; padding: 10px 15px;
    display: flex; align-items: center; gap: 12px; border-left: 3px solid #ccc;
    animation: fadeInSlideUp 0.4s ease forwards;
}
.radar-alert-item.critical { border-left-color: #ef4444; background: rgba(239,68,68,0.05); }
.radar-alert-item.warning { border-left-color: #f59e0b; background: rgba(245,158,11,0.05); }
.radar-alert-item.success { border-left-color: #10b981; background: rgba(16,185,129,0.05); }

.radar-alert-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: statusBreathe 1.5s infinite; }
.radar-alert-msg { font-size: 0.75rem; color: #fff; font-weight: 700; flex: 1; }
.radar-alert-time { font-size: 0.6rem; color: rgba(255,255,255,0.3); font-weight: 800; text-transform: uppercase; }

.radar-footer-stats {
    background: #0f172a; padding: 20px; border: 1px solid rgba(255,255,255,0.05);
    border-top: none; border-radius: 0 0 20px 20px; display: flex; flex-wrap: wrap; gap: 15px;
}
.radar-stat-block { flex: 1; min-width: 120px; }
.radar-stat-block span { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.3); font-weight: 800; text-transform: uppercase; margin-bottom: 3px; }
.radar-stat-block strong { color: #fff; font-size: 0.9rem; }

.radar-defend-btn {
    width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px;
    background: var(--primary-color); color: #000; border: none;
    font-weight: 900; font-size: 0.8rem; cursor: pointer; transition: 0.3s;
}
.radar-defend-btn:hover { transform: scale(1.02); box-shadow: 0 0 20px var(--primary-color); }

.ai-chat-send {
    background: var(--primary-color);
    color: #000;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.ai-chat-send:hover { transform: scale(1.1); }
.typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
@media (max-width: 600px) {
  .ai-chat-window {
    bottom: 0; right: 0; width: 100%; height: 100%; border-radius: 0;
  }
  .ai-chat-btn { bottom: 20px; right: 20px; }
}

/* Feature Cards & Animation */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(135,232,222,0.2) !important;
  border-color: var(--primary-color) !important;
}
.feature-card .icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(135,232,222,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.feature-card:hover .icon-wrapper {
  transform: scale(1.15) rotate(5deg);
  background: var(--primary-color);
}
.feature-card:hover .icon-wrapper i {
  color: #000 !important;
}
.feature-card .icon-wrapper i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

/* Step Cards */
.step-card {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}
.step-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(135,232,222,0.25) !important;
  border-color: var(--primary-color) !important;
}
.step-card:hover .step-icon {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 10px 20px rgba(135,232,222,0.4);
}

/* Scroll Animation */
.reveal-on-scroll.is-visible {
  animation: fadeInUpScroll 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUpScroll {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-theme="dark"] .testimonial-slide {
  background: rgba(30,41,59,0.85) !important;
}
[data-theme="dark"] .step-card {
  background: rgba(30,41,59,0.85) !important;
}

/* Floating System */
.floating-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 1000; }
.floating-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.floating-btn:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }

.btn-whatsapp { background: #25D366; }
.btn-chat { background: var(--primary-color); }

/* Icons & Badges */
.nav-icon { font-size: 1.25rem; color: var(--text-main); position: relative; cursor: pointer; transition: color 0.3s; }
.nav-icon:hover { color: var(--primary-color); }
.badge-count { position: absolute; top: -8px; right: -10px; background: #EF4444; color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--background-main); }

/* Dropdown Panels */
.nav-dropdown-panel { position: absolute; top: 120%; right: 0; width: 340px; background: var(--background-card); border: 1px solid var(--border-color); border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); display: none; padding: 25px; z-index: 1001; animation: slideInDown 0.3s ease; }
.nav-dropdown-panel.active { display: block; }
.dropdown-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.dropdown-item { display: flex; gap: 15px; align-items: center; padding: 12px; border-radius: 12px; transition: background 0.2s; cursor: pointer; margin-bottom: 8px; }
.dropdown-item:hover { background: rgba(135,232,222,0.1); }
.notif-dot { width: 10px; height: 10px; background: var(--primary-color); border-radius: 50%; }

/* Chat Popup */
.chat-popup { position: fixed; bottom: 105px; right: 30px; width: 360px; height: 480px; background: var(--background-card); border: 1px solid var(--border-color); border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); display: none; flex-direction: column; z-index: 999; overflow: hidden; animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.chat-popup.active { display: flex; }
.chat-header { background: var(--primary-color); color: white; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 18px; font-size: 0.95rem; line-height: 1.5; }
.chat-msg.received { background: rgba(0,0,0,0.05); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.sent { background: var(--primary-color); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-footer { padding: 18px; border-top: 1px solid var(--border-color); display: flex; gap: 12px; }
.chat-input { flex: 1; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border-color); background: var(--background-main); color: var(--text-main); font-size: 0.95rem; }

/* Global Toast */
.action-toast { position: fixed; top: 40px; left: 50%; transform: translateX(-50%); background: var(--text-main); color: var(--background-main); padding: 12px 25px; border-radius: 12px; font-weight: 700; z-index: 9999; display: none; animation: slideDownToast 0.4s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* Favorite Heart */
.fav-icon-card { position: absolute; top: 15px; right: 15px; z-index: 5; background: rgba(255,255,255,0.9); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 12px rgba(0,0,0,0.1); color: var(--text-muted); }
.fav-icon-card:hover { transform: scale(1.15); background: white; color: #EF4444; box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2); }

@keyframes slideDownToast { from { transform: translate(-50%, -100%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes slideInDown { from { transform: translateY(-15px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideInUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes shakeBell { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(20deg); } 75% { transform: rotate(-20deg); } }
.shake { animation: shakeBell 0.4s ease; }

[data-theme="dark"] .chat-msg.received { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .dropdown-item:hover { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .fav-icon-card { background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(255,255,255,0.1); }



/* --- MODERN ANIMATIONS OVERRIDES --- */

/* Keyframes */
@keyframes fadeInGlobal { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInUpSoft { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bounceSoft { 
    0% { transform: translateY(100px); opacity: 0; } 
    60% { transform: translateY(-10px); opacity: 1; } 
    100% { transform: translateY(0); opacity: 1; } 
}
@keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } }
@keyframes popIn { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* Global Smoothness */
* { transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
body { animation: fadeInGlobal 0.8s ease-out; transition: background-color 0.5s ease-in-out; }

/* Hero Section Enhancements */
.hero h1, .hero-content h1 { animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.hero p, .hero-content p { animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards; opacity: 0; }
.hero .btn, .hero-content .btn { animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards; opacity: 0; }
.hero-visual img, .hero-visual .iphone-mockup { animation: bounceSoft 1s cubic-bezier(0.21, 0.85, 0.32, 1) 0.3s forwards; opacity: 0; }

/* Premium Card Interactions */
.service-card, .tender-card, .tool-card, .review-card, .step-card, .agency-card, .course-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.service-card:hover, .tender-card:hover, .tool-card:hover, .review-card:hover, .step-card:hover, .agency-card:hover, .course-card:hover {
    transform: translateY(-12px) scale(1.03) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    border-color: var(--primary-color) !important;
}

/* Enhanced Buttons */
.btn { position: relative; transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); transform: scale(1); }
.btn:hover { transform: scale(1.06) translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn:active { transform: scale(0.94); }

/* Input Focus Glow */
input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(135,232,222,0.15) !important;
    transform: translateY(-2px);
}

/* Modals */
.modal-overlay.active .modal-content { animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* Skeleton Shimmer */
.shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}
[data-theme='dark'] .shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    background-size: 1000px 100%;
}

/* Pop In Badge */
.badge-count { animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.26, 1.55) forwards; }



/* Ripple Effect Styles */
.btn { position: relative; overflow: hidden; }
.ripple-effect {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}
@keyframes ripple { from { transform: scale(0); opacity: 1; } to { transform: scale(4); opacity: 0; } }

/* Global Fade-in for Page-load */
body { animation: fadeInGlobal 0.6s ease; }
@keyframes fadeInGlobal { from { opacity: 0; } to { opacity: 1; } }

/* Stagger List Defaults */
.stagger-item { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.stagger-item.is-visible { opacity: 1; transform: translateY(0); }



/* Smart Search & Reporting Overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 9999; display: none; align-items: flex-start; justify-content: center; padding: 100px 20px; animation: fadeInGlobal 0.4s ease; overflow-y: auto; }
.search-overlay.active { display: flex; }
.search-container { width: 100%; max-width: 900px; }
.search-input-wrapper { position: relative; margin-bottom: 40px; }
.search-main-input { width: 100%; padding: 25px 35px; border-radius: 24px; border: 2px solid var(--primary-color); background: var(--background-card); color: var(--text-main); font-size: 1.5rem; box-shadow: 0 10px 40px rgba(135,232,222,0.3); }

.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.filter-item label { display: block; margin-bottom: 10px; font-weight: 700; color: #fff; }
.filter-item select, .filter-item input { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: #fff; }

.search-suggestions { background: var(--background-card); border-radius: 16px; padding: 20px; margin-top: -30px; margin-bottom: 30px; display: none; }
.search-suggestions.active { display: block; }
.suggest-item { padding: 12px 20px; border-radius: 10px; cursor: pointer; transition: background 0.2s; color: var(--text-main); }
.suggest-item:hover { background: rgba(135,232,222,0.1); }

.search-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.result-card { background: var(--background-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 20px; transition: all 0.3s; cursor: pointer; }
.result-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }

/* Reporting Modal */
.report-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; }
.report-modal.active { display: flex; }
.report-box { background: var(--background-card); border-radius: 24px; padding: 40px; width: 100%; max-width: 500px; box-shadow: var(--shadow-lg); animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.report-icon-btn { position: absolute; top: 15px; left: 15px; width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; color: var(--danger-color); box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 1px solid var(--border-color); }
.report-icon-btn:hover { background: var(--danger-color); color: #fff; transform: scale(1.1); }

[data-theme='dark'] .report-icon-btn { background: rgba(30,41,59,0.8); }



/* --- PREMIUM LOGO BRANDING --- */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUpSoft 0.8s ease backwards;
}

.brand-logo-img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 12px rgba(135,232,222,0.2));
}

.brand-text {
    background: linear-gradient(135deg, var(--text-main), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Roboto', sans-serif;
}

.navbar-brand:hover {
    transform: scale(1.04) translateY(-1px);
}

.navbar-brand:hover .brand-logo-img {
    filter: drop-shadow(0 8px 20px rgba(135,232,222,0.4));
    transform: rotate(-5deg) scale(1.1);
}

.navbar-brand:active {
    transform: scale(0.96);
    opacity: 0.8;
}

/* Dark Mode Logo Optimization */
[data-theme='dark'] .brand-logo-img {
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 15px rgba(92, 219, 211, 0.4));
}
[data-theme='dark'] .brand-text {
    background: linear-gradient(135deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}



/* --- PREMIUM BACKGROUND & GLASSMORPHISM OVERHAUL --- */

/* Animated Gradient Keyframes */
@keyframes meshGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(-45deg, #f8fafc, #f1f5f9, #e2e8f0, #f8fafc);
    background-size: 400% 400%;
    animation: meshGradient 20s ease infinite;
    position: relative;
    min-height: 100vh;
}

[data-theme='dark'] body {
    background: linear-gradient(-45deg, #020617, #0f172a, #1e293b, #020617);
    background-size: 400% 400%;
    animation: meshGradient 20s ease infinite;
}

/* Subtle Noise Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}

[data-theme='dark'] body::before {
    opacity: 0.07;
}

/* Global Glassmorphism Cards */
.card, .service-card, .tender-card, .tool-card, .review-card, .step-card, .agency-card, .course-card, .auth-box, .ai-chat-box {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
    border-radius: 24px !important;
}

[data-theme='dark'] .card, 
[data-theme='dark'] .service-card, 
[data-theme='dark'] .tender-card, 
[data-theme='dark'] .tool-card, 
[data-theme='dark'] .review-card, 
[data-theme='dark'] .step-card, 
[data-theme='dark'] .agency-card, 
[data-theme='dark'] .course-card, 
[data-theme='dark'] .auth-box, 
[data-theme='dark'] .ai-chat-box {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
}

/* Depth & Layering Enhancements */
.section { position: relative; z-index: 1; }
.section.alt { z-index: 2; }

/* Sticky Navbar Glassmorphism */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    top: 20px !important;
    width: 95% !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

[data-theme='dark'] .navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Floating Elements (Subtle Glows) */
body::after {
    content: '';
    position: fixed;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(135, 232, 222, 0.1) 0%, rgba(135, 232, 222, 0) 70%);
    top: -10vw;
    right: -10vw;
    z-index: -2;
    pointer-events: none;
    animation: pulseGlow 15s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { transform: scale(1) translate(0, 0); opacity: 0.5; }
    to { transform: scale(1.2) translate(-10%, 10%); opacity: 0.8; }
}

[data-theme='dark'] body::after {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0) 70%);
}



/* --- HYPER-PREMIUM HERO REDESIGN --- */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@300;400;500&family=Poppins:wght@600;700&display=swap');

.hero-premium {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 20% 30%, rgba(135, 232, 222, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.1) 0%, transparent 40%),
                var(--background-main);
}

/* Background Effects */
.hero-glow-1 { position: absolute; top: -10%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(135, 232, 222, 0.08) 0%, transparent 70%); border-radius: 50%; filter: blur(80px); animation: floating 20s infinite ease-in-out; pointer-events: none; }
.hero-glow-2 { position: absolute; bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%); border-radius: 50%; filter: blur(100px); animation: floating 25s infinite ease-in-out reverse; pointer-events: none; }

@keyframes floating {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

/* Headline Styling */
.headline-premium {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(135, 232, 222, 0.3));
}

/* 3D Mockup Enhancements */
.mockup-wrapper {
    position: relative;
    perspective: 1000px;
}

.iphone-mockup-premium {
    transform: rotateY(-20deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: floatdevice 6s ease-in-out infinite;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.4));
}

.mockup-wrapper:hover .iphone-mockup-premium {
    transform: rotateY(-10deg) rotateX(2deg) scale(1.02);
}

@keyframes floatdevice {
    0%, 100% { transform: rotateY(-20deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(-20deg) rotateX(5deg) translateY(-20px); }
}

/* Floating UI Elements */
.floating-element {
    position: absolute;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    z-index: 10;
    animation: floatElement 4s infinite ease-in-out;
}

[data-theme='dark'] .floating-element {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Premium CTA - Holographic Transformation */
.btn-cta-premium {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    padding: 20px 45px;
    font-size: 1.25rem;
    border-radius: 100px;
    color: #fff;
    border: none;
    background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c1));
    background-size: 300% 100%;
    animation: holo-scan 4s linear infinite;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6), 0 10px 30px rgba(0,0,0,0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-cta-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shine 3s infinite;
}

@keyframes holo-scan {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes shine {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.btn-cta-premium:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.8), 0 15px 45px rgba(0,0,0,0.4);
    filter: brightness(1.1);
    color: #fff;
}

.btn-cta-premium:active { transform: scale(0.95); }



/* --- ULTRA-PREMIUM MEGA-NAV REDESIGN --- */

:root {
    --nav-height: 85px;
    --nav-height-scrolled: 70px;
}

.navbar-premium {
    position: fixed;
    top: 0; left: 0; width: 100%; height: var(--nav-height);
    background: rgba(10, 15, 25, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
}

.navbar-premium.scrolled {
    height: var(--nav-height-scrolled);
    background: rgba(5, 10, 20, 0.9);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-bottom-color: rgba(135, 232, 222, 0.2);
}

.nav-container-premium {
    width: 95%; max-width: 1600px; margin: 0 auto;
    display: grid; grid-template-columns: 220px 1fr auto;
    align-items: center; gap: 30px;
}

/* Nav Items */
.nav-links-premium {
    display: flex; gap: 35px; justify-content: center;
    list-style: none; margin: 0; padding: 0;
}

.nav-link-item {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-item:hover, .nav-link-item.active {
    color: var(--primary-color);
}

.nav-link-item::after {
    content: '';
    position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link-item:hover::after, .nav-link-item.active::after {
    width: 100%;
}

/* Mega Menu */
.has-mega-menu { position: static; }

.mega-menu-panel {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(135, 232, 222, 0.2);
    padding: 50px 0;
    visibility: hidden; opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.has-mega-menu:hover .mega-menu-panel {
    visibility: visible; opacity: 1;
    transform: translateY(0);
}

.mega-menu-grid {
    width: 90%; max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}

.mega-item {
    display: flex; gap: 15px; text-decoration: none;
    padding: 15px; border-radius: 12px;
    transition: background 0.3s ease;
}

.mega-item:hover { background: rgba(255, 255, 255, 0.05); }

.mega-item-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(135, 232, 222, 0.1);
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}

.mega-item-content h4 {
    margin: 0 0 5px; font-size: 1rem; color: #fff; font-weight: 700;
}

.mega-item-content p {
    margin: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); line-height: 1.4;
}

/* Controls & Right Side */
.nav-actions-premium {
    display: flex; align-items: center; gap: 20px;
}

.action-icon-btn {
    background: none; border: none; color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem; cursor: pointer; transition: all 0.3s;
    position: relative;
}

.action-icon-btn:hover { color: var(--primary-color); transform: translateY(-2px); }

.profile-trigger {
    border: 2px solid rgba(135, 232, 222, 0.3);
    border-radius: 50%; padding: 2px;
}

.btn-nav-premium {
    padding: 12px 25px; border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 8px 15px rgba(135, 232, 222, 0.3);
    transition: all 0.3s; border: none; font-size: 0.9rem;
}

.btn-nav-premium:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(135, 232, 222, 0.5);
    color: #fff;
}


/* Premium Floating Stack Tool */
.floating-stack-premium {
    position: fixed; right: 25px; bottom: 30px; z-index: 9999;
    display: flex; flex-direction: column; gap: 15px;
    align-items: flex-end;
}

.float-stack-item {
    position: relative;
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(10, 15, 25, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0; transform: translateY(30px);
}
.float-stack-item.visible { opacity: 1; transform: translateY(0); }

/* Specialized Styles */
.float-ai { background: linear-gradient(135deg, #6366f1, #3b82f6); border-color: rgba(99, 102, 241, 0.3); }
.float-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); border-color: rgba(253, 89, 73, 0.3); }
.float-fin { background: linear-gradient(135deg, #10b981, #059669); border-color: rgba(16, 185, 129, 0.3); }
.float-wa { background: #25D366; border-color: rgba(37, 211, 102, 0.3); }

.float-stack-item:hover { transform: scale(1.1) translateX(-10px); z-index: 10001; }
.float-stack-item:active { transform: scale(0.95); }

/* Labels / Tooltips */
.float-label {
    position: absolute; right: 80px; top: 50%; transform: translateY(-50%) translateX(20px);
    background: #fff; color: #000; padding: 10px 20px; border-radius: 12px;
    font-size: 0.85rem; font-weight: 800; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.float-stack-item:hover .float-label { opacity: 1; transform: translateY(-50%) translateX(0); }
.float-stack-item:hover .float-label::after {
    content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) rotate(45deg);
    width: 12px; height: 12px; background: #fff;
}

.finance-panel {
    position: fixed; top: 0; right: -450px; width: 450px; height: 100vh;
    background: rgba(10, 15, 25, 0.98);
    backdrop-filter: blur(30px);
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
}
.finance-panel.active { right: 0; }

.finance-closer { position: absolute; top: 30px; left: -40px; width: 30px; height: 30px; background: #EF4444; color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; }

.finance-header { padding: 40px 30px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.finance-tabs-nav { display: flex; gap: 10px; padding: 20px 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); overflow-x: auto; scrollbar-width: none; }
.fin-tab-btn { padding: 10px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.02); color: #64748b; font-size: 0.8rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: 0.3s; }
.fin-tab-btn.active { background: #10b981; color: #fff; border-color: #10b981; }

.finance-content-area { flex: 1; padding: 30px; overflow-y: auto; }
.fin-calc-card { display: none; }
.fin-calc-card.active { display: block; animation: fadeInUp 0.4s ease forwards; }

.fin-input-wrapper { margin-bottom: 20px; }
.fin-label { display: block; margin-bottom: 8px; font-size: 0.75rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.fin-field { width: 100%; padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-weight: 600; outline: none; transition: 0.3s; }
.fin-field:focus { border-color: var(--primary-color); background: rgba(255,255,255,0.05); }

.fin-btn-calc { width: 100%; padding: 16px; border-radius: 12px; background: #10b981; color: #fff; font-weight: 800; border: none; cursor: pointer; margin-top: 10px; transition: 0.3s; }
.fin-btn-calc:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); }

.fin-results-display { margin-top: 35px; border-radius: 20px; background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.1); padding: 25px; display: none; opacity: 0; transform: translateY(10px); transition: 0.5s; }
.fin-results-display.active { display: block; opacity: 1; transform: translateY(0); }

.fin-res-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.9rem; }
.fin-res-label { color: #64748b; }
.fin-res-val { color: #fff; font-weight: 700; }

.fin-insight-banner { margin-top: 25px; padding: 20px; border-radius: 15px; background: rgba(59, 130, 246, 0.1); border-left: 5px solid #3b82f6; display: none; }
.fin-insight-banner.active { display: block; animation: pulse 2s infinite; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { opacity: 0.8; } 50% { opacity: 1; } 100% { opacity: 0.8; } }

/* --- CTA RIPPLE (Kept as non-intrusive enhancement) --- */
.btn-ripple {
    position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}
@keyframes rippleEffect { to { transform: scale(4); opacity: 0; } }


/* --- WORLD-CLASS PREMIUM FOOTER SYSEM --- */
.footer-premium {
    background: #020617;
    color: #fff;
    padding: 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(135, 232, 222, 0.1);
}

.footer-cta-band {
    background: linear-gradient(135deg, rgba(135, 232, 222, 0.1), rgba(15, 23, 42, 0.4));
    backdrop-filter: blur(20px);
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}
.btn-glass:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }

.footer-grid-section { padding: 100px 0 60px; }
.footer-head { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: rgba(255, 255, 255, 0.5); text-decoration: none; transition: 0.3s; font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary-color); padding-left: 8px; }

.footer-logo { filter: drop-shadow(0 0 10px rgba(135,232,222,0.3)); transition: 0.4s; }
.footer-logo:hover { transform: scale(1.05); }

.footer-social-bar { display: flex; gap: 20px; }
.footer-social-bar a { 
    width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.03); 
    display: flex; align-items: center; justify-content: center; color: #fff; 
    font-size: 1.2rem; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.05);
}
.footer-social-bar a:hover { background: var(--primary-color); color: #000; transform: translateY(-5px) rotate(10deg); }

.footer-trust-strip { gap: 30px; }
.footer-stats .stat h4 { color: var(--primary-color); font-family: 'Outfit', sans-serif; letter-spacing: -1px; }

.mini-ai-box { transition: 0.3s; box-shadow: 0 0 20px rgba(135,232,222,0.1); }
.mini-ai-box:hover { transform: translateY(-2px); border-color: var(--primary-color) !important; box-shadow: 0 0 30px rgba(135,232,222,0.3); }

.footer-bottom-bar { background: rgba(0,0,0,0.2); }
.footer-bottom-bar a { text-decoration: none; transition: 0.3s; }
.footer-bottom-bar a:hover { color: var(--primary-color); }

/* Responsive Grid Helpers */
.col-lg-1-5 { flex: 0 0 auto; width: 14.28%; }
.col-lg-3-5 { flex: 0 0 auto; width: 25%; }

@media (max-width: 991px) {
    .col-lg-1-5, .col-lg-3-5 { width: 50%; }
    .footer-cta-band { text-align: center; justify-content: center !important; }
}

@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- FINAL POLISH & UX ENHANCEMENTS --- */

/* 1. Global Page Loader */
.page-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #020617; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}
.page-loader.fade-out { opacity: 0; visibility: hidden; }
.loader-spinner {
    width: 50px; height: 50px; border: 3px solid rgba(135,232,222,0.1);
    border-top-color: var(--primary-color); border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 2. Scroll Progress Bar */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6);
    z-index: 100001; width: 0%; transition: width 0.1s;
}

/* 3. Skeleton Loading & Empty States */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state { text-align: center; padding: 60px 40px; }
.empty-state i { font-size: 4rem; color: rgba(255,255,255,0.05); margin-bottom: 20px; }

/* 4. Page Transitions */
body { opacity: 1; transition: opacity 0.6s ease; }
body.fade-in-ready { opacity: 1; }
body.is-exiting { opacity: 0 !important; transform: scale(0.98); }

/* 5. Refined Global Toast */
.global-toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 100002; background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px); border: 1px solid rgba(135,232,222,0.2);
    padding: 15px 30px; border-radius: 15px; color: #fff;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.global-toast.success { border-color: #10b981; }
.global-toast.error { border-color: #ef4444; }

@keyframes toastSlideIn { from { transform: translate(-50%, 50px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes toastSlideOut { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -20px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- ADVANCED UI/UX POLISH: PRODUCTION-LEVEL INTERACTIVES --- */

/* 1. Universal Hover & Focus Logic */
.btn-primary:hover, .btn-dark:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(135,232,222,0.3);
    filter: brightness(1.1);
}

.card, .ai-tool-card, .ai-action-item {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.card:hover, .ai-tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(135,232,222,0.1) !important;
}

/* 2. Animated Link Underlines */
.nav-link, .footer-links a { position: relative; }
.nav-link::after, .footer-links a::after {
    content: ''; position: absolute; bottom: -3px; left: 0;
    width: 0%; height: 2px; background: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .footer-links a:hover::after { width: 100%; }

/* 3. Section Dividers & Spacing */
.section-divider {
    height: 1px; width: 100%;
    background: linear-gradient(90deg, transparent, rgba(135,232,222,0.1), transparent);
    margin: 80px 0;
}

/* 4. Back to Top Button */
.back-to-top {
    position: fixed; bottom: 100px; right: 30px;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--primary-color); color: #000;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 20px rgba(135,232,222,0.4);
    cursor: pointer; opacity: 0; visibility: hidden;
    transform: translateY(20px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 30px rgba(135,232,222,0.6); }

/* 5. Staggered Entrance Animations */
.stagger-in { opacity: 0; transform: translateY(30px); }
.stagger-visible {
    animation: fadeInUpStagger 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes fadeInUpStagger {
    to { opacity: 1; transform: translateY(0); }
}

/* 6. Subtle Modern Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: rgba(135,232,222,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* --- MINI MICRO-ANIMATIONS --- */
.f-icon-bounce:hover i { animation: bounceIcon 0.5s ease; }
@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.notification-pop { animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- ADVANCED SOCIAL FAB SYSTEM --- */
.fab-social-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.fab-social-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-social-container.active .fab-social-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fab-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-item:hover { transform: scale(1.15) rotate(8deg); }

.fab-item.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.fab-item.facebook { background: #1877F2; }
.fab-item.linkedin { background: #0A66C2; }
.fab-item.twitter { background: #1DA1F2; }

.fab-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #000;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(135,232,222,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-social-container.active .fab-main-btn {
    transform: rotate(135deg);
    background: #FF4D4F;
    color: #fff;
    box-shadow: 0 10px 25px rgba(255,77,79,0.3);
}

/* --- THEME TOGGLE STYLES --- */
.theme-toggle {
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .dark-icon { display: none; }
[data-theme="dark"] .light-icon { display: none; }

[data-theme="dark"] .action-icon-btn {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .navbar-premium {
    background: rgba(10, 15, 25, 0.85);
    border-bottom: 1px solid rgba(135, 232, 222, 0.1);
}

[data-theme="dark"] .mega-menu-panel {
    background: #0f172a;
    border-color: rgba(135, 232, 222, 0.1);
}

[data-theme="dark"] .mega-item:hover {
    background: rgba(135, 232, 222, 0.05);
}

[data-theme="dark"] .card, 
[data-theme="dark"] .ai-tool-card, 
[data-theme="dark"] .ai-action-item {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(135, 232, 222, 0.1) !important;
}

[data-theme="dark"] .text-muted { color: #94a3b8 !important; }
[data-theme="dark"] .bg-light { background-color: #1e293b !important; }

/* Global Smooth Theme Transition */
*, *::before, *::after {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* --- 3D SPLINE HERO SYSTEM --- */
.hero-premium {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #050811; /* Fallback */
}

.hero-spline-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

spline-viewer {
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at 30% 50%, rgba(5, 8, 17, 0.4), rgba(5, 8, 17, 0.85));
    backdrop-filter: blur(2px);
}

[data-theme="light"] .hero-overlay {
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1), rgba(135, 232, 222, 0.4));
}

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


/* ==========================================================================
   ULTRA-STRICT RESPONSIVE DESIGN SYSTEM V1.0
   ========================================================================== */

:root {
    /* Responsive Spacing System */
    --rs-padding: clamp(16px, 4vw, 40px);
    --rs-section-gap: clamp(24px, 6vw, 80px);
    
    /* Responsive Typography */
    --font-h1: clamp(2.5rem, 8vw, 4.5rem);
    --font-h2: clamp(2rem, 6vw, 3rem);
    --font-h3: clamp(1.5rem, 4vw, 2rem);
    --font-p: clamp(0.95rem, 2vw, 1.1rem);
}

/* 1. Global Overflow Fix */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 2. Responsive Typography Scaling */
h1, .hero h1, .hero-title, .fa-hero h1 { font-size: var(--font-h1) !important; line-height: 1.1; }
h2, .section-title { font-size: var(--font-h2) !important; }
h3 { font-size: var(--font-h3) !important; }
p, .hero p, .hero-subtitle { font-size: var(--font-p) !important; }

/* 3. Flexible Container System */
.container {
    width: 100% !important;
    max-width: 1400px !important;
    padding-left: var(--rs-padding) !important;
    padding-right: var(--rs-padding) !important;
    margin: 0 auto;
}

/* 4. Responsive Grid & Row Overrides */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

[class*="col-"] {
    width: 100%;
    padding: 15px;
}

/* Desktop Defaults (Grid fallback) */
@media (min-width: 1025px) {
    .col-3 { flex: 0 0 25%; max-width: 25%; }
    .col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-6 { flex: 0 0 50%; max-width: 50%; }
    .col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-9 { flex: 0 0 75%; max-width: 75%; }
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .col-lg-3, .col-lg-4, .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .nav-links-premium { gap: 15px; }
    .nav-container-premium { gap: 15px; grid-template-columns: auto 1fr auto; }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* 5. Navigation Fix - Hamburger System */
    .navbar-premium {
        height: 70px !important;
    }
    
    .nav-container-premium {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .main-nav-center {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(5, 10, 20, 0.98);
        backdrop-filter: blur(20px);
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1001;
        overflow-y: auto;
        padding: 40px var(--rs-padding);
        display: flex;
        flex-direction: column;
    }

    .main-nav-center.active {
        left: 0;
    }

    .nav-links-premium {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        width: 100%;
    }

    .nav-link-item {
        font-size: 1.25rem;
        width: 100%;
        display: block;
    }

    .mega-menu-panel {
        position: relative;
        top: 0;
        padding: 20px 0;
        background: transparent;
        visibility: visible;
        opacity: 1;
        transform: none;
        display: none; /* Toggleable on mobile */
    }
    
    .has-mega-menu.active .mega-menu-panel {
        display: block;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 6. Buttons & Inputs - Touch Friendly */
    .btn, .form-control, .lang-select {
        min-height: 48px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-block-mobile {
        width: 100% !important;
    }

    /* 7. Image & Media Resizing */
    img, video, canvas {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 8. Spacing Enhancements */
    section, .v-section, .gov-section, .fa-hero {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .mb-mobile-3 { margin-bottom: 24px !important; }
    
    /* Hide some desktop-only flares */
    .aurora-layer, .ai-pulse-wave {
        opacity: 0.3 !important;
    }
    
    /* Sidebar Overrides for Dashboard */
    .sidebar {
        width: 85% !important;
        max-width: 320px;
    }
    
    .main-content {
        padding: 20px var(--rs-padding) !important;
    }

    /* Fixed Width Premium Overrides */
    .iphone-mockup-premium-alive {
        width: 260px !important;
        height: 520px !important;
        margin: 0 auto;
    }

    .hero-text-block {
        min-width: 100% !important;
        text-align: center;
        padding-bottom: 30px !important;
    }

    .hero-visual-premium {
        min-width: 100% !important;
        justify-content: center !important;
        margin-top: 40px;
    }

    .cta-actions {
        justify-content: center !important;
    }

    .floating-element {
        display: none !important; /* Too cluttered on mobile */
    }

    .headline-premium {
        font-size: var(--font-h1) !important;
        text-align: center !important;
    }

    .hero-desc {
        text-align: center !important;
        margin: 0 auto !important;
    }

    .nav-demo-btn, #demoModeNavBtn {
        display: none !important;
    }
    
    .pricing-card {
        padding: 24px !important;
    }
}

/* Mobile Toggle Injected Button Style */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2000;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        margin-left: 15px;
    }
    
    .nav-actions-premium {
        gap: 10px;
    }
    
    .nav-actions-premium .btn-nav-premium {
        display: none; /* Hide login button on small mobile header to save space */
    }
    
    .nav-actions-premium .action-icon-btn i {
        font-size: 1.2rem;
    }
}

/* Card Stacking */
.glass-card, .card {
    margin-bottom: 20px !important;
}

/* Fix for Tables */
.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fix for Tooltips/Hover on Mobile */
@media (hover: none) {
    .glass-card:hover, .hover-lift:hover, .feature-card:hover, .stat-card-mini:hover {
        transform: none !important;
    }
}
