/* ==========================================================================
   MINIMAL MODERN DESIGN SYSTEM - DUAL THEME (LIGHT & DARK)
   ========================================================================== */

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

:root, [data-theme="light"] {
  /* LIGHT THEME (DEFAULT FALLBACK) */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-tag: #f1f5f9;
  --bg-input: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #6366f1;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-glow: rgba(99, 102, 241, 0.25);

  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DARK THEME */
[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-glass: rgba(17, 24, 39, 0.65);
  --bg-tag: rgba(255, 255, 255, 0.06);
  --bg-input: #1e293b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090d16;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-focus: #818cf8;

  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-light: rgba(99, 102, 241, 0.15);
  --primary-glow: rgba(99, 102, 241, 0.35);

  --accent-cyan: #22d3ee;
  --accent-pink: #f472b6;
  --accent-green: #34d399;
  --accent-amber: #fbbf24;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 36px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.65;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
  position: relative;
}

/* Subtle ambient background glow */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

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

/* ==========================================================================
   LAYOUT CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo span {
  white-space: nowrap !important;
  display: inline-block;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px var(--primary-glow);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  list-style: none;
  white-space: nowrap;
}

.nav-link {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 5px;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Mobile Menu Hamburger Button */
.btn-mobile-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-mobile-menu:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Theme Toggle Button */
.btn-theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: var(--bg-tag);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all var(--transition-normal);
}

.btn-theme-toggle:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: rotate(15deg);
}

/* Action button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

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

.btn-secondary {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-tag);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   HERO / ABOUT ME SECTION
   ========================================================================== */

.hero-section {
  padding: 4.5rem 0 3.5rem;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.6; transform: scale(0.95); }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-bio {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.5rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0.5rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all var(--transition-normal);
}

.social-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-3px);
}

/* Avatar Card */
.hero-image-box {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-frame {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  padding: 5px;
  animation: morph 8s ease-in-out infinite;
  box-shadow: 0 15px 35px var(--primary-glow);
}

@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background-color: var(--bg-surface);
}

.hero-exp-card {
  position: absolute;
  bottom: -15px;
  right: -10px;
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}

.hero-exp-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-amber), #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.hero-exp-text h5 {
  font-size: 0.95rem;
  font-weight: 800;
}

.hero-exp-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================================================
   BOT SHOWCASE SECTION
   ========================================================================== */

.bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.bot-card:hover {
  border-color: var(--border-focus);
  box-shadow: 0 16px 36px var(--primary-glow);
}

.bot-avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.bot-avatar {
  width: 190px;
  height: 190px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  padding: 4px;
}

.bot-badge-live {
  position: absolute;
  top: 10px;
  right: 15px;
  background-color: #10b981;
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.bot-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bot-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.bot-title {
  font-size: 1.8rem;
  font-weight: 800;
}

.bot-handle {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  direction: ltr;
}

.bot-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.bot-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.bot-feature-pill {
  padding: 6px 14px;
  background-color: var(--bg-tag);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bot-feature-pill i {
  color: var(--accent-cyan);
}

.bot-actions {
  display: flex;
  gap: 12px;
  margin-top: 0.5rem;
}

/* ==========================================================================
   CHANNELS SHOWCASE SECTION
   ========================================================================== */

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
}

.channel-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
}

.channel-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.channel-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.channel-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.channel-avatar {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(99, 102, 241, 0.4);
  background-color: var(--bg-surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: block;
}

.channel-card:hover .channel-avatar {
  transform: scale(1.06);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.45);
}

.channel-meta h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.35;
}

.channel-members {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.channel-link-btn {
  width: 100%;
}

/* ==========================================================================
   PROMPTS PROMOTION BANNER (ON MAIN PAGE)
   ========================================================================== */

.prompts-banner-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--primary-glow);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.prompts-banner-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.prompts-banner-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 650px;
  margin-bottom: 1.5rem;
}

.prompts-quick-stats {
  display: flex;
  gap: 1.5rem;
}

.quick-stat-item {
  display: flex;
  flex-direction: column;
}

.quick-stat-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
}

.quick-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PROMPTS PAGE SPECIFIC STYLES
   ========================================================================== */

.prompts-header-bar {
  padding: 2.5rem 0 1.5rem;
}

.prompts-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.search-sort-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.sort-select {
  padding: 0.85rem 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.sort-select:focus {
  border-color: var(--border-focus);
}

/* Categories Filter Pills */
.categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.category-chip {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.category-chip:hover {
  background-color: var(--bg-tag);
  color: var(--text-primary);
}

.category-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* Prompts Grid */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.prompt-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.prompt-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   INSTAGRAM SHOWCASE SECTION
   ========================================================================== */

.instagram-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.instagram-card:hover {
  border-color: #e1306c;
  box-shadow: 0 16px 36px rgba(225, 48, 108, 0.25);
}

.instagram-avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.instagram-avatar {
  width: 190px;
  height: 190px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 4px;
}

.instagram-badge-follow {
  position: absolute;
  top: 10px;
  right: 15px;
  background: linear-gradient(45deg, #f09433, #e1306c, #833ab4);
  color: white;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.4);
}

.instagram-btn {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.35);
}

.instagram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
}

/* ==========================================================================
   PROMPT CARDS WITH IMAGES
   ========================================================================== */

.prompt-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #0c121e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-card-thumb-bg {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.35);
  transform: scale(1.15);
  opacity: 0.85;
  z-index: 1;
}

.prompt-card-thumb {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  display: block;
  transition: transform var(--transition-smooth);
}

.prompt-card:hover .prompt-card-thumb {
  transform: scale(1.03);
}

.prompt-thumb-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.prompt-card-header {
  padding: 1.25rem 1.25rem 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.prompt-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.prompt-card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.prompt-card-body {
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.prompt-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.prompt-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Prompt preview code block */
.prompt-text-container {
  background-color: var(--bg-tag);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.6;
  max-height: 120px;
  overflow-y: auto;
  position: relative;
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-card-footer {
  padding: 1rem 1.25rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  width: 100%;
}

.btn-copy:hover {
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-copy.copied {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */

.admin-login-wrapper {
  max-width: 420px;
  margin: 6rem auto;
  padding: 2.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.admin-login-wrapper h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.admin-login-wrapper p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

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

.admin-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.admin-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.admin-input:focus {
  border-color: var(--border-focus);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.admin-dashboard {
  padding: 2.5rem 0 4rem;
}

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

/* Admin Stats Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.admin-stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.admin-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.admin-stat-icon.views { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.admin-stat-icon.copies { background: linear-gradient(135deg, #10b981, #059669); }
.admin-stat-icon.prompts { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.admin-stat-icon.categories { background: linear-gradient(135deg, #f59e0b, #d97706); }

.admin-stat-info h4 {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-stat-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.admin-tab-btn {
  padding: 0.6rem 1.1rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-tag);
}

.admin-tab-btn.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

/* Admin Table */
.admin-table-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.92rem;
}

.admin-table th, .admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table th {
  background-color: var(--bg-tag);
  font-weight: 700;
  color: var(--text-secondary);
}

.admin-table tbody tr:hover {
  background-color: var(--bg-tag);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

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

.modal-close {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.modal-footer #modal-copy-btn {
  flex-grow: 1;
  max-width: 240px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.92rem;
  transform: translateX(120%);
  transition: transform var(--transition-smooth);
}

.toast.show {
  transform: translateX(0);
}

.toast.success { border-right: 4px solid var(--accent-green); }
.toast.info { border-right: 4px solid var(--primary); }
.toast.error { border-right: 4px solid #ef4444; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 2.5rem 0;
  margin-top: 5rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & HAMBURGER MENU
   ========================================================================== */

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  box-shadow: var(--shadow-xl);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-nav-drawer.active,
.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active,
.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header,
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.btn-close-drawer,
.mobile-nav-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tag);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.btn-close-drawer:hover,
.mobile-nav-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-nav-links,
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.mobile-drawer-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

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

.mobile-nav-link i {
  width: 22px;
  font-size: 1rem;
  color: var(--primary);
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET BREAKPOINTS)
   ========================================================================== */

@media (max-width: 1040px) {
  .nav-links {
    display: none !important;
  }
  .btn-mobile-menu {
    display: inline-flex !important;
  }
}

@media (max-width: 900px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-bio {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .bot-card,
  .instagram-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.25rem;
    gap: 1.75rem;
  }

  .bot-avatar-wrapper,
  .instagram-avatar-wrapper {
    margin: 0 auto;
  }

  .bot-avatar,
  .instagram-avatar {
    width: 170px;
    height: 170px;
  }

  .bot-title-wrap {
    justify-content: center;
  }

  .bot-features-list,
  .bot-actions {
    justify-content: center;
  }

  .instagram-btn {
    width: 100%;
    justify-content: center;
  }

  .prompts-banner-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .prompts-quick-stats {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .header-content {
    height: 60px;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.3;
  }

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

  .prompts-banner-card {
    padding: 1.5rem;
  }

  .bot-card,
  .instagram-card {
    padding: 1.5rem 1rem;
    gap: 1.25rem;
  }

  .bot-avatar,
  .instagram-avatar {
    width: 140px;
    height: 140px;
  }

  .admin-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-header-row h1 {
    font-size: 1.35rem !important;
  }

  .header-content {
    gap: 8px;
  }

  .brand-logo {
    font-size: 1.05rem !important;
    gap: 8px !important;
  }

  .brand-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1rem !important;
  }

  .header-actions {
    gap: 6px;
  }

  header .header-actions .btn-secondary.btn-sm span {
    display: none;
  }

  header .header-actions .btn-secondary.btn-sm {
    padding: 0.5rem 0.65rem;
  }

  .channels-grid {
    grid-template-columns: 1fr;
  }

  .channel-card {
    padding: 1.25rem;
  }

  .channel-header {
    gap: 0.85rem;
  }

  .channel-avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }

  .avatar-frame {
    width: 220px;
    height: 220px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-content {
    padding: 1.25rem 1rem;
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }

  .modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
    margin-top: 1.25rem;
  }

  .modal-footer #modal-copy-btn {
    max-width: 100%;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    justify-content: center;
  }

  .modal-footer #modal-stats {
    justify-content: center;
    width: 100%;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 8px 14px;
    background: var(--bg-surface-elevated);
    padding: 8px 12px;
    border-radius: var(--radius-md);
  }

  .modal-img-wrap {
    max-height: 280px !important;
  }

  #modal-img {
    max-height: 260px !important;
  }

  /* Admin Panel Mobile Optimizations */
  .admin-login-wrapper {
    padding: 1.75rem 1.25rem;
    margin: 2rem auto;
    width: 100%;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
  }

  .admin-stat-card {
    padding: 1rem 0.85rem;
    gap: 0.75rem;
  }

  .admin-stat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
  }

  .admin-stat-info h4 {
    font-size: 1.3rem;
  }

  .admin-stat-info p {
    font-size: 0.75rem;
  }

  .admin-table {
    min-width: 580px;
    font-size: 0.82rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.65rem;
  }

  .admin-table-container {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }

  .admin-form-group {
    margin-bottom: 1rem;
  }

  .admin-form-group input,
  .admin-form-group select,
  .admin-form-group textarea {
    font-size: 0.9rem;
    padding: 0.7rem 0.85rem;
  }

  .cms-channel-card {
    padding: 1rem !important;
  }

  .table-actions {
    gap: 4px;
  }

  .table-actions .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }

  /* Landing Page Footer Mobile Responsiveness */
  .footer {
    padding: 2.25rem 0 4rem;
    margin-top: 3.5rem;
    overflow: hidden;
  }

  .footer-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem 0.85rem;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }

  .footer-links li {
    display: inline-block;
  }

  .footer-link {
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--bg-tag);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition-fast);
  }

  .footer-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
  }

  .footer-copy {
    text-align: center;
    font-size: 0.82rem;
    width: 100%;
    line-height: 1.6;
  }

  /* Prevent grid cards from overflowing on narrow mobile devices */
  .services-grid,
  .portfolio-grid,
  .testimonials-grid,
  .articles-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   STUDIO HOOSHYAR - EXPANDED SECTIONS STYLING
   ========================================================================== */

/* 1. SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl), 0 0 25px var(--primary-glow);
}

.service-card.featured::before {
  content: "پیشنهاد ویژه";
  position: absolute;
  top: 18px;
  left: -32px;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--accent-pink), #e1306c);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 38px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-light), rgba(99, 102, 241, 0.25));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-primary);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-feature-item i {
  color: var(--accent-green);
  font-size: 0.85rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.service-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.service-price-wrap {
  display: flex;
  flex-direction: column;
}

.service-price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.service-price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.service-delivery {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 2. PORTFOLIO SECTION */
.portfolio-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.5rem 0 2rem 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.portfolio-thumb-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #070a12;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-thumb-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.35);
  transform: scale(1.15);
  opacity: 0.9;
}

.portfolio-thumb {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.portfolio-card:hover .portfolio-thumb {
  transform: scale(1.04);
}

.portfolio-category-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.portfolio-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.portfolio-tools-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.portfolio-tool-pill {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-tag);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.portfolio-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* 3. TESTIMONIALS SECTION */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-amber);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.testimonial-client-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-client-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonial-stars {
  color: var(--accent-amber);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 3px;
}

.testimonial-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  position: relative;
}

/* 4. ARTICLES & TUTORIALS */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: blur(12px);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.article-thumb-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: #070a12;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-thumb-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.35);
  transform: scale(1.15);
  opacity: 0.9;
}

.article-thumb {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.article-card:hover .article-thumb {
  transform: scale(1.04);
}

.article-meta-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  color: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
}

.article-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* 5. FAQ ACCORDION */
.faq-accordion {
  max-width: 860px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  gap: 15px;
}

.faq-icon-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tag);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  background: var(--primary);
  color: #fff;
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
}

.faq-item.active .faq-answer-panel {
  max-height: 400px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* 6. CONTACT & CONSULTATION FORM */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 860px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
}

.contact-direct-card {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  color: var(--text-primary);
  text-decoration: none;
}

.contact-channel-item:hover {
  transform: translateX(-4px);
  border-color: var(--primary);
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}

/* 7. FLOATING QUICK CONTACT BUTTON */
.floating-contact-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 99;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  border-radius: 99px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.45);
  text-decoration: none;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.floating-contact-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px -5px rgba(16, 185, 129, 0.6);
  color: #fff;
}

/* 8. ADMIN CMS ENHANCEMENTS */
.admin-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.admin-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}

.admin-tabs-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.admin-tab-chip {
  padding: 0.65rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.admin-tab-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.admin-tab-chip.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.admin-badge-count {
  background: var(--primary);
  color: #fff;
  border-radius: 99px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 700;
}

.lead-status-pill {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lead-status-pill.status-new {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.lead-status-pill.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.lead-status-pill.status-done {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* SECTION ORDER & VISIBILITY ITEM */
.section-order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  gap: 15px;
}

.section-order-handle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-order-arrows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.btn-arrow-move {
  background: var(--bg-tag);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 7px;
  font-size: 0.7rem;
  line-height: 1;
}

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

/* MEDIA LIBRARY GRID */
.media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.media-library-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 1;
  background: #000;
  group: relative;
}

.media-library-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.media-library-card:hover .media-card-overlay {
  opacity: 1;
}

