/* ================================================
   ICON POLLS - Modern Theme CSS
   A professional ranking platform design
   ================================================ */

/* CSS Custom Properties */
:root {
    --primary: #2d1b4e;
    --primary-light: #3a2266;
    --accent: #e91e8c;
    --accent-hover: #c4186f;
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-muted: #8a8a9a;
    --bg-body: #f5f6fa;
    --bg-white: #ffffff;
    --bg-light: #f8f9fc;
    --border: #e8e9ef;
    --border-light: #f0f1f5;
    --success: #10b981;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ================================================
   RESET & BASE
   ================================================ */
.modern-theme {
    font-family: var(--font-main);
    color: var(--text-body);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modern-theme * {
    box-sizing: border-box;
}

.modern-theme a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.modern-theme a:hover {
    color: var(--accent);
    text-decoration: none;
}

.modern-theme h1, .modern-theme h2, .modern-theme h3,
.modern-theme h4, .modern-theme h5, .modern-theme h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.modern-theme img {
    max-width: 100%;
    height: auto;
}

/* Kill sidebar-nav arrow icons on frontend */
.modern-theme .fa.arrow,
.modern-theme .glyphicon.arrow,
.modern-theme .fa.plus-times,
.modern-theme .fa.plus-minus,
.modern-theme .m-nav .fa.arrow,
.modern-theme .m-footer .fa.arrow {
    display: none !important;
}

.modern-theme .arrow {
    display: none !important;
}

/* Kill nav-second-level from sidebar plugin */
.modern-theme .m-main .nav-second-level,
.modern-theme .m-footer .nav-second-level {
    display: none !important;
}

/* Fix any sidebar styles leaking into frontend */
.modern-theme .sidebar,
.modern-theme .sidebar-nav {
    display: none !important;
}

/* ================================================
   CONTAINER
   ================================================ */
.m-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.m-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   PRELOADER
   ================================================ */
.modern-theme .preloader {
    background: var(--primary);
}

/* ================================================
   HEADER / NAVIGATION
   ================================================ */
.m-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.m-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.m-logo {
    flex-shrink: 0;
}

.m-logo img {
    height: 36px;
    width: auto;
}

.m-logo-text {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.m-logo-text span {
    color: var(--accent);
}

/* Search */
.m-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.m-search input {
    width: 100%;
    padding: 9px 16px 9px 40px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.875rem;
    font-family: var(--font-main);
    transition: all var(--transition);
    outline: none;
}

.m-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

.m-search input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
}

.m-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    pointer-events: none;
}

.m-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border: none;
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background var(--transition);
}

.m-search button:hover {
    background: var(--accent-hover);
}

/* Nav Links */
.m-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.m-nav > li {
    position: relative;
}

.m-nav > li > a {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition);
    white-space: nowrap;
}

.m-nav > li > a:hover,
.m-nav > li.active > a {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.m-nav > li > a .caret-icon {
    font-size: 0.65rem;
    opacity: 0.6;
}

/* Dropdown */
.m-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1001;
    border: 1px solid var(--border);
    list-style: none;
    margin: 0;
}

.m-nav > li:hover > .m-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.m-dropdown li a {
    display: block;
    padding: 8px 18px;
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.m-dropdown li a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.m-dropdown li.active a {
    color: var(--accent);
    font-weight: 600;
}

/* Auth Button */
.m-btn-login {
    background: var(--accent);
    color: var(--primary) !important;
    font-weight: 600;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-size: 0.82rem !important;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.m-btn-login:hover {
    background: var(--accent-hover) !important;
    color: var(--primary) !important;
}

.m-user-menu {
    position: relative;
}

.m-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    cursor: pointer;
}

/* Mobile Menu Toggle */
.m-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
}

/* ================================================
   CATEGORY BAR (sub-header)
   ================================================ */
.m-catbar {
    background: var(--primary-light);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.m-catbar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}

.m-catbar-inner::-webkit-scrollbar {
    display: none;
}

.m-catbar a {
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    white-space: nowrap;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
}

.m-catbar a:hover,
.m-catbar a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ================================================
   HERO SECTION
   ================================================ */
.m-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}

.m-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233,30,140,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.m-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.m-hero h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.m-hero h1 span {
    color: var(--accent);
}

.m-hero p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Featured Hero (image overlay style) */
.m-hero-featured {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.m-hero-featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.m-hero-featured:hover .m-hero-featured-bg {
    transform: scale(1.03);
}

.m-hero-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45,27,78,0.95) 0%, rgba(45,27,78,0.4) 50%, rgba(45,27,78,0.2) 100%);
}

.m-hero-featured-content {
    position: relative;
    z-index: 1;
    padding: 48px 0;
    max-width: 650px;
}

.m-hero-label {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.m-hero-featured-content h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.m-hero-featured-content h1 span {
    color: var(--accent);
}

.m-hero-featured-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Trending Scroll */
.m-trending-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--border);
    -webkit-overflow-scrolling: touch;
}

.m-trending-scroll::-webkit-scrollbar {
    height: 4px;
}

.m-trending-scroll::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 2px;
}

.m-trending-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.m-trending-card {
    flex: 0 0 180px;
    text-decoration: none;
    transition: transform var(--transition);
}

.m-trending-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.m-trending-img {
    position: relative;
    width: 180px;
    height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 8px;
}

.m-trending-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.m-trending-card:hover .m-trending-img img {
    transform: scale(1.08);
}

.m-trending-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.m-trending-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-trending-card:hover .m-trending-title {
    color: var(--accent);
}

/* Magazine Grid */
.m-magazine-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    min-height: 420px;
}

.m-magazine-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    min-height: 420px;
}

.m-magazine-hero:hover {
    text-decoration: none;
}

.m-magazine-hero-img {
    position: absolute;
    inset: 0;
}

.m-magazine-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.m-magazine-hero:hover .m-magazine-hero-img img {
    transform: scale(1.05);
}

.m-magazine-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
}

.m-magazine-hero-content {
    position: relative;
    z-index: 1;
    padding: 28px;
}

.m-magazine-hero-content h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 10px 0 8px;
    line-height: 1.3;
}

.m-magazine-hero-content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-magazine-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m-magazine-side-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-decoration: none;
    transition: all var(--transition);
    flex: 1;
}

.m-magazine-side-card:hover {
    background: var(--bg-body);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.m-magazine-side-card img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.m-magazine-side-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-magazine-side-card:hover h4 {
    color: var(--accent);
}

/* ================================================
   SECTION HEADERS
   ================================================ */
.m-section {
    padding: 40px 0;
}

.m-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.m-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-section-title .m-badge {
    background: var(--accent);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-section-link {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.m-section-link:hover {
    color: var(--accent-hover);
}

/* ================================================
   RANKING CARDS (for polls)
   ================================================ */
.m-rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m-rank-card {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    gap: 16px;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.m-rank-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    text-decoration: none;
}

.m-rank-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.m-rank-card:nth-child(1) .m-rank-number { color: var(--accent); }
.m-rank-card:nth-child(2) .m-rank-number { color: #94a3b8; }
.m-rank-card:nth-child(3) .m-rank-number { color: #cd7f32; }

.m-rank-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.m-rank-info {
    flex: 1;
    min-width: 0;
}

.m-rank-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-rank-card:hover .m-rank-title {
    color: var(--accent);
}

.m-rank-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.m-rank-votes {
    flex-shrink: 0;
    text-align: center;
}

.m-rank-votes-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.m-rank-votes-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================
   ARTICLE CARDS (for blogs)
   ================================================ */
.m-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.m-article-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.m-article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border);
}

.m-article-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.m-article-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.m-article-card:hover .m-article-img-wrap img {
    transform: scale(1.05);
}

.m-article-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-article-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.m-article-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-article-card:hover .m-article-title {
    color: var(--accent);
}

.m-article-excerpt {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.m-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.m-article-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.m-article-readmore {
    color: var(--accent);
    font-weight: 600;
}

/* Featured Article (large) */
.m-featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 32px;
    transition: all var(--transition);
}

.m-featured-article:hover {
    box-shadow: var(--shadow-md);
}

.m-featured-article .m-article-img-wrap {
    aspect-ratio: auto;
    min-height: 300px;
}

.m-featured-article .m-article-body {
    padding: 32px;
    justify-content: center;
}

.m-featured-article .m-article-title {
    font-size: 1.5rem;
    -webkit-line-clamp: 3;
}

.m-featured-article .m-article-excerpt {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
}

/* ================================================
   CATEGORY CARDS
   ================================================ */
.m-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.m-cat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    display: block;
}

.m-cat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.m-cat-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.m-cat-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: capitalize;
}

.m-cat-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ================================================
   POLL/RANKING GRID (category pages)
   ================================================ */
.m-poll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.m-poll-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.m-poll-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.m-poll-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.m-poll-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.m-poll-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-poll-card:hover .m-poll-card-title {
    color: var(--accent);
}

.m-poll-card-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-poll-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-poll-card-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.m-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

.m-btn:hover {
    text-decoration: none;
}

.m-btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.m-btn-primary:hover {
    background: var(--accent-hover);
    color: var(--primary);
}

.m-btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.m-btn-outline:hover {
    background: var(--accent);
    color: var(--primary);
}

.m-btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
}

.m-btn-success {
    background: var(--success);
    color: #fff;
}

.m-btn-success:hover {
    background: #0d9668;
    color: #fff;
}

/* ================================================
   TWO COLUMN LAYOUT
   ================================================ */
.m-two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar */
.m-sidebar-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.m-sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.m-sidebar-list li {
    margin-bottom: 12px;
}

.m-sidebar-list li:last-child {
    margin-bottom: 0;
}

.m-sidebar-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
}

.m-sidebar-list li a:hover {
    color: var(--accent);
}

.m-sidebar-list li a img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.m-sidebar-list li a span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================
   BANNER (for category/about/blog pages)
   ================================================ */
.m-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.m-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233,30,140,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.m-banner h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.m-banner p {
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.m-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    justify-content: center;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.m-breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.m-breadcrumb a:hover {
    color: var(--accent);
}

/* ================================================
   BLOG DETAIL
   ================================================ */
.m-blog-detail {
    padding: 40px 0;
}

.m-blog-detail h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 12px;
}

.m-blog-meta-center {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.m-blog-content {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
}

.m-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.m-blog-feature-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

/* ================================================
   COMMENT SECTION
   ================================================ */
.m-comment-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 24px;
}

.m-comment-section h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

/* Comment form - textarea and input */
.m-comment-form textarea,
.m-comment-form .m-comment-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition);
    background: var(--bg-light);
    color: var(--text-dark);
}

.m-comment-form textarea {
    min-height: 100px;
}

.m-comment-form .m-comment-input {
    min-height: auto;
    resize: none;
}

.m-comment-form textarea:focus,
.m-comment-form .m-comment-input:focus {
    border-color: var(--accent);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(233,30,140,0.08);
}

.m-comment-form textarea::placeholder,
.m-comment-form .m-comment-input::placeholder {
    color: var(--text-muted);
}

.m-comment-form-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.m-comment-form-row .m-comment-input {
    flex: 1;
}

.m-comment-form .m-comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
    background: var(--accent);
    color: #fff;
    transition: all var(--transition);
    white-space: nowrap;
    height: 42px;
}

.m-comment-form .m-comment-submit:hover {
    background: var(--accent-hover);
}

.m-comment-warning {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Override custom.css conflicts within modern theme */
.modern-theme .m-comment-section .like-box {
    display: flex !important;
    gap: 12px;
    align-items: center;
    float: none !important;
}

.modern-theme .m-comment-section .like-box .btn-group-toggle {
    float: none !important;
    display: flex;
    gap: 12px;
    align-items: center;
}

.modern-theme .m-comment-section .feeds li {
    min-height: auto !important;
    display: block !important;
    clear: none !important;
    list-style: none;
}

.modern-theme .m-comment-section .feeds {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-theme .m-comment-section .white-box {
    padding: 0;
}

.modern-theme .m-comment-section .feeds li p {
    padding: 0 !important;
}

/* Comment items */
.m-comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.m-comment-item:last-child {
    border-bottom: none;
}

.m-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.m-comment-body {
    flex: 1;
    min-width: 0;
}

.m-comment-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.m-comment-author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.m-comment-date {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.m-comment-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-body);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Comment action buttons (like/dislike/report) */
.m-comment-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

.m-comment-actions .m-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-family: var(--font-main);
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-light);
    color: var(--text-muted);
    transition: all var(--transition);
    line-height: 1;
}

.m-comment-actions .m-action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(233,30,140,0.04);
}

.m-comment-actions .m-action-btn.m-like-active {
    border-color: var(--success);
    color: var(--success);
    background: rgba(16,185,129,0.06);
}

.m-comment-actions .m-action-btn.m-dislike-active {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239,68,68,0.06);
}

.m-comment-actions .m-action-btn.m-report-btn {
    margin-left: auto;
}

.m-comment-actions .m-action-btn.m-report-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245,158,11,0.06);
}

.m-comment-actions .m-action-btn.m-reported {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59,130,246,0.06);
}

.m-comment-actions .m-action-count {
    font-weight: 600;
    font-size: 0.75rem;
}

/* Empty comments state */
.m-comment-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Comment pagination override */
.m-comment-section .m-pagination,
.m-comment-section .comments-pagination-box,
.m-comment-section .pagination-box {
    margin-top: 20px;
}

.m-comment-section .pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.m-comment-section .pagination .page-item .page-link {
    border: 1px solid var(--border);
    color: var(--text-body);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--bg-white);
    transition: all var(--transition);
    font-family: var(--font-main);
    line-height: 1.4;
}

.m-comment-section .pagination .page-item .page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.m-comment-section .pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.m-comment-section .pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Recaptcha spacing */
.m-comment-form .m-recaptcha-wrap {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

/* ================================================
   FOOTER
   ================================================ */
.m-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.6);
    padding: 48px 0 24px;
    font-size: 0.85rem;
}

.m-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.m-footer-brand p {
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-top: 16px;
    font-size: 0.84rem;
}

.m-footer-brand .m-logo-text {
    font-size: 1.2rem;
}

.m-footer h6 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.m-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.m-footer-links li {
    margin-bottom: 8px;
}

.m-footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.84rem;
    transition: color var(--transition);
}

.m-footer-links a:hover {
    color: var(--accent);
}

.m-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
}

.m-footer-contact a {
    color: var(--accent);
}

.m-footer-contact a:hover {
    color: var(--accent-hover);
}

.m-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.m-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.m-footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ================================================
   PAGINATION
   ================================================ */
.m-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.m-pagination .page-item .page-link {
    border: 1px solid var(--border);
    color: var(--text-body);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-white);
    transition: all var(--transition);
    font-family: var(--font-main);
}

.m-pagination .page-item .page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-white);
}

.m-pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.m-pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    border-color: var(--border);
}

/* Global pagination override for modern theme */
.modern-theme .pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.modern-theme .pagination .page-item .page-link {
    border: 1px solid var(--border);
    color: var(--text-body);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--bg-white);
    transition: all var(--transition);
    font-family: var(--font-main);
    line-height: 1.4;
    text-decoration: none;
}

.modern-theme .pagination .page-item .page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-white);
    text-decoration: none;
}

.modern-theme .pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.modern-theme .pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    border-color: var(--border);
    opacity: 0.5;
}

/* Tame the « » arrow size in pagination */
.modern-theme .pagination .page-link[rel="prev"],
.modern-theme .pagination .page-link[rel="next"],
.modern-theme .pagination .page-item:first-child .page-link,
.modern-theme .pagination .page-item:last-child .page-link {
    font-size: 0.82rem;
}

/* ================================================
   LOGIN MODAL (modern override)
   ================================================ */
.modern-theme #login-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.modern-theme #login-modal .modal-header {
    background: var(--primary);
    padding: 20px 24px;
}

.modern-theme #login-modal .modal-header .modal-title {
    font-family: var(--font-main);
    font-weight: 700;
}

.modern-theme #login-modal .modal-body {
    padding: 28px;
    border: none;
}

.modern-theme #login-modal .social-btn-container a {
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
}

.modern-theme #login-modal .modal-footer {
    border-top: 1px solid var(--border);
}

/* ================================================
   EMPTY STATE
   ================================================ */
.m-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.m-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.m-empty p {
    font-size: 0.95rem;
}

/* ================================================
   STATS ROW (homepage)
   ================================================ */
.m-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.m-stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.m-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.m-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .m-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .m-two-col {
        grid-template-columns: 1fr;
    }

    .m-featured-article {
        grid-template-columns: 1fr;
    }

    .m-featured-article .m-article-img-wrap {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .m-header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        gap: 10px;
    }

    .m-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .m-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        background: var(--primary-light);
        border-radius: var(--radius-sm);
        padding: 8px;
        gap: 2px;
    }

    .m-nav.show {
        display: flex;
    }

    .m-nav > li > a {
        padding: 10px 14px;
    }

    .m-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border: none;
        border-radius: var(--radius-sm);
        padding: 4px 0 4px 16px;
    }

    .m-dropdown li a {
        color: rgba(255,255,255,0.6);
        padding: 6px 14px;
    }

    .m-dropdown li a:hover {
        background: rgba(255,255,255,0.05);
        color: var(--accent);
    }

    .m-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
        background: rgba(255,255,255,0.08);
    }

    /* Mobile nav links - larger touch targets */
    .m-nav > li > a {
        padding: 12px 14px;
        font-size: 0.9rem;
        border-radius: var(--radius-sm);
    }

    .m-nav > li > a:hover,
    .m-nav > li.active > a {
        background: rgba(255,255,255,0.08);
    }

    /* Mobile dropdown items */
    .m-dropdown li a {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    /* Mobile comment section */
    .m-comment-section {
        padding: 16px;
        margin-top: 16px;
    }

    .m-comment-form-row {
        flex-direction: column;
    }

    .m-comment-form-row .m-comment-submit {
        width: 100%;
        justify-content: center;
    }

    .m-comment-item {
        gap: 10px;
        padding: 12px 0;
    }

    .m-comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .m-comment-text {
        font-size: 0.84rem;
    }

    .m-comment-actions .m-action-btn {
        padding: 3px 8px;
        font-size: 0.72rem;
    }

    /* Mobile share bar */
    .m-share-bar {
        justify-content: flex-start;
    }

    .m-article-grid {
        grid-template-columns: 1fr;
    }

    .m-hero h1,
    .m-hero-featured-content h1 {
        font-size: 1.6rem;
    }

    .m-hero p {
        font-size: 0.9rem;
    }

    .m-hero-featured {
        min-height: 320px;
    }

    .m-magazine-grid {
        grid-template-columns: 1fr;
    }

    .m-magazine-hero {
        min-height: 280px;
    }

    .m-trending-card {
        flex: 0 0 150px;
    }

    .m-trending-img {
        width: 150px;
        height: 180px;
    }

    .m-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -20px;
    }

    .m-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .m-poll-grid {
        grid-template-columns: 1fr;
    }

    .m-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .m-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .m-section-title {
        font-size: 1.2rem;
    }

    .m-banner h1 {
        font-size: 1.5rem;
    }

    .m-blog-detail h1 {
        font-size: 1.5rem;
    }

    .m-blog-content {
        padding: 20px;
    }

    .m-catbar {
        display: none;
    }

    .m-poll-detail-card {
        padding: 16px;
    }

    .m-legal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .m-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .m-stat-card {
        padding: 14px;
    }

    .m-stat-number {
        font-size: 1.2rem;
    }

    .m-rank-card {
        padding: 12px 14px;
    }

    .m-rank-img {
        width: 44px;
        height: 44px;
    }

    .m-rank-number {
        font-size: 1.1rem;
    }
}

/* ================================================
   POLL DETAIL PAGE
   ================================================ */
.m-poll-detail-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 24px;
}

.m-poll-main .poll-heading h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.m-poll-main .poll-heading {
    margin-bottom: 16px;
}

.m-poll-main .poll-heading hr {
    border-color: var(--border);
}

/* Timer */
.m-poll-main .clockdiv-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

.m-poll-main .clockdiv-container .time-box {
    background: var(--primary) !important;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    text-align: center;
    min-width: 60px;
}

/* Options */
.m-poll-main .option-container,
.m-poll-main .card-poll {
    border: none;
    box-shadow: none;
}

.m-poll-main .option-container .option-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    transition: all var(--transition);
}

.m-poll-main .option-container .option-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.m-poll-main .option-container .option-item.selected,
.m-poll-main .option-container .option-item.active {
    border-color: var(--accent);
    background: rgba(233,30,140,0.04);
}

/* Vote button */
.m-poll-main .btn-vote,
.m-poll-main .poll-vote-btn {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    border-radius: 50px;
    padding: 10px 32px;
    font-weight: 600;
    font-family: var(--font-main);
    transition: all var(--transition);
}

.m-poll-main .btn-vote:hover,
.m-poll-main .poll-vote-btn:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

/* Results bars */
.m-poll-main .progress-bar,
.m-poll-main .poll-result-bar {
    background: var(--accent) !important;
}

.m-poll-main .progress {
    border-radius: 50px;
    height: 8px;
    background: var(--bg-light);
}

/* Poll view card overrides */
.m-poll-main .poll-view-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.m-poll-main .poll-view-card .card-body {
    padding: 0;
}

/* Poll theme colors override for modern */
.m-poll-main .poll-theme-white,
.m-poll-main .poll-theme-dark,
.m-poll-main .poll-theme-blue {
    background: transparent !important;
    color: var(--text-body) !important;
}

.m-poll-main .poll-theme-dark h1,
.m-poll-main .poll-theme-dark h2,
.m-poll-main .poll-theme-dark h3,
.m-poll-main .poll-theme-dark h4,
.m-poll-main .poll-theme-dark h5,
.m-poll-main .poll-theme-dark p,
.m-poll-main .poll-theme-dark span,
.m-poll-main .poll-theme-dark label {
    color: var(--text-dark) !important;
}

/* Comment section within poll */
.m-poll-main .poll-comment {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Legal page styles */
.m-legal-content {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
    line-height: 1.8;
}

.m-legal-content h2 {
    font-size: 1.3rem;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.m-legal-content h3 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 8px;
}

.m-legal-content h4 {
    font-size: 1rem;
    margin-top: 16px;
    margin-bottom: 8px;
}

.m-legal-content p {
    margin-bottom: 12px;
    color: var(--text-body);
}

.m-legal-content a {
    color: var(--accent);
}

.m-legal-content a:hover {
    color: var(--accent-hover);
}

/* ================================================
   UTILITY
   ================================================ */
/* Back to Top */
.m-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.m-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.m-back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Header shrink on scroll */
.m-header-shrink .m-header-inner {
    height: 52px;
}

.m-header-shrink .m-logo-text {
    font-size: 1.2rem;
}

/* Share buttons */
.m-share-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.m-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.m-share-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    text-decoration: none;
}

.m-mt-0 { margin-top: 0; }
.m-mb-0 { margin-bottom: 0; }
.m-text-center { text-align: center; }
.m-text-muted { color: var(--text-muted); }
.m-hidden { display: none !important; }
.m-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* ================================================
   VIEW STYLES — Poll Layout Variants
   ================================================ */

/* --- Shared: rank badge colors --- */
.vs-rank-1 { --rank-color: #FFD700; --rank-bg: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); }
.vs-rank-2 { --rank-color: #C0C0C0; --rank-bg: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%); }
.vs-rank-3 { --rank-color: #CD7F32; --rank-bg: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%); }

/* Animated bar fill on load */
@keyframes barGrow {
    from { width: 0; }
}

/* --- Vote checkbox indicator (visible in voting mode) --- */
.modern-theme .vs-vote-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--bg-white);
}
.modern-theme .vs-vote-check i {
    font-size: 0.7rem;
    color: transparent;
    transition: color 0.2s ease;
}
/* Spotlight overlay checkbox */
.modern-theme .vs-vote-check-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    border-color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.3);
}
.modern-theme .vs-vote-check-overlay i {
    color: transparent;
}

/* Selection state for all view styles */
.modern-theme .vs-ranked-item.selected,
.modern-theme .vs-compact-item.selected,
.modern-theme .vs-spotlight-card.selected {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(233,30,140,0.2), var(--shadow-sm);
}
.modern-theme .card-poll.selected .vs-vote-check {
    background: var(--accent);
    border-color: var(--accent);
}
.modern-theme .card-poll.selected .vs-vote-check i {
    color: #fff;
}
.modern-theme .card-poll.selected .vs-vote-check-overlay {
    background: var(--accent);
    border-color: var(--accent);
}
.modern-theme .vs-ranked-item.selected .vs-rank-badge,
.modern-theme .vs-compact-item.selected .vs-compact-rank {
    background: var(--accent);
    color: #fff;
}
/* Hover hint on voteable items */
.modern-theme .option-view-details .vs-ranked-item:hover .vs-vote-check,
.modern-theme .option-view-details .vs-compact-item:hover .vs-vote-check {
    border-color: var(--accent);
}
.modern-theme .option-view-details .vs-spotlight-card:hover .vs-vote-check-overlay {
    border-color: #fff;
    background: rgba(233,30,140,0.5);
}
/* Cursor pointer for voteable items */
.modern-theme .option-view-details .vs-ranked-item,
.modern-theme .option-view-details .vs-compact-item,
.modern-theme .option-view-details .vs-spotlight-card {
    cursor: pointer;
}

/* ================================================
   1. GRID CARDS (enhanced)
   ================================================ */
.modern-theme .vs-grid-enhanced .card-poll {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.modern-theme .vs-grid-enhanced .card-poll:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.modern-theme .vs-grid-rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: #fff;
    background: rgba(45,27,78,0.85);
}
.modern-theme .vs-grid-rank-badge.vs-rank-1 { background: var(--rank-bg); color: #1a1a2e; }
.modern-theme .vs-grid-rank-badge.vs-rank-2 { background: var(--rank-bg); color: #1a1a2e; }
.modern-theme .vs-grid-rank-badge.vs-rank-3 { background: var(--rank-bg); color: #fff; }

.modern-theme .vs-grid-country {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.modern-theme .vs-grid-result-bar {
    position: relative;
    width: calc(100% - 20px);
    margin: 0 10px 12px;
    height: 22px;
    background: var(--bg-light);
    border-radius: 11px;
    overflow: hidden;
}
.modern-theme .vs-grid-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 11px;
    animation: barGrow 0.8s ease-out;
    min-width: 2px;
}
.modern-theme .vs-grid-bar-label {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
}

/* ================================================
   2. RANKED LIST
   ================================================ */
.modern-theme .vs-ranked-list {
    display: flex !important;
    flex-direction: column;
    gap: 0;
}
.modern-theme .vs-ranked-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: none;
    margin: 0;
    width: 100%;
}
.modern-theme .vs-ranked-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.modern-theme .vs-ranked-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.modern-theme .vs-ranked-item:hover {
    background: var(--bg-light);
}
.modern-theme .vs-ranked-item.vs-rank-1 {
    background: linear-gradient(90deg, rgba(255,215,0,0.08) 0%, transparent 60%);
}
.modern-theme .vs-ranked-item.vs-rank-2 {
    background: linear-gradient(90deg, rgba(192,192,192,0.1) 0%, transparent 60%);
}
.modern-theme .vs-ranked-item.vs-rank-3 {
    background: linear-gradient(90deg, rgba(205,127,50,0.08) 0%, transparent 60%);
}

.modern-theme .vs-rank-badge {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    background: var(--bg-light);
    color: var(--text-body);
    border: 2px solid var(--border);
}
.modern-theme .vs-rank-1 > .vs-rank-badge {
    background: var(--rank-bg);
    border-color: #FFD700;
    color: #1a1a2e;
    font-size: 0.95rem;
}
.modern-theme .vs-rank-2 > .vs-rank-badge {
    background: var(--rank-bg);
    border-color: #C0C0C0;
    color: #1a1a2e;
}
.modern-theme .vs-rank-3 > .vs-rank-badge {
    background: var(--rank-bg);
    border-color: #CD7F32;
    color: #fff;
}

.modern-theme .vs-ranked-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-light);
}
.modern-theme .vs-ranked-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modern-theme .vs-ranked-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.modern-theme .vs-ranked-info {
    flex: 1;
    min-width: 0;
}
.modern-theme .vs-ranked-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 2px;
}
.modern-theme .vs-ranked-country {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.modern-theme .vs-ranked-bar-wrap {
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}
.modern-theme .vs-ranked-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 3px;
    animation: barGrow 1s ease-out;
    min-width: 2px;
}

.modern-theme .vs-ranked-votes {
    flex-shrink: 0;
    text-align: right;
    min-width: 60px;
}
.modern-theme .vs-vote-pct {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
    line-height: 1.2;
}
.modern-theme .vs-vote-count {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.2;
}
.modern-theme .vs-vote-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================
   3. COMPACT LIST
   ================================================ */
.modern-theme .vs-compact-list {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.modern-theme .vs-compact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    width: 100%;
}
.modern-theme .vs-compact-item:last-child {
    border-bottom: none;
}
.modern-theme .vs-compact-item:nth-child(even) {
    background: var(--bg-light);
}
.modern-theme .vs-compact-item:hover {
    background: rgba(233,30,140,0.04);
}

.modern-theme .vs-compact-rank {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--text-muted);
    min-width: 28px;
    text-align: center;
}
.modern-theme .vs-compact-item:nth-child(1) .vs-compact-rank { color: #FFD700; }
.modern-theme .vs-compact-item:nth-child(2) .vs-compact-rank { color: #A0A0A0; }
.modern-theme .vs-compact-item:nth-child(3) .vs-compact-rank { color: #CD7F32; }

.modern-theme .vs-compact-thumb {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
}
.modern-theme .vs-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modern-theme .vs-compact-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.modern-theme .vs-compact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modern-theme .vs-compact-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.modern-theme .vs-compact-country {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.modern-theme .vs-compact-stats {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}
.modern-theme .vs-compact-bar-wrap {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    min-width: 50px;
}
.modern-theme .vs-compact-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    animation: barGrow 0.8s ease-out;
    min-width: 1px;
}
.modern-theme .vs-compact-votes {
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text-dark);
    min-width: 50px;
    text-align: right;
    white-space: nowrap;
}

/* ================================================
   4. SPOTLIGHT CARDS
   ================================================ */
.modern-theme .vs-spotlight-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.modern-theme .vs-spotlight-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    margin: 0;
}
.modern-theme .vs-spotlight-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.modern-theme .vs-spotlight-card[data-rank="1"] {
    grid-column: 1 / -1;
}

.modern-theme .vs-spotlight-img {
    position: relative;
    width: 100%;
    padding-bottom: 120%;
    background-size: cover;
    background-position: center top;
    background-color: var(--bg-light);
}
.modern-theme .vs-spotlight-card[data-rank="1"] .vs-spotlight-img {
    padding-bottom: 60%;
}
.modern-theme .vs-spotlight-lightbox {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.modern-theme .vs-spotlight-crown {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.modern-theme .vs-spotlight-crown.vs-rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
}
.modern-theme .vs-spotlight-crown.vs-rank-2 {
    background: linear-gradient(135deg, #E0E0E0 0%, #A0A0A0 100%);
    color: #1a1a2e;
}
.modern-theme .vs-spotlight-crown.vs-rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    color: #fff;
}

.modern-theme .vs-spotlight-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 2;
}
.modern-theme .vs-spotlight-rank {
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.modern-theme .vs-spotlight-name {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 2px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.modern-theme .vs-spotlight-country {
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    margin-bottom: 6px;
}
.modern-theme .vs-spotlight-votes {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 6px;
}
.modern-theme .vs-spotlight-vote-num {
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
}
.modern-theme .vs-spotlight-vote-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.modern-theme .vs-spotlight-vote-pct {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
    margin-left: 4px;
}

/* ================================================
   VIEW STYLES — Mobile Responsive
   ================================================ */
@media (max-width: 767px) {
    /* Ranked list mobile */
    .modern-theme .vs-ranked-item {
        gap: 10px;
        padding: 10px 12px;
    }
    .modern-theme .vs-rank-badge {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    .modern-theme .vs-ranked-thumb {
        width: 44px;
        height: 44px;
    }
    .modern-theme .vs-ranked-name {
        font-size: 0.85rem;
    }
    .modern-theme .vs-vote-pct {
        font-size: 0.9rem;
    }
    .modern-theme .vs-vote-count {
        font-size: 0.82rem;
    }

    /* Compact list mobile */
    .modern-theme .vs-compact-item {
        gap: 8px;
        padding: 8px 10px;
    }
    .modern-theme .vs-compact-stats {
        min-width: 80px;
    }
    .modern-theme .vs-compact-bar-wrap {
        min-width: 30px;
    }

    /* Spotlight mobile: single column */
    .modern-theme .vs-spotlight-grid {
        grid-template-columns: 1fr;
    }
    .modern-theme .vs-spotlight-card[data-rank="1"] {
        grid-column: auto;
    }
    .modern-theme .vs-spotlight-img {
        padding-bottom: 100%;
    }
    .modern-theme .vs-spotlight-card[data-rank="1"] .vs-spotlight-img {
        padding-bottom: 80%;
    }
    .modern-theme .vs-spotlight-name {
        font-size: 1rem;
    }
}
