/* =============================================================================
   MINIODES.CSS — Core Branding & UI
   India's Gen Z-first Regional Content Platform
   Built on Bootstrap 5 + Streamit base
   Author: Miniodes Dev Team | v1.0.0
   ============================================================================= */

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

/* -------------------------------------------------------------------------- */
/* CSS Custom Properties                                                        */
/* -------------------------------------------------------------------------- */
:root,
[data-theme="light"],
[data-bs-theme="light"] {
  --mn-primary:           #FF5722;
  --mn-secondary:         #D81B60;
  --mn-accent:            #FF9100;
  --mn-gradient:          linear-gradient(135deg, #FF5722 0%, #FF1744 50%, #D81B60 100%);
  --mn-gradient-reverse:  linear-gradient(135deg, #D81B60 0%, #FF1744 50%, #FF5722 100%);
  --mn-bg-dark:           #f8fafc;
  --mn-bg-card:           #ffffff;
  --mn-bg-surface:        #ffffff;
  --mn-bg-elevated:       #f1f5f9;
  --mn-text-primary:      #0f172a;
  --mn-text-secondary:    #334155;
  --mn-text-muted:        #64748b;
  --mn-border:            rgba(15, 23, 42, 0.08);
  --mn-border-light:      rgba(15, 23, 42, 0.12);
  --mn-radius-sm:         10px;
  --mn-radius:            16px;
  --mn-radius-lg:         24px;
  --mn-radius-xl:         32px;
  --mn-shadow-sm:         0 2px 8px rgba(15, 23, 42, 0.04);
  --mn-shadow:            0 10px 30px -4px rgba(15, 23, 42, 0.07);
  --mn-shadow-lg:         0 20px 40px -8px rgba(15, 23, 42, 0.12);
  --mn-shadow-glow:       0 8px 24px rgba(255, 87, 34, 0.28);
  --mn-navbar-bg:         rgba(255, 255, 255, 0.88);
  --mn-input-bg:          #ffffff;
  --nav-height:           64px;
  --bottom-nav-height:    66px;
  --sidebar-width:        240px;
  --right-panel-width:    290px;
}

/* -------------------------------------------------------------------------- */
/* Dark Mode Luxury Tokens & Overrides                                        */
/* -------------------------------------------------------------------------- */
[data-theme="dark"],
[data-bs-theme="dark"] {
  --mn-primary:           #FF6B35;
  --mn-secondary:         #E91E8C;
  --mn-accent:            #FFB300;
  --mn-gradient:          linear-gradient(135deg, #FF6B35 0%, #E91E8C 100%);
  --mn-gradient-reverse:  linear-gradient(135deg, #E91E8C 0%, #FF6B35 100%);
  --mn-bg-dark:           #09090b;
  --mn-bg-card:           #121215;
  --mn-bg-surface:        #18181c;
  --mn-bg-elevated:       #222228;
  --mn-text-primary:      #ffffff;
  --mn-text-secondary:    rgba(255, 255, 255, 0.75);
  --mn-text-muted:        rgba(255, 255, 255, 0.45);
  --mn-border:            rgba(255, 255, 255, 0.09);
  --mn-border-light:      rgba(255, 255, 255, 0.16);
  --mn-shadow-sm:         0 2px 10px rgba(0, 0, 0, 0.3);
  --mn-shadow:            0 12px 36px rgba(0, 0, 0, 0.5);
  --mn-shadow-lg:         0 24px 48px rgba(0, 0, 0, 0.7);
  --mn-shadow-glow:       0 0 25px rgba(255, 107, 53, 0.35);
  --mn-navbar-bg:         rgba(9, 9, 11, 0.88);
  --mn-input-bg:          #16161a;
}

/* -------------------------------------------------------------------------- */
/* Universal Form Inputs & High-Visibility Placeholders                       */
/* -------------------------------------------------------------------------- */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="number"],
textarea,
select {
  background-color: var(--mn-input-bg) !important;
  color: var(--mn-text-primary) !important;
  border: 1.5px solid var(--mn-border-light) !important;
  border-radius: var(--mn-radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  background-color: var(--mn-input-bg) !important;
  color: var(--mn-text-primary) !important;
  border-color: var(--mn-primary) !important;
  box-shadow: 0 0 0 3.5px rgba(255, 87, 34, 0.22) !important;
  outline: none !important;
}

::placeholder,
::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder,
.form-control::placeholder {
  color: var(--mn-text-muted) !important;
  opacity: 0.85 !important;
  font-weight: 400 !important;
}

.input-group-text {
  background-color: var(--mn-bg-elevated) !important;
  color: var(--mn-primary) !important;
  border: 1.5px solid var(--mn-border-light) !important;
  font-size: 14px;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.85rem;
  letter-spacing: 0.5px;
}

.mn-otp-digit {
  background-color: var(--mn-input-bg) !important;
  color: var(--mn-text-primary) !important;
  border: 2px solid var(--mn-border-light) !important;
  font-weight: 700;
}

.mn-otp-digit:focus {
  border-color: var(--mn-primary) !important;
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.25) !important;
}

/* -------------------------------------------------------------------------- */
/* Universal Component Theme Adaptations                                      */
/* -------------------------------------------------------------------------- */
body {
  background-color: var(--mn-bg-dark);
  color: var(--mn-text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mn-navbar {
  background: var(--mn-navbar-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--mn-border);
  transition: all 0.3s ease;
}

.mn-sidebar {
  background: var(--mn-bg-card);
  border-right: 1px solid var(--mn-border);
  transition: all 0.3s ease;
}

.mn-right-panel {
  background: var(--mn-bg-card);
  border-left: 1px solid var(--mn-border);
  transition: all 0.3s ease;
}

.mn-bottom-nav {
  background: var(--mn-navbar-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--mn-border);
  transition: all 0.3s ease;
}

.mn-icon-btn,
.mn-navbar__icon-btn {
  background: var(--mn-bg-elevated);
  border: 1px solid var(--mn-border);
  color: var(--mn-text-primary);
  transition: all 0.2s ease;
}

.mn-icon-btn:hover,
.mn-navbar__icon-btn:hover {
  background: var(--mn-border-light);
  transform: translateY(-1px);
}

.mn-dropdown-dark {
  background: var(--mn-bg-card) !important;
  color: var(--mn-text-primary) !important;
  border: 1px solid var(--mn-border) !important;
  box-shadow: var(--mn-shadow) !important;
  border-radius: var(--mn-radius) !important;
}

.mn-dropdown-dark .dropdown-item {
  color: var(--mn-text-primary) !important;
}

.mn-dropdown-dark .dropdown-item:hover {
  background: rgba(255, 87, 34, 0.08) !important;
  color: var(--mn-primary) !important;
}

.mn-dropdown-dark .dropdown-header {
  color: var(--mn-text-primary) !important;
}

.bg-surface {
  background-color: var(--mn-bg-card) !important;
  border: 1px solid var(--mn-border);
  box-shadow: var(--mn-shadow-sm);
  transition: all 0.3s ease;
}

.bg-dark {
  background-color: var(--mn-bg-elevated) !important;
}

[data-theme="light"] .text-white,
[data-bs-theme="light"] .text-white {
  color: var(--mn-text-primary) !important;
}

[data-theme="light"] .text-white-50,
[data-bs-theme="light"] .text-white-50 {
  color: var(--mn-text-secondary) !important;
}

.table-dark {
  --bs-table-bg: var(--mn-bg-card);
  --bs-table-striped-bg: var(--mn-bg-elevated);
  --bs-table-hover-bg: var(--mn-border-light);
  --bs-table-color: var(--mn-text-primary);
  --bs-table-border-color: var(--mn-border);
}

.mn-admin-sidebar {
  background-color: var(--mn-bg-card) !important;
  border-color: var(--mn-border) !important;
}

.mn-admin-body {
  background-color: var(--mn-bg-dark) !important;
  color: var(--mn-text-primary) !important;
}

.mn-news-card,
.mn-drama-card,
.mn-course-card {
  background: var(--mn-bg-card);
  border: 1px solid var(--mn-border);
  box-shadow: var(--mn-shadow-sm);
  border-radius: var(--mn-radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mn-news-card:hover,
.mn-drama-card:hover,
.mn-course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--mn-shadow);
  border-color: var(--mn-border-light);
}

.mn-category-tabs {
  background: var(--mn-navbar-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--mn-border);
  box-shadow: var(--mn-shadow);
}

.mn-cat-tab {
  color: var(--mn-text-secondary);
}

.mn-cat-tab:hover {
  background: var(--mn-border);
  color: var(--mn-text-primary);
}

.mn-cat-tab.active {
  color: #ffffff !important;
  background: var(--mn-gradient) !important;
  box-shadow: var(--mn-shadow-glow);
}

/* -------------------------------------------------------------------------- */
/* Base & Typography                                                            */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--mn-bg-dark);
  color: var(--mn-text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--mn-text-primary); }
a { color: var(--mn-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--mn-secondary); }
p { color: var(--mn-text-secondary); }
img { max-width: 100%; height: auto; display: block; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--mn-bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,107,53,0.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--mn-primary); }

/* -------------------------------------------------------------------------- */
/* Gradient Utilities                                                           */
/* -------------------------------------------------------------------------- */
.mn-gradient-text, .text-gradient {
  background: var(--mn-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mn-gradient-bg { background: var(--mn-gradient); }

.mn-gradient-btn {
  background: var(--mn-gradient);
  color: #fff;
  border: none;
  border-radius: var(--mn-radius);
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mn-gradient-btn:hover { transform: scale(1.03); box-shadow: var(--mn-shadow-glow); color: #fff; }
.mn-gradient-btn:active { transform: scale(0.98); }

/* -------------------------------------------------------------------------- */
/* Top Navigation (.mn-navbar)                                                 */
/* -------------------------------------------------------------------------- */
.mn-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1050;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mn-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.mn-brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  max-width: 140px;
}

.mn-brand-logo-img {
  height: 36px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  flex-shrink: 0;
}

.mn-brand-logo:hover .mn-brand-logo-img {
  transform: scale(1.03);
}

@media (max-width: 576px) {
  .mn-brand-logo {
    max-width: 110px;
  }
  .mn-brand-logo-img {
    height: 30px !important;
    max-width: 95px !important;
  }
}

.mn-navbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.mn-navbar__icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mn-bg-surface);
  border: 1px solid var(--mn-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--mn-text-secondary);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  position: relative;
}
.mn-navbar__icon-btn:hover { background: var(--mn-bg-elevated); color: var(--mn-text-primary); }

.mn-navbar__badge {
  position: absolute; top: 2px; right: 2px;
  width: 14px; height: 14px;
  background: var(--mn-gradient); border-radius: 50%;
  font-size: 9px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--mn-bg-dark);
}

.mn-navbar__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; cursor: pointer;
  border: 2px solid var(--mn-primary);
}

.mn-navbar__links { display: none; align-items: center; gap: 4px; }

.mn-navbar__link {
  padding: 6px 14px; border-radius: var(--mn-radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--mn-text-secondary);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.mn-navbar__link:hover, .mn-navbar__link.active {
  background: rgba(255,107,53,0.12);
  color: var(--mn-primary);
}

@media (max-width: 767.98px) {
  .mn-navbar__logo { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* -------------------------------------------------------------------------- */
/* Bottom Mobile Navigation (.mn-bottom-nav)                                   */
/* -------------------------------------------------------------------------- */
.mn-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  z-index: 1040;
  background: var(--mn-navbar-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--mn-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px calc(env(safe-area-inset-bottom, 0px) + 2px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.mn-bottom-nav .mn-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--mn-text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  padding: 6px 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mn-nav-icon-wrap {
  width: 32px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mn-bottom-nav .mn-nav-item:hover .mn-nav-icon-wrap,
.mn-bottom-nav .mn-nav-item.active .mn-nav-icon-wrap {
  transform: translateY(-2px);
}

.mn-bottom-nav .mn-nav-item.active {
  color: var(--mn-primary) !important;
  font-weight: 700;
}

.mn-bottom-nav .mn-nav-item.active i {
  color: var(--mn-primary) !important;
  display: inline-block;
  transform: scale(1.1);
  filter: drop-shadow(0 2px 8px rgba(255, 87, 34, 0.4));
}

.mn-bottom-nav .mn-nav-item.active span {
  color: var(--mn-primary) !important;
  font-weight: 700;
}

.mn-bottom-nav .mn-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 14px;
  height: 3px;
  border-radius: 4px;
  background: var(--mn-gradient);
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.5);
}

/* -------------------------------------------------------------------------- */
/* Desktop Navbar Links & Badges                                              */
/* -------------------------------------------------------------------------- */
.mn-desktop-link {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mn-text-secondary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
}

.mn-desktop-link:hover {
  color: var(--mn-primary);
  background: rgba(255, 87, 34, 0.08);
}

.mn-desktop-link.active {
  color: #ffffff !important;
  background: var(--mn-gradient) !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}

.mn-vip-link {
  border: 1px solid rgba(255, 179, 0, 0.3);
  background: rgba(255, 179, 0, 0.08);
  color: #ffb300 !important;
  font-weight: 700 !important;
}

.mn-vip-link:hover {
  background: rgba(255, 179, 0, 0.18) !important;
  box-shadow: 0 4px 14px rgba(255, 179, 0, 0.35);
}

/* -------------------------------------------------------------------------- */
/* Desktop Left Sidebar (.mn-sidebar)                                          */
/* -------------------------------------------------------------------------- */
.mn-sidebar {
  display: none;
  position: fixed; top: var(--nav-height); left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--nav-height));
  z-index: 1000;
  background: var(--mn-bg-card);
  border-right: 1px solid var(--mn-border);
  flex-direction: column;
  overflow-y: auto; padding: 16px 12px;
  scrollbar-width: none;
}
.mn-sidebar::-webkit-scrollbar { display: none; }

.mn-sidebar__section-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--mn-text-muted);
  padding: 8px 12px 6px;
}

.mn-sidebar__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--mn-radius-sm);
  color: var(--mn-text-secondary);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  text-decoration: none; margin-bottom: 2px;
}
.mn-sidebar__item:hover { background: rgba(255,107,53,0.1); color: var(--mn-primary); }
.mn-sidebar__item.active { background: rgba(255,107,53,0.15); color: var(--mn-primary); font-weight: 600; }

.mn-sidebar__icon { width: 20px; text-align: center; font-size: 18px; flex-shrink: 0; }
.mn-sidebar__divider { height: 1px; background: var(--mn-border); margin: 12px 0; }

/* -------------------------------------------------------------------------- */
/* Desktop Right Panel (.mn-right-panel)                                       */
/* -------------------------------------------------------------------------- */
.mn-right-panel {
  display: none;
  position: fixed; top: var(--nav-height); right: 0;
  width: var(--right-panel-width);
  height: calc(100vh - var(--nav-height));
  z-index: 1000;
  background: var(--mn-bg-card);
  border-left: 1px solid var(--mn-border);
  overflow-y: auto; padding: 20px 16px;
  scrollbar-width: thin;
}

.mn-right-panel__title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--mn-text-muted); margin-bottom: 14px;
}

.mn-right-panel__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--mn-border);
  cursor: pointer; transition: opacity .2s;
}
.mn-right-panel__item:hover { opacity: 0.8; }

.mn-right-panel__thumb {
  width: 52px; height: 52px; border-radius: var(--mn-radius-sm);
  object-fit: cover; flex-shrink: 0; background: var(--mn-bg-elevated);
}

.mn-right-panel__label {
  font-size: 12px; font-weight: 600; color: var(--mn-text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.mn-right-panel__meta { font-size: 11px; color: var(--mn-text-muted); margin-top: 2px; }

/* -------------------------------------------------------------------------- */
/* Main Layout & Feed Center                                                  */
/* -------------------------------------------------------------------------- */
.mn-main-content {
  padding-top: var(--nav-height);
  padding-bottom: var(--bottom-nav-height);
  min-height: 100dvh;
}

.mn-desktop-layout {
  display: flex;
  width: 100%;
  min-height: calc(100dvh - var(--nav-height));
  position: relative;
}

.mn-feed-center {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* Category Tabs Bar (.mn-category-tabs-wrap)                                  */
/* -------------------------------------------------------------------------- */
.mn-category-tabs-wrap {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 12px;
}

.mn-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 6px 12px;
  background: rgba(14, 14, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.mn-category-tabs::-webkit-scrollbar {
  display: none;
}

.mn-cat-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  line-height: 1.2;
}

.mn-cat-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.mn-cat-tab.active {
  color: #ffffff !important;
  background: var(--mn-gradient) !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.45);
  border-color: transparent !important;
}

/* -------------------------------------------------------------------------- */
/* Vertical Feed (.mn-feed)                                                    */
/* -------------------------------------------------------------------------- */
#mn-feed, .mn-feed {
  height: calc(100dvh - var(--nav-height) - var(--bottom-nav-height));
  height: calc(100vh - var(--nav-height) - var(--bottom-nav-height));
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#mn-feed::-webkit-scrollbar, .mn-feed::-webkit-scrollbar { display: none; }

/* -------------------------------------------------------------------------- */
/* Feed Item (.mn-feed-item)                                                   */
/* -------------------------------------------------------------------------- */
.mn-feed-item {
  height: calc(100dvh - var(--nav-height) - var(--bottom-nav-height));
  height: calc(100vh - var(--nav-height) - var(--bottom-nav-height));
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* Video Player Container (.mn-video-wrap)                                     */
/* -------------------------------------------------------------------------- */
.mn-video-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mn-video-wrap video, .mn-feed-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: auto;
  cursor: pointer;
}

.mn-feed-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mn-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 6;
}
.mn-play-indicator.visible {
  opacity: 1;
  animation: mn-fade-in 0.2s ease;
}

/* -------------------------------------------------------------------------- */
/* Content Overlay (.mn-content-overlay)                                       */
/* -------------------------------------------------------------------------- */
.mn-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 76px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}
.mn-content-overlay > * { pointer-events: auto; }

.mn-content-category {
  display: inline-block;
  background: var(--mn-gradient);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.mn-content-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.mn-content-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82) !important;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.mn-creator-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mn-avatar-xs {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.mn-follow-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mn-follow-btn:hover, .mn-follow-btn.following {
  background: var(--mn-gradient);
  border-color: transparent;
}

/* -------------------------------------------------------------------------- */
/* Action Buttons (.mn-action-bar)                                             */
/* -------------------------------------------------------------------------- */
.mn-action-bar {
  position: absolute;
  right: 10px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  z-index: 20;
  pointer-events: auto;
}

.mn-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0;
  text-decoration: none;
}

.mn-action-btn i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}

.mn-action-btn:hover i, .mn-action-btn:active i {
  transform: scale(1.12);
  background: rgba(0, 0, 0, 0.85);
}

.mn-action-btn span {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  line-height: 1;
}

.mn-action-btn.active i, .mn-action-btn.liked i {
  background: var(--mn-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.5);
  animation: mn-like-pop 0.3s ease;
}

/* -------------------------------------------------------------------------- */
/* Mute Button (.mn-mute-btn)                                                 */
/* -------------------------------------------------------------------------- */
.mn-mute-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mn-mute-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.08);
}

/* -------------------------------------------------------------------------- */
/* Real-Time Reel Video Progress Bar (.mn-feed-progress)                      */
/* -------------------------------------------------------------------------- */
.mn-feed-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 25;
  pointer-events: none;
}

.mn-feed-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--mn-gradient);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(255, 87, 34, 0.8);
  transition: width 0.1s linear;
}

/* -------------------------------------------------------------------------- */
/* Double-Tap Heart Burst Animation (.mn-double-tap-heart)                    */
/* -------------------------------------------------------------------------- */
.mn-double-tap-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 80px;
  color: #ff1744;
  text-shadow: 0 0 30px rgba(255, 23, 68, 0.9), 0 0 60px rgba(255, 23, 68, 0.6);
  pointer-events: none;
  z-index: 35;
  opacity: 0;
}

.mn-double-tap-heart.active {
  animation: mn-double-tap-burst 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes mn-double-tap-burst {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(-15deg);
    opacity: 0;
  }
  30% {
    transform: translate(-50%, -50%) scale(1.25) rotate(0deg);
    opacity: 1;
  }
  65% {
    transform: translate(-50%, -50%) scale(1.05) rotate(5deg);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5) translateY(-35px) rotate(12deg);
    opacity: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* News Card (.mn-news-card)                                                   */
/* -------------------------------------------------------------------------- */
.mn-news-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--mn-border);
  cursor: pointer; transition: background .15s ease; border-radius: var(--mn-radius-sm);
}
.mn-news-card:hover, .mn-news-card:active {
  background: rgba(255,255,255,0.03);
  padding-left: 8px; padding-right: 8px;
}
.mn-news-card__image {
  width: 100px; height: 100px; border-radius: var(--mn-radius-sm);
  object-fit: cover; flex-shrink: 0; background: var(--mn-bg-elevated);
}
.mn-news-card__body { flex: 1; min-width: 0; }
.mn-news-card__category {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--mn-primary); margin-bottom: 4px;
}
.mn-news-card__title {
  font-size: 14px; font-weight: 600; color: var(--mn-text-primary);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 6px;
}
.mn-news-card__meta {
  font-size: 11px; color: var(--mn-text-muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/* Drama Card (.mn-drama-card)                                                 */
/* -------------------------------------------------------------------------- */
.mn-drama-card {
  position: relative; border-radius: var(--mn-radius);
  overflow: hidden; aspect-ratio: 2/3;
  background: var(--mn-bg-elevated); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mn-drama-card:hover { transform: translateY(-4px); box-shadow: var(--mn-shadow); }

.mn-drama-card__poster {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.mn-drama-card:hover .mn-drama-card__poster { transform: scale(1.04); }

.mn-drama-card__overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}
.mn-drama-card__title { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; }

.mn-drama-card__premium {
  position: absolute; top: 10px; right: 10px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000; font-size: 9px; font-weight: 800;
  text-transform: uppercase; padding: 3px 8px;
  border-radius: 20px; letter-spacing: 0.5px;
}

.mn-drama-card__lock {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; background: rgba(0,0,0,0.6);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
}

/* -------------------------------------------------------------------------- */
/* Course Card (.mn-course-card)                                               */
/* -------------------------------------------------------------------------- */
.mn-course-card {
  background: var(--mn-bg-card); border: 1px solid var(--mn-border);
  border-radius: var(--mn-radius); overflow: hidden;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
  display: flex; gap: 12px; padding: 12px; align-items: flex-start;
}
.mn-course-card:hover { transform: translateY(-2px); box-shadow: var(--mn-shadow); }

.mn-course-card__thumb {
  width: 100px; flex-shrink: 0;
  border-radius: var(--mn-radius-sm); overflow: hidden;
  aspect-ratio: 16/9; background: var(--mn-bg-elevated);
}
.mn-course-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mn-course-card__body { flex: 1; min-width: 0; }
.mn-course-card__title {
  font-size: 13px; font-weight: 600; color: var(--mn-text-primary);
  line-height: 1.4; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mn-course-card__instructor { font-size: 11px; color: var(--mn-text-muted); margin-bottom: 6px; }
.mn-course-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mn-course-card__duration { font-size: 11px; color: var(--mn-text-secondary); display: flex; align-items: center; gap: 4px; }
.mn-course-card__progress { width: 100%; height: 3px; background: var(--mn-border); border-radius: 4px; overflow: hidden; }
.mn-course-card__progress-fill { height: 100%; background: var(--mn-gradient); border-radius: 4px; transition: width .4s ease; }

/* -------------------------------------------------------------------------- */
/* Comment Drawer (.mn-comment-drawer)                                         */
/* -------------------------------------------------------------------------- */
.mn-comment-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 1060;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.mn-comment-backdrop.active { opacity: 1; visibility: visible; }

.mn-comment-drawer {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 60dvh; background: var(--mn-bg-surface);
  border-radius: var(--mn-radius-lg) var(--mn-radius-lg) 0 0;
  z-index: 1070; display: flex; flex-direction: column;
  transform: translateY(100%); visibility: hidden;
  transition: transform .35s cubic-bezier(0.4,0,0.2,1), visibility .35s;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
}
.mn-comment-drawer.active { transform: translateY(0); visibility: visible; }

.mn-comment-drawer__handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.2); border-radius: 4px;
  margin: 12px auto 0; flex-shrink: 0;
}
.mn-comment-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--mn-border); flex-shrink: 0;
}
.mn-comment-drawer__title { font-size: 15px; font-weight: 700; color: var(--mn-text-primary); }
.mn-comment-drawer__close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mn-bg-elevated); border: none;
  color: var(--mn-text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
}

.mn-comment-list { flex: 1; overflow-y: auto; padding: 12px 16px; scrollbar-width: thin; }

.mn-comment { display: flex; gap: 10px; margin-bottom: 16px; }
.mn-comment__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--mn-bg-elevated); }
.mn-comment__body { flex: 1; }
.mn-comment__username { font-size: 12px; font-weight: 700; color: var(--mn-text-primary); margin-bottom: 2px; }
.mn-comment__text { font-size: 13px; color: var(--mn-text-secondary); line-height: 1.5; }
.mn-comment__meta { font-size: 11px; color: var(--mn-text-muted); margin-top: 4px; display: flex; align-items: center; gap: 12px; }

.mn-comment-input-bar {
  padding: 12px 16px; border-top: 1px solid var(--mn-border);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--mn-bg-surface);
}
.mn-comment-input {
  flex: 1; background: var(--mn-bg-elevated);
  border: 1px solid var(--mn-border); border-radius: 20px;
  padding: 10px 16px; color: var(--mn-text-primary);
  font-family: 'Poppins', sans-serif; font-size: 13px;
  outline: none; transition: border-color .2s;
}
.mn-comment-input:focus { border-color: var(--mn-primary); }

.mn-comment-submit {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--mn-gradient); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; flex-shrink: 0; transition: transform .2s ease;
}
.mn-comment-submit:hover { transform: scale(1.08); }

/* -------------------------------------------------------------------------- */
/* Profile Page (.mn-profile)                                                  */
/* -------------------------------------------------------------------------- */
.mn-profile__cover {
  width: 100%; height: 180px; object-fit: cover;
  background: linear-gradient(135deg, var(--mn-bg-elevated), var(--mn-bg-card));
  display: block;
}
.mn-profile__header { position: relative; padding: 0 16px 16px; margin-top: -40px; }

.mn-profile__avatar-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  padding: 3px; background: var(--mn-gradient); margin-bottom: 10px;
}
.mn-profile__avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--mn-bg-dark); display: block; }

.mn-profile__name { font-size: 20px; font-weight: 800; color: var(--mn-text-primary); margin-bottom: 2px; }
.mn-profile__handle { font-size: 13px; color: var(--mn-text-muted); margin-bottom: 8px; }
.mn-profile__bio { font-size: 13px; color: var(--mn-text-secondary); line-height: 1.5; margin-bottom: 14px; }

.mn-profile__stats {
  display: flex; align-items: center;
  background: var(--mn-bg-card); border-radius: var(--mn-radius);
  overflow: hidden; border: 1px solid var(--mn-border); margin-bottom: 16px;
}
.mn-profile__stat { flex: 1; text-align: center; padding: 12px 8px; border-right: 1px solid var(--mn-border); }
.mn-profile__stat:last-child { border-right: none; }
.mn-profile__stat-value {
  font-size: 18px; font-weight: 800;
  background: var(--mn-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2;
}
.mn-profile__stat-label { font-size: 10px; color: var(--mn-text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }

.mn-profile__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mn-profile__tabs::-webkit-scrollbar { display: none; }
.mn-profile__tab {
  flex-shrink: 0; padding: 8px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--mn-text-muted);
  background: var(--mn-bg-elevated); border: 1px solid var(--mn-border);
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.mn-profile__tab.active { background: var(--mn-gradient); color: #fff; border-color: transparent; }

/* -------------------------------------------------------------------------- */
/* Admin Panel (.mn-admin-*)                                                   */
/* -------------------------------------------------------------------------- */
.mn-admin-layout { display: flex; min-height: 100vh; background: #111111; }

.mn-admin-sidebar {
  width: 250px; flex-shrink: 0; background: #0f0f0f;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; padding: 20px 12px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; scrollbar-width: none;
}
.mn-admin-sidebar__logo {
  font-size: 20px; font-weight: 800;
  background: var(--mn-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  padding: 4px 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 12px;
}
.mn-admin-sidebar__label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--mn-text-muted); padding: 8px 12px 6px;
}
.mn-admin-sidebar__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--mn-radius-sm);
  color: var(--mn-text-secondary); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background .2s ease, color .2s ease;
  text-decoration: none; margin-bottom: 1px;
}
.mn-admin-sidebar__item:hover { background: rgba(255,107,53,0.1); color: var(--mn-primary); }
.mn-admin-sidebar__item.active { background: var(--mn-gradient); color: #fff; font-weight: 600; }

.mn-admin-content { flex: 1; padding: 28px; min-width: 0; background: #111111; }

.mn-admin-stat-card {
  background: var(--mn-bg-card); border: 1px solid var(--mn-border);
  border-left: 3px solid var(--mn-primary);
  border-radius: var(--mn-radius); padding: 20px;
  transition: transform .2s ease;
}
.mn-admin-stat-card:hover { transform: translateY(-2px); }
.mn-admin-stat-card__value {
  font-size: 28px; font-weight: 800;
  background: var(--mn-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2;
}
.mn-admin-stat-card__label { font-size: 12px; color: var(--mn-text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.mn-admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mn-admin-table th {
  text-align: left; padding: 10px 16px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--mn-text-muted);
  border-bottom: 1px solid var(--mn-border); cursor: pointer; user-select: none;
}
.mn-admin-table th:hover { color: var(--mn-primary); }
.mn-admin-table td { padding: 12px 16px; color: var(--mn-text-secondary); border-bottom: 1px solid var(--mn-border); vertical-align: middle; }
.mn-admin-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.mn-admin-table tr:hover td { background: rgba(255,107,53,0.04); color: var(--mn-text-primary); }

/* -------------------------------------------------------------------------- */
/* Loading States                                                               */
/* -------------------------------------------------------------------------- */
.mn-skeleton {
  background: linear-gradient(90deg, var(--mn-bg-elevated) 0%, rgba(255,255,255,0.06) 50%, var(--mn-bg-elevated) 100%);
  background-size: 200% 100%;
  animation: mn-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--mn-radius-sm);
}
.mn-skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 4px; }
.mn-skeleton-text.short { width: 60%; }
.mn-skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }

.mn-loader { display: flex; align-items: center; justify-content: center; padding: 40px; }
.mn-loader__ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--mn-border);
  border-top-color: var(--mn-primary);
  border-right-color: var(--mn-secondary);
  animation: mn-spin .8s linear infinite;
}

/* -------------------------------------------------------------------------- */
/* Utility Classes                                                              */
/* -------------------------------------------------------------------------- */
.mn-pill {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  background: var(--mn-bg-elevated); color: var(--mn-text-secondary);
  border: 1px solid var(--mn-border);
}
.mn-tag {
  display: inline-block; padding: 3px 9px; border-radius: var(--mn-radius-sm);
  font-size: 11px; font-weight: 600;
  background: rgba(255,107,53,0.12); color: var(--mn-primary);
}

.mn-avatar-xs  { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--mn-border-light); }
.mn-avatar-sm  { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--mn-border-light); }
.mn-avatar-md  { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--mn-border-light); }
.mn-avatar-lg  { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--mn-border-light); }

.mn-premium-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.mn-breaking-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  background: #e53935; color: #fff;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  animation: mn-pulse 1.5s ease infinite;
}
.mn-breaking-badge::before {
  content: '';
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
  animation: mn-pulse 1.5s ease infinite;
}

.mn-progress-bar { width: 100%; height: 4px; background: var(--mn-border); border-radius: 4px; overflow: hidden; }
.mn-progress-bar__fill { height: 100%; background: var(--mn-gradient); border-radius: 4px; transition: width .5s ease; }

/* OTP Input */
.mn-otp-inputs { display: flex; gap: 10px; justify-content: center; }
.mn-otp-box {
  width: 48px; height: 56px;
  border: 2px solid var(--mn-border-light); border-radius: var(--mn-radius);
  background: var(--mn-bg-elevated); color: var(--mn-text-primary);
  font-size: 22px; font-weight: 700; text-align: center;
  outline: none; transition: border-color .2s ease, box-shadow .2s ease;
  font-family: 'Poppins', sans-serif;
}
.mn-otp-box:focus { border-color: var(--mn-primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.15); }
.mn-otp-box.filled { border-color: var(--mn-secondary); background: rgba(233,30,140,0.06); }

/* Interest Grid */
.mn-interest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.mn-interest-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 10px; border-radius: var(--mn-radius);
  border: 1.5px solid var(--mn-border); background: var(--mn-bg-card);
  cursor: pointer; transition: all .2s ease; text-align: center; gap: 6px;
}
.mn-interest-item .icon { font-size: 24px; }
.mn-interest-item .label { font-size: 11px; font-weight: 600; color: var(--mn-text-secondary); }
.mn-interest-item.selected { border-color: var(--mn-primary); background: rgba(255,107,53,0.1); }
.mn-interest-item.selected .label { color: var(--mn-primary); }

/* Toast notifications */
.mn-toast-container {
  position: fixed; top: calc(var(--nav-height) + 12px);
  left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column;
  align-items: center; gap: 8px; pointer-events: none;
  width: 90%; max-width: 400px;
}
.mn-toast {
  padding: 12px 20px; border-radius: var(--mn-radius);
  font-size: 13px; font-weight: 500; color: #fff;
  box-shadow: var(--mn-shadow);
  animation: mn-slide-up .3s ease, mn-fade-in .3s ease;
  pointer-events: auto; text-align: center;
  backdrop-filter: blur(8px);
}
.mn-toast.success { background: rgba(40,167,69,0.92); }
.mn-toast.error   { background: rgba(220,53,69,0.92); }
.mn-toast.info    { background: rgba(23,162,184,0.92); }
.mn-toast.warning { background: rgba(255,107,53,0.92); }

/* Search Overlay */
.mn-search-overlay {
  position: fixed; inset: 0;
  background: var(--mn-bg-dark); z-index: 1080;
  padding: var(--nav-height) 16px 16px;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .3s ease, visibility .3s ease;
}
.mn-search-overlay.active { transform: translateY(0); visibility: visible; }

.mn-search-input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--mn-bg-elevated); border: 1px solid var(--mn-border-light);
  border-radius: 40px; padding: 0 16px; margin-bottom: 20px;
}
.mn-search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--mn-text-primary); font-family: 'Poppins', sans-serif;
  font-size: 15px; padding: 14px 0;
}
.mn-search-input::placeholder { color: var(--mn-text-muted); }

/* -------------------------------------------------------------------------- */
/* Animations / @keyframes                                                      */
/* -------------------------------------------------------------------------- */
@keyframes mn-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.2); opacity: 0.7; }
}
@keyframes mn-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes mn-slide-up {
  from { transform: translateY(20px); }
  to   { transform: translateY(0); }
}
@keyframes mn-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes mn-like-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@keyframes mn-spin { to { transform: rotate(360deg); } }
@keyframes mn-bounce-in {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

/* -------------------------------------------------------------------------- */
/* Media Queries — Mobile First                                                 */
/* -------------------------------------------------------------------------- */

/* >= 576px */
@media (min-width: 576px) {
  .mn-feed-item { max-width: 420px; margin: 0 auto; }
  .mn-interest-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* >= 768px */
@media (min-width: 768px) {
  .mn-feed-item { max-width: 400px; border-radius: var(--mn-radius-lg); }
  .mn-comment-drawer { max-width: 540px; left: 50%; transform: translateX(-50%) translateY(100%); }
  .mn-comment-drawer.active { transform: translateX(-50%) translateY(0); }
  .mn-profile__cover { height: 240px; }
  .mn-profile__avatar-wrap { width: 100px; height: 100px; }
  .mn-news-card__image { width: 120px; height: 120px; }
}

/* >= 992px — desktop layout */
@media (min-width: 992px) {
  .mn-bottom-nav  { display: none !important; }
  .mn-sidebar     { display: flex; }
  .mn-right-panel { display: block; }
  .mn-navbar__links { display: flex; }

  .mn-main-content {
    padding-bottom: 0;
    padding-left: var(--sidebar-width);
    padding-right: var(--right-panel-width);
  }
  .mn-content-overlay { padding-bottom: 20px; }
  .mn-action-bar { bottom: 20px; }
  .mn-feed-center { padding: 12px 0; }
  .mn-feed-item {
    max-width: 390px;
    aspect-ratio: 9/16;
    height: calc(100dvh - var(--nav-height) - 24px);
    border-radius: var(--mn-radius-xl);
    box-shadow: var(--mn-shadow-lg);
    border: 1px solid var(--mn-border);
    margin: 0 auto;
  }
  #mn-feed, .mn-feed {
    height: calc(100dvh - var(--nav-height));
  }
}

/* >= 1200px */
@media (min-width: 1200px) {
  :root { --sidebar-width: 240px; --right-panel-width: 300px; }
  .mn-sidebar { width: 240px; }
  .mn-right-panel { width: 300px; }
  .mn-feed-item { max-width: 400px; }
  .mn-admin-content { padding: 36px; }
}

/* >= 1400px */
@media (min-width: 1400px) {
  .mn-feed-item { max-width: 420px; }
}
