/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  --bg:#0b1220; --bg2:#081026; --text:#e5e7eb; --muted:#cbd5e1;
  --line:rgba(255,255,255,.12); --surface:rgba(255,255,255,.06);
  --card-bg:rgba(255,255,255,.05);
  --brand1:#22d3ee; --brand2:#0ea5e9; --brand3:#6366f1;
  --space-1:.4rem; --space-2:.75rem; --space-3:.9rem;
  --radius:16px;
}
html{
  scroll-behavior:smooth;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Russian typography optimization */
[lang="ru"], [lang="ua"] {
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body{
  margin:0;
  padding:0;
  color:var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: 
    radial-gradient(1200px 800px at 20% -10%, rgba(14,165,233,.12), transparent 60%),
             radial-gradient(1000px 700px at 120% 10%, rgba(99,102,241,.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #081026 100%);
  min-height: 100vh;
  background-attachment: fixed;
  width: 100%;
  overflow-x: hidden;
}

/* Unified gradient background for all pages */
html {
  background: 
    radial-gradient(1200px 800px at 20% -10%, rgba(14,165,233,.12), transparent 60%),
    radial-gradient(1000px 700px at 120% 10%, rgba(99,102,241,.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #081026 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Ensure consistent background on all page elements */
main, .main-content, .page-content {
  background: transparent;
}

/* Unified section backgrounds */
.section, .hero, .hero-section {
  background: transparent;
  position: relative;
}

/* Add subtle overlay for better text readability */
.section::before, .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.02);
  pointer-events: none;
  z-index: -1;
}

/* Unified page layout styles */
.page-wrapper {
  background: transparent;
  min-height: 100vh;
  position: relative;
}

/* Ensure all content sections have consistent styling */
.content-section, .page-section {
  background: transparent;
  position: relative;
}

/* Unified card backgrounds with subtle transparency */
.card, .template-card, .news-card, .blog-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Consistent modal and overlay backgrounds */
.modal, .modal-overlay {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

/* Unified footer styling */
.footer {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Additional unified styles for consistency */
.modal-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    margin: 1rem auto !important;
    padding: 1rem !important;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Unified form elements */
input, textarea, select {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand1);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

@media (max-width: 768px) {
  input, textarea, select {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 0.75rem !important;
    min-height: 44px; /* Minimum touch target size */
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  button, .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    width: 100%;
    max-width: 100%;
  }
}

/* Unified navigation elements */
.nav-link, .nav-item {
  background: transparent;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-item:hover {
  background: rgba(34, 211, 238, 0.1);
  border-radius: 8px;
}

/* Unified button styles */
.btn {
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  border: 1px solid rgba(34, 211, 238, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.3);
}

/* Unified table styles */
table {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  
  table thead {
    display: none;
  }
  
  table tbody {
    display: block;
  }
  
  table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
  }
  
  table td {
    display: block;
    text-align: right;
    padding: 0.5rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  table td:before {
    content: attr(data-label) ": ";
    font-weight: bold;
    float: left;
    text-transform: uppercase;
    color: #22d3ee;
  }
  
  table td:last-child {
    border-bottom: none;
  }
}

th, td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Image responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  img {
    width: 100%;
    height: auto;
  }
  
  .hero img,
  .section img {
    max-width: 100%;
  }
}

/* Unified list styles */
ul, ol {
  background: transparent;
}

li {
  background: transparent;
}

/* Mobile responsiveness for unified design */
@media (max-width: 768px) {
  body, html {
    background-attachment: scroll;
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  * {
    max-width: 100%;
  }
  
  .container, .section, .main-content {
    overflow-x: hidden;
  }
  
  .card, .template-card, .news-card, .blog-card {
    backdrop-filter: blur(5px);
  }
  
  .modal-content {
    backdrop-filter: blur(15px);
  }
  
  .footer {
    backdrop-filter: blur(5px);
  }
  
  /* ULTRA COMPACT mobile spacing */
  .hero {
    padding: 0.5rem 0 !important;
  }
  
  .section {
    padding: 0.5rem 0 !important;
  }
  
  .hero h1 {
    font-size: 1.3rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.3rem !important;
  }
  
  .hero .lead {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }
  
  .blog-hero {
    padding: 0.4rem 0 !important;
  }
  
  .blog-hero-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .blog-hero-text h1 {
    font-size: 1.2rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  .blog-hero-text .lead {
    font-size: 0.8rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .card, .template-card, .news-card, .blog-card {
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Ultra compact mobile typography */
  h1 {
    font-size: 1.3rem !important;
  }
  
  h2 {
    font-size: 1.1rem !important;
  }
  
  h3 {
    font-size: 1rem !important;
  }
  
  .lead {
    font-size: 0.8rem !important;
  }
}

/* ULTRA COMPACT SPACING - Override all large paddings */
.section {
  padding: 0.25rem 0 !important;
  margin-bottom: 0.5rem !important;
}

.hero {
  padding: 0.5rem 0 !important;
}

.blog-hero {
  padding: 0.6rem 0 !important;
}

/* Override all large margins and paddings */
.card, .template-card, .news-card, .blog-card {
  padding: 0.6rem !important;
  margin-bottom: 0.8rem !important;
}

/* Compact grid gaps */
.templates-grid, .news-grid, .blog-grid, .tools-categories, .courses-categories {
  gap: 0.8rem !important;
}

/* Compact section headers */
.section-header {
  margin-bottom: 0.8rem !important;
}

.section-header h2 {
  margin-bottom: 0.3rem !important;
}

/* Compact hero content - FULL WIDTH */
.hero-content {
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.hero .lead {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

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

/* UNIFIED TYPOGRAPHY - Compact font sizes across all pages */
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.lead {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

/* Unified hero styles - compact - FULL WIDTH */
.hero {
  padding: 0.75rem 0 !important;
  margin-bottom: 0.75rem !important;
  text-align: left;
  width: 100%;
  max-width: 100%;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.hero .lead {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.25rem;
  }
  
  h2 {
    font-size: 1.1rem;
  }
  
  h3 {
    font-size: 1rem;
  }
  
  .lead {
    font-size: 0.9rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero .lead {
    font-size: 0.95rem;
  }
}

/* Unified blog/news hero styles - compact */
.blog-hero {
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.blog-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.blog-hero-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.blog-hero-text .lead {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

.blog-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .blog-hero-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .blog-hero-text h1 {
    font-size: 1.25rem;
  }
  
  .blog-hero-text .lead {
    font-size: 0.9rem;
  }
}

/* Unified tools/courses header styles - compact */
.tools-header-compact,
.courses-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tools-header-compact .header-left,
.courses-header-compact .header-left {
  flex: 1;
  min-width: 0;
}

.tools-header-compact .header-left h1,
.courses-header-compact .header-left h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
  line-height: 1.2;
}

.tools-header-compact .header-left .lead,
.courses-header-compact .header-left .lead {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .tools-header-compact,
  .courses-header-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem;
  }
  
  .tools-header-compact .header-left h1,
  .courses-header-compact .header-left h1 {
    font-size: 1.25rem;
  }
  
  .tools-header-compact .header-left .lead,
  .courses-header-compact .header-left .lead {
    font-size: 0.9rem;
  }
}

/* Compact section spacing */
.section {
  padding: 0.5rem 0;
  margin-bottom: 0.25rem;
}

/* Compact grid spacing - minimal margin */
.templates-grid,
.news-grid,
.blog-grid,
.tools-categories,
.courses-categories {
  gap: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Remove excessive spacing before grids */
.container.section + .container .templates-grid,
.container.section + .container .news-grid,
.container.section + .container .blog-grid {
  margin-top: 0;
}

/* Compact spacing for all elements */
.container {
  padding: 0 1rem;
}

/* Reduce excessive padding in cards */
.card, .template-card, .news-card, .blog-card {
  padding: 0.5rem;
}

/* Compact grid layouts */
.templates-grid, .news-grid, .blog-grid {
  gap: 1rem;
}

/* Compact section headers */
.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

/* Compact form elements */
.form-group {
  margin-bottom: 1rem;
}

.form-group input, .form-group textarea, .form-group select {
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
}

/* Compact buttons */
.btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* Compact lists */
ul, ol {
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.3rem;
}

/* Compact tables */
table {
  font-size: 0.9rem;
}

th, td {
  padding: 0.6rem 0.8rem;
}

/* Compact navigation */
.nav-link {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}

/* Compact footer */
.footer {
  padding: 1.5rem 0 1rem;
}

.footer-content {
  margin-bottom: 1rem;
}

/* Compact stats */
.stat-number {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
}

/* ULTRA COMPACT OVERRIDES - Force compact design */
* {
  box-sizing: border-box;
}

/* Override all large font sizes */
.brand-title {
  font-size: 1.4rem !important;
}

.brand-subtitle {
  font-size: 0.8rem !important;
}

/* Compact buttons */
.btn {
  padding: 0.4rem 0.8rem !important;
  font-size: 0.8rem !important;
  margin: 0.2rem !important;
}

/* Compact forms */
input, textarea, select {
  padding: 0.4rem 0.6rem !important;
  font-size: 0.8rem !important;
  margin-bottom: 0.5rem !important;
}

/* Compact navigation */
.nav-link {
  padding: 0.3rem 0.6rem !important;
  font-size: 0.8rem !important;
}

/* Compact stats */
.stat-number {
  font-size: 1.5rem !important;
  margin-bottom: 0.2rem !important;
}

/* Compact footer */
.footer {
  padding: 0.8rem 0 !important;
}

.footer-content {
  margin-bottom: 0.5rem !important;
}

/* Compact lists */
ul, ol {
  margin-bottom: 0.5rem !important;
}

li {
  margin-bottom: 0.2rem !important;
  font-size: 0.85rem !important;
}

/* Compact tables */
table {
  font-size: 0.8rem !important;
}

th, td {
  padding: 0.4rem 0.6rem !important;
}

/* Compact cards content */
.card h3, .template-card h3, .news-card h3, .blog-card h3 {
  font-size: 1rem !important;
  margin-bottom: 0.3rem !important;
}

.card p, .template-card p, .news-card p, .blog-card p {
  font-size: 0.8rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0.4rem !important;
}

/* HIGH CONTRAST TEXT FIXES - Override all dark text */
/* Fix all muted text to be more visible */
* {
  color: inherit;
}

/* Force high contrast for all text elements */
p, .lead, .small, .muted, [class*="muted"], [class*="desc"], [class*="text"] {
  color: #e2e8f0 !important;
}

/* Fix footer links */
.footer-nav a, .footer-legal a, .footer-copyright {
  color: #cbd5e1 !important;
}

.footer-nav a:hover, .footer-legal a:hover {
  color: #22d3ee !important;
}

/* Fix navigation links */
.nav-link {
  color: #e2e8f0 !important;
}

.nav-link:hover, .nav-link.active {
  color: #22d3ee !important;
}

/* Fix form elements */
input, textarea, select {
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

input::placeholder, textarea::placeholder {
  color: #94a3b8 !important;
}

/* Fix card content */
.card h3, .template-card h3, .news-card h3, .blog-card h3 {
  color: #ffffff !important;
}

.card p, .template-card p, .news-card p, .blog-card p {
  color: #cbd5e1 !important;
}

/* Fix list items */
li {
  color: #cbd5e1 !important;
}

/* Fix table content */
th, td {
  color: #e2e8f0 !important;
}

/* Fix stats */
.stat-label {
  color: #cbd5e1 !important;
}

/* Fix brand subtitle */
.brand-subtitle {
  color: #cbd5e1 !important;
}

/* Fix community links */
.community-link {
  color: #e2e8f0 !important;
}

.community-link:hover {
  color: #22d3ee !important;
}

/* Fix search elements */
.search-input {
  color: #e2e8f0 !important;
}

.search-btn {
  color: #cbd5e1 !important;
}

.search-btn:hover {
  color: #22d3ee !important;
}

/* Fix icon links */
.icon-link {
  color: #cbd5e1 !important;
}

.icon-link:hover {
  color: #22d3ee !important;
}

/* Fix language links */
.lang-link {
  color: #cbd5e1 !important;
}

.lang-link:hover, .lang-link.active {
  color: #ffffff !important;
}

/* Fix specific dark text issues */
/* Override all existing dark colors with light ones */
.info-item {
  color: #22d3ee !important;
}

.header-hours {
  color: #cbd5e1 !important;
}

.footer-section h4 {
  color: #22d3ee !important;
}

.footer-nav a {
  color: #cbd5e1 !important;
}

.footer-nav a:hover {
  color: #22d3ee !important;
}

.footer-legal a {
  color: #cbd5e1 !important;
}

.footer-legal a:hover {
  color: #22d3ee !important;
}

.footer-copyright {
  color: #cbd5e1 !important;
}

/* Fix template and news content */
.template-desc, .news-desc, .blog-desc {
  color: #cbd5e1 !important;
}

.template-meta span, .news-meta span {
  color: #22d3ee !important;
}

.template-stats span, .news-stats span {
  color: #cbd5e1 !important;
}

/* Fix category and block content */
.category-block p, .blog-block p, .news-block p, .tool-block p, .course-block p {
  color: #cbd5e1 !important;
}

.category-block h3, .blog-block h3, .news-block h3, .tool-block h3, .course-block h3 {
  color: #ffffff !important;
}

/* Fix pricing content */
.pricing-features li {
  color: #cbd5e1 !important;
}

.pricing-features li:before {
  color: #22d3ee !important;
}

/* Fix hot content */
.hot-item p {
  color: #cbd5e1 !important;
}

.hot-meta {
  color: #cbd5e1 !important;
}

/* Fix team content */
.team-content p {
  color: #cbd5e1 !important;
}

.team-content h4 {
  color: #ffffff !important;
}

/* Fix AI content */
.ai-cta-content p {
  color: #cbd5e1 !important;
}

.suggestion-item span {
  color: #cbd5e1 !important;
}

/* AI Template Cards in Modal */
.ai-templates-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
}

.ai-template-card {
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-template-card:hover {
  background: rgba(34,211,238,0.15);
  border-color: rgba(34,211,238,0.5);
  transform: translateX(4px);
}

.ai-template-card h5 {
  margin: 0 0 4px 0;
  color: #22d3ee;
  font-size: 0.95rem;
  font-weight: 600;
}

.ai-template-card p {
  margin: 0 0 6px 0;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Fix news content */
.news-date {
  color: #cbd5e1 !important;
}

.news-stats .stat-item {
  color: #cbd5e1 !important;
}

/* Fix template content */
.template-use-case {
  color: #cbd5e1 !important;
}

.template-use-case strong {
  color: #22d3ee !important;
}

.template-downloads, .template-rating {
  color: #cbd5e1 !important;
}

.template-rating {
  color: #22d3ee !important;
}

/* Fix card stats */
.card-stats span {
  color: #cbd5e1 !important;
}

.card-stats .rating {
  color: #22d3ee !important;
}

/* Fix news badges */
.news-badge {
  color: #04121c !important;
}

/* Fix all remaining dark text */
[style*="color: #94a3b8"], [style*="color: #64748b"], [style*="color: #6b7280"] {
  color: #cbd5e1 !important;
}

/* Ensure all text is visible */
body, html {
  color: #e2e8f0 !important;
}

/* ENHANCED NEWS STYLES */
/* Featured News Grid */
.featured-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .featured-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .featured-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Featured News Card */
.featured-news-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.featured-news-card:hover {
  transform: translateY(-4px);
  border-color: #22d3ee;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.15);
}

.featured-news-image {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.featured-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-news-card:hover .featured-news-image img {
  transform: scale(1.05);
}

.featured-news-content {
  padding: 0.75rem;
}

.featured-news-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.5rem 0;
  line-height: 1.3;
}

.featured-news-desc {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.8rem 0;
}

/* News Grid Container */
.news-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* News Card */
.news-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
}

.news-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 1.2rem;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0.5rem 0;
  line-height: 1.3;
}

.news-desc {
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0.6rem 0;
}

/* News Meta */
.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.news-category {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-date {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* News Stats */
.news-stats {
  display: flex;
  gap: 1rem;
  margin: 0.8rem 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.news-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* News Tags */
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.news-tag {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* News Author */
.news-author {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* News Badge */
.news-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.news-badge.new {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
}

.news-badge.trending {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.news-badge.breaking {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
}

/* News Modal */
.news-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.news-modal-content {
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.news-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-modal-header h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin: 0;
}

.news-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.news-modal-close:hover {
  color: #ffffff;
}

.news-modal-body {
  padding: 0.75rem;
}

.news-modal-image {
  margin-bottom: 1.5rem;
}

.news-modal-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.news-modal-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.news-modal-meta span {
  color: #94a3b8;
  font-size: 0.9rem;
}

.news-short-desc {
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.news-long-desc {
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.news-modal-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}

/* No News State */
.no-news {
  text-align: center;
  padding: 3rem;
  color: #94a3b8;
}

.no-news h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

/* ULTRA COMPACT HERO STYLES */
.hero-ultra-compact {
  padding: 0.5rem 0 !important;
  background: linear-gradient(135deg, rgba(14,165,233,0.05), rgba(34,211,238,0.02));
  border-bottom: 1px solid rgba(34,211,238,0.1);
}

.hero-ultra-compact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero-ultra-compact-left {
  flex: 1;
}

.hero-ultra-compact-left h1 {
  margin: 0 0 0.3rem 0 !important;
  color: #ffffff !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.hero-ultra-compact-left p {
  margin: 0 !important;
  color: #cbd5e1 !important;
  font-size: 0.85rem !important;
  line-height: 1.3 !important;
}

.hero-ultra-compact-right {
  min-width: 400px;
}

.news-controls-inline {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.news-categories-inline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.news-categories-inline .category-btn {
  padding: 0.3rem 0.8rem !important;
  font-size: 0.75rem !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  transition: all 0.2s ease !important;
}

.news-categories-inline .category-btn:hover,
.news-categories-inline .category-btn.active {
  background: rgba(34, 211, 238, 0.1) !important;
  border-color: #22d3ee !important;
  color: #22d3ee !important;
}

.news-search-inline {
  display: flex;
  align-items: center;
}

.news-search-inline .search-input {
  width: 200px !important;
  padding: 0.4rem 0.8rem !important;
  font-size: 0.8rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  color: #e2e8f0 !important;
}

.news-search-inline .search-input::placeholder {
  color: #94a3b8 !important;
}

/* Fix news grid alignment - CENTER AND FULL WIDTH */
.news-grid {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
}

.news-grid-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 1.5rem !important;
  justify-content: center !important;
}

/* Force full width for news cards */
.news-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  flex: 1 !important;
}

/* Section header centering */
.section-header {
  text-align: center !important;
  width: 100% !important;
  margin: 0 auto 2rem auto !important;
}

.section-header h2 {
  text-align: center !important;
  width: 100% !important;
  margin: 0 auto 0.5rem auto !important;
}

.section-header p {
  text-align: center !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* Fix section container for news - ULTRA COMPACT */
.container.section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.5rem !important;
}

/* Ultra compact sections */
.section {
  padding: 0.25rem 0 !important;
  margin: 0 !important;
}

/* Remove excessive spacing between news sections */
.featured-news {
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
}

.news-grid {
  margin-top: 0 !important;
  padding: 0 !important;
}

/* Compact section headers */
.section-header {
  margin-bottom: 0.8rem !important;
  padding: 0 !important;
}

.section-header h2 {
  margin-bottom: 0.3rem !important;
}

.section-header p {
  margin: 0 !important;
}

/* UNIFIED PAGINATION STYLES */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  padding: 0;
  flex-wrap: wrap;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  font-weight: 500;
}

.pagination-btn:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: #22d3ee;
  color: #22d3ee;
  transform: translateY(-1px);
}

.pagination-btn.pagination-current {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  border-color: #22d3ee;
  font-weight: 600;
}

.pagination-btn.pagination-prev,
.pagination-btn.pagination-next {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.3);
  font-weight: 600;
}

.pagination-btn.pagination-prev:hover,
.pagination-btn.pagination-next:hover {
  background: rgba(34, 211, 238, 0.2);
  transform: translateY(-1px);
}

.pagination-ellipsis {
  color: #94a3b8;
  padding: 0.5rem 0.3rem;
  font-size: 0.85rem;
}

/* Compact pagination for mobile */
@media (max-width: 768px) {
  .pagination {
    gap: 0.3rem;
    margin: 1rem 0;
  }
  
  .pagination-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .pagination-ellipsis {
    padding: 0.4rem 0.2rem;
    font-size: 0.8rem;
  }
}

/* BLOG STYLES */
.featured-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0.5rem 0;
}

@media(min-width: 768px) {
  .featured-blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media(min-width: 1200px) {
  .featured-blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.featured-blog-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.75rem;
}

.featured-blog-card:hover {
  transform: translateY(-4px);
  border-color: #22d3ee;
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.2);
}

.featured-blog-image {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.featured-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-blog-content {
  padding: 0.75rem;
}

.featured-blog-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.featured-blog-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.featured-blog-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0.5rem 0;
}

@media(min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media(min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.blog-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
}

.blog-card-image {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-badges {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trending-badge, .featured-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.featured-badge {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
}

.blog-card-content {
  padding: 0.75rem 0.75rem 0 0.75rem;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.blog-card-desc {
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.blog-card-author {
  margin-bottom: 1rem;
}

.author-name {
  color: #22d3ee;
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-card-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Blog Styles - Minimalist like News */
.featured-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media(min-width: 768px) {
  .featured-blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media(min-width: 1200px) {
  .featured-blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.featured-blog-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.featured-blog-card:hover {
  transform: translateY(-2px);
  border-color: #22d3ee;
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.15);
}

.featured-blog-image {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.featured-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-blog-card:hover .featured-blog-image img {
  transform: scale(1.05);
}

.blog-badges {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trending-badge, .featured-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.trending-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.featured-badge {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
}

.featured-blog-content {
  padding: 0.5rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.blog-category {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.75rem;
}

.blog-date {
  color: #94a3b8;
  font-size: 0.75rem;
}

.featured-blog-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.featured-blog-desc {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.author-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
}

.author-title {
  color: #94a3b8;
  font-size: 0.7rem;
}

.blog-stats {
  display: flex;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Regular Blog Grid - Minimalist */
.blog-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: #22d3ee;
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.15);
}

.blog-image {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 0.5rem;
}

.blog-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-desc {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

/* Blog Practical Info */
.blog-practical-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.practical-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.practical-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.practical-text {
  color: #cbd5e1;
  line-height: 1.3;
}

/* Blog Controls */
.blog-controls-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.blog-categories-inline {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.blog-categories-inline .category-btn {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-categories-inline .category-btn:hover,
.blog-categories-inline .category-btn.active {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  border-color: transparent;
}

.blog-search-inline {
  flex: 1;
  min-width: 180px;
}

.blog-search-inline .search-input {
  width: 100%;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.8rem;
}

.blog-search-inline .search-input::placeholder {
  color: #94a3b8;
}

/* Pagination Styles - Like News */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
  text-align: center;
}

.pagination-btn:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  color: #ffffff;
}

.pagination-btn.pagination-current {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  border-color: transparent;
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.pagination-info {
  color: #cbd5e1;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
}

/* Floating AI Bot */
.ai-floating-bot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 300px;
  animation: aiBotPulse 2s infinite;
}

@keyframes aiBotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.ai-floating-bot:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(34, 211, 238, 0.4);
  animation: none;
}

/* Comment Modal Styles */
.comment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.comment-modal-content {
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.comment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-modal-header h3 {
  color: #e2e8f0;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.comment-modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.comment-modal-body {
  padding: 1.5rem;
}

.comment-form textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 1rem;
}

.comment-form textarea::placeholder {
  color: #94a3b8;
}

.comment-form textarea:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

.comment-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.comment-actions .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.comment-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.comment-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.comment-actions .btn-primary {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.comment-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
}

/* Mobile responsiveness for comment modal */
@media (max-width: 768px) {
  .comment-modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .comment-modal-header {
    padding: 1rem;
  }
  
  .comment-modal-body {
    padding: 1rem;
  }
  
  .comment-actions {
    flex-direction: column;
  }
  
  .comment-actions .btn {
    width: 100%;
  }
}

/* Floating Close Button for Blog */
.blog-floating-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-floating-close:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.blog-floating-close-icon {
  color: #e2e8f0;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.8;
}

.blog-floating-close:active {
  transform: scale(0.95);
}

/* Mobile responsiveness for blog floating close */
@media (max-width: 768px) {
  .blog-floating-close {
    width: 36px;
    height: 36px;
    top: 15px;
    right: 15px;
  }
  
  .blog-floating-close-icon {
    font-size: 1rem;
  }
}

/* Blog Modal Content - Fix small text */
.blog-modal-content {
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  color: #e2e8f0 !important;
  margin: 1.5rem 0 !important;
  padding: 1rem !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.blog-modal-content p {
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1rem !important;
  color: #e2e8f0 !important;
}

.blog-modal-content h1,
.blog-modal-content h2,
.blog-modal-content h3,
.blog-modal-content h4,
.blog-modal-content h5,
.blog-modal-content h6 {
  color: #ffffff !important;
  font-weight: 600 !important;
  margin: 1.5rem 0 1rem 0 !important;
}

.blog-modal-content h1 {
  font-size: 1.8rem !important;
}

.blog-modal-content h2 {
  font-size: 1.5rem !important;
}

.blog-modal-content h3 {
  font-size: 1.3rem !important;
}

.blog-modal-content ul,
.blog-modal-content ol {
  margin: 1rem 0 !important;
  padding-left: 2rem !important;
}

.blog-modal-content li {
  margin-bottom: 0.5rem !important;
  color: #e2e8f0 !important;
}

.blog-modal-content strong {
  color: #22d3ee !important;
  font-weight: 600 !important;
}

.blog-modal-content h2 {
  border-bottom: 2px solid rgba(34, 211, 238, 0.3) !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* Blog Modal Actions */
.blog-modal-actions {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.blog-modal-actions .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  flex: 1;
  min-width: 150px;
}

.blog-modal-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-modal-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.blog-modal-actions .btn-primary {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.blog-modal-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
}

/* Comments Modal */
.comments-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.comments-modal-content {
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.comments-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-modal-header h3 {
  color: #e2e8f0;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.comments-modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comments-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.comments-modal-body {
  padding: 1.5rem;
}

.comments-list {
  margin-bottom: 2rem;
}

.comment-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.comment-author {
  color: #22d3ee;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.comment-text {
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.comment-time {
  color: #94a3b8;
  font-size: 0.8rem;
}

.no-comments {
  text-align: center;
  color: #94a3b8;
  font-style: italic;
  padding: 2rem;
}

.add-comment-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.add-comment-section h4 {
  color: #e2e8f0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.add-comment-section textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 1rem;
}

.add-comment-section textarea::placeholder {
  color: #94a3b8;
}

.add-comment-section textarea:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

/* Mobile responsiveness for comments modal */
@media (max-width: 768px) {
  .comments-modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .comments-modal-header {
    padding: 1rem;
  }
  
  .comments-modal-body {
    padding: 1rem;
  }
  
  .blog-modal-actions {
    flex-direction: column;
  }
  
  .blog-modal-actions .btn {
    width: 100%;
  }
}

.ai-bot-avatar {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ai-bot-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ai-bot-title {
  color: #04121c;
  font-weight: 600;
  font-size: 0.9rem;
}

.ai-bot-desc {
  color: #04121c;
  font-size: 0.8rem;
  line-height: 1.3;
  opacity: 0.8;
}

.ai-bot-btn {
  background: rgba(4, 18, 28, 0.1);
  color: #04121c;
  border: 1px solid rgba(4, 18, 28, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ai-bot-btn:hover {
  background: rgba(4, 18, 28, 0.2);
  transform: translateY(-1px);
}

.ai-bot-close {
  background: rgba(4, 18, 28, 0.1);
  color: #04121c;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-bot-close:hover {
  background: rgba(4, 18, 28, 0.2);
}

/* AI Assistant Modal */
.ai-assistant-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.ai-assistant-content {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

@media (max-width: 768px) {
  .ai-assistant-modal {
    padding: 0.5rem;
    align-items: flex-start;
    padding-top: 2rem;
  }
  
  .ai-assistant-content {
    padding: 1rem;
    max-height: 95vh;
    border-radius: 12px;
  }
  
  .ai-assistant-header {
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }
  
  .ai-assistant-title {
    font-size: 1.2rem !important;
  }
  
  .ai-assistant-subtitle {
    font-size: 0.85rem !important;
  }
}

.ai-assistant-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.ai-assistant-avatar {
  font-size: 2rem;
  flex-shrink: 0;
}

.ai-assistant-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
}

.ai-assistant-subtitle {
  color: #cbd5e1;
  font-size: 1rem;
}

.ai-assistant-close {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-assistant-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ai-assistant-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.ai-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ai-feature:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.ai-feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ai-feature-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.ai-feature-desc {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.3;
}

.ai-consultation-options h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

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

.consultation-btn {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #22d3ee;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.consultation-btn:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: #22d3ee;
  transform: translateY(-2px);
}

.consultation-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.consultation-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.consultation-desc {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Blog Card Actions */
.blog-card-actions {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-action:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.2);
}

.like-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.like-btn:active {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(0.95);
}

.comment-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.comment-btn:active {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(0.95);
}

.share-btn:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.share-btn:active {
  background: rgba(34, 197, 94, 0.2);
  transform: scale(0.95);
}

.action-icon {
  font-size: 0.9rem;
}

.action-text {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Mobile responsive for AI bot */
@media (max-width: 768px) {
  .ai-floating-bot {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    padding: 0.5rem 0.75rem;
  }
  
  .ai-bot-text {
    gap: 0.2rem;
  }
  
  .ai-bot-title {
    font-size: 0.85rem;
  }
  
  .ai-bot-desc {
    font-size: 0.75rem;
  }
  
  .ai-assistant-content {
    padding: 1rem;
    margin: 1rem;
  }
  
  .ai-assistant-features {
    grid-template-columns: 1fr;
  }
  
  .consultation-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-card-actions {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .btn-action {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
}

/* Floating Close Button for News */
.news-floating-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(239, 68, 68, 0.9);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  backdrop-filter: blur(10px);
}

/* Floating Close Button for Blog */
.blog-floating-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(239, 68, 68, 0.9);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  backdrop-filter: blur(10px);
}

.news-floating-close:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.blog-floating-close:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.news-floating-close-icon {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.blog-floating-close-icon {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.news-floating-close:active {
  transform: scale(0.95);
}

.blog-floating-close:active {
  transform: scale(0.95);
}


/* Floating Message Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Mobile responsive for floating close */
@media (max-width: 768px) {
  .news-floating-close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .news-floating-close-icon {
    font-size: 1.3rem;
  }
  
  .blog-floating-close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .blog-floating-close-icon {
    font-size: 1.3rem;
  }
  
}

/* Floating AI Bot */
.ai-floating-bot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.ai-floating-bot:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
}

.ai-bot-avatar {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ai-bot-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ai-bot-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

.ai-bot-desc {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.3;
}

.ai-bot-btn {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ai-bot-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.ai-icon {
  font-size: 1.1rem;
}

.ai-desc {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.ai-assistant-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  border-radius: 6px !important;
}

.btn-icon {
  margin-right: 0.5rem;
}

/* AI Assistant Modal */
.ai-assistant-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.ai-modal-content {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 16px;
  padding: 0;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ai-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-modal-header h3 {
  margin: 0;
  color: #22d3ee;
  font-size: 1.25rem;
  font-weight: 600;
}

.ai-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  margin: 0;
  display: inline-block;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.ai-close-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

.ai-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.ai-chat-container {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding-right: 0.5rem;
}

.ai-message, .user-message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.user-message {
  flex-direction: row-reverse;
}

.ai-avatar, .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: rgba(34, 211, 238, 0.2);
}

.user-avatar {
  background: rgba(59, 130, 246, 0.2);
}

.ai-text, .user-text {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.user-text {
  background: rgba(59, 130, 246, 0.1);
  text-align: right;
}

.ai-text p, .user-text p {
  margin: 0;
}

.ai-input-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ai-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.ai-input:focus {
  border-color: #22d3ee;
  background: rgba(255, 255, 255, 0.08);
}

.ai-input::placeholder {
  color: #94a3b8;
}

.ai-send-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.ai-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.4);
}

.ai-examples {
  margin-top: 1rem;
}

.ai-examples p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.ai-example-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ai-example-btn {
  padding: 0.6rem 1rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 6px;
  color: #22d3ee;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.ai-example-btn:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: #22d3ee;
  transform: translateX(4px);
}

.ai-response-intro {
  margin-bottom: 0.75rem;
}

.ai-response-intro p {
  color: #22d3ee;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.ai-business-advice {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(34, 211, 238, 0.1);
  border-left: 3px solid #22d3ee;
  border-radius: 4px;
}

.ai-business-advice p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.ai-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.suggestion-item {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.suggestion-item strong {
  color: #f8fafc;
  font-weight: 600;
}

.suggestion-item span {
  color: #94a3b8;
  font-size: 0.8rem;
}

.ai-assistant-content {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.ai-assistant-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-assistant-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.ai-assistant-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.ai-assistant-subtitle {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin: 0;
}

.ai-assistant-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.ai-assistant-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ai-assistant-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.ai-feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
}

.ai-feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.ai-feature-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ai-feature-desc {
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.4;
}

.ai-assistant-cta {
  text-align: center;
  padding: 0.75rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 8px;
}

.ai-cta-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ai-cta-desc {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.ai-cta-button {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

/* AI Consultation Options */
.ai-consultation-options {
  margin: 2rem 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.ai-consultation-options h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

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

.consultation-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: #ffffff;
}

.consultation-btn:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
}

.consultation-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.consultation-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.consultation-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Ultra Compact Blog Hero */
.hero-ultra-compact {
  padding: 0.25rem 0 !important;
  margin-bottom: 0.25rem !important;
  background: transparent;
}

.hero-ultra-compact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-ultra-compact-left {
  flex: 1;
  min-width: 300px;
}

.hero-ultra-compact-left h1 {
  font-size: 1.4rem !important;
  margin-bottom: 0.4rem !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
}

.hero-ultra-compact-left p {
  font-size: 0.85rem !important;
  margin-bottom: 0 !important;
  line-height: 1.3 !important;
  color: #cbd5e1 !important;
}

.hero-ultra-compact-right {
  flex-shrink: 0;
}

.ai-assistant-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-bot-btn {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ai-bot-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(34, 211, 238, 0.3);
}

.ai-bot-avatar {
  font-size: 0.9rem;
}

/* UNIVERSAL PAGINATION STYLES - For all pages with cards */
.universal-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.universal-pagination-info {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-right: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.universal-pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.universal-pagination-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  min-width: 40px;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.universal-pagination-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.universal-pagination-btn:hover::before {
  left: 100%;
}

.universal-pagination-btn:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.3);
  color: #22d3ee;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
}

.universal-pagination-btn.universal-pagination-current {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  border-color: rgba(34, 211, 238, 0.3);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
}

.universal-pagination-btn.universal-pagination-prev,
.universal-pagination-btn.universal-pagination-next {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.3);
  font-weight: 600;
}

.universal-pagination-btn.universal-pagination-prev:hover,
.universal-pagination-btn.universal-pagination-next:hover {
  background: rgba(34, 211, 238, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
}

.universal-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.universal-pagination-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  transform: none;
  box-shadow: none;
}

.universal-pagination-ellipsis {
  color: #94a3b8;
  padding: 0.6rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mobile responsiveness for universal pagination */
@media (max-width: 768px) {
  .universal-pagination {
    gap: 0.3rem;
    margin: 1.5rem 0;
  }
  
  .universal-pagination-info {
    margin-right: 0.5rem;
    font-size: 0.8rem;
  }
  
  .universal-pagination-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    min-width: 35px;
  }
  
  .universal-pagination-btn.universal-pagination-prev,
  .universal-pagination-btn.universal-pagination-next {
    padding: 0.5rem 0.6rem;
  }
  
  .universal-pagination-ellipsis {
    padding: 0.5rem 0.3rem;
    font-size: 0.8rem;
  }
}

/* Blog Service Info */
.blog-service-info {
  margin-bottom: 0.25rem;
  background: transparent;
}

.service-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.service-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.service-info-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.service-content h3 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.service-content p {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .featured-blog-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .featured-blog-card,
  .blog-card {
    margin: 0 0.5rem;
  }
  
  .blog-hero-compact-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .blog-hero-left {
    min-width: auto;
  }
  
  .ai-assistant-mini {
    justify-content: center;
  }
  
  .ai-assistant-modal {
    padding: 0.5rem;
  }
  
  .ai-assistant-content {
    padding: 0.75rem;
  }
  
  .ai-assistant-features {
    grid-template-columns: 1fr;
  }
  
  .featured-blog-grid,
  .blog-grid-container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .featured-blog-image,
  .blog-image {
    height: 120px;
  }
  
  .featured-blog-content,
  .blog-content {
    padding: 0.75rem;
  }
  
  .featured-blog-title,
  .blog-title {
    font-size: 0.9rem;
  }
  
  .featured-blog-desc,
  .blog-desc {
    font-size: 0.75rem;
  }
  
  .blog-controls-inline {
    flex-direction: column;
    align-items: stretch;
  }
  
  .blog-categories-inline {
    justify-content: center;
  }
  
  .blog-search-inline {
    min-width: auto;
  }
  
  .hero-ultra-compact {
    padding: 0.5rem 0 !important;
  }
  
  .hero-ultra-compact-content {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-ultra-compact-left h1 {
    font-size: 1.2rem !important;
  }
  
  .hero-ultra-compact-left p {
    font-size: 0.8rem !important;
  }
  
  .blog-controls-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .blog-categories-inline {
    justify-content: center;
  }
  
  .blog-search-inline {
    min-width: auto;
  }
  
  .ai-assistant-mini {
    justify-content: center;
  }
  
  .service-info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .service-info-item {
    padding: 0.75rem;
  }
  
  .consultation-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .consultation-btn {
    padding: 0.5rem;
  }
  
  .ai-consultation-options {
    padding: 0.5rem;
  }
}

/* Ensure news grid takes full width */
#newsGrid {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-ultra-compact-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .hero-ultra-compact-right {
    min-width: auto;
    width: 100%;
  }
  
  .news-categories-inline {
    justify-content: center;
  }
  
  .news-search-inline {
    justify-content: center;
  }
  
  .news-search-inline .search-input {
    width: 100% !important;
  }
  
  .featured-news-grid,
  .news-grid-container {
    grid-template-columns: 1fr;
  }
  
  .news-modal-content {
    margin: 0.5rem;
    max-height: 95vh;
  }
  
  .news-modal-header h2 {
    font-size: 1rem;
  }
  
  .news-modal-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .news-modal-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* Full-width layout - NO SIDEBARS, use all space */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.main-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
}

.sidebar {
  display: none; /* Hide sidebars to save space */
}

/* Hero section - horizontal layout to save vertical space - FULL WIDTH */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 0.75rem 0 !important;
  margin-bottom: 0.75rem !important;
  width: 100%;
  max-width: 100%;
}

.hero > div:first-child {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  font-size: 1.75rem !important;
  margin-bottom: 0.4rem !important;
  text-align: left;
  line-height: 1.2;
}

.hero .lead {
  font-size: 0.95rem !important;
  margin-bottom: 0.6rem !important;
  text-align: left;
  line-height: 1.4;
  max-width: 100% !important;
}

.hero .cta-section {
  justify-content: flex-start;
  margin-top: 0.6rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* AI widget inline with hero */
.ai-compact-widget {
  min-width: 220px;
  max-width: 280px;
  margin: 0 !important;
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  
  .hero > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  .hero > div[style*="grid-template-columns"] > div:first-child {
    text-align: center;
  }
  
  .hero h1, .hero .lead {
    text-align: center;
  }
  
  .hero .cta-section {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .ai-compact-widget {
    margin: 0.5rem auto 0 auto !important;
  }
}

.container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 1rem !important;
}

/* Sections use full width */
.section {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0 !important;
  margin-bottom: 0.5rem !important;
}

.section h2 {
  margin-bottom: 0.5rem !important;
}

.section .lead {
  margin-bottom: 0.75rem !important;
}
/* Header - ASUS Store Style */
.header {
  background: #000000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure header container is visible */
#header-container {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
}

/* Top Navigation Bar */
.header-top {
  background: #111111;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.5rem 0;
}

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

.top-info {
  display: flex;
  gap: 2rem;
}

.info-item {
  color: #22d3ee;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.header-hours {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Main Header */
.header-main {
  padding: 0.3rem 0;
  background: #000000;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.header-brand:hover {
  opacity: 0.8;
}

.header-brand .logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-style: italic;
  transform: skew(-3deg);
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.header-community {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.community-item {
  display: flex;
  align-items: center;
}

.community-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #cbd5e1;
  transition: all 0.3s ease;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.2);
}

.community-link:hover {
  color: #22d3ee;
  background: rgba(34,211,238,0.2);
  border-color: rgba(34,211,238,0.4);
  transform: translateY(-1px);
}

.community-icon {
  font-size: 1rem;
}

.community-text {
  font-weight: 600;
  font-size: 0.85rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: flex-end;
}

/* Language Switcher in Header */
.header-lang {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.2rem;
  border: 1px solid rgba(255,255,255,0.1);
  margin-left: 0.5rem;
}

.header-lang .lang-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  min-width: 1.8rem;
  text-align: center;
  display: inline-block;
  position: relative;
}

.header-lang .lang-link:hover {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(34, 211, 238, 0.2);
}

.header-lang .lang-link.active,
.header-lang .lang-link.active-language {
  color: #ffffff;
  background: #0ea5e9 !important;
  border: 2px solid #0ea5e9 !important;
  font-weight: bold !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  transform: translateY(-1px);
}

/* Active language highlighting - universal style for all pages */
.lang-link.active-language,
[data-language].active-language {
  background: #0ea5e9 !important;
  color: white !important;
  font-weight: bold !important;
  border: 2px solid #0ea5e9 !important;
}

/* Language Switcher in Footer */
.footer-lang {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-lang .lang-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  min-width: 1.8rem;
  text-align: center;
  display: inline-block;
  position: relative;
}

.footer-lang .lang-link:hover {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(34, 211, 238, 0.2);
}

.footer-lang .lang-link.active,
.footer-lang .lang-link.active-language {
  color: #ffffff;
  background: #0ea5e9 !important;
  border: 2px solid #0ea5e9 !important;
  font-weight: bold !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  transform: translateY(-1px);
}

.footer-lang .lang-label {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.btn-premium {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #000000;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-premium:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transform: translateY(-1px);
}

/* Outline Button */
.btn-outline {
  color: #22d3ee;
  border: 1px solid #22d3ee;
  background: transparent;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-outline:hover {
  background: #22d3ee;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34,211,238,0.3);
}

.header-icons {
  display: flex;
  gap: 1rem;
}

.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #cbd5e1;
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
}

.icon-link:hover {
  color: #22d3ee;
}

.icon-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
}

.icon-link span {
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* Bottom Navigation */
.header-bottom {
  background: #111111;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 0.8rem 0;
}

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

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 2rem;
  height: 3px;
  background: #22d3ee;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #22d3ee;
}

.header-search {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  border-radius: 6px;
  padding: 0.3rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  width: 200px;
  outline: none;
}

.search-input::placeholder {
  color: #64748b;
}

.search-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.3rem;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.search-btn:hover {
  color: #22d3ee;
}

/* Footer - Header Style */
.footer {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4rem;
}

/* Footer Top */
.footer-top {
  background: #111111;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
}

.footer-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: #22d3ee;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer Main */
.footer-main {
  padding: 2rem 0;
  background: #000000;
}

.footer-main .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.footer-brand .logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px;
}

.footer-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand .brand-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-brand .brand-subtitle {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-style: italic;
  transform: skew(-3deg);
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex: 1;
}

.footer-section h4 {
  color: #22d3ee;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #22d3ee;
}

/* Footer Team Section */
.footer-team {
  background: #1a1a1a;
  padding: 60px 0;
  border-top: 1px solid #3a3a3a;
  border-bottom: 1px solid #3a3a3a;
}

.team-header {
  text-align: center;
  margin-bottom: 40px;
}

.team-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.team-header p {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
  background: #2d2d2d;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.team-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.team-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.team-content p {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Footer Bottom */
.footer-bottom {
  background: #111111;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
}

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

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #22d3ee;
}

.footer-copyright {
  color: #94a3b8;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Hot Content Section */
.hot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 100%;
}

.hot-news, .hot-templates {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hot-news:hover, .hot-templates:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.hot-news h3, .hot-templates h3 {
  color: #22d3ee;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hot-item {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  transition: all 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-decoration: none;
}

/* Аккуратные звездочки для новостей */
.hot-news .hot-item::before {
  content: '⭐';
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.hot-news .hot-item:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* Звездочки для решений (уже есть в заголовке, но можно добавить акцент) */
.hot-templates .hot-item::before {
  content: '✨';
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.hot-templates .hot-item:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.hot-item:hover {
  background: rgba(0,0,0,0.5);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
  transform: translateY(-4px);
  text-decoration: none;
}

.hot-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hot-item h4 {
  color: #ffffff;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  padding-right: 4rem;
  padding-left: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  list-style-type: none;
  transition: color 0.3s ease;
}

.hot-item:hover h4 {
  color: #93c5fd;
}

/* Звездочки теперь отображаются через ::before для .hot-news и .hot-templates */
.hot-item h4::before,
.hot-item h4::after {
  content: none;
  display: none;
}

.hot-item * {
  list-style: none;
}

.hot-item p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin: 0 0 0.8rem 0;
  line-height: 1.4;
}

.hot-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.hot-time, .hot-views, .hot-downloads, .hot-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hot-rating {
  color: #fbbf24;
  font-weight: 600;
}
/* Legacy button styles - now handled by unified .btn system above */
section{scroll-margin-top:78px}
.section{padding:1.5rem 0}
h1{
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.3rem 0;
  color: #ffffff;
}

h2{
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0.3rem 0;
  color: #ffffff;
}

h3{
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0.2rem 0;
  color: #ffffff;
}
.lead{color:#cbd5e1;font-size:1rem;max-width:960px;margin:.1rem 0;font-weight:500;letter-spacing:0.02em;text-shadow:0 1px 3px rgba(0,0,0,0.3)}
.small{color:var(--muted);font-size:.94rem}
.card{border:1px solid rgba(255, 255, 255, 0.1);background:rgba(255, 255, 255, 0.03);backdrop-filter:blur(10px);border-radius:var(--radius);padding:0.6rem;box-shadow:0 8px 25px rgba(2,6,23,.25);transition:all 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease}
.card:hover{border-color:rgba(59, 130, 246, 0.6);transform:translateY(-4px);box-shadow:0 15px 40px rgba(59, 130, 246, 0.25)}
.card h3{
  margin: 0.1rem 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.clickable-card{display:block;text-decoration:none;color:inherit}
.clickable-card:hover{text-decoration:none;color:inherit}
.clickable-card h3{color:var(--text);transition:color 0.2s ease}
.clickable-card:hover h3{color:var(--brand1)}
.section-cta{text-align:center;margin-top:1rem}
.section-cta a{color:var(--brand1);text-decoration:none;font-weight:600;transition:all 0.2s ease;display:inline-flex;align-items:center;gap:0.5rem}
.section-cta a:hover{color:var(--text);transform:translateX(4px)}
.card-stats{display:flex;justify-content:space-between;align-items:center;margin:0.5rem 0;padding-top:0.5rem;border-top:1px solid var(--line)}
.card-stats span{color:var(--muted);font-size:0.85rem}
.card-stats .rating{color:var(--brand1);font-weight:600}
.card-price{text-align:center;font-weight:700;font-size:1.1rem;color:var(--brand1);margin-top:0.5rem;padding:0.3rem 0.8rem;background:rgba(34,211,238,0.1);border-radius:6px;border:1px solid rgba(34,211,238,0.2)}
.active-filter{display:flex;align-items:center;justify-content:space-between;background:rgba(34,211,238,0.1);border:1px solid rgba(34,211,238,0.3);border-radius:8px;padding:0.8rem 1rem;margin-top:1rem;color:var(--brand1);font-weight:600}
.clear-filter-btn{background:none;border:none;color:var(--brand1);font-size:1.2rem;cursor:pointer;padding:0.2rem 0.5rem;border-radius:4px;transition:all 0.2s ease}
.clear-filter-btn:hover{background:rgba(34,211,238,0.2);transform:scale(1.1)}
.card-dots{text-align:center;color:var(--brand1);font-size:1.2rem;margin-top:0.5rem;font-weight:bold}
.news-date{color:var(--muted);font-size:0.8rem;margin-bottom:0.5rem;font-weight:500}
.news-block{min-height:120px;display:flex;flex-direction:column;justify-content:space-between}
.news-block h3{font-size:1rem;line-height:1.3;margin-bottom:0.5rem}
.news-block p{font-size:0.85rem;line-height:1.4;margin-bottom:0.5rem}
.pricing-badge{background:rgba(34,211,238,0.1);color:var(--brand1);padding:0.2rem 0.6rem;border-radius:12px;font-size:0.8rem;font-weight:600;display:inline-block;margin-bottom:0.5rem}
.pricing-price{font-size:1.8rem;font-weight:700;color:var(--brand1);margin:0.5rem 0}
.pricing-features{list-style:none;padding:0;margin:1rem 0}
.pricing-features li{padding:0.3rem 0;color:var(--muted);font-size:0.9rem;position:relative;padding-left:1rem}
.pricing-features li:before{content:"•";color:var(--brand1);position:absolute;left:0}
.templates-categories{display:grid;gap:1rem;grid-template-columns:1fr}
.blog-posts{display:grid;gap:1rem;grid-template-columns:1fr}
.news-items{display:grid;gap:1rem;grid-template-columns:1fr}
.tools-categories{display:grid;gap:1rem;grid-template-columns:1fr}
.courses-categories{display:grid;gap:1rem;grid-template-columns:1fr}
.templates-grid{display:grid;gap:1.5rem;grid-template-columns:1fr}
.template-card{background:rgba(255, 255, 255, 0.03);backdrop-filter:blur(10px);border:1px solid rgba(255, 255, 255, 0.1);border-radius:12px;padding:1.5rem;transition:all 0.2s ease}
.template-card:hover{border-color:var(--brand1);transform:translateY(-4px);box-shadow:0 12px 30px rgba(34,211,238,0.15)}

/* News Page Styles */
.news-section{margin-bottom:2.5rem}
.section-header{margin-bottom:1.5rem;text-align:center}
.section-header h2{color:var(--text);font-size:2rem;font-weight:700;margin:0 0 0.5rem 0}
.section-subtitle{color:var(--muted);font-size:1.1rem;margin:0}

.news-grid-global,.news-grid-industry{display:grid;gap:1rem;grid-template-columns:1fr}

.news-controls{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;margin-bottom:1.5rem;flex-wrap:wrap}
.news-categories{display:flex;gap:0.5rem;flex-wrap:wrap}
.category-btn {
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.category-btn:hover::before {
  left: 100%;
}

.category-btn:hover {
  background: rgba(34,211,238,0.15);
  border-color: rgba(34,211,238,0.3);
  color: var(--brand1);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(34,211,238,0.2);
}

.category-btn.active {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  border-color: rgba(34,211,238,0.3);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(34,211,238,0.3);
}
.news-search{flex:1;max-width:300px}
.news-search .search-input{width:100%;padding:0.8rem 1rem;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);border-radius:12px;color:var(--text);font-size:0.9rem}
.news-search .search-input:focus{outline:none;border-color:var(--brand1);background:rgba(34,211,238,0.05)}

/* News Hero - Compact */
.news-hero {
  padding: 1.5rem 0;
  background: linear-gradient(135deg, rgba(34,211,238,0.1), rgba(14,165,233,0.05));
  border-bottom: 1px solid var(--line);
}

.news-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.news-hero h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Featured News */
.featured-news {
  margin-bottom: 2rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.featured-card:hover {
  border-color: var(--brand1);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(34,211,238,0.2);
}

.featured-image {
  position: relative;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: #04121c;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.featured-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.featured-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.featured-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* News Grid - Modern Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.news-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  border-color: var(--brand1);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(34,211,238,0.15);
}

.news-image {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-badge.breaking {
  background: rgba(239,68,68,0.9);
  color: white;
}

.news-badge.trending {
  background: rgba(34,197,94,0.9);
  color: white;
}

.news-badge.updates {
  background: rgba(34,211,238,0.9);
  color: #04121c;
}

.news-badge.insights {
  background: rgba(168,85,247,0.9);
  color: white;
}

.news-content {
  padding: 0.75rem;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.news-date {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.news-source {
  background: rgba(34,211,238,0.1);
  color: var(--brand1);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.news-desc {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.news-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.news-stats .stat-item {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-hero h1 {
    font-size: 1.4rem;
  }
  
  .featured-title {
    font-size: 1.3rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 1.5rem 0;
  }
  
  .hero-compact {
    padding: 0.8rem 0;
  }
  
  .hero-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .search-filters-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filters-row {
    justify-content: center;
  }
  
  .templates-grid-compact {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  
  .cta-section {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
  }
  
  .cta-section .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* Header Mobile Optimization */
  .header-top {
    display: none;
  }
  
  .header-main {
    padding: 0.5rem 0;
  }
  
  .header-main .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
  }
  
  .header-brand {
    order: 1;
    flex: 0 0 auto;
    gap: 0.6rem;
  }
  
  .header-brand .logo {
    width: 45px;
    height: 45px;
    padding: 5px;
  }
  
  .brand-title {
    font-size: 1.4rem;
    line-height: 1.1;
  }
  
  .brand-subtitle {
    font-size: 0.8rem;
    transform: skew(-2deg);
    margin-top: 0.1rem;
  }
  
  .top-info {
    display: none;
  }
  
  .header-community {
    order: 3;
    flex-direction: row;
    gap: 0.4rem;
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
  }
  
  .community-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    gap: 0.3rem;
  }
  
  .community-icon {
    font-size: 0.9rem;
  }
  
  .community-text {
    font-size: 0.75rem;
  }
  
  .header-actions {
    order: 2;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
  }
  
  .btn-premium {
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  
  .header-icons {
    gap: 0.5rem;
  }
  
  .icon-link {
    min-width: 2.2rem;
  }
  
  .icon-link span {
    font-size: 0.7rem;
    margin-top: 0.2rem;
  }
  
  .icon-badge {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    top: -3px;
    right: -3px;
  }
  
  .header-lang {
    margin-left: 0;
    order: 2;
    gap: 0.1rem;
    padding: 0.1rem;
  }
  
  .header-lang .lang-link {
    font-size: 0.65rem;
    padding: 0.2rem 0.35rem;
    min-width: 1.5rem;
  }
  
  .header-bottom {
    padding: 0.6rem 0;
  }
  
  .header-bottom .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    position: relative;
  }
  
  .mobile-menu-toggle {
    display: flex;
    order: 1;
    width: 1.8rem;
    height: 1.8rem;
  }
  
  .mobile-menu-toggle span {
    width: 1.8rem;
    height: 2.5px;
  }
  
  .header-search {
    order: 2;
    flex: 1;
    max-width: calc(100% - 2.5rem);
    min-width: 0;
  }
  
  .search-input {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  
  .search-btn {
    padding: 0.25rem;
    font-size: 0.9rem;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  
  .main-nav.mobile-nav-open {
    left: 0;
  }
  
  .main-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    width: 100%;
    display: block;
  }
  
  .main-nav .nav-link:hover,
  .main-nav .nav-link.active {
    background: rgba(34, 211, 238, 0.1);
    border-left: 3px solid #22d3ee;
    padding-left: calc(1rem - 3px);
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }
  
  .header-search {
    width: 100%;
    max-width: 300px;
  }
  
  .search-input {
    width: 100%;
  }
}

/* Small Mobile Optimization (up to 480px) */
@media (max-width: 480px) {
  .header-main {
    padding: 0.4rem 0;
  }
  
  .header-main .container {
    gap: 0.5rem;
  }
  
  .header-brand {
    gap: 0.5rem;
  }
  
  .header-brand .logo {
    width: 40px;
    height: 40px;
    padding: 4px;
  }
  
  .brand-title {
    font-size: 1.2rem;
  }
  
  .brand-subtitle {
    font-size: 0.7rem;
    margin-top: 0;
  }
  
  .header-community {
    gap: 0.3rem;
    margin-top: 0.2rem;
  }
  
  .community-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .community-icon {
    font-size: 0.8rem;
  }
  
  .community-text {
    font-size: 0.7rem;
  }
  
  .header-actions {
    gap: 0.4rem;
  }
  
  .btn-premium {
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
  }
  
  .header-icons {
    gap: 0.4rem;
  }
  
  .icon-link {
    min-width: 2rem;
  }
  
  .icon-link span {
    font-size: 0.65rem;
    display: none; /* Hide text on very small screens */
  }
  
  .icon-badge {
    width: 14px;
    height: 14px;
    font-size: 0.6rem;
  }
  
  .header-lang {
    gap: 0.08rem;
    padding: 0.08rem;
  }
  
  .header-lang .lang-link {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
    min-width: 1.4rem;
  }
  
  .header-bottom {
    padding: 0.5rem 0;
  }
  
  .header-bottom .container {
    gap: 0.5rem;
  }
  
  .mobile-menu-toggle {
    width: 1.6rem;
    height: 1.6rem;
  }
  
  .mobile-menu-toggle span {
    width: 1.6rem;
    height: 2px;
  }
  
  .header-search {
    max-width: calc(100% - 2rem);
  }
  
  .search-input {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
  }
  
  .search-btn {
    padding: 0.2rem;
    font-size: 0.85rem;
  }
  
  .main-nav {
    width: 85%;
    max-width: 280px;
    padding: 4rem 1.5rem 2rem;
  }
  
  .main-nav .nav-link {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }
  
  /* Hide community text on very small screens */
  .community-link .community-text {
    display: none;
  }
  
  /* Hot Content Mobile */
  .hot-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hot-news, .hot-templates {
    padding: 0.75rem;
  }
  
  .hot-item {
    padding: 1rem;
  }
  
  .hot-item h4 {
    font-size: 0.95rem;
    padding-right: 3rem;
  }
  
  .hot-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
  
  .hot-item p {
    font-size: 0.85rem;
  }
  
  /* Footer Mobile */
  .footer-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 1rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }

  /* Footer Team Mobile */
  .footer-team {
    padding: 40px 0;
  }

  .team-header h3 {
    font-size: 1.5rem;
  }

  .team-header p {
    font-size: 1rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .team-item {
    padding: 0.5rem;
  }

  .team-icon {
    font-size: 2rem;
  }

  .team-content h4 {
    font-size: 1.125rem;
  }

  .team-content p {
    font-size: 0.8rem;
  }
  
  .footer-main .container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-brand {
    justify-content: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-copyright {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
    gap: 1rem;
  }
}

/* Tablet Optimization (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .brand-title {
    font-size: 1.6rem;
  }
  
  .brand-subtitle {
    font-size: 0.95rem;
    transform: skew(-2.5deg);
  }
  
  .header-main .container {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  
  .header-brand .logo {
    width: 55px;
    height: 55px;
  }
  
  .header-community {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .community-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }
  
  .header-actions {
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .header-lang {
    gap: 0.15rem;
    padding: 0.15rem;
  }
  
  .header-lang .lang-link {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
    min-width: 1.6rem;
  }
  
  .btn-premium {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .icon-link {
    min-width: 2.5rem;
  }
  
  .icon-link span {
    font-size: 0.75rem;
  }
  
  .header-search {
    max-width: 180px;
  }
  
  .search-input {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
  }
  
  .main-nav {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
  
  .top-info {
    gap: 1.5rem;
  }
  
  .info-item {
    font-size: 0.75rem;
  }
  
  .header-hours {
    font-size: 0.75rem;
  }
  
  /* Content optimization for tablets */
  .container {
    padding: 0 1.5rem !important;
  }
  
  .section {
    padding: 1rem 0 !important;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .lead {
    font-size: 1rem;
  }
  
  .content-blocks {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .grid2 {
    grid-template-columns: 1fr;
  }
  
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .templates-categories,
  .blog-posts,
  .news-items,
  .tools-categories,
  .courses-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width:768px){
  .news-grid-global,.news-grid-industry{grid-template-columns:repeat(2,1fr)}
  .news-controls{flex-direction:row;justify-content:space-between}
}
@media(min-width:1200px){
  .news-grid-global,.news-grid-industry{grid-template-columns:repeat(3,1fr)}
}
.category-block,.blog-block,.news-block,.tool-block,.course-block{display:block;text-decoration:none;color:inherit;padding:1.5rem;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);border-radius:12px;transition:all 0.2s ease;backdrop-filter:blur(10px)}
.category-block:hover,.blog-block:hover,.news-block:hover,.tool-block:hover,.course-block:hover{text-decoration:none;color:inherit;border-color:var(--brand1);transform:translateY(-2px);box-shadow:0 8px 25px rgba(34,211,238,0.15);background:rgba(255,255,255,0.08)}
.category-block h3,.blog-block h3,.news-block h3,.tool-block h3,.course-block h3{color:var(--text);transition:color 0.2s ease;margin:0 0 0.5rem 0;font-size:1.1rem}
.category-block:hover h3,.blog-block:hover h3,.news-block:hover h3,.tool-block:hover h3,.course-block:hover h3{color:var(--brand1)}
.category-block p,.blog-block p,.news-block p,.tool-block p,.course-block p{color:var(--muted);margin:0;font-size:0.9rem}
.block-title{display:block;color:var(--text);text-decoration:none;font-size:1.1rem;font-weight:600;margin:0 0 0.5rem 0;transition:color 0.2s ease;cursor:pointer}
.block-title:hover{color:var(--brand1);text-decoration:none}
.block-title:active{color:var(--brand1);transform:scale(0.98)}
.block-dots{position:absolute;top:1rem;right:1rem;color:var(--muted);font-size:1.2rem;cursor:pointer;transition:color 0.2s ease;z-index:10}
.block-dots:hover{color:var(--brand1)}
.section-title{display:inline-block;text-decoration:none;color:inherit;transition:all 0.2s ease}
.section-title:hover{text-decoration:none;color:inherit;transform:translateY(-2px)}
.section-title h2{color:var(--brand1);transition:color 0.2s ease;margin:0}
.section-title:hover h2{color:var(--text)}
@media(min-width:768px){.templates-categories{grid-template-columns:repeat(2,1fr)}.blog-posts{grid-template-columns:repeat(2,1fr)!important}.blog-grid{grid-template-columns:repeat(2,1fr)!important}.news-items{grid-template-columns:repeat(3,1fr)}.tools-categories{grid-template-columns:repeat(2,1fr)}.courses-categories{grid-template-columns:repeat(2,1fr)}.templates-grid{grid-template-columns:repeat(2,1fr)!important}}
@media(min-width:1200px){.templates-categories{grid-template-columns:repeat(3,1fr)}.blog-posts{grid-template-columns:repeat(3,1fr)!important}.blog-grid{grid-template-columns:repeat(3,1fr)!important}.news-items{grid-template-columns:repeat(6,1fr)}.tools-categories{grid-template-columns:repeat(3,1fr)}.courses-categories{grid-template-columns:repeat(3,1fr)}.templates-grid{grid-template-columns:repeat(3,1fr)!important}}
@media(min-width:1400px){.news-items{grid-template-columns:repeat(6,1fr);gap:0.8rem}.news-block{padding:1rem}}
.category-block{position:relative}
.grid2{display:grid;gap:var(--space-2);grid-template-columns:1fr}
.grid3{display:grid;gap:var(--space-2);grid-template-columns:1fr}
.grid6{display:grid;gap:var(--space-2);grid-template-columns:1fr}
@media(min-width:900px){.grid2{grid-template-columns:1fr 1fr}.grid3{grid-template-columns:repeat(3,1fr)}.grid6{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1200px){.grid6{grid-template-columns:repeat(6,1fr)}}

/* Templates Page Styles */
.search-section{display:flex;flex-direction:column;gap:1rem;margin-bottom:2rem}
.search-input{width:100%;padding:0.8rem 1rem;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);color:var(--text);font-size:1rem}
.search-input:focus{outline:none;border-color:var(--brand1);box-shadow:0 0 0 2px rgba(34,211,238,0.2)}
.filters-section{display:flex;gap:1rem;flex-wrap:wrap}
.filter-select{padding:0.6rem 1rem;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);color:var(--text);font-size:0.9rem;min-width:150px}
.filter-select:focus{outline:none;border-color:var(--brand1)}
.templates-grid{display:grid;gap:1.5rem;grid-template-columns:1fr;align-items:stretch}
@media(min-width:768px){.templates-grid{grid-template-columns:repeat(2,1fr)!important;align-items:stretch}}
@media(min-width:1200px){.templates-grid{grid-template-columns:repeat(3,1fr)!important;align-items:stretch}}

/* Compact Templates Styles */
.section-compact {
  padding: 1rem 0;
}

.search-filters-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-filters-row .search-input {
  flex: 1;
  min-width: 180px;
  max-width: 350px;
  margin-bottom: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.filters-row {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.filters-row .filter-select {
  min-width: 110px;
  font-size: 0.8rem;
  padding: 0.5rem 0.7rem;
}

.templates-grid-compact {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 1rem;
}

@media(min-width: 768px) {
  .templates-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media(min-width: 1200px) {
  .templates-grid-compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }
}

.pagination-compact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pagination-compact .pagination-btn {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}
.template-card{border:1px solid rgba(255, 255, 255, 0.1);background:rgba(255, 255, 255, 0.03);backdrop-filter:blur(10px);border-radius:var(--radius);padding:1.5rem;box-shadow:0 10px 30px rgba(2,6,23,.25);transition:transform 0.2s ease,box-shadow 0.2s ease;display:flex;flex-direction:column;height:100%}
.template-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px rgba(2,6,23,.3)}
.template-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem}
.template-header h3{margin:0;font-size:1.1rem;color:var(--text)}
.template-platform{background:var(--brand1);color:#04121c;padding:0.2rem 0.6rem;border-radius:12px;font-size:0.8rem;font-weight:600}
.template-desc{color:var(--muted);margin-bottom:0.75rem;line-height:1.5;flex-shrink:0}
.template-meta{display:flex;gap:0.5rem;flex-wrap:wrap;margin-bottom:0.75rem}
.template-category,.template-difficulty,.template-time{background:rgba(34,211,238,0.1);color:var(--brand1);padding:0.2rem 0.5rem;border-radius:8px;font-size:0.8rem}
.template-use-case{margin:1rem 0;padding:0.8rem;background:rgba(34,211,238,0.05);border-left:3px solid var(--brand1);border-radius:4px;font-size:0.9rem;color:var(--muted)}
.template-use-case strong{color:var(--brand1)}
.template-stats{display:flex;justify-content:space-between;align-items:center;margin-bottom:0;padding-top:1rem;border-top:1px solid var(--line)}
.template-downloads,.template-rating{color:var(--muted);font-size:0.9rem}
.template-rating{color:var(--brand1);font-weight:600}
.template-actions{display:flex;gap:0.8rem;width:100%;align-items:center;margin-top:auto}
.template-actions .btn{flex:1 1 0;min-width:0;text-align:center;padding:0.75rem 1rem;font-size:0.9rem;border-radius:12px;text-decoration:none;transition:all 0.2s ease;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;cursor:pointer;border:none;font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;box-sizing:border-box;height:auto;min-height:44px}
.template-actions .btn:first-child{background:linear-gradient(135deg,#0ea5e9,#1d4ed8);color:#ffffff;box-shadow:0 4px 15px rgba(14,165,233,0.4);border:1px solid #0ea5e9}
.template-actions .btn:first-child:hover{opacity:0.9;transform:translateY(-2px);box-shadow:0 8px 25px rgba(14,165,233,0.5);background:linear-gradient(135deg,#0284c7,#1e40af)}
.template-actions .btn:last-child{background:rgba(30,41,59,0.8);color:#ffffff;border:1px solid #475569;backdrop-filter:blur(6px)}
.template-actions .btn:last-child:hover{background:rgba(51,65,85,0.9);border-color:#64748b;transform:translateY(-2px)}
.template-actions .btn-premium{background:linear-gradient(135deg,#f59e0b,#d97706);color:#ffffff;box-shadow:0 4px 15px rgba(245,158,11,0.4);border:1px solid #f59e0b}
.template-actions .btn-premium:hover{opacity:0.9;transform:translateY(-2px);box-shadow:0 8px 25px rgba(245,158,11,0.5);background:linear-gradient(135deg,#d97706,#b45309)}
.nav a.active{color:var(--brand1);font-weight:600}
.pagination{text-align:center;margin-top:3rem}
.pagination-controls{display:flex;justify-content:center;align-items:center;gap:0.5rem;flex-wrap:wrap}
.pagination-btn {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  position: relative;
  overflow: hidden;
}

.pagination-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.pagination-btn:hover::before {
  left: 100%;
}

.pagination-btn:hover {
  background: rgba(34,211,238,0.15);
  border-color: rgba(34,211,238,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(34,211,238,0.2);
}

.pagination-current {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(34,211,238,0.3);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  border: 1px solid rgba(34,211,238,0.3);
}
.section-cta{text-align:center;margin-top:1rem}
.section-cta a{display:inline-flex;align-items:center;gap:0.5rem;color:var(--brand1);text-decoration:none;font-weight:600;transition:all 0.2s ease;font-size:1rem}
.section-cta a:hover{color:var(--brand2);transform:translateX(4px)}
.section-cta a::after{content:"→";font-size:1.2rem;transition:transform 0.2s ease}
.section-cta a:hover::after{transform:translateX(4px)}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(34,211,238,0.05));
  position: relative;
  overflow: hidden;
}

/* AI Assistant CTA in Hero */
.ai-assistant-cta {
  margin-top: 2rem;
  padding: 0.75rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ai-cta-content h3 {
  color: #0ea5e9;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}

.ai-cta-content p {
  color: #cbd5e1;
  margin: 0 0 1rem 0;
}

.ai-cta-examples {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.ai-example {
  background: rgba(14,165,233,0.2);
  color: #0ea5e9;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid rgba(14,165,233,0.3);
}

.btn-ai {
  background: linear-gradient(135deg,#0ea5e9,#1d4ed8);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ai:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(14,165,233,0.4);
}

/* AI Demo Section */
.ai-demo-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.ai-demo-chat {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(71,85,105,0.3);
  border-radius: 12px;
  padding: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
}

.ai-message, .user-message {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
  gap: 0.75rem;
}

.user-message {
  flex-direction: row-reverse;
}

.ai-avatar, .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.ai-avatar {
  background: linear-gradient(135deg,#0ea5e9,#1d4ed8);
  color: white;
}

.user-avatar {
  background: rgba(71,85,105,0.6);
  color: white;
}

.ai-text, .user-text {
  background: rgba(30,41,59,0.6);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 80%;
  border: 1px solid rgba(71,85,105,0.3);
}

.user-text {
  background: rgba(14,165,233,0.1);
  border-color: rgba(14,165,233,0.3);
}

.ai-suggestions {
  margin: 1rem 0;
}

.suggestion-item {
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.suggestion-item strong {
  color: #0ea5e9;
}

.suggestion-item span {
  color: #94a3b8;
  font-size: 0.875rem;
}

.ai-demo-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(14,165,233,0.05);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 12px;
  padding: 2rem;
}

.ai-demo-cta h3 {
  color: #0ea5e9;
  margin: 0 0 1rem 0;
}

.ai-demo-cta p {
  color: #cbd5e1;
  margin: 0 0 1.5rem 0;
}

@media (max-width: 768px) {
  .ai-demo-container {
    grid-template-columns: 1fr;
  }
  
  .ai-cta-examples {
    flex-direction: column;
    align-items: center;
  }
}

/* Compact Hero Section */
.hero-compact {
  padding: 1rem 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(34,211,238,0.04));
  border-bottom: 1px solid rgba(34,211,238,0.1);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-text h1 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.hero-text .lead {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.hero-actions .btn {
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
}

.hero-actions .btn-arrow {
  padding-right: 3.5rem !important;
  padding-left: 1rem;
}

.hero-actions .btn-arrow-left {
  padding-left: 3rem;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(34,211,238,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

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


/* CTA Section */
.cta-section{display:flex;gap:1rem;justify-content:center;margin-top:1.5rem;flex-wrap:wrap;align-items:center}

/* Unified Elegant Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #04121c;
  box-shadow: 0 4px 20px rgba(34,211,238,0.25);
  border: 1px solid rgba(34,211,238,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 8px 30px rgba(34,211,238,0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: #22d3ee;
  border: 1px solid #22d3ee;
  box-shadow: 0 4px 20px rgba(34,211,238,0.1);
}

.btn-outline:hover {
  background: rgba(34,211,238,0.1);
  color: #ffffff;
  border-color: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34,211,238,0.3);
}

/* Elegant Arrow Icons */
.btn-arrow {
  position: relative;
  padding-right: 3.5rem !important;
  padding-left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-arrow::after {
  content: '→';
  position: absolute;
  right: 1rem;
  font-size: 1rem;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

.btn-arrow-left {
  position: relative;
  padding-left: 3rem;
}

.btn-arrow-left::before {
  content: '←';
  position: absolute;
  left: 0.75rem;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn-arrow-left:hover::before {
  transform: translateX(-4px);
}

/* Elegant Floating Navigation */
.floating-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-nav.visible {
  opacity: 1;
  visibility: visible;
}

.nav-arrow {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.nav-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.nav-arrow:hover::before {
  left: 100%;
}

.nav-arrow:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.3);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
}

.nav-arrow svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: #ffffff;
  transition: all 0.3s ease;
}

.nav-arrow:hover svg {
  fill: #22d3ee;
  transform: scale(1.1);
}

.nav-arrow.up svg {
  transform: rotate(-90deg);
}

.nav-arrow.down svg {
  transform: rotate(90deg);
}

.nav-arrow.left svg {
  transform: rotate(180deg);
}

.nav-arrow.right svg {
  transform: rotate(0deg);
}

/* Compact Page Navigation */
.page-nav {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-nav.visible {
  opacity: 1;
  visibility: visible;
}

.page-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.page-dot::before {
  content: '';
  position: absolute;
  top: -0.25rem;
  left: -0.25rem;
  right: -0.25rem;
  bottom: -0.25rem;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
}

.page-dot:hover {
  background: rgba(34, 211, 238, 0.6);
  transform: scale(1.2);
}

.page-dot:hover::before {
  background: rgba(34, 211, 238, 0.1);
}

.page-dot.active {
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.page-dot.active::before {
  background: rgba(34, 211, 238, 0.2);
}

/* Author CTA Button - Special Styling */
.author-cta-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706, #b45309);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
  border: 2px solid rgba(245, 158, 11, 0.3);
  text-transform: none;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.author-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.author-cta-btn:hover::before {
  left: 100%;
}

.author-cta-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309, #92400e);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.6);
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(245, 158, 11, 0.5);
}

.author-cta-btn::after {
  content: '🚀';
  margin-left: 0.5rem;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.author-cta-btn:hover::after {
  transform: translateX(4px) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-nav,
  .page-nav {
    right: 1rem;
  }
  
  .nav-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .nav-arrow svg {
    width: 1rem;
    height: 1rem;
  }
  
  .author-cta-btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Author Registration Page Styles */
.author-hero {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
  padding: 2.5rem 0;
  text-align: center;
}

.author-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #f59e0b;
  line-height: 1;
}

.hero-stats .stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

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

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.author-story {
  text-align: center;
  padding: 2rem;
}

.author-avatar {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.author-title {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.author-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.author-stats span {
  background: rgba(34, 211, 238, 0.1);
  color: var(--brand1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.author-story blockquote {
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--brand1);
}

.registration-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.registration-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand1);
  background: rgba(34, 211, 238, 0.05);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-label a {
  color: var(--brand1);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.registration-benefits {
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: var(--radius);
  padding: 0.75rem;
  height: fit-content;
}

.registration-benefits h3 {
  margin-bottom: 1.5rem;
  color: var(--brand1);
}

.benefit-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.step-number {
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: #04121c;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--text);
}

.step-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.success-message {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-message h3 {
  color: var(--brand1);
  margin-bottom: 1rem;
}

.success-message ul {
  text-align: left;
  max-width: 400px;
  margin: 1rem auto;
}

.success-message li {
  margin-bottom: 0.5rem;
}

.success-message a {
  color: var(--brand1);
  text-decoration: none;
}

.success-message a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .registration-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .author-stats {
    flex-direction: column;
    align-items: center;
  }
}

/* Author Dashboard Styles */
.author-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-earnings {
  text-align: right;
}

.earnings-amount {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #f59e0b;
}

.earnings-period {
  font-size: 0.8rem;
  color: var(--muted);
}

.author-nav {
  display: flex;
  gap: 2rem;
}

.author-nav .nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.author-nav .nav-link:hover,
.author-nav .nav-link.active {
  color: var(--brand1);
  border-bottom-color: var(--brand1);
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--brand1);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.1);
}

.stat-icon {
  font-size: 2.5rem;
  width: 4rem;
  height: 4rem;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-change.positive {
  color: #10b981;
}

.stat-change.negative {
  color: #ef4444;
}

.stat-change.neutral {
  color: var(--muted);
}

.quick-actions {
  margin: 3rem 0;
}

.quick-actions h2 {
  margin-bottom: 1.5rem;
}

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

.activity-feed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item:hover {
  background: rgba(34, 211, 238, 0.05);
}

.activity-icon {
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
  color: var(--text);
}

.activity-content p {
  margin: 0 0 0.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.activity-time {
  font-size: 0.8rem;
  color: var(--muted);
}

.activity-earnings {
  font-size: 1.1rem;
  font-weight: 700;
  color: #10b981;
  text-align: right;
}

.templates-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media(min-width:768px) {
  .templates-grid {
    grid-template-columns: repeat(2,1fr) !important;
    align-items: stretch;
  }
}

@media(min-width:1200px) {
  .templates-grid {
    grid-template-columns: repeat(3,1fr) !important;
    align-items: stretch;
  }
}

.template-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(2,6,23,.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.4);
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
  position: relative;
}

.template-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

/* Template Badge Styles - как теги */
.template-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.template-badge:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(99, 102, 241, 0.35));
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

/* Badge variants - как теги */
.template-badge.popular {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.25));
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.template-badge.new {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(16, 185, 129, 0.25));
  border-color: rgba(34, 197, 94, 0.4);
  color: #6ee7b7;
}

.template-badge.featured {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.25));
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde047;
}

/* Free Templates Info Block - как тег */
.free-templates-info {
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.12));
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.free-templates-info:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(99, 102, 241, 0.18));
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

.free-templates-info p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.free-templates-info .free-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.template-platform {
  background: var(--brand1);
  color: #04121c;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

.template-desc {
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  font-size: 0.85rem;
}

.template-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.template-category, .template-difficulty, .template-time {
  background: rgba(34,211,238,0.1);
  color: var(--brand1);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.7rem;
}

.template-free {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.7rem;
}

.template-premium {
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.7rem;
}

.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.template-tag {
  background: rgba(99,102,241,0.18);
  color: #ffffff;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.72rem;
}

.template-tag-more {
  background: rgba(107,114,128,0.1);
  color: #6b7280;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.65rem;
}

.template-use-case {
  margin: 0.75rem 0;
  padding: 0.6rem;
  background: rgba(34,211,238,0.05);
  border-left: 3px solid var(--brand1);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.template-use-case strong {
  color: var(--brand1);
}

.template-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.template-downloads, .template-rating, .template-status {
  color: var(--muted);
  font-size: 0.75rem;
}

.template-rating {
  color: var(--brand1);
  font-weight: 600;
}

.template-status {
  color: #f59e0b;
  font-weight: 500;
}

.template-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.75rem;
  align-items: center;
  width: 100%;
}

.template-actions .btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  min-height: 44px;
  height: auto;
  box-sizing: border-box;
}

.template-actions .btn:first-child {
  background: linear-gradient(135deg,#0ea5e9,#1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(14,165,233,0.4);
  border: 1px solid #0ea5e9;
}

.template-actions .btn:first-child:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14,165,233,0.5);
  background: linear-gradient(135deg,#0284c7,#1e40af);
}

.template-actions .btn:last-child {
  background: rgba(30,41,59,0.8);
  color: #ffffff;
  border: 1px solid #475569;
  backdrop-filter: blur(6px);
}

.template-actions .btn:last-child:hover {
  background: rgba(51,65,85,0.9);
  border-color: #64748b;
  transform: translateY(-2px);
}

.template-actions .btn-premium {
  background: linear-gradient(135deg,#f59e0b,#d97706);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(245,158,11,0.4);
  border: 1px solid #f59e0b;
}

.template-actions .btn-premium:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,158,11,0.5);
  background: linear-gradient(135deg,#d97706,#b45309);
}

/* Enhanced Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination-info {
  color: var(--muted);
  font-size: 0.9rem;
  margin-right: 1rem;
  font-weight: 500;
}

.pagination-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
  text-align: center;
}

.pagination-btn:hover {
  background: var(--brand1);
  color: #04121c;
  border-color: var(--brand1);
  transform: translateY(-1px);
}

.pagination-btn.pagination-current {
  background: var(--brand1);
  color: #04121c;
  border-color: var(--brand1);
  font-weight: 600;
}

.pagination-btn.pagination-prev,
.pagination-btn.pagination-next {
  background: rgba(34,211,238,0.1);
  color: var(--brand1);
  border-color: rgba(34,211,238,0.3);
  font-weight: 600;
}

.pagination-btn.pagination-prev:hover,
.pagination-btn.pagination-next:hover {
  background: var(--brand1);
  color: #04121c;
  border-color: var(--brand1);
}

.pagination-ellipsis {
  color: var(--muted);
  padding: 0.6rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .pagination {
    gap: 0.3rem;
  }
  
  .pagination-info {
    margin-right: 0.5rem;
    font-size: 0.8rem;
  }
  
  .pagination-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    min-width: 35px;
  }
  
  .pagination-btn.pagination-prev,
  .pagination-btn.pagination-next {
    padding: 0.5rem 0.6rem;
  }
}

/* Responsive Design */
@media (max-width: 767px) {
  .templates-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .template-header {
    padding: 1rem 1rem 0.5rem 1rem;
  }
  
  .template-content {
    padding: 0.5rem;
  }
  
  .template-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  .template-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .template-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .template-title {
    font-size: 1.1rem;
    padding-right: 2rem;
  }
  
  .template-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
  }
  
  .stat-icon {
    margin-bottom: 0;
  }
  
  .stat-value {
    margin-bottom: 0;
  }
}

.template-image {
  height: 120px;
  background: rgba(34, 211, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-placeholder {
  font-size: 4rem;
  opacity: 0.7;
}

.template-content {
  padding: 0.75rem;
}

.template-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--text);
}

.template-content p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.template-stats {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.template-stats span {
  font-size: 0.8rem;
  color: var(--muted);
}

.template-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.template-actions .btn {
  flex: 1;
  text-align: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Modern Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 20px;
  margin: 2% auto;
  padding: 0;
  width: 95%;
  max-width: 900px;
  max-height: 96vh;
  overflow-y: auto;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(34, 211, 238, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes modalSlideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(14, 165, 233, 0.02));
  border-radius: 20px 20px 0 0;
}

.modal-header h3,
.modal-header h2,
.modal-title {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.modal-header h3 {
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Simple Close Button - точно как в templates.html */
.modal-header .close,
.close {
  color: #94a3b8;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  line-height: 1;
}

.modal-header .close:hover,
.close:hover {
  color: #f8fafc;
}

.modal-header .close::before,
.close::before {
  content: none;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  transform: scale(1.05);
}

.modal-body {
  padding: 1.5rem 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4 {
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.modal-body h1 {
  font-size: 1.5rem;
}

.modal-body h2 {
  font-size: 1.25rem;
}

.modal-body h3 {
  font-size: 1.1rem;
}

.modal-body h4 {
  font-size: 1rem;
}

.modal-body p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.modal-body ul,
.modal-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.modal-body strong {
  color: var(--text);
  font-weight: 600;
}

/* Article Modal Specific Styles */
.article-modal .modal-content {
  max-width: 1000px;
}

.article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-header h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  color: var(--text);
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-content {
  line-height: 1.7;
  color: var(--text);
  font-size: 1.1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(34, 211, 238, 0.1);
}

.article-tags .tag {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(14, 165, 233, 0.05));
  color: var(--brand1);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(34, 211, 238, 0.2);
  transition: all 0.3s ease;
}

.article-tags .tag:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(14, 165, 233, 0.1));
  transform: translateY(-2px);
}

/* Article Navigation */
.article-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(34, 211, 238, 0.1);
}

.article-navigation .btn {
  flex: 1;
  max-width: 45%;
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-navigation .btn-arrow-left {
  text-align: left;
}

.article-navigation .btn-arrow {
  text-align: right;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
  .modal-content {
    width: 98%;
    margin: 1% auto;
    max-height: 98vh;
    border-radius: 15px;
  }
  
  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-radius: 15px 15px 0 0;
  }
  
  .modal-header h3 {
    font-size: 1rem;
  }
  
  .modal-body {
    padding: 0.75rem;
  }
  
  .article-header h2 {
    font-size: 1.5rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .article-content {
    font-size: 1rem;
  }
  
  .article-tags {
    justify-content: center;
  }
  
  .article-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .article-navigation .btn {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 100%;
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .modal-header {
    padding: 0.5rem;
    border-radius: 0;
  }
  
  .modal-body {
    padding: 0.5rem;
  }
  
  .article-header h2 {
    font-size: 1.3rem;
  }
  
  .article-meta span {
    font-size: 0.8rem;
  }
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .templates-grid {
    grid-template-columns: 1fr;
  }
  
  .activity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .activity-earnings {
    text-align: left;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding: 2rem 0 1rem;
}

.footer-content {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media(min-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 3fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 800;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-section h4 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--brand1);
}

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

.footer-legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: var(--brand1);
}

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


/* Language Switcher */
.lang {
  font-size: 0.9rem;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.25rem;
}

.lang a.active {
  color: var(--brand1);
  font-weight: 600;
}

.lang a:hover {
  color: var(--text);
}

/* Actions */
.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.actions nav {
  display: flex;
  gap: 1rem;
}

/* Active navigation link */
.nav a.active {
  color: var(--brand1);
  font-weight: 600;
}

/* Responsive */
@media(max-width: 768px) {
  .nav {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
    gap: 1rem;
  }
  
  .actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cta-section {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Clickable News Elements */
.clickable-title, .clickable-desc {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.news-card:hover .clickable-title,
.featured-card:hover .clickable-title {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}

.news-card:hover .clickable-desc,
.featured-card:hover .clickable-desc {
    color: rgba(255, 255, 255, 0.9);
}

.news-card:hover,
.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.news-card, .featured-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Blog Page Styles */
.blog-hero {
  padding: 0.8rem 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(34,211,238,0.04));
  border-bottom: 1px solid rgba(34,211,238,0.1);
}

.blog-hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-hero-text h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.blog-hero-text .lead {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  max-width: 500px;
}

.blog-hero-text {
  flex: 1;
}

.blog-hero-text h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 700;
}

.blog-hero-text .lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.blog-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

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

.blog-hero-image {
  flex: 0 0 300px;
}

.blog-hero-image .hero-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Featured Blog Section */
.featured-blog {
  padding: 1rem 0;
  background: var(--surface);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
  text-align: center;
}

.featured-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 0.3rem;
}

@media(min-width: 768px) {
  .featured-blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media(min-width: 1200px) {
  .featured-blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.featured-blog-card {
  background: var(--card-bg);
  border: 1px solid rgba(34,211,238,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.featured-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  border-color: rgba(34,211,238,0.3);
}

.featured-blog-image {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.featured-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-blog-card:hover .featured-blog-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.featured-blog-content {
  padding: 0.75rem;
}

.featured-blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-category {
  background: rgba(34,211,238,0.1);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 500;
}

.featured-blog-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.featured-blog-desc {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.featured-blog-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Blog Controls */
.blog-controls {
  padding: 0.8rem 0;
  background: var(--bg);
  border-bottom: 1px solid rgba(34,211,238,0.1);
}

/* Unified Search - Minimalist Design Concept */
.blog-search-unified {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  max-width: 500px;
  width: 100%;
}

/* Minimalist News Page Header - Everything in One Compact Block */
.news-page-header {
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

.news-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.news-page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
  white-space: nowrap;
}

.news-controls-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 300px;
  justify-content: flex-end;
}

.category-tags-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Unified Controls - Single Block Design */
.blog-controls-unified {
  margin-bottom: 1.5rem;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.category-tag {
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.4);
  color: #cbd5e1;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: 500;
}

.category-tag:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  color: #22d3ee;
  transform: translateY(-1px);
}

.category-tag.active {
  background: rgba(34, 211, 238, 0.15);
  border-color: #22d3ee;
  color: #22d3ee;
  font-weight: 600;
}

/* Compact Blog Header */
.blog-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title-compact {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-count {
  font-weight: 500;
  color: #22d3ee;
  font-size: 0.85rem;
}

.sort-select-unified {
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  flex-shrink: 0;
}

.sort-select-unified:focus {
  outline: none;
  border-color: #22d3ee;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.sort-select-unified option {
  background: #0f172a;
  color: #f8fafc;
}

/* Browse Blog Dropdown Menu */
.browse-blog-dropdown {
  position: relative;
  display: inline-block;
}

.browse-blog-btn {
  cursor: pointer;
  transition: all 0.2s ease;
}

.browse-blog-btn:hover {
  transform: translateY(-1px);
}

.blog-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 400px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: slideDown 0.2s ease;
}

.blog-search-dropdown.active {
  display: block;
}

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

.dropdown-search {
  position: relative;
  margin-bottom: 0.75rem;
}

.dropdown-search .search-input-unified {
  width: 100%;
  padding-left: 2.3rem;
}

.dropdown-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.dropdown-sort {
  display: flex;
  justify-content: flex-end;
}

.dropdown-sort .sort-select-unified {
  width: 100%;
}

.search-wrapper-unified {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-unified {
  position: absolute;
  left: 0.75rem;
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.search-input-unified {
  width: 100%;
  padding: 0.6rem 0.8rem 0.6rem 2.3rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.search-input-unified:focus {
  outline: none;
  border-color: #22d3ee;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.search-input-unified::placeholder {
  color: #64748b;
}

.results-count {
  position: absolute;
  right: 0.75rem;
  color: #64748b;
  font-size: 0.75rem;
  pointer-events: none;
  white-space: nowrap;
}

.results-count.active {
  color: #22d3ee;
}

.filter-select-unified {
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
  max-width: 160px;
}

.filter-select-unified:focus {
  outline: none;
  border-color: #22d3ee;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.filter-select-unified option {
  background: #0f172a;
  color: #f8fafc;
}

/* Legacy support */
.blog-search-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-select {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 120px;
}

/* Blog Content */
.blog-content {
  padding: 1rem 0;
}

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

.blog-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-select {
  padding: 0.6rem 1rem;
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 0.3rem;
}

@media(min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media(min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.blog-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(34,211,238,0.3);
}

.blog-card-image {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-badges {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.trending-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.blog-card-content {
  padding: 0.75rem 0.75rem 0 0.75rem;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.blog-card-desc {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.blog-card-author {
  margin-bottom: 1rem;
}

.author-name {
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-card-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Newsletter Section */
.blog-newsletter {
  padding: 1rem 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(34,211,238,0.04));
  border-top: 1px solid rgba(34,211,238,0.1);
}

.newsletter-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-text {
  flex: 1;
}

.newsletter-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.newsletter-text p {
  color: var(--muted);
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.newsletter-input {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 250px;
}

/* Blog Modal Styles */
.blog-modal {
  max-width: 800px;
}

.blog-modal-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.blog-modal-image {
  margin-bottom: 1.5rem;
}

.blog-modal-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.blog-modal-content {
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.blog-modal-content h1,
.blog-modal-content h2,
.blog-modal-content h3 {
  color: var(--text);
  margin: 1.5rem 0 1rem 0;
}

.blog-modal-content p {
  margin-bottom: 1rem;
}

.blog-modal-content code {
  background: rgba(34,211,238,0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.blog-modal-content pre {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

.blog-modal-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.blog-modal-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(34,211,238,0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
  .blog-hero-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .blog-hero-image {
    flex: none;
    width: 100%;
  }
  
  .blog-stats {
    justify-content: center;
  }
  
  .featured-blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-search-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-wrapper {
    min-width: auto;
  }
  
  .filters-row {
    justify-content: center;
  }
  
  .blog-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  
  .newsletter-input {
    min-width: auto;
  }
}

/* Compact AI Widget Styles */
.ai-compact-widget {
  padding: 0.75rem 1rem;
  background: rgba(34,211,238,0.05);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.ai-compact-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-compact-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.ai-compact-text {
  flex: 1;
}

.ai-compact-text span {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.ai-compact-btn {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.ai-compact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(34,211,238,0.3);
}

/* Responsive for compact AI widget */
@media (max-width: 768px) {
  .ai-compact-widget {
    padding: 0.6rem 0.8rem;
  }

  .ai-compact-content {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  .ai-compact-text span {
    font-size: 0.8rem;
  }

  .ai-compact-btn {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Compact Hero Section */
.hero-compact {
  padding: 1.5rem 0;
  background: var(--bg);
}

.hero-compact-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-compact-left {
  flex: 1;
}

.hero-compact-left h1 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-compact-left p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

.hero-compact-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 300px;
}

.update-info-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--hover);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.update-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand1);
}

.update-text {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive for compact hero */
@media (max-width: 768px) {
  .hero-compact {
    padding: 1rem 0;
  }
  
  .hero-compact-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .hero-compact-left h1 {
    font-size: 1.5rem;
  }
  
  .hero-compact-right {
    min-width: auto;
    width: 100%;
  }
  
  .update-info-compact {
    justify-content: center;
  }
}

/* Minimalist Modal Design */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 0.5rem;
}

.modal-content {
  background: var(--bg);
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.modal-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

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

.modal-body {
  padding: 0.75rem;
}

/* Horizontal Layout for Template Info */
.template-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.template-overview-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.template-overview-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.overview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--hover);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.overview-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.overview-value {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Template Description with Icon */
.template-description {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: var(--hover);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.template-description-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.template-description-content h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.template-description-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Horizontal Lists */
.template-benefits,
.template-use-cases,
.template-requirements,
.template-features {
  margin-bottom: 1.5rem;
}

.template-benefits h3,
.template-use-cases h3,
.template-requirements h3,
.template-features h3 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benefits-list,
.use-cases-list,
.requirements-list,
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.benefit-item,
.use-case-item,
.requirement-item,
.feature-item {
  padding: 0.5rem 0.75rem;
  background: var(--hover);
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
}

/* Integration Section */
.template-integration {
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: var(--hover);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.template-integration h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.template-integration p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Support Section */
.template-support {
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: var(--hover);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.template-support h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.template-support p {
  margin: 0 0 0.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.template-support p:last-child {
  margin-bottom: 0;
}

/* Tags */
.template-tags {
  margin-bottom: 1.5rem;
}

.template-tags h3 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  background: var(--brand1);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Modal Footer */
.modal-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal {
    padding: 0.5rem;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .template-overview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .benefits-list,
  .use-cases-list,
  .requirements-list,
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* Author Dashboard Styles */
.author-dashboard-header {
  background: linear-gradient(135deg, var(--bg) 0%, var(--hover) 100%);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.author-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--brand1);
  object-fit: cover;
}

.author-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid var(--bg);
}

.author-status.verified {
  background: #10b981;
  color: white;
}

.author-info {
  flex: 1;
}

.author-name {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.author-title {
  margin: 0 0 1rem 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.author-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  color: var(--text);
  font-size: 0.9rem;
}

.stat-item strong {
  color: var(--brand1);
  font-size: 1.1rem;
}

.author-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* Dashboard Navigation */
.dashboard-nav {
  background: var(--hover);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.dashboard-tabs {
  display: flex;
  gap: 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

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

.tab-btn.active {
  color: var(--brand1);
  border-bottom-color: var(--brand1);
  background: var(--bg);
}

/* Dashboard Content */
.dashboard-content {
  padding: 2rem 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.dashboard-card {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}

.dashboard-card h3 {
  margin: 0 0 1.5rem 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

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

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.stat-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand1);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.activity-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.activity-content {
  flex: 1;
}

.activity-title {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.activity-time {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Template List */
.template-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.template-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.template-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.template-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.template-actions {
  display: flex;
  gap: 0.5rem;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.action-btn:hover {
  background: var(--brand1);
  color: white;
  transform: translateY(-2px);
}

.action-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.action-text {
  font-weight: 500;
}

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

.templates-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
}

.author-template-card {
  position: relative;
}

.template-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.template-status.published {
  background: #10b981;
  color: white;
}

.template-status.draft {
  background: #f59e0b;
  color: white;
}

.template-status.pending {
  background: #6366f1;
  color: white;
}

.template-status.rejected {
  background: #ef4444;
  color: white;
}

.template-stats {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.template-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.5rem 0;
  font-size: 0.7rem;
  color: var(--muted);
}

.template-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

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

.analytics-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
}

.analytics-filters {
  display: flex;
  gap: 1rem;
}

.filter-select {
  padding: 0.5rem 1rem;
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
}

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

.analytics-card {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}

.analytics-card h3 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.chart-placeholder {
  height: 120px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-mock {
  color: var(--muted);
  font-size: 1rem;
}

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

.earnings-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
}

.earnings-summary {
  display: flex;
  gap: 2rem;
}

.earnings-total,
.earnings-period {
  text-align: center;
}

.earnings-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand1);
  line-height: 1;
}

.earnings-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.earnings-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.earnings-card {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}

.earnings-card h3 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.payout-info p {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 0.9rem;
}

.payouts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.payout-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.payout-amount {
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
}

.payout-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.payout-status.completed {
  background: #10b981;
  color: white;
}

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

.community-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
}

.community-stats {
  display: flex;
  gap: 2rem;
}

.community-stat {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand1);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.community-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.community-card {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}

.community-card h3 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.followers-list,
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.follower-item,
.review-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.follower-avatar,
.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.follower-info {
  flex: 1;
}

.follower-name,
.reviewer-name {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.follower-time {
  color: var(--muted);
  font-size: 0.8rem;
}

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

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-rating {
  font-size: 0.9rem;
}

.review-text {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.review-template {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .author-profile {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .author-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .author-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .dashboard-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .dashboard-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .tab-btn {
    white-space: nowrap;
    padding: 1rem 1.5rem;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .templates-header,
  .analytics-header,
  .earnings-header,
  .community-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .earnings-summary,
  .community-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .template-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .template-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Template Editor Styles */
.editor-header {
  background: linear-gradient(135deg, var(--bg) 0%, var(--hover) 100%);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.editor-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.back-link {
  color: var(--brand1);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.back-link:hover {
  color: var(--text);
}

.editor-actions {
  display: flex;
  gap: 1rem;
}

.editor-title {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
}

.editor-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.editor-content {
  padding: 2rem 0;
}

.editor-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
}

.editor-sidebar {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h3 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand1);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.editor-main {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}

.workflow-builder {
  margin-bottom: 2rem;
}

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

.workflow-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.workflow-actions {
  display: flex;
  gap: 0.5rem;
}

.workflow-canvas {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  min-height: 400px;
  position: relative;
  overflow: auto;
}

.workflow-start,
.workflow-end {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.workflow-nodes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.workflow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--hover);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: grab;
  transition: all 0.3s ease;
  position: relative;
  min-width: 120px;
}

.workflow-node:hover {
  border-color: var(--brand1);
  transform: translateY(-2px);
}

.workflow-node:active {
  cursor: grabbing;
}

.workflow-node.start-node {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.workflow-node.end-node {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

.workflow-node.trigger-node {
  border-color: #3b82f6;
}

.workflow-node.action-node {
  border-color: #8b5cf6;
}

.workflow-node.condition-node {
  border-color: #f59e0b;
}

.node-icon {
  font-size: 1.5rem;
}

.node-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.node-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.workflow-node:hover .node-delete {
  opacity: 1;
}

.workflow-details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
}

.workflow-details h3 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.workflow-description p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .editor-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .editor-sidebar {
    position: static;
    order: 2;
  }
  
  .editor-main {
    order: 1;
  }
}

@media (max-width: 768px) {
  .editor-nav {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .editor-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .workflow-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .workflow-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .workflow-canvas {
    padding: 0.5rem;
    min-height: 300px;
  }
  
  .workflow-node {
    min-width: 100px;
    padding: 0.75rem;
  }
  
  .node-icon {
    font-size: 1rem;
  }
  
  .node-label {
    font-size: 0.7rem;
  }
}

/* Success Message Styles */
.success-message {
  text-align: center;
  padding: 2rem;
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 2rem 0;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.success-message h3 {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.success-message p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.success-message ul {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
  color: var(--text);
}

.success-message li {
  margin-bottom: 0.5rem;
}

.success-message a {
  color: var(--brand1);
  text-decoration: none;
}

.success-message a:hover {
  text-decoration: underline;
}
 
 / *   C o n t a c t   S e c t i o n   S t y l e s   * / 
 . c o n t a c t - h o r i z o n t a l   { 
     d i s p l a y :   f l e x ; 
     f l e x - w r a p :   w r a p ; 
     g a p :   1 . 5 r e m ; 
     j u s t i f y - c o n t e n t :   c e n t e r ; 
     a l i g n - i t e m s :   c e n t e r ; 
     m a r g i n :   2 r e m   0 ; 
     p a d d i n g :   1 . 5 r e m ; 
     b a c k g r o u n d :   v a r ( - - c a r d - b g ) ; 
     b o r d e r :   1 p x   s o l i d   v a r ( - - l i n e ) ; 
     b o r d e r - r a d i u s :   v a r ( - - r a d i u s ) ; 
     b a c k d r o p - f i l t e r :   b l u r ( 1 0 p x ) ; 
 } 
 
 . c o n t a c t - h o r i z o n t a l   s p a n   { 
     d i s p l a y :   f l e x ; 
     a l i g n - i t e m s :   c e n t e r ; 
     g a p :   0 . 5 r e m ; 
     p a d d i n g :   0 . 7 5 r e m   1 r e m ; 
     b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ; 
     b o r d e r :   1 p x   s o l i d   v a r ( - - l i n e ) ; 
     b o r d e r - r a d i u s :   8 p x ; 
     t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
     f o n t - s i z e :   0 . 9 r e m ; 
     w h i t e - s p a c e :   n o w r a p ; 
 } 
 
 . c o n t a c t - h o r i z o n t a l   s p a n : h o v e r   { 
     b a c k g r o u n d :   r g b a ( 1 4 ,   1 6 5 ,   2 3 3 ,   0 . 1 ) ; 
     b o r d e r - c o l o r :   v a r ( - - b r a n d 2 ) ; 
     t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; 
 } 
 
 . c o n t a c t - h o r i z o n t a l   a   { 
     c o l o r :   v a r ( - - t e x t ) ; 
     t e x t - d e c o r a t i o n :   n o n e ; 
     f o n t - w e i g h t :   5 0 0 ; 
 } 
 
 . c o n t a c t - h o r i z o n t a l   a : h o v e r   { 
     c o l o r :   v a r ( - - b r a n d 1 ) ; 
     t e x t - d e c o r a t i o n :   u n d e r l i n e ; 
 } 
 
 / *   R e s p o n s i v e   c o n t a c t   s t y l e s   * / 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
     . c o n t a c t - h o r i z o n t a l   { 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         g a p :   1 r e m ; 
         p a d d i n g :   1 r e m ; 
     } 
     
     . c o n t a c t - h o r i z o n t a l   s p a n   { 
         w i d t h :   1 0 0 % ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         f o n t - s i z e :   0 . 8 5 r e m ; 
     } 
 } 
 
 