/* =====================================================
   RAPID NEWS LIVE - Main Stylesheet (Premium White Theme)
   ===================================================== */

:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #1d3557;
  --accent: #457b9d;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --text-light: #adb5bd;
  --border: #e9ecef;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --font-heading: 'Manrope', sans-serif;
  --transition: 0.25s ease;
}

body.dark-mode {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --bg-card: #1c2128;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-secondary); color: var(--text); background: var(--bg); line-height: 1.6; transition: background var(--transition), color var(--transition); }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
input, textarea, select { outline: none; font-family: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

#reading-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--primary), #ff6b6b); z-index: 9999; transition: width 0.1s linear; }

/* TOP BAR */
.top-bar { background: var(--secondary); color: #fff; padding: 6px 0; font-size: 12px; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.date-display { opacity: 0.85; }
.live-badge { display: flex; align-items: center; gap: 5px; background: var(--primary); padding: 2px 10px; border-radius: 20px; font-weight: 600; font-size: 11px; letter-spacing: 0.5px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.12); font-size: 11px; transition: background var(--transition); }
.social-links a:hover { background: var(--primary); color: #fff; }
.dark-toggle { color: #fff; font-size: 14px; padding: 4px 8px; border-radius: 4px; transition: background var(--transition); }
.dark-toggle:hover { background: rgba(255,255,255,0.15); }
.btn-login { background: var(--primary); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; transition: background var(--transition); }
.btn-login:hover { background: var(--primary-dark); color: #fff; }
.btn-user { color: #fff; font-size: 18px; }

/* HEADER MAIN */
.header-main { background: var(--bg); padding: 12px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); transition: transform 0.3s ease; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo-wrap { flex-shrink: 0; }
.site-logo img { height: 50px; width: auto; }
.header-ad { flex: 1; display: flex; justify-content: center; overflow: hidden; }
.header-search { flex-shrink: 0; }
.header-search form { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 30px; overflow: hidden; transition: border-color var(--transition); }
.header-search form:focus-within { border-color: var(--primary); }
.header-search input { padding: 8px 16px; font-size: 14px; width: 240px; border: none; background: transparent; color: var(--text); }
.header-search button { padding: 8px 16px; background: var(--primary); color: #fff; font-size: 14px; border-radius: 0 28px 28px 0; }

/* NAVIGATION */
.main-nav { background: var(--secondary); position: relative; z-index: 900; }
.main-nav .container { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: block; padding: 12px 14px; color: #fff; font-size: 13px; font-weight: 500; font-family: var(--font-primary); letter-spacing: 0.2px; transition: background var(--transition); white-space: nowrap; }
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: #fff; background: rgba(255,255,255,0.12); }
.nav-menu > li.has-dropdown > a i { font-size: 10px; margin-left: 4px; }

.dropdown { position: absolute; top: 100%; left: 0; background: var(--bg-card); min-width: 200px; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition); z-index: 999; border-top: 3px solid var(--primary); }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 9px 18px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); transition: all var(--transition); }
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--primary); color: #fff; padding-left: 24px; }
.states-dd { columns: 3; min-width: 480px; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: all var(--transition); border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* BREAKING TICKER */
.breaking-ticker { background: #fff1f2; border-bottom: 2px solid var(--primary); padding: 8px 0; }
body.dark-mode .breaking-ticker { background: #1a0507; }
.ticker-wrap { display: flex; align-items: center; overflow: hidden; }
.ticker-label { flex-shrink: 0; z-index: 2; }
.red-bg { background: var(--primary); color: #fff; padding: 4px 14px; font-size: 11px; font-weight: 700; letter-spacing: 1px; border-radius: 3px; }
.ticker-content { flex: 1; overflow: hidden; margin-left: 12px; }
.ticker-items { display: flex; animation: ticker-scroll 35s linear infinite; gap: 60px; white-space: nowrap; }
.ticker-items:hover { animation-play-state: paused; }
.ticker-item { font-size: 13px; font-weight: 500; color: var(--text); flex-shrink: 0; }
.ticker-item::before { content: '●'; color: var(--primary); margin-right: 8px; }
@keyframes ticker-scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* LAYOUT */
.page-wrapper { min-height: 100vh; }
.content-area { padding: 28px 0; }
.grid-main { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
.grid-main.full-width { grid-template-columns: 1fr; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 12px; }
.section-title { font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--text); }
.section-title::before { content: ''; display: inline-block; width: 4px; height: 22px; background: var(--primary); border-radius: 2px; margin-right: 10px; vertical-align: middle; }
.section-more { font-size: 13px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.section-more:hover { color: var(--primary-dark); }

/* HERO SLIDER */
.hero-section { margin-bottom: 36px; }
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #000; height: 480px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.hero-slide-content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%); padding: 40px 28px 28px; }
.hero-category { display: inline-block; background: var(--primary); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.hero-title { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 10px; }
.hero-meta { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.75); font-size: 12px; }
.hero-controls { position: absolute; bottom: 20px; right: 20px; display: flex; gap: 6px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all var(--transition); }
.hero-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; z-index: 5; transition: background var(--transition); }
.hero-arrow:hover { background: var(--primary); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }

/* NEWS CARDS */
.news-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); border: 1px solid var(--border); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-img { overflow: hidden; aspect-ratio: 16/9; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-body { padding: 14px; }
.news-card-cat { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; border-left: 3px solid var(--primary); padding-left: 6px; }
.news-card-title { font-family: var(--font-heading); font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--text); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-title:hover { color: var(--primary); }
.news-card-meta { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-muted); }

.news-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.news-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.news-card-h { display: flex; gap: 12px; padding: 12px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); transition: all var(--transition); }
.news-card-h:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.news-card-h .thumb { width: 100px; flex-shrink: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.news-card-h .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card-h .body { flex: 1; min-width: 0; }
.news-card-h .title { font-family: var(--font-heading); font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-h .meta { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

.ranked-list { display: flex; flex-direction: column; }
.ranked-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.ranked-item:last-child { border-bottom: none; }
.rank-num { font-family: var(--font-heading); font-size: 28px; font-weight: 900; color: var(--border); line-height: 1; flex-shrink: 0; width: 32px; }
.rank-num.top3 { color: var(--primary); }
.rank-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.rank-title:hover { color: var(--primary); }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--bg-card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.widget-title { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.sidebar-sticky { position: sticky; top: 80px; }

.poll-question { font-weight: 600; font-size: 15px; margin-bottom: 14px; line-height: 1.4; }
.poll-option { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.poll-option input[type=radio] { accent-color: var(--primary); }
.poll-option label { font-size: 13px; font-weight: 500; cursor: pointer; }
.poll-bar-wrap { margin-bottom: 8px; }
.poll-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.poll-bar-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.5s ease; }
.poll-percent { font-size: 12px; font-weight: 600; color: var(--primary); }
.btn-vote { background: var(--primary); color: #fff; padding: 9px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; width: 100%; margin-top: 10px; transition: background var(--transition); }
.btn-vote:hover { background: var(--primary-dark); }
.btn-vote:disabled { opacity: 0.5; cursor: not-allowed; }

.newsletter-widget p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: var(--bg-alt); color: var(--text); }
.newsletter-form button { background: var(--primary); color: #fff; padding: 10px; border-radius: 6px; font-size: 13px; font-weight: 600; transition: background var(--transition); }
.newsletter-form button:hover { background: var(--primary-dark); }

/* SINGLE ARTICLE */
.article-header { margin-bottom: 24px; }
.article-cat-badge { display: inline-block; background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.article-title { font-family: var(--font-heading); font-size: 32px; font-weight: 800; line-height: 1.3; color: var(--text); margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.author-info { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 600; font-size: 14px; }
.article-date, .article-views { font-size: 13px; color: var(--text-muted); }
.article-featured-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.article-featured-img img { width: 100%; max-height: 480px; object-fit: cover; }
.article-body { font-size: 16px; line-height: 1.8; color: var(--text); }
.article-body h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin: 28px 0 12px; }
.article-body h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin: 22px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 12px 0 16px 24px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { border-left: 4px solid var(--primary); background: var(--bg-alt); padding: 16px 20px; margin: 20px 0; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; font-size: 17px; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body img { border-radius: var(--radius); margin: 16px 0; width: 100%; }

.share-section { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share-label { font-weight: 600; font-size: 14px; }
.share-btn { display: flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #fff; transition: opacity var(--transition); }
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-fb { background: #1877f2; } .share-tw { background: #000; } .share-wa { background: #25d366; } .share-copy { background: var(--text-muted); }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; align-items: center; }
.tag-badge { background: var(--bg-alt); border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; transition: all var(--transition); }
.tag-badge:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.author-box { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 24px; display: flex; gap: 20px; margin: 28px 0; border: 1px solid var(--border); }
.author-box-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--primary); }
.author-box-info h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.author-box-info .role { font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.author-box-info p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.comments-section { margin-top: 32px; }
.comment-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; overflow: hidden; }
.comment-content h5 { font-weight: 600; font-size: 14px; }
.comment-content .comment-date { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.comment-content p { font-size: 14px; color: var(--text); }
.comment-form { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.comment-form input, .comment-form textarea { padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; width: 100%; font-size: 14px; background: var(--bg); color: var(--text); }
.comment-form textarea { min-height: 100px; resize: vertical; }
.btn-submit-comment { background: var(--primary); color: #fff; padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; transition: background var(--transition); }
.btn-submit-comment:hover { background: var(--primary-dark); }

/* WEB STORIES */
.stories-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.story-card { flex-shrink: 0; width: 130px; border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; aspect-ratio: 9/16; box-shadow: var(--shadow); }
.story-card img { width: 100%; height: 100%; object-fit: cover; }
.story-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.story-card-title { position: absolute; bottom: 12px; left: 0; right: 0; padding: 0 10px; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3; z-index: 1; }
.story-ring { position: absolute; inset: 3px; border: 3px solid var(--primary); border-radius: 12px; z-index: 2; opacity: 0.85; }

/* VIDEOS */
.video-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); }
.play-btn i { font-size: 46px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); transition: transform var(--transition); }
.video-card:hover .play-btn i { transform: scale(1.1); }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.75); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 4px; }
.video-card-body { padding: 12px; }
.video-title { font-weight: 700; font-size: 14px; line-height: 1.4; margin-bottom: 6px; }

/* BADGES */
.badge-breaking { background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; letter-spacing: 0.5px; text-transform: uppercase; }
.badge-trending { background: #ff9f1c; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.badge-new { background: #2ec4b6; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }

/* PAGINATION */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 32px 0; }
.page-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; font-weight: 600; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); transition: all var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* FORMS */
.auth-wrapper { max-width: 440px; margin: 40px auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.auth-wrapper h1 { font-family: var(--font-heading); font-size: 24px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.auth-wrapper .sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.auth-footer { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--bg); color: var(--text); transition: border-color var(--transition); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,57,70,0.12); }
textarea.form-control { resize: vertical; min-height: 120px; }
.btn-primary { background: var(--primary); color: #fff; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: background var(--transition); display: inline-block; text-align: center; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-primary.full { width: 100%; }
.btn-secondary { background: var(--secondary); color: #fff; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.btn-outline { border: 2px solid var(--border); padding: 10px 26px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text); transition: all var(--transition); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.form-msg { font-size: 13px; margin-top: 8px; padding: 8px 12px; border-radius: 6px; display: none; }
.form-msg.success { background: #d4edda; color: #155724; display: block; }
.form-msg.error { background: #f8d7da; color: #721c24; display: block; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }

/* FOOTER */
.footer-ad-strip { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 12px 0; text-align: center; }
.site-footer { background: var(--secondary); color: #cfd8e3; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 32px; margin-bottom: 32px; }
.footer-logo img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-col p { font-size: 13px; line-height: 1.7; color: #a0aec0; }
.footer-heading { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 2px; background: var(--primary); }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: #a0aec0; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; transition: background var(--transition); }
.footer-social a:hover { background: var(--primary); }
.footer-newsletter input { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter button { background: var(--primary); }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 16px 0; text-align: center; font-size: 13px; color: #718096; }
.footer-bottom p { margin-bottom: 4px; }
.footer-bottom-links { display: flex; justify-content: center; gap: 12px; }
.footer-bottom-links a { color: #718096; }
.footer-bottom-links a:hover { color: var(--primary); }

#backToTop { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; background: var(--primary); color: #fff; border-radius: 50%; box-shadow: 0 4px 14px rgba(230,57,70,0.4); font-size: 16px; display: none; align-items: center; justify-content: center; z-index: 999; transition: all var(--transition); }
#backToTop:hover { background: var(--primary-dark); transform: translateY(-2px); }
#backToTop.show { display: flex; }

.cat-header { background: linear-gradient(135deg, var(--secondary), var(--accent)); padding: 32px 0; margin-bottom: 28px; color: #fff; }
.cat-header h1 { font-family: var(--font-heading); font-size: 32px; font-weight: 800; margin-bottom: 6px; }
.cat-header p { opacity: 0.8; font-size: 14px; }

.search-hero { background: var(--bg-alt); padding: 40px 0; margin-bottom: 28px; text-align: center; border-bottom: 1px solid var(--border); }
.search-hero h1 { font-family: var(--font-heading); font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.search-big-form { display: flex; max-width: 600px; margin: 0 auto; border: 2px solid var(--primary); border-radius: 40px; overflow: hidden; }
.search-big-form input { flex: 1; padding: 14px 24px; font-size: 16px; border: none; background: var(--bg); color: var(--text); }
.search-big-form button { padding: 14px 24px; background: var(--primary); color: #fff; font-size: 16px; }

.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* DASHBOARD (frontend user) */
.dash-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.dash-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; height: fit-content; }
.dash-user { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.dash-user img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 3px solid var(--primary); }
.dash-user h4 { font-size: 15px; font-weight: 700; }
.dash-user p { font-size: 12px; color: var(--text-muted); }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 4px; transition: all var(--transition); }
.dash-nav a:hover, .dash-nav a.active { background: var(--primary); color: #fff; }
.dash-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.dash-content h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.stat-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-alt); border-radius: var(--radius); padding: 18px; text-align: center; border: 1px solid var(--border); }
.stat-card .num { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* UTILITY */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.d-block { display: block; }
.mt-6 { margin-top: 6px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-28 { margin-bottom: 28px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.no-results i { font-size: 48px; margin-bottom: 14px; display: block; }
.static-page { max-width: 860px; margin: 0 auto; }
.static-page h1 { font-family: var(--font-heading); font-size: 30px; font-weight: 800; margin-bottom: 20px; }
.static-page h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin: 24px 0 10px; }
.static-page p { margin-bottom: 14px; line-height: 1.75; color: var(--text); }
.static-page ul { margin: 10px 0 14px 22px; }
.static-page li { margin-bottom: 8px; }

@keyframes pulse { 0%,100% { transform: scale(1); opacity:1; } 50% { transform: scale(1.3); opacity:.7; } }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease forwards; }
