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

:root {
  --bg: #0a0a0a;
  /* Pure Dark Black */
  --bg-secondary: #121212;
  /* Slightly lighter black */
  --card-bg: rgba(20, 20, 20, 0.8);
  --primary-rgb: 212, 135, 111;
  --border: rgba(var(--primary-rgb), 0.15);
  --border-active: rgba(var(--primary-rgb), 0.5);
  --text: #ffffff;
  --text-dim: #94a3b8;
  --primary: #d4876f;
  /* Warm peach/tan */
  --primary-dark: #c17a62;
  --primary-dim: rgba(var(--primary-rgb), 0.1);
  --primary-glow: rgba(var(--primary-rgb), 0.4);
  --gradient: linear-gradient(135deg, #d4876f 0%, #c17a62 100%);
  --sidebar-width: 280px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Effects */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(212, 135, 111, 0.12), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(193, 122, 98, 0.12), transparent 25%);
  pointer-events: none;
  z-index: 0;
}

.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(212, 135, 111, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 135, 111, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 7, 0.75);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo i {
  color: var(--primary);
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
  color: white;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 0 20px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--primary-glow);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 1000px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.25rem;
  background: var(--primary-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -2px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: blurReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes blurReveal {
  from {
    filter: blur(20px);
    opacity: 0;
    transform: scale(1.1);
  }

  to {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px var(--primary-glow);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 650px;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.stat-item .value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-item .label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* Sections */
.section {
  padding: 100px 2rem;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 3rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-accent);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), transparent);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-dim);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4.5rem 2.5rem;
  border-radius: 40px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-dim), transparent);
}

.pricing-card.popular {
  border-color: var(--border-active);
  transform: scale(1.03);
  background: linear-gradient(180deg, var(--primary-dim) 0%, rgba(10, 10, 15, 0) 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--primary-dim);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-active);
  background: linear-gradient(180deg, var(--primary-dim) 0%, rgba(10, 10, 15, 0) 100%);
}

.pricing-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-dim);
  border: 1px solid var(--border-active);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.pricing-card .price {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 1.5rem 0;
  letter-spacing: -2px;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-features {
  text-align: left;
  list-style: none;
  margin: 2rem 0 3rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-pricing {
  width: 100%;
  padding: 1.25rem;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  display: block;
}

.btn-pricing.primary {
  background: var(--gradient);
  color: white;
}

.btn-pricing.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Footer */
.footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 10;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.auth-logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.auth-card h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.auth-subtitle {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  text-align: left;
  margin-bottom: 1.25rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: var(--primary-dim);
  box-shadow: 0 0 0 4px var(--primary-dim);
}

.btn-auth {
  width: 100%;
  padding: 1rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
  box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px var(--primary-glow);
}

.auth-link {
  margin-top: 2rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

.alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
}

.alert-error {
  background: var(--primary-dim);
  color: #fca5a5;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Dashboard Styles (For musteri-panel.php) */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.sidebar-brand {
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  /* Fixed: Left align */
  margin-bottom: 1rem;
}

.sidebar-nav {
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Optimized gap */
}

/* Sidebar Header - Enhanced */
.sidebar-header {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-dim);
  margin: 1.5rem 0 0.5rem;
  padding: 0.5rem 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.3);
  /* Darker background */
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 1rem;
  color: #94a3b8;
  /* Dim text by default */
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
  justify-content: flex-start;
  /* Fixed: Left align */
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  /* Added background */
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Added border */
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

.sidebar-link.active {
  background: linear-gradient(90deg, var(--primary-dim) 0%, rgba(212, 135, 111, 0.05) 100%);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  /* cleaner active indicator */
  border-radius: 4px 12px 12px 4px;
  /* custom radius */
}

.sidebar-link.active i {
  color: var(--primary);
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.sidebar-link:hover i {
  color: white;
}

/* New Dashboard Styles */
.welcome-section {
  margin-bottom: 2rem;
}

.welcome-section h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.stats-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card-new {
  background: #0f0f12;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.stat-card-new:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
}

.stat-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.stat-info p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* Updates Section */
.dashboard-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.update-card {
  background: #0f0f12;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.badge-new {
  background: var(--primary-dim);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

.update-card h4 {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.update-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.update-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: #0f0f12;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resource-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.resource-card h4 {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 0.75rem 0;
}

.resource-description {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.btn-download-sm {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-download-sm:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 3rem 4rem;
  width: calc(100% - var(--sidebar-width));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 20px;
  transition: var(--transition);
  animation: slideUp 0.5s ease-out forwards;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--primary-dim);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-card,
.feature-card,
.stat-card {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover,
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sidebar-link.management {
  color: #ef4444 !important;
  font-weight: 700;
}

.sidebar-link.management:hover {
  background: rgba(239, 68, 68, 0.15);
}

.stat-card-title {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
}

.table-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  /* overflow: hidden removed to prevent menu clipping */
}

.table-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 1.25rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

td {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  color: white;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-active {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.badge-closed {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .features-grid,
  .pricing-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar {
    padding: 1rem 2rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .features-grid,
  .pricing-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .main-content {
    margin-left: 0;
    padding: 2rem;
  }
}

/* --- Fixed Dashboard Styles --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-dim);
}



.content-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-header p {
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* Applications Grid & Cards */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(239, 68, 68, 0.1);
}

.app-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
}

.app-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.app-info h3 {
  font-size: 1.1rem;
  color: white;
  margin: 0;
  font-weight: 700;
}

.app-info span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.app-card-body {
  padding: 1.5rem;
  flex: 1;
}

.app-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.app-detail-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.secret-container {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
  width: 100%;
  margin-top: 0.5rem;
  justify-content: space-between;
}

.secret-text {
  filter: blur(4px);
  transition: all 0.3s;
  user-select: none;
}

.secret-container:hover .secret-text {
  filter: blur(0);
}

.app-card-footer {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border);
}

.btn-full {
  width: 100%;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-dim);
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #18181b;
  border: 1px solid var(--border);
}

/* --- Accordion Sidebar Starts --- */
.sidebar-group {
  /* Container for header + content */
  margin-bottom: 0px;
}

.sidebar-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  user-select: none;
  transition: background 0.2s ease;
}

.sidebar-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* The arrow icon inside header */
.sidebar-arrow {
  transition: transform 0.3s ease;
  width: 14px;
  height: 14px;
  opacity: 0.5;
  margin-left: auto;
  /* Push to right */
}

/* When expanded, rotate the arrow */
.sidebar-group.expanded .sidebar-header .sidebar-arrow {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--primary);
}

/* Content container - collapse by default */
.sidebar-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  padding-left: 0.5rem;
  /* Indent sub-items slightly */
}

/* Expanded state */
.sidebar-group.expanded .sidebar-content {
  max-height: 1000px;
  /* enough to show content */
  opacity: 1;
  padding-bottom: 0.5rem;
}

/* Action Menu Styles */
.action-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  outline: none;
  position: relative;
  z-index: 10;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.action-btn i,
.action-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.action-menu {
  display: none;
  position: absolute;
  right: 0;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 4px;
  min-width: 110px;
  width: max-content;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.action-menu-item {
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.action-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.action-menu-item.danger {
  color: #fb7185;
}

.action-menu-item.danger:hover {
  background: rgba(251, 113, 133, 0.1);
  color: #ff4d6d;
}

.action-menu.open-up {
  bottom: 120%;
  top: auto;
}

.action-menu.open-down {
  top: 120%;
  bottom: auto;
}

/* Custom Scrollbar for the table container to prevent white scrollbar */
.table-container::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: rgba(15, 15, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

@keyframes toastIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.removing {
  animation: toastOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

.toast i {
  font-size: 1.1rem;
}

.toast-success i {
  color: #22c55e;
}

.toast-error i {
  color: #ef4444;
}

.toast-info i {
  color: #3b82f6;
}

/* Custom Modals */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-wrapper.active {
  display: flex;
}

.custom-modal {
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-icon-container {
  width: 80px;
  height: 80px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.modal-icon-container i,
.modal-icon-container svg {
  width: 40px;
  height: 40px;
}

.custom-modal h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.custom-modal p {
  color: #94a3b8;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-actions button {
  padding: 0.9rem 2rem;
  min-width: 140px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}