/* ================================================
   YTGuide - Main Stylesheet
   Corporate & Clean Design
   ================================================ */

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

:root {
  --primary:       #1a1a2e;
  --primary-light: #16213e;
  --accent:        #e63946;
  --accent-hover:  #c1121f;
  --gold:          #f4a261;
  --text:          #1e1e2e;
  --text-muted:    #6b7280;
  --bg:            #f8f9fc;
  --bg-card:       #ffffff;
  --border:        #e5e7eb;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 48px rgba(0,0,0,.14);
  --transition:    .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---- Navbar ---- */
.navbar {
  background: var(--primary);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 800;
  color: #fff !important;
}
.navbar-brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: rgba(255,255,255,.8);
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Language Switcher */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7); padding: 4px 8px;
  border-radius: 6px; cursor: pointer; font-size: 12px;
  transition: all var(--transition);
}
.lang-btn:hover, .lang-btn.active { 
  background: var(--accent); border-color: var(--accent); color: #fff; 
}

/* Mobile menu */
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; margin: 5px 0;
  transition: all var(--transition);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(230,57,70,.4); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-light); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-header { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.card-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #0d0d1a 100%);
  color: #fff; padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(230,57,70,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(244,162,97,.08) 0%, transparent 50%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(230,57,70,.2); border: 1px solid rgba(230,57,70,.4);
  color: #ff8a94; padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.hero-title { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; margin-bottom: 20px; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,.7); margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-preview {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 24px; width: 100%; max-width: 380px;
}
.yt-embed-preview {
  width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; overflow: hidden;
}
.play-btn-big {
  width: 60px; height: 60px; background: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer; transition: transform var(--transition);
}
.play-btn-big:hover { transform: scale(1.1); }

/* ---- Stats Row ---- */
.stats-row {
  background: #fff; padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.stats-inner { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 24px; }
.stat-item { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.stat-num span { color: var(--accent); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ---- Section Headers ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge {
  display: inline-block; background: rgba(230,57,70,.1);
  color: var(--accent); padding: 4px 16px;
  border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 12px; letter-spacing: .5px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1rem; }

/* ---- Video Cards ---- */
.video-card { border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
.video-thumb {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.video-card:hover .video-thumb-overlay { opacity: 1; }
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.8); color: #fff;
  padding: 2px 7px; border-radius: 4px; font-size: 12px; font-weight: 600;
}
.video-info { padding: 16px 0 0; }
.video-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.video-meta { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 12px; }
.video-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.video-stars { color: #fbbf24; font-size: 14px; }
.video-channel { font-weight: 500; font-size: 13px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px;
  background: #fff; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230,57,70,.12); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ---- Auth Pages ---- */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 40px; width: 100%; max-width: 480px;
  box-shadow: 0 25px 80px rgba(0,0,0,.3);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-text { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.auth-logo .logo-text span { color: var(--accent); }
.auth-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.divider { text-align: center; position: relative; margin: 20px 0; color: var(--text-muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.divider::before { left: 0; }
.divider::after { right: 0; }

/* Alert / Flash */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: var(--radius);
  margin-bottom: 20px; font-size: 14px; font-weight: 500;
}
.flash-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.flash-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.flash-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.flash-icon { font-size: 18px; }

/* ---- Pricing Section ---- */
.pricing-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pricing-card {
  background: #fff; border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  text-align: center; transition: all var(--transition);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(230,57,70,.2);
  transform: scale(1.04);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 4px 18px; border-radius: 20px; font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--primary); margin: 16px 0 4px; }
.pricing-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 12px; }
.pricing-price .free-text { font-size: 2rem; color: var(--success); }
.pricing-period { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; text-align: left; }
.pricing-features li { padding: 8px 0; font-size: 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border: none; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ---- Blog Cards ---- */
.blog-card { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--border); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px; }
.blog-cat-badge {
  display: inline-block; padding: 3px 12px;
  border-radius: 20px; font-size: 11px; font-weight: 700;
  background: rgba(230,57,70,.1); color: var(--accent);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px;
}
.blog-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card-excerpt { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.blog-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); }

/* ---- Tools Section ---- */
.tools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.tool-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--border);
  transition: all var(--transition);
}
.tool-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(230,57,70,.12); }
.tool-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 24px; margin-bottom: 16px;
  color: #fff;
}
.tool-card h3 { margin-bottom: 8px; }
.tool-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.tool-input-row { display: flex; gap: 8px; }
.tool-input-row .form-control { flex: 1; }

/* Tags */
.tag {
  display: inline-flex; align-items: center;
  background: rgba(230,57,70,.08); color: var(--accent);
  border: 1px solid rgba(230,57,70,.2); padding: 5px 12px;
  border-radius: 20px; font-size: 13px; margin: 4px;
  cursor: pointer; transition: all var(--transition);
}
.tag:hover { background: var(--accent); color: #fff; }
.tag-output { display: flex; flex-wrap: wrap; gap: 4px; padding: 16px; min-height: 80px; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fafafa; }

/* ---- Consulting ---- */
.consult-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.consult-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px; border: 2px solid var(--border);
  transition: all var(--transition); text-align: center;
}
.consult-card.popular { border-color: var(--accent); position: relative; }
.consult-price { font-size: 2.8rem; font-weight: 800; color: var(--primary); margin: 16px 0; }
.consult-price sup { font-size: 1.2rem; }
.consult-features { list-style: none; margin: 20px 0; text-align: left; }
.consult-features li { padding: 8px 0; font-size: 13px; display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--border); }
.consult-features li:last-child { border: none; }
.consult-features li::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 15px; }

/* ---- Star Rating ---- */
.star-rating { display: flex; gap: 4px; cursor: pointer; }
.star { font-size: 24px; color: #e5e7eb; transition: color var(--transition); }
.star.active, .star:hover, .star-rating:hover .star { color: #fbbf24; }
.star-rating .star:hover ~ .star { color: #e5e7eb; }
.rating-display { display: flex; align-items: center; gap: 6px; }
.rating-display .stars { color: #fbbf24; letter-spacing: 1px; }
.rating-num { font-size: 13px; color: var(--text-muted); }

/* ---- Comments ---- */
.comment {
  display: flex; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.comment-author { font-weight: 600; }
.comment-time { color: var(--text-muted); }
.comment-text { font-size: 14px; line-height: 1.6; }

/* ---- Dashboard ---- */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--primary); color: #fff;
  padding: 28px 0; position: sticky; top: 68px;
  height: calc(100vh - 68px); overflow-y: auto;
}
.sidebar-user { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.sidebar-avatar { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--accent); object-fit: cover; margin-bottom: 10px; }
.sidebar-username { font-weight: 700; font-size: 15px; }
.sidebar-channel { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }
.sidebar-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 10px; margin-top: 6px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; color: rgba(255,255,255,.7);
  font-size: 14px; font-weight: 500;
  transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: #fff; background: rgba(255,255,255,.1);
  border-left: 3px solid var(--accent); padding-left: 17px;
}
.sidebar-section { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.3); padding: 16px 20px 6px; }
.main-content { padding: 32px; background: var(--bg); }
.dashboard-header { margin-bottom: 32px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.dash-stat-card {
  background: #fff; border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}
.dash-stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(230,57,70,.1); display: flex;
  align-items: center; justify-content: center; font-size: 22px;
  flex-shrink: 0;
}
.dash-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.dash-stat-label { font-size: 13px; color: var(--text-muted); }

/* ---- Notifications bell ---- */
.notif-bell { position: relative; cursor: pointer; }
.notif-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---- Badges / Labels ---- */
.badge-label {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.badge-free    { background: #d1fae5; color: #065f46; }
.badge-paid    { background: #dbeafe; color: #1e40af; }
.badge-admin   { background: #fee2e2; color: #991b1b; }
.badge-active  { background: #d1fae5; color: #065f46; }
.badge-pending { background: #fef3c7; color: #92400e; }

/* ---- Footer ---- */
.footer {
  background: var(--primary); color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; background: rgba(255,255,255,.1);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); transition: all var(--transition);
  font-size: 16px;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; text-align: center;
  font-size: 13px; color: rgba(255,255,255,.4);
}

/* ---- Misc ---- */
.separator { height: 1px; background: var(--border); margin: 32px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.fw-700 { font-weight: 700; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }

/* ---- Loading Spinner ---- */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Thumbnail generator canvas ---- */
.thumb-preview {
  width: 100%; aspect-ratio: 16/9;
  background: #1a1a2e; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pricing-cards, .consult-cards, .tools-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-stats { grid-template-columns: repeat(2,1fr); }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .navbar-inner { padding: 0 16px; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* ---- Animations ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-anim { animation: float 3s ease-in-out infinite; }

/* ---- Mobile nav overlay ---- */
.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: var(--primary); z-index: 2000;
  flex-direction: column; padding: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; color: rgba(255,255,255,.8);
  padding: 16px 0; font-size: 18px; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav-close { align-self: flex-end; background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; margin-bottom: 20px; }

/* ---- Tooltip ---- */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 5px 10px;
  border-radius: 6px; font-size: 12px; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity var(--transition);
}
[data-tooltip]:hover::after { opacity: 1; }

/* ---- Table ---- */
.table { width: 100%; border-collapse: collapse; }
.table th { background: var(--bg); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--border); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table tr:last-child td { border: none; }
.table tr:hover td { background: var(--bg); }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; color: var(--text-muted);
  cursor: pointer; transition: all var(--transition);
  background: #fff;
}
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
