/* ===== ROOT & GLOBAL STYLES ===== */
:root {
  --primary: #667eea;
  --primary-dark: #5568d3;
  --secondary: #764ba2;
  --success: #4caf50;
  --error: #f44336;
  --warning: #ff9800;
  --info: #2196f3;
  --dark: #1a1a1a;
  --light: #f5f5f5;
  --text: #333;
  --text-light: #666;
  --border: #ddd;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: #f8f9fa;
  color: var(--text);
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.loading .btn-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

.btn-text {
  display: inline;
}

.btn.loading .btn-text {
  display: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: var(--light);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary);
  color: white;
}

.btn-full {
  width: 100%;
}

.btn-social {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  flex: 1;
}

.btn-google {
  --social-color: #ea4335;
}

.btn-github {
  --social-color: #333;
}

.btn-social:hover {
  border-color: var(--social-color);
  color: var(--social-color);
}

/* ===== AUTH WRAPPER ===== */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 450px;
  overflow: hidden;
}

.auth-header {
  padding: 40px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.auth-header h1 {
  font-size: 2.5em;
  margin: 0;
  font-weight: bold;
}

.auth-form-container {
  padding: 40px 30px;
}

.auth-form {
  width: 100%;
}

.auth-form h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: var(--dark);
}

.auth-subtitle {
  color: var(--text-light);
  margin-bottom: 30px;
}

/* ===== FORM STYLING ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-weight: 600;
  color: var(--dark);
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-field input:disabled {
  background: var(--light);
  cursor: not-allowed;
}

.field-hint {
  font-size: 0.85em;
  color: var(--text-light);
}

.password-field {
  display: flex;
  align-items: center;
  position: relative;
}

.password-field input {
  flex: 1;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  padding: 0;
  color: var(--text-light);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-field a {
  color: var(--primary);
  text-decoration: none;
}

.checkbox-field a:hover {
  text-decoration: underline;
}

/* ===== AUTH DIVIDER ===== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
  color: var(--text-light);
  font-size: 0.9em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== SOCIAL LOGIN ===== */
.social-login {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-social {
  flex: 1;
  padding: 10px 15px;
  font-size: 0.9em;
}

/* ===== AUTH FOOTER ===== */
.auth-footer {
  text-align: center;
  color: var(--text-light);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.info-box {
  background: #f0f4ff;
  border-left: 4px solid var(--primary);
  padding: 15px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9em;
}

/* ===== NOTIFICATIONS ===== */
.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.notification {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
}

.notification-message {
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.2em;
  padding: 0;
}

.notification-success {
  border-left: 4px solid var(--success);
  color: var(--success);
}

.notification-error {
  border-left: 4px solid var(--error);
  color: var(--error);
}

.notification-warning {
  border-left: 4px solid var(--warning);
  color: var(--warning);
}

.notification-info {
  border-left: 4px solid var(--info);
  color: var(--info);
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #f8f9fa;
}

.dashboard-navbar {
  background: white;
  padding: 16px 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--light);
  border-radius: 8px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9em;
}

.user-email {
  color: var(--text-light);
  font-size: 0.8em;
}

.btn-logout {
  padding: 8px 16px;
  background: var(--error);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: #d32f2f;
}

/* ===== DASHBOARD CONTAINER ===== */
.dashboard-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.dashboard-sidebar {
  width: 250px;
  background: white;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px 0;
}

.sidebar-menu {
  list-style: none;
}

.menu-item {
  padding: 12px 20px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.menu-item:hover {
  background: var(--light);
  color: var(--primary);
}

.menu-item.active {
  background: #f0f4ff;
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.menu-icon {
  font-size: 1.2em;
}

.menu-label {
  flex: 1;
}

/* ===== DASHBOARD CONTENT ===== */
.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.dashboard-tab {
  animation: fadeIn 0.3s ease;
}

.tab-header {
  margin-bottom: 30px;
}

.tab-header h1 {
  font-size: 2em;
  margin-bottom: 5px;
  color: var(--dark);
}

.tab-header p {
  color: var(--text-light);
  font-size: 1em;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 2em;
}

.stat-value {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9em;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.quick-actions h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

.quick-actions .btn {
  margin-right: 10px;
}

/* ===== ITEMS LIST ===== */
.items-list {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.empty-state a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* ===== SETTINGS ===== */
.settings-group {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.settings-group h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

.setting-item {
  margin-bottom: 20px;
}

.setting-item:last-child {
  margin-bottom: 0;
}

.setting-item label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
  }

  .sidebar-menu {
    display: flex;
    flex-direction: row;
  }

  .menu-item {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .menu-item.active {
    border-left: none;
    border-bottom-color: var(--primary);
  }

  .dashboard-content {
    padding: 20px;
  }

  .notifications-container {
    max-width: calc(100% - 40px);
    right: 20px;
    left: 20px;
  }

  .auth-container {
    max-width: 100%;
  }

  .navbar-user {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== APP LAYOUT ===== */
.app-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
  background: #f5f6f8;
}

.app-navigation {
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  z-index: 1000;
}

.nav-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: var(--primary);
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  font-size: 1.1em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.nav-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.nav-section {
  margin-bottom: 30px;
}

.nav-section-title {
  font-size: 0.75em;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 20px;
  margin-bottom: 12px;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item:hover {
  background: #f8f9fa;
  color: var(--primary);
}

.nav-item.active {
  background: #f0f0f0;
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active::left {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--primary);
}

.nav-icon {
  font-size: 18px;
  width: 20px;
}

.nav-label {
  font-size: 0.95em;
  flex: 1;
}

.nav-badge {
  background: var(--primary);
  color: white;
  font-size: 0.65em;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.nav-user-section {
  border-top: 1px solid var(--border);
  padding-top: 20px !important;
  margin-top: 30px;
}

.nav-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 0 12px 12px 12px;
}

.user-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info-small {
  flex: 1;
  min-width: 0;
}

.user-name-small {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email-small {
  color: var(--text-light);
  font-size: 0.8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout-nav {
  width: calc(100% - 24px);
  margin: 0 12px;
  padding: 10px 16px;
  background: #d63031;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.btn-logout-nav:hover {
  background: #b30a0a;
  transform: scale(1.02);
}

.logout-icon {
  font-size: 16px;
}

/* Main Content Layout */
.app-main-content {
  display: flex;
  flex-direction: column;
  margin-left: 250px;
  min-height: 100vh;
}

.app-navbar-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.nav-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

.navbar-center {
  text-align: center;
}

.app-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  font-size: 0.9em;
}

.search-bar input::placeholder {
  color: #999;
}

.search-icon {
  color: #999;
}

.navbar-user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.navbar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.navbar-username {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95em;
}

/* Page Content */
.app-page-content {
  flex: 1;
  padding: 40px 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 220px 1fr;
  }

  .app-main-content {
    margin-left: 220px;
  }

  .app-navigation {
    width: 220px;
  }

  .navbar-content {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .navbar-center {
    display: none;
  }

  .search-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-navigation {
    position: absolute;
    left: -250px;
    width: 250px;
    transition: left 0.3s ease;
    height: calc(100vh - 60px);
    top: 60px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .app-navigation.mobile-open {
    left: 0;
  }

  .app-main-content {
    margin-left: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  .nav-menu-toggle {
    display: block;
  }

  .navbar-content {
    grid-template-columns: 1fr auto;
  }

  .navbar-center {
    display: block;
  }

  .search-bar {
    display: flex;
  }

  .app-page-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .nav-label {
    display: none;
  }

  .nav-section-title {
    display: none;
  }

  .app-navigation {
    width: 60px;
    left: -60px;
  }

  .app-navigation.mobile-open {
    width: 250px;
    left: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 12px;
  }

  .nav-icon {
    font-size: 20px;
  }

  .navbar-username {
    display: none;
  }

  .search-bar input {
    display: none;
  }

  .search-bar {
    padding: 0 8px;
  }

  .app-title {
    font-size: 1.2em;
  }
}



/* ===== ENHANCED DASHBOARD PAGE ===== */
.enhanced-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.dashboard-welcome-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.welcome-title {
  font-size: 3em;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.welcome-subtitle {
  font-size: 1.2em;
  color: var(--text-light);
  line-height: 1.8;
}

.ai-illustration {
  font-size: 120px;
  text-align: center;
}

/* Dashboard Stats */
.dashboard-stats-section {
  margin-bottom: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  font-size: 40px;
}

.stat-label {
  font-size: 0.9em;
  color: var(--text-light);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2em;
  font-weight: 700;
  color: var(--primary);
}

/* Section Headers */
.section-header {
  margin-bottom: 30px;
}

.section-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1em;
  color: var(--text-light);
}

/* Tools Grid */
.featured-tools-grid,
.all-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.tool-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.tool-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.tool-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.tool-description {
  color: var(--text-light);
  font-size: 0.95em;
  margin-bottom: 16px;
  line-height: 1.6;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  background: #f0f0f0;
  color: var(--text);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
}

.tool-btn-primary {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tool-btn-primary:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

/* Getting Started */
.dashboard-getting-started-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px;
  padding: 40px;
  color: white;
}

.getting-started-container .section-title {
  color: white;
}

.getting-started-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.getting-started-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gs-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.getting-started-card h3 {
  font-size: 1.2em;
  margin-bottom: 8px;
  color: white;
}

.getting-started-card p {
  font-size: 0.95em;
  opacity: 0.9;
}

.getting-started-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== POLICY PAGES ===== */
.policy-page,
.about-page,
.help-page,
.enhanced-profile-page,
.enhanced-settings-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.policy-header,
.help-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
  border-bottom: 2px solid var(--border);
}

.policy-header h1,
.help-header h1 {
  font-size: 2.5em;
  color: var(--dark);
  margin-bottom: 10px;
}

.policy-date,
.help-subtitle {
  color: var(--text-light);
  font-size: 1em;
}

.policy-content,
.help-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.policy-section,
.disclaimer-highlight {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.policy-section:last-child {
  border-bottom: none;
}

.policy-section h2 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--dark);
  margin: 20px 0;
}

.policy-section h3 {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--dark);
  margin: 16px 0;
}

.policy-subsection {
  margin: 20px 0;
  padding-left: 20px;
}

.policy-section p,
.policy-section li {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-section ul {
  list-style-position: inside;
}

.policy-section li {
  margin-left: 0;
}

.contact-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.contact-info p {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.policy-footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.9em;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  text-align: center;
  margin-bottom: 60px;
}

.about-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 3em;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.5em;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.1em;
  color: var(--text-light);
  line-height: 1.8;
}

.hero-icon {
  font-size: 80px;
  text-align: center;
}

/* Mission & Vision */
.mission-vision-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.mv-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.mv-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.mv-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* Features Grid */
.about-features-section {
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-item {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-item h3 {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.95em;
}

/* Why Choose */
.why-tarroz-section,
.commitment-section {
  margin-bottom: 60px;
}

.why-grid,
.commitment-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.why-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.why-card h3 {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.why-card ul {
  list-style: none;
  padding: 0;
}

.why-card li {
  padding: 8px 0;
  color: var(--text-light);
}

/* Commitment Items */
.commitment-item {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.ci-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.commitment-item h3 {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.commitment-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Team & Support */
.team-support-section {
  margin-bottom: 60px;
}

.team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2em;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9em;
  margin-top: 8px;
}

.support-list {
  list-style: none;
  padding: 0;
}

.support-list li {
  padding: 12px 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.support-list li:last-child {
  border-bottom: none;
}

/* CTA Section */
.about-cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 60px 40px;
  border-radius: 12px;
  text-align: center;
  color: white;
  margin-top: 60px;
}

.about-cta-section h2 {
  font-size: 2em;
  margin-bottom: 16px;
  color: white;
}

.about-cta-section p {
  font-size: 1.1em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-subtitle {
  font-size: 0.9em;
  margin-top: 20px;
  opacity: 0.8;
}

/* ===== HELP PAGE ===== */
.help-search-section {
  margin-bottom: 40px;
}

.search-container {
  display: flex;
  gap: 12px;
}

.help-search-input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1em;
}

.help-search-btn {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* Quick Links */
.quick-links-section {
  margin-bottom: 60px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.quick-link-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.ql-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.quick-link-card h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.quick-link-card p {
  color: var(--text-light);
  font-size: 0.95em;
}

/* FAQ Section */
.faq-section {
  margin-bottom: 60px;
}

.faq-category {
  margin-bottom: 40px;
}

.faq-category h3 {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-toggle {
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 16px;
  max-height: 500px;
  background: #fafafa;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Support & Tutorials */
.support-section,
.tutorials-section {
  margin-bottom: 60px;
}

.support-grid,
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.support-card,
.tutorial-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.support-icon,
.tutorial-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.support-card h3,
.tutorial-card h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.support-card p,
.tutorial-card p {
  color: var(--text-light);
  font-size: 0.95em;
  margin-bottom: 12px;
}

.support-time {
  color: #999;
  font-size: 0.85em;
}

.tutorial-card button {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
}

/* Contact Form */
.contact-form-section {
  margin-bottom: 60px;
}

.contact-form-section h2 {
  font-size: 1.8em;
  color: var(--dark);
  margin-bottom: 8px;
}

.contact-form-section > p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== PROFILE PAGE ===== */
.enhanced-profile-page {
  padding: 20px;
}

.profile-header {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.profile-header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: start;
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: white;
  font-weight: bold;
  overflow: hidden;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-badge {
  position: relative;
  top: -10px;
  left: 100px;
}

.badge-status {
  background: var(--success);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
}

.profile-basic-info h1 {
  font-size: 2em;
  color: var(--dark);
  margin-bottom: 8px;
}

.profile-name {
  font-weight: 800;
}

.profile-email {
  color: var(--text-light);
  margin-bottom: 8px;
}

.profile-bio {
  color: var(--text-light);
  font-size: 0.95em;
}

.profile-stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-actions button {
  padding: 12px 24px;
}

/* Profile Tabs */
.profile-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 30px;
  overflow-x: auto;
  background: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.profile-tab-btn {
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.profile-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Tab Content */
.profile-tab-content {
  position: relative;
}

.profile-tab {
  display: none;
  animation: fadeIn 0.3s ease;
}

.profile-tab.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

.subsection-title {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--dark);
  margin: 24px 0 16px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-item label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.info-item input,
.info-item textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1em;
}

.info-item input:disabled {
  background: #f5f5f5;
  color: #999;
}

.info-item small {
  color: var(--text-light);
  font-size: 0.85em;
  margin-top: 6px;
}

.avatar-update-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
}

.avatar-upload {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Activity Tab */
.activity-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.activity-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
  border-radius: 12px;
  color: white;
}

.activity-card h3 {
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.9;
}

.big-number {
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 8px;
}

.small-text {
  font-size: 0.85em;
  opacity: 0.8;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.activity-icon {
  font-size: 24px;
}

.activity-action {
  font-weight: 600;
  color: var(--dark);
}

.activity-time {
  color: var(--text-light);
  font-size: 0.85em;
  margin-top: 4px;
}

/* Preferences & Settings */
.preference-group,
.setting-group {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.preference-group:last-child,
.setting-group:last-child {
  border-bottom: none;
}

.preference-item,
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.preference-label,
.setting-label {
  flex: 1;
}

.preference-label label,
.setting-label label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.preference-label p,
.setting-label p {
  color: var(--text-light);
  font-size: 0.9em;
}

.toggle-switch {
  width: 50px;
  height: 28px;
  appearance: none;
  background: #ccc;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.toggle-switch:checked {
  background: var(--success);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: left 0.3s ease;
}

.toggle-switch:checked::after {
  left: 24px;
}

.setting-item select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 200px;
}

/* Security & Billing */
.connected-account,
.account-action-item,
.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 12px;
}

.connected-account {
  align-items: center;
}

.account-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.account-icon {
  font-size: 32px;
}

.account-details {
  display: flex;
  flex-direction: column;
}

.account-name {
  font-weight: 600;
  color: var(--dark);
}

.account-email {
  color: var(--text-light);
  font-size: 0.85em;
}

.btn-secondary-sm {
  padding: 8px 16px;
  font-size: 0.9em;
}

.session-device {
  font-weight: 600;
  color: var(--dark);
}

.session-location {
  color: var(--text-light);
  font-size: 0.9em;
}

.session-time {
  color: #999;
  font-size: 0.85em;
}

/* Billing */
.current-plan-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.plan-header h3 {
  font-size: 1.3em;
}

.badge-success {
  background: var(--success);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
}

.plan-details p {
  margin-bottom: 8px;
}

.plan-features {
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
}

.plan-features p {
  margin-bottom: 8px;
}

.plan-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.payment-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.card-icon {
  font-size: 32px;
}

.card-details {
  flex: 1;
  margin-left: 16px;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.billing-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  color: var(--dark);
}

.billing-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.billing-table a {
  color: var(--primary);
  text-decoration: none;
}

.tab-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

/* ===== SETTINGS PAGE ===== */
.enhanced-settings-page {
  padding: 20px;
}

.settings-header {
  text-align: center;
  margin-bottom: 40px;
}

.settings-header h1 {
  font-size: 2.5em;
  color: var(--dark);
  margin-bottom: 8px;
}

.settings-header p {
  color: var(--text-light);
  font-size: 1.1em;
}

.settings-container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
}

.settings-sidebar {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-nav-item {
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.settings-nav-item:hover,
.settings-nav-item.active {
  background: #f0f0f0;
  color: var(--primary);
  border-left-color: var(--primary);
}

.settings-nav-item.danger {
  color: #d63031;
}

.settings-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.settings-section {
  display: none;
}

.settings-section.active {
  display: block;
}

.settings-section h2 {
  font-size: 1.8em;
  color: var(--dark);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

.settings-group {
  margin-bottom: 40px;
}

.settings-group-title {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
}

.setting-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-label {
  display: flex;
  flex-direction: column;
}

.setting-label label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.setting-label p {
  color: var(--text-light);
  font-size: 0.9em;
}

.setting-item input[type="text"],
.setting-item input[type="email"],
.setting-item input[type="number"],
.setting-item select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95em;
}

.setting-item input[type="range"] {
  flex: 1;
}

.range-value {
  margin-left: auto;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 6px;
  font-weight: 600;
}

.theme-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-option input[type="radio"]:checked,
.theme-option input[type="radio"] {
  display: none;
}

.theme-option input[type="radio"]:checked + label {
  color: var(--primary);
}

.theme-option:has(input:checked) {
  border-color: var(--primary);
  background: #f0f0f0;
}

.theme-option label {
  cursor: pointer;
  flex: 1;
}

/* Integration Cards */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.integration-card {
  background: white;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.integration-card:hover {
  box-shadow: var(--shadow);
}

.integration-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.integration-icon {
  font-size: 32px;
}

.integration-header h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--dark);
}

.integration-card p {
  color: var(--text-light);
  font-size: 0.9em;
  margin-bottom: 12px;
}

.integration-status {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
}

.integration-status.not-connected {
  background: #ffe0e0;
  color: #d63031;
}

.integration-status.connected {
  background: #e0ffe0;
  color: var(--success);
}

.integration-card button {
  width: 100%;
}

/* API Section */
.api-key-item,
.webhook-item {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.key-info,
.webhook-info {
  flex: 1;
}

.key-name,
.webhook-url {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.key-value,
.webhook-event {
  color: var(--text-light);
  font-size: 0.9em;
  font-family: monospace;
}

.key-actions,
.webhook-actions {
  display: flex;
  gap: 8px;
}

.btn-secondary-sm {
  padding: 8px 12px;
  font-size: 0.85em;
  white-space: nowrap;
}

/* Storage Management */
.storage-stats {
  margin-bottom: 30px;
}

.storage-bar {
  width: 100%;
  height: 30px;
  background: #f0f0f0;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 12px;
}

.storage-used {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.storage-info {
  color: var(--text-light);
  font-size: 0.95em;
}

.storage-breakdown {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.storage-item {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.storage-item:last-child {
  border-bottom: none;
}

.storage-item-name {
  font-weight: 600;
  color: var(--dark);
}

.storage-item-size {
  color: var(--primary);
  font-weight: 600;
}

/* Notification Settings */
.notification-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

/* Danger Zone */
.danger-zone {
  border-top: 3px solid #d63031;
  padding-top: 30px;
}

.danger-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fff5f5;
  border-left: 4px solid #d63031;
  border-radius: 8px;
  margin-bottom: 12px;
}

.danger-info h3 {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.danger-info p {
  color: var(--text-light);
  font-size: 0.9em;
}

.btn-danger {
  background: #d63031;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: #b30a0a;
}

.section-description {
  color: var(--text-light);
  margin-bottom: 20px;
}

.settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

/* ===== FOOTER ===== */
.app-footer {
  background: var(--dark);
  color: white;
  padding: 60px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-title {
  font-size: 1.5em;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand-desc {
  color: #bbb;
  font-size: 0.95em;
  margin-bottom: 16px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
}

.footer-section h4 {
  font-size: 1.1em;
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-section a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: #bbb;
  font-size: 0.9em;
}

.footer-copyright p {
  margin-bottom: 4px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: white;
}

.footer-newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 30px;
  border-radius: 12px;
  margin-top: 30px;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
}

.btn-primary-small {
  padding: 12px 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .dashboard-welcome-section,
  .about-hero-content,
  .team-content,
  .settings-container {
    grid-template-columns: 1fr;
  }

  .profile-header-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-header-content > div:last-child {
    grid-column: 1;
  }

  .profile-badge {
    position: relative;
    top: 0;
    left: 0;
    text-align: center;
  }

  .featured-tools-grid,
  .all-tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .featured-tools-grid,
  .all-tools-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .policy-content,
  .help-content,
  .contact-form,
  .settings-content,
  .tab-section {
    padding: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .settings-container {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    position: relative;
    top: 0;
  }

  .settings-nav {
    flex-direction: row;
  }

  .settings-nav-item {
    white-space: nowrap;
  }

  .profile-stats {
    justify-content: space-around;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .about-cta-section button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .welcome-title {
    font-size: 2em;
  }

  .section-title {
    font-size: 1.5em;
  }

  .policy-header h1,
  .help-header h1 {
    font-size: 1.8em;
  }

  .features-grid,
  .support-grid,
  .tutorials-grid,
  .quick-links-grid,
  .getting-started-grid {
    grid-template-columns: 1fr;
  }

  .profile-header-content {
    gap: 16px;
  }

  .profile-avatar-large {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }

  .profile-basic-info h1 {
    font-size: 1.4em;
  }

  .theme-selector {
    grid-template-columns: 1fr;
  }

  .integration-grid {
    grid-template-columns: 1fr;
  }
}

