/* ============================================================
   RoburFan — Clean Professional Theme
   ============================================================ */

/* ===== CSS Variables ===== */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.08);
  --secondary: #e11d48;
  --secondary-hover: #be123c;
  --secondary-soft: rgba(225, 29, 72, 0.08);

  --bg: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;

  --text: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #94a3b8;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.08);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --nav-bg: rgba(255,255,255,0.85);
  --nav-border: rgba(0,0,0,0.06);

  --success: #16a34a;
  --success-soft: rgba(22,163,74,0.1);
  --warning: #eab308;
  --warning-soft: rgba(234,179,8,0.12);
  --danger: #dc2626;
  --danger-soft: rgba(220,38,38,0.1);

  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-hover: #93bbfd;
  --primary-soft: rgba(96,165,250,0.10);
  --secondary: #fb7185;
  --secondary-hover: #fda4af;
  --secondary-soft: rgba(251,113,133,0.10);

  --bg: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --bg-elevated: #1a1a1a;

  --text: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;

  --border: #222222;
  --border-light: #181818;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.6);
  --shadow: 0 4px 6px rgba(0,0,0,0.6);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.6);
  --shadow-lg: 0 20px 25px rgba(0,0,0,0.7);

  --nav-bg: rgba(0,0,0,0.92);
  --nav-border: #222222;

  --success-soft: rgba(22,163,74,0.15);
  --warning-soft: rgba(234,179,8,0.15);
  --danger-soft: rgba(220,38,38,0.15);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); font-weight: 500; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; padding-bottom: 64px; }

/* ===== Section ===== */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-secondary); }
.section-title {
  font-size: 1.75rem; font-weight: 800; margin-bottom: 8px;
  color: var(--text); letter-spacing: -0.3px;
}
.section-subtitle {
  font-size: 1rem; color: var(--text-muted); margin-bottom: 24px;
}

/* ===== Grid Layout (Home / Blog) ===== */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  padding-top: 40px;
}
@media (max-width: 992px) {
  .layout-grid { grid-template-columns: 1fr; }
}

/* ===== Sidebar ===== */
.sidebar { position: sticky; top: 96px; }
.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--border-light);
  color: var(--text);
}
.sidebar-list li { margin-bottom: 6px; }
.sidebar-list a {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.sidebar-list a:hover {
  background: var(--primary-soft); color: var(--primary);
  transform: translateX(3px);
}

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--shadow-xs);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  font-size: 1.35rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px;
}
.navbar-brand img { border-radius: 8px; }
.navbar-brand span.logo-text { color: var(--primary); }
.logo-dot { color: var(--primary); font-size: 1.5rem; line-height: 1; }

.navbar-links { display: flex; align-items: center; gap: 2px; }
.navbar-links a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active {
  background: var(--primary-soft); color: var(--primary);
}
.navbar-right { display: flex; align-items: center; gap: 10px; }
.nav-badge {
  background: var(--danger); color: #fff; font-size: 0.7rem;
  padding: 1px 6px; border-radius: 10px; font-weight: 700; margin-left: 4px;
}

/* ===== Theme Toggle ===== */
.rf-theme-toggle {
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; color: var(--text-muted);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all var(--transition);
  flex-shrink: 0;
}
.rf-theme-toggle:hover {
  background: var(--primary-soft); color: var(--primary);
  border-color: var(--primary); transform: rotate(20deg);
}

/* ===== Hamburger ===== */
.mobile-only { display: none; }
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--text); font-size: 1.4rem;
  padding: 4px;
}
@media (max-width: 768px) {
  .hamburger { display: block; }
  .navbar-links {
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border);
    padding: 16px 24px; gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { width: 100%; padding: 12px 16px; }
  .navbar-right .btn { display: none; }
  .navbar-right { gap: 6px; }
  .mobile-only { display: list-item; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: all var(--transition);
  text-decoration: none; white-space: nowrap; line-height: 1.4;
  font-family: var(--font);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover); border-color: var(--primary-hover);
  transform: translateY(-1px); box-shadow: var(--shadow);
  color: #fff;
}

.btn-secondary {
  background: var(--secondary); color: #fff; border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-hover); border-color: var(--secondary-hover);
  transform: translateY(-1px); color: #fff;
}

.btn-success {
  background: var(--success); color: #fff; border-color: var(--success);
}
.btn-success:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }

.btn-danger {
  background: var(--danger); color: #fff; border-color: var(--danger);
}
.btn-danger:hover { opacity: 0.9; color: #fff; }

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

.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: 6px; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  padding: 56px 0 48px;
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg) 50%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  pointer-events: none;
}
.hero-flex { display: flex; align-items: center; gap: 48px; position: relative; z-index: 1; }
.hero-text { flex: 1; }
.hero h1 {
  font-size: 2.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px;
  color: var(--text); letter-spacing: -0.5px;
}
.hero p {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 540px; margin-bottom: 28px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { flex: 1; display: flex; justify-content: center; }
.hero-img {
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-4deg);
  transition: transform 0.4s ease;
}
.hero-img:hover { transform: perspective(1000px) rotateY(0deg); }

@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-flex { flex-direction: column; text-align: center; }
  .hero-buttons { justify-content: center; }
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--transition);
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.card-link { text-decoration: none; color: inherit; }

.card-body {
  padding: 24px;
  display: flex; flex-direction: column;
  flex: 1;
}
.product-card .card-body { padding: 24px; }

.card-img-top {
  width: 100%; height: 200px; object-fit: cover;
  border-bottom: 1px solid var(--border-light);
}
.card-img-placeholder {
  width: 100%; height: 180px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}
.card-title {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 8px;
  color: var(--text); line-height: 1.35;
}
.card-text {
  color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6;
  margin-bottom: 20px; flex: 1;
}
.card-footer-action { margin-top: auto; padding-top: 4px; }

/* ===== Auth Pages ===== */
.auth-container {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 180px);
  padding: 48px 20px;
}
.auth-card {
  background: var(--bg-card);
  padding: 48px 44px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--border);
  text-align: center;
}
.auth-card h2 {
  margin-bottom: 8px; font-size: 1.75rem; font-weight: 800;
  letter-spacing: -0.5px; color: var(--text);
}
.auth-card p {
  margin-bottom: 32px; color: var(--text-muted); font-size: 0.95rem;
}
.auth-form .form-group { margin-bottom: 20px; text-align: left; }
.auth-form label {
  display: block; margin-bottom: 6px; font-weight: 600;
  font-size: 0.88rem; color: var(--text-secondary);
}
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form select,
.auth-form textarea {
  width: 100%; padding: 11px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-size: 0.95rem; font-family: var(--font);
  transition: all var(--transition);
}
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: var(--bg-card);
}
.auth-footer {
  margin-top: 28px; font-size: 0.9rem;
  border-top: 1px solid var(--border-light); padding-top: 20px;
  color: var(--text-muted);
}
.auth-footer a { display: block; margin-bottom: 6px; font-weight: 500; }

/* ===== Dashboard ===== */
.dashboard { padding-top: 40px; }
.dashboard-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; padding-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
}
.dashboard-header h1 { font-size: 1.75rem; font-weight: 800; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
}
@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}
.dashboard-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.dashboard-block h2 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 2px solid var(--border-light);
  gap: 8px;
}
.empty-state { padding: 32px 16px; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.table-responsive {
  overflow-x: auto; border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.table {
  width: 100%; border-collapse: collapse; min-width: 600px;
}
.table th,
.table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem; vertical-align: middle;
}
.table th {
  background: var(--bg);
  color: var(--text-muted); font-weight: 700;
  text-transform: uppercase; font-size: 0.75rem;
  letter-spacing: 0.5px;
}
.table td { background: var(--bg-card); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--primary-soft); }
.table td .btn { margin: 2px 0; }
.table code {
  background: var(--bg); padding: 3px 8px;
  border-radius: 4px; font-size: 0.82rem;
  border: 1px solid var(--border-light);
}

/* ===== Feed / Articles ===== */
.feed-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: all var(--transition);
}
.feed-item:hover { border-color: var(--primary); }
.feed-header { margin-bottom: 16px; }
.feed-meta {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.feed-author {
  font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.feed-author img { width: 24px; height: 24px; border-radius: 50%; }
.feed-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.feed-title a { color: var(--text); }
.feed-title a:hover { color: var(--primary); }
.feed-cover {
  width: 100%; max-height: 380px; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 16px;
}
.feed-content {
  font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary);
  margin-bottom: 16px;
}
.feed-actions {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border-light); padding-top: 16px;
}

/* ===== Blog Detail ===== */
.blog-cover-full {
  width: 100%; max-height: 400px; object-fit: cover;
  border-radius: var(--radius-lg); margin-bottom: 24px;
}
.blog-meta { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.blog-body {
  font-size: 1.05rem; line-height: 1.8; color: var(--text);
}
.blog-body p { margin-bottom: 16px; }
.blog-body img { border-radius: var(--radius); margin: 16px 0; }
.blog-body h2, .blog-body h3 { margin-top: 28px; margin-bottom: 12px; }
.blog-body ul, .blog-body ol { padding-left: 24px; margin-bottom: 16px; }
.blog-body li { margin-bottom: 6px; list-style: disc; }
.blog-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px; margin: 16px 0;
  background: var(--primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

/* ===== Reactions ===== */
.reactions-bar {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 0;
}
.reaction-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 24px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition); text-decoration: none;
}
.reaction-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.reaction-btn.active {
  background: var(--primary-soft); border-color: var(--primary); color: var(--primary);
  font-weight: 600;
}

/* ===== Comments ===== */
.comments-section { margin-top: 40px; }
.comments-section h3 {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--border-light);
}
.comment-form textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-size: 0.95rem; font-family: var(--font);
  resize: vertical; min-height: 80px;
  transition: all var(--transition);
}
.comment-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.comment {
  padding: 20px; margin-top: 16px;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.comment:hover { border-color: var(--border); }
.comment-body-flex { display: flex; gap: 14px; }
.comment-avatar { flex-shrink: 0; }
.comment-content { flex: 1; min-width: 0; }
.comment-header {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px; font-size: 0.88rem;
}
.comment-header strong { color: var(--text); font-size: 0.9rem; }
.comment-text { font-size: 0.92rem; line-height: 1.6; color: var(--text-secondary); }
.comment-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.comment-reply-btn { margin-top: 8px; }
.comment-replies { margin-left: 40px; margin-top: 8px; }
.comment-reply { background: var(--bg-card); border-color: var(--border-light); }

.avatar-img, .avatar-img-sm {
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-light);
}
.avatar-img { width: 40px; height: 40px; }
.avatar-img-sm { width: 32px; height: 32px; }
.avatar-placeholder, .avatar-placeholder-sm {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--text-muted);
  background: var(--bg-card); border: 2px solid var(--border);
}
.avatar-placeholder { width: 40px; height: 40px; font-size: 1rem; }
.avatar-placeholder-sm { width: 32px; height: 32px; font-size: 0.85rem; }

/* ===== Reviews ===== */
.review-form textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-size: 0.95rem; font-family: var(--font);
  resize: vertical; min-height: 80px;
  transition: all var(--transition);
}
.review-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.rating-input { display: flex; align-items: center; gap: 10px; }
.rating-input label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.rating-select {
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg);
  color: var(--text); font-size: 0.9rem; font-family: var(--font);
}
.review {
  padding: 20px; margin-top: 16px;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.review:hover { border-color: var(--border); }
.review-header {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px; font-size: 0.88rem;
}
.review-header strong { font-size: 0.95rem; }
.review-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 1px; }
.review-text {
  font-size: 0.92rem; line-height: 1.65; color: var(--text-secondary);
}

/* ===== Viewers ===== */
.viewers { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.viewer-chip {
  display: inline-block; padding: 3px 10px;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: 16px; font-size: 0.78rem; color: var(--text-muted);
}

/* ===== Product Detail ===== */
.product-header {
  padding: 40px 0 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.product-header h1 {
  font-size: 2rem; font-weight: 800; margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.product-desc { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 16px; }
.product-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.5; }

/* Features Grid */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-item {
  padding: 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--transition);
}
.feature-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.feature-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* Changelog */
.changelog-entry {
  padding: 20px; margin-bottom: 12px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.changelog-entry .version {
  font-weight: 700; color: var(--primary);
  background: var(--primary-soft); padding: 2px 10px;
  border-radius: 12px; font-size: 0.82rem; margin-right: 10px;
}
.changelog-entry .date { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Forms (General) ===== */
.form-container { max-width: 700px; margin: 40px auto; }
.form-box {
  background: var(--bg-card); padding: 36px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text); font-size: 0.9rem; }
.form-control {
  width: 100%; padding: 11px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-size: 0.95rem; font-family: var(--font);
  transition: all var(--transition);
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft); background: var(--bg-card);
}
.form-text { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.form-errors { font-size: 0.85rem; color: var(--danger); margin-top: 4px; }

/* Legacy form-card (password reset etc.) */
.form-card {
  max-width: 460px; margin: 60px auto; padding: 44px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  text-align: center;
}
.form-card h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; }
.form-card .form-group { text-align: left; margin-bottom: 18px; }
.form-card label {
  display: block; margin-bottom: 6px; font-weight: 600;
  font-size: 0.88rem; color: var(--text-secondary);
}
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"] {
  width: 100%; padding: 11px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-size: 0.95rem; font-family: var(--font);
  transition: all var(--transition);
}
.form-card input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-actions { margin-top: 24px; }
.form-footer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
}

/* ===== Messages ===== */
.messages {
  padding: 0; margin: 16px 0;
}
.messages li {
  padding: 12px 20px; border-radius: var(--radius-sm);
  margin-bottom: 8px; font-size: 0.9rem; font-weight: 500;
  border: 1px solid;
}
.messages .success { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.messages .error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.messages .warning { background: var(--warning-soft); color: #92400e; border-color: var(--warning); }
.messages .info { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 32px 0; text-align: center; margin-top: auto;
}
.footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Badges ===== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 16px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--bg); color: var(--text-muted); border: 1px solid var(--border-light);
}
.badge-primary { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.badge-secondary { background: var(--secondary-soft); color: var(--secondary); border-color: transparent; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-soft); color: #92400e; border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
[data-theme="dark"] .badge-warning { color: var(--warning); }

/* ===== Empty States ===== */
.empty { text-align: center; padding: 48px 20px; }
.empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.6; }
.empty p { color: var(--text-muted); font-size: 1rem; }

/* ===== Utilities ===== */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ===== Video ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.video-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-info {
  padding: 16px 20px;
}
.video-info strong {
  font-size: 1rem; font-weight: 700; color: var(--text);
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .auth-card { padding: 32px 24px; }
  .dashboard-block { padding: 20px; }
  .feed-item { padding: 20px; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .comment-replies { margin-left: 16px; }
  .section-title { font-size: 1.4rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; gap: 8px; }
  .hero-buttons .btn { width: 100%; }
  .review-form textarea { font-size: 16px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
