/* ================================================
   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;
    overflow-x: hidden;
    max-width: 100vw;
}

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

.modern-theme .m-main {
    overflow-x: hidden;
    max-width: 100%;
}

.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;
    object-position: center top;
}

.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 !important;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

/* Tame user-generated content (Word paste, tables, iframes) */
.m-blog-content {
    overflow-x: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.m-blog-content table {
    max-width: 100% !important;
    width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
    overflow: hidden;
}

.m-blog-content table td,
.m-blog-content table th {
    width: auto !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 8px 10px !important;
    background-color: transparent !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.m-blog-content table tr:first-child td,
.m-blog-content table tr:first-child th,
.m-blog-content table thead td,
.m-blog-content table thead th {
    background-color: #2d1b4e !important;
    color: #fff !important;
    font-weight: 600;
    border-color: #3a2266 !important;
}

.m-blog-content table tr:nth-child(even) td {
    background-color: #f8f7fa !important;
}

.m-blog-content iframe,
.m-blog-content embed,
.m-blog-content object,
.m-blog-content video {
    max-width: 100%;
}

.m-blog-content pre {
    overflow-x: auto;
    max-width: 100%;
}

.m-blog-feature-img {
    width: 100%;
    height: auto;
    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;
    }

    .m-article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@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-share-bar-center {
        justify-content: center;
    }

    /* Hide desktop sidebar on mobile — use m-mobile-sidebar instead */
    .m-desktop-sidebar {
        display: none;
    }

    /* Rank card title: allow wrapping on mobile */
    .m-rank-title {
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

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

    .m-rank-votes-count {
        font-size: 0.95rem;
    }

    .m-rank-votes-label {
        font-size: 0.65rem;
    }

    /* Legal content: break long URLs */
    .m-legal-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 16px 0;
    }

    .m-poll-card-footer {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* reCAPTCHA scale down on small screens */
    .m-recaptcha-wrap {
        overflow: hidden;
    }

    .m-recaptcha-wrap .g-recaptcha,
    .m-recaptcha-wrap #recaptcha_2 {
        transform: scale(0.9);
        transform-origin: center;
    }

    /* Magazine side card images smaller */
    .m-magazine-side-card img {
        width: 64px;
        height: 64px;
    }

    /* Blog content iframe aspect ratio */
    .m-blog-content iframe {
        height: auto;
        aspect-ratio: 16/9;
    }

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

    /* Unbox article cards on mobile — editorial/free layout */
    .m-article-card {
        border: none;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
        background: transparent;
        flex-direction: row;
        align-items: stretch;
    }

    .m-article-card:hover {
        box-shadow: none;
        transform: none;
    }

    .m-article-card:last-child {
        border-bottom: none;
    }

    .m-article-img-wrap {
        width: 110px;
        min-width: 110px;
        aspect-ratio: 1/1;
        border-radius: 8px;
        margin: 12px 0 12px 0;
    }

    .m-article-card:hover .m-article-img-wrap img {
        transform: none;
    }

    .m-article-body {
        padding: 12px 0 12px 14px;
        justify-content: center;
    }

    .m-article-title {
        font-size: 0.92rem;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
    }

    .m-article-excerpt {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
    }

    .m-article-footer {
        font-size: 0.72rem;
    }

    .m-article-readmore {
        display: none;
    }

    /* Blogs page: tighter spacing on mobile */
    .m-section {
        padding: 24px 0;
    }

    .m-container {
        padding: 0 16px;
    }

    .m-banner {
        padding: 32px 0;
    }

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

    .m-banner p {
        font-size: 0.85rem;
    }

    .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;
        gap: 0;
    }

    /* Horizontal poll cards on mobile (like articles) */
    .m-poll-card {
        border: none;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
        background: transparent;
        flex-direction: row;
        align-items: stretch;
    }

    .m-poll-card:hover {
        box-shadow: none;
        transform: none;
    }

    .m-poll-card:last-child {
        border-bottom: none;
    }

    .m-poll-card-img {
        width: 110px;
        min-width: 110px;
        height: auto;
        aspect-ratio: 1/1;
        border-radius: 8px;
        margin: 12px 0;
        object-fit: cover;
    }

    .m-poll-card-body {
        padding: 12px 0 12px 14px;
        justify-content: center;
    }

    .m-poll-card-title {
        font-size: 0.92rem;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
    }

    .m-poll-card-desc {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
    }

    .m-poll-card-footer {
        font-size: 0.72rem;
    }

    .m-poll-card-footer .m-btn {
        display: none;
    }

    .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.35rem;
        text-align: left;
        line-height: 1.3;
    }

    .m-blog-detail {
        padding: 20px 0;
    }

    .m-blog-content {
        padding: 16px;
        border: none;
        border-radius: 0;
        background: transparent;
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .m-blog-content table {
        font-size: 0.8rem;
    }

    .m-blog-content table td,
    .m-blog-content table th {
        padding: 6px 8px !important;
    }

    .m-blog-feature-img {
        border-radius: 0;
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        max-width: none;
    }

    .m-blog-meta-center {
        font-size: 0.78rem;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
        margin-bottom: 16px;
    }

    .m-comment-section {
        border: none;
        border-radius: 0;
        border-top: 1px solid var(--border);
        padding: 16px 0;
        background: transparent;
    }

    .m-sidebar-card {
        border: none;
        border-radius: 0;
        border-top: 1px solid var(--border);
        padding: 16px 0;
        background: transparent;
    }

    .m-catbar {
        display: none;
    }

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

    /* Prevent ANY horizontal overflow on poll pages */
    .m-poll-main {
        max-width: 100%;
        overflow: hidden;
    }

    .m-poll-main .poll-heading h1 {
        font-size: 1.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .m-poll-main .poll-heading .text-center {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        overflow: hidden;
    }

    /* Poll description can have raw HTML — constrain it */
    .m-poll-main .poll-heading .text-center img,
    .m-poll-main .poll-heading .text-center table,
    .m-poll-main .poll-heading .text-center iframe {
        max-width: 100% !important;
    }

    /* Poll options grid: single column on mobile (handled by vs-grid-enhanced media queries) */
    .m-poll-main .option-container.card-grid-container-ctm {
        grid-template-columns: 1fr !important;
        --auto-grid-min-size: 100% !important;
        grid-gap: 1rem;
    }

    /* Poll option cards: contain width */
    .m-poll-main .card-poll {
        max-width: 100%;
    }

    .m-poll-main .card-poll .title-div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Breadcrumb wrapping */
    .m-breadcrumb {
        flex-wrap: wrap;
        word-break: break-word;
    }

    .m-banner h1 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Ad codeblocks: contain width */
    .firstoption-codeblock,
    .lastoption-codeblock,
    .ad-codeblock {
        max-width: 100%;
        overflow: hidden;
    }

    /* reCAPTCHA and math captcha: keep within viewport */
    .google-recaptcha-div,
    .math-recaptcha-div {
        max-width: 100%;
        overflow: hidden;
    }

    .google-recaptcha-div .g-recaptcha > div {
        transform: scale(0.9);
        transform-origin: left center;
    }

    /* Vote button area */
    .m-poll-main .btn-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .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;
    }

    /* Smaller thumbnails on very small screens */
    .m-article-img-wrap {
        width: 90px;
        min-width: 90px;
    }

    .m-poll-card-img {
        width: 90px;
        min-width: 90px;
    }

    .m-article-title,
    .m-poll-card-title {
        font-size: 0.85rem;
    }

    .m-article-excerpt,
    .m-poll-card-desc {
        display: none;
    }

    /* Hero text smaller on very small screens */
    .m-hero h1,
    .m-hero-featured-content h1 {
        font-size: 1.3rem;
    }

    /* Magazine hero less dominant */
    .m-magazine-hero {
        min-height: 220px;
    }

    /* Trending cards narrower */
    .m-trending-card {
        flex: 0 0 130px;
    }

    .m-trending-img {
        width: 130px;
        height: 160px;
    }

    /* Magazine side cards even smaller */
    .m-magazine-side-card img {
        width: 56px;
        height: 56px;
    }

    /* reCAPTCHA scale more on tiny screens */
    .m-recaptcha-wrap .g-recaptcha,
    .m-recaptcha-wrap #recaptcha_2 {
        transform: scale(0.82);
        transform-origin: center;
    }

    /* Spotlight card height limit */
    .modern-theme .vs-spotlight-img {
        padding-bottom: 80%;
    }

    /* Compact list: reduce stats min-width */
    .modern-theme .vs-compact-stats {
        min-width: 65px;
        font-size: 0.75rem;
    }

    .modern-theme .vs-compact-name {
        font-size: 0.82rem;
    }
}

/* ================================================
   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 .card-poll .image-div img {
    object-position: center top;
}

.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;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.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-bar-center {
    justify-content: center;
}

.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 — single column, better fit)
   ================================================ */

/* Single column layout */
.modern-theme .vs-grid-enhanced {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-gap: 20px !important;
}

/* Card: horizontal layout (image left, info right) on desktop */
.modern-theme .vs-grid-enhanced .card-poll {
    position: relative;
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
.modern-theme .vs-grid-enhanced .card-poll:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(45,27,78,0.14);
}

/* Selection state */
.modern-theme .vs-grid-enhanced .card-poll.selected {
    box-shadow: 0 0 0 3px var(--accent), 0 4px 16px rgba(233,30,140,0.15) !important;
    background: #fff !important;
}
.modern-theme .vs-grid-enhanced .card-poll:before,
.modern-theme .vs-grid-enhanced .card-poll:after {
    display: none !important;
}

/* Image: fixed width on left, fills height */
.modern-theme .vs-grid-enhanced .card-poll .image-div {
    width: 220px;
    min-width: 220px;
    height: auto;
    min-height: 260px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0edf5;
}
.modern-theme .vs-grid-enhanced .card-poll .image-div img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    transition: transform 0.4s ease;
}
.modern-theme .vs-grid-enhanced .card-poll:hover .image-div img {
    transform: scale(1.04);
}
.modern-theme .vs-grid-enhanced .card-poll .image-div a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Mobile: stack vertically */
@media (max-width: 576px) {
    .modern-theme .vs-grid-enhanced .card-poll {
        flex-direction: column;
    }
    .modern-theme .vs-grid-enhanced .card-poll .image-div {
        width: 100%;
        min-width: 100%;
        height: 0;
        padding-bottom: 100%;
        min-height: 0;
    }
    .modern-theme .vs-grid-enhanced .card-poll .title-div {
        margin-bottom: 0 !important;
        padding: 14px 16px !important;
    }
    .modern-theme .vs-grid-enhanced .vs-grid-result-bar {
        padding: 0 16px 14px;
    }
}

/* Rank badge */
.modern-theme .vs-grid-rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff;
    background: rgba(45,27,78,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.modern-theme .vs-grid-rank-badge.vs-rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1a1a2e; }
.modern-theme .vs-grid-rank-badge.vs-rank-2 { background: linear-gradient(135deg, #C0C0C0, #a0a0a0); color: #1a1a2e; }
.modern-theme .vs-grid-rank-badge.vs-rank-3 { background: linear-gradient(135deg, #CD7F32, #a0522d); color: #fff; }

/* Title / info area */
.modern-theme .vs-grid-enhanced .card-poll .title-div {
    padding: 18px 20px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.modern-theme .vs-grid-enhanced .card-poll .title-div p {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.35;
}

/* Country tag */
.modern-theme .vs-grid-country {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    gap: 4px;
}

/* Result bar */
.modern-theme .vs-grid-result-bar {
    position: relative;
    width: 100%;
    margin-top: 0;
    background: transparent;
    padding: 0 20px 16px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.modern-theme .vs-grid-bar-fill {
    height: 8px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 6px;
    animation: barGrow 0.8s ease-out;
    min-width: 4px;
}
.modern-theme .vs-grid-result-bar > div:first-child {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    padding: 3px;
}
.modern-theme .vs-grid-bar-label {
    display: block;
    text-align: left;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    line-height: 1;
}

/* Tighten spacing in grid results view */
.modern-theme .option-view-results .vs-grid-enhanced .card-poll .title-div {
    padding-bottom: 14px !important;
}

/* ================================================
   1b. MAGAZINE GRID (3-col card layout)
   ================================================ */

/* Grid layout: 3 columns on desktop, 2 on tablet, 1 on mobile */
.modern-theme .vs-magazine-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 20px !important;
}
@media (max-width: 991px) {
    .modern-theme .vs-magazine-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-gap: 16px !important;
    }
}
@media (max-width: 576px) {
    .modern-theme .vs-magazine-grid {
        grid-template-columns: 1fr !important;
        grid-gap: 14px !important;
    }
}

/* Magazine card */
.modern-theme .vs-magazine-grid .card-poll {
    position: relative;
    border: none !important;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.modern-theme .vs-magazine-grid .card-poll:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(45,27,78,0.18);
}
.modern-theme .vs-magazine-grid .card-poll.selected {
    box-shadow: 0 0 0 3px var(--accent), 0 8px 24px rgba(233,30,140,0.2) !important;
    background: #fff !important;
}
.modern-theme .vs-magazine-grid .card-poll:before,
.modern-theme .vs-magazine-grid .card-poll:after {
    display: none !important;
}

/* Magazine image: portrait-friendly */
.modern-theme .vs-magazine-grid .card-poll .image-div {
    width: 100%;
    height: 0;
    padding-bottom: 130%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0edf5;
}
.modern-theme .vs-magazine-grid .card-poll .image-div img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    transition: transform 0.4s ease;
}
.modern-theme .vs-magazine-grid .card-poll:hover .image-div img {
    transform: scale(1.05);
}
.modern-theme .vs-magazine-grid .card-poll .image-div a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Magazine title area */
.modern-theme .vs-magazine-grid .card-poll .title-div {
    padding: 14px 16px !important;
    margin: 0 !important;
    background: #fff;
}
.modern-theme .vs-magazine-grid .card-poll .title-div p {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

/* Magazine result bar */
.modern-theme .vs-magazine-grid .vs-grid-result-bar {
    padding: 0 16px 14px;
}
.modern-theme .option-view-results .vs-magazine-grid .card-poll .title-div {
    padding-bottom: 8px !important;
}

/* ================================================
   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: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f0edf5;
}
.modern-theme .vs-ranked-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
}
.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: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0edf5;
}
.modern-theme .vs-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}
.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: 130%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #f0edf5;
}
.modern-theme .vs-spotlight-card[data-rank="1"] .vs-spotlight-img {
    padding-bottom: 70%;
}
.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: 60px;
        height: 60px;
    }
    .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;
    }

    /* Ranked list: constrain overflow */
    .modern-theme .vs-ranked-list {
        max-width: 100%;
        overflow: hidden;
    }
    .modern-theme .vs-ranked-name {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .modern-theme .vs-ranked-votes {
        min-width: 50px;
    }

    /* Compact list mobile */
    .modern-theme .vs-compact-list {
        max-width: 100%;
        overflow: hidden;
    }
    .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;
    }
    .modern-theme .vs-compact-name {
        white-space: normal;
        word-wrap: break-word;
    }

    /* 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: 120%;
    }
    .modern-theme .vs-spotlight-card[data-rank="1"] .vs-spotlight-img {
        padding-bottom: 90%;
    }
    .modern-theme .vs-spotlight-name {
        font-size: 1rem;
    }
}

/* ================================================
   NOMINEE PROMO CARDS — Canvas-rendered in admin modal
   No CSS needed, all drawing done via Canvas 2D API
   ================================================ */

/* ================================================
   VOTE CELEBRATION MODAL
   ================================================ */
#voteCelebrationModal .modal-content {
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

#voteCelebrationModal .promo-canvas-wrap {
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    max-width: 360px;
    width: 100%;
}

#voteCelebrationModal canvas.promo-canvas-item {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.promo-share-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.promo-share-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.promo-share-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.promo-share-btn[data-platform="twitter"]   { background: #1da1f2; }
.promo-share-btn[data-platform="facebook"]  { background: #1877f2; }
.promo-share-btn[data-platform="whatsapp"]  { background: #25d366; }
.promo-share-btn[data-platform="telegram"]  { background: #0088cc; }
.promo-share-btn[data-platform="reddit"]    { background: #ff4500; }
.promo-share-btn[data-platform="pinterest"] { background: #bd081c; }
.promo-share-btn[data-platform="weibo"]     { background: #e6162d; }
.promo-share-btn[data-platform="copy"]      { background: #e91e8c; }

.promo-share-btn i {
    font-size: 0.95rem;
}

.promo-share-btn span {
    display: inline;
}

/* Promo dots for multi-vote carousel */
.promo-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    padding: 0;
}

.promo-dot.active {
    background: #e91e8c;
    transform: scale(1.2);
}

/* Promo card style selector */
.promo-style-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}
.promo-style-btn:hover {
    opacity: 0.9;
    border-color: rgba(255,255,255,0.15);
}
.promo-style-btn.active {
    opacity: 1;
    border-color: #e91e8c;
    background: rgba(233,30,140,0.1);
}

/* Celebration pulse animation on modal open */
@keyframes celebPulse {
    0% { transform: scale(0.85); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

#voteCelebrationModal.show .promo-canvas-wrap {
    animation: celebPulse 0.5s ease-out;
}

/* Thank-you message styling for modern theme */
.modern-theme .thank-you-message-poll {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    padding: 40px 24px;
}

.modern-theme .thank-you-message-poll h4 {
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.modern-theme .thank-you-message-poll .btn {
    background: var(--accent);
    border-color: var(--accent);
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
}

@media (max-width: 768px) {
    #voteCelebrationModal .modal-dialog {
        margin: 10px;
    }

    #voteCelebrationModal .promo-canvas-wrap {
        max-width: 280px;
    }

    .promo-share-btn span {
        display: none;
    }

    .promo-share-btn {
        padding: 0;
        width: 44px;
        height: 44px;
        justify-content: center;
        border-radius: 50%;
    }

    .promo-share-btn i {
        font-size: 1.1rem;
    }

    #voteCelebrationModal .modal-footer {
        padding: 14px 16px;
    }

    #promoDownloadBtnCeleb,
    #promoSeeResults {
        font-size: 0.82rem !important;
        padding: 8px 18px !important;
    }
}

/* ============================================================= */
/* CHARITY POLL: VOTING TICKETS                                   */
/* ============================================================= */

.m-ticket-section {
    margin-top: 20px;
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0f30 100%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(233, 30, 140, 0.3);
}

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

.m-ticket-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-ticket-header-left > i {
    font-size: 1.6rem;
    color: #e91e8c;
}

.m-ticket-header-left h5 {
    color: #fff;
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

.m-ticket-header-left p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    margin: 2px 0 0;
}

.m-ticket-balance-badge {
    background: rgba(233, 30, 140, 0.15);
    border: 1px solid rgba(233, 30, 140, 0.4);
    color: #e91e8c;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.m-ticket-balance-badge i {
    margin-right: 4px;
}

.m-ticket-login-btn {
    background: #e91e8c;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.m-ticket-login-btn:hover {
    background: #c4186f;
    transform: translateY(-1px);
}

.m-ticket-tiers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.m-ticket-tier-btn {
    flex: 1;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 14px 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.m-ticket-tier-btn:hover {
    background: rgba(233, 30, 140, 0.15);
    border-color: #e91e8c;
    transform: translateY(-2px);
}

.m-tier-tickets {
    font-weight: 700;
    font-size: 0.85rem;
}

.m-tier-price {
    color: #e91e8c;
    font-weight: 800;
    font-size: 1.1rem;
}

/* Per-option Cast Tickets button */
.m-cast-ticket-btn {
    background: linear-gradient(135deg, #e91e8c, #c4186f);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
    display: inline-block;
    white-space: nowrap;
}

.m-cast-ticket-btn:hover {
    background: linear-gradient(135deg, #c4186f, #a01060);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(233, 30, 140, 0.3);
}

.m-cast-ticket-btn i {
    margin-right: 4px;
}

/* Cast Ticket Modal */
.m-ctm-balance-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    padding: 12px 16px;
    background: #f8f0ff;
    border-radius: 8px;
}

.m-ctm-input-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.m-ctm-quick-btn {
    flex: 1;
    padding: 8px;
    background: #f0e6ff;
    border: 1px solid #d4b8ff;
    border-radius: 8px;
    color: #2d1b4e;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.m-ctm-quick-btn:hover {
    background: #e91e8c;
    color: #fff;
    border-color: #e91e8c;
}

/* Buy Tickets Modal */
.m-buy-tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.m-buy-tier-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8f0ff;
    border: 2px solid #e8d6ff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.m-buy-tier-btn:hover {
    border-color: #e91e8c;
    background: #fff0f8;
    transform: translateX(3px);
}

.m-buy-tier-tickets {
    font-weight: 600;
    color: #2d1b4e;
    font-size: 0.95rem;
}

.m-buy-tier-tickets i {
    color: #e91e8c;
    margin-right: 6px;
}

.m-buy-tier-price {
    font-weight: 800;
    color: #e91e8c;
    font-size: 1.1rem;
}

.m-btn-accent {
    background: linear-gradient(135deg, #e91e8c, #c4186f);
    color: #fff;
    border: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.m-btn-accent:hover {
    background: linear-gradient(135deg, #c4186f, #a01060);
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .m-ticket-section {
        padding: 16px;
    }
    .m-ticket-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .m-ticket-tiers {
        flex-direction: column;
    }
    .m-ticket-tier-btn {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
    }
    .m-ctm-input-row {
        flex-wrap: wrap;
    }
    .m-ctm-quick-btn {
        min-width: 60px;
    }
}

/* ====================================================================
   CHARITY POLL: Voting Interface (cv-* prefix)
   ==================================================================== */

/* Poll Header */
.cv-poll-header { text-align: center; margin-bottom: 24px; }
.cv-poll-title { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; line-height: 1.2; }
.cv-poll-desc { color: var(--text-muted); font-size: 0.95rem; max-width: 600px; margin: 0 auto; }

/* Countdown */
.cv-countdown { margin-top: 16px; }
.cv-countdown-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.cv-countdown-timer { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 6px; }
.cv-cd-unit { text-align: center; background: var(--primary); color: #fff; border-radius: 6px; padding: 6px 10px; min-width: 48px; }
.cv-cd-unit span { display: block; font-size: 1.3rem; font-weight: 800; }
.cv-cd-unit small { display: block; font-size: 0.6rem; text-transform: uppercase; opacity: 0.7; }
.cv-cd-sep { color: var(--primary); font-weight: 800; font-size: 1.2rem; }

/* Balance Bar */
.cv-balance-bar { background: linear-gradient(135deg, #f8f4ff 0%, #fdf0f8 100%); border: 1px solid rgba(45,27,78,0.1); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cv-balance-info { flex: 1; }
.cv-balance-total { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.cv-balance-total i { color: var(--accent); margin-right: 6px; }
.cv-balance-total span:first-of-type { font-size: 1.4rem; }
.cv-balance-label { font-weight: 400; color: var(--text-muted); margin-left: 4px; font-size: 0.9rem; }
.cv-balance-breakdown { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.cv-bb-item { font-size: 0.78rem; color: var(--text-muted); background: rgba(255,255,255,0.8); padding: 2px 8px; border-radius: 12px; }
.cv-bb-free { color: #16a34a; }
.cv-bb-ad { color: #2563eb; }
.cv-bb-paid { color: var(--accent); }
.cv-balance-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.cv-btn { padding: 8px 16px; border: none; border-radius: 6px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.cv-btn-buy { background: var(--accent); color: #fff; }
.cv-btn-buy:hover { background: var(--accent-hover); transform: translateY(-1px); }
.cv-btn-ad { background: #2563eb; color: #fff; }
.cv-btn-ad:hover { background: #1d4ed8; }
.cv-btn-login { background: var(--primary); color: #fff !important; text-decoration: none !important; }
.cv-btn-login:hover { background: var(--primary-light); color: #fff !important; text-decoration: none !important; }
.cv-btn-cast { background: var(--accent); color: #fff; width: 100%; padding: 12px; font-size: 1rem; border-radius: 8px; justify-content: center; }
.cv-btn-cast:hover { background: var(--accent-hover); }

/* Login Prompt */
.cv-login-prompt { display: flex; align-items: center; gap: 12px; width: 100%; flex-wrap: wrap; }
.cv-login-prompt i { font-size: 1.5rem; color: var(--primary); }
.cv-login-prompt span { flex: 1; color: var(--text-muted); font-size: 0.9rem; }

/* Free Info Banner */
.cv-free-info { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-md); padding: 10px 16px; font-size: 0.82rem; color: #166534; margin-bottom: 20px; }
.cv-free-info i { margin-right: 6px; }

/* Nominees Grid */
.cv-nominees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }

/* Nominee Card */
.cv-nominee-card { background: #fff; border-radius: var(--radius-md); border: 1px solid #eee; overflow: hidden; position: relative; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.cv-nominee-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

/* Rank Badge */
.cv-rank-badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; }
.cv-rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; }
.cv-rank-2 { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #374151; }
.cv-rank-3 { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.cv-rank-default { background: rgba(45,27,78,0.08); color: var(--primary); }

/* Nominee Image */
.cv-nominee-img { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: #f0edf5; }
.cv-nominee-img img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.cv-nominee-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 3rem; }

/* Nominee Info */
.cv-nominee-info { padding: 10px 12px 4px; }
.cv-nominee-name { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin: 0 0 4px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-nominee-country { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.cv-flag { width: 16px; height: 12px; border-radius: 2px; }

/* Vote Stats */
.cv-nominee-stats { padding: 6px 12px; }
.cv-vote-bar { height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.cv-vote-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; transition: width 0.5s ease; min-width: 2px; }
.cv-vote-numbers { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.cv-vote-count { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.cv-vote-pct { font-size: 0.75rem; color: var(--text-muted); }

/* Vote Button */
.cv-vote-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 24px); margin: 6px 12px 12px; padding: 10px; background: linear-gradient(135deg, var(--accent), #c4186f); color: #fff !important; border: none; border-radius: 8px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; text-decoration: none !important; }
.cv-vote-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(233,30,140,0.4); color: #fff !important; text-decoration: none !important; }
.cv-vote-btn-login { background: var(--primary); font-size: 0.8rem; color: #fff !important; }
.cv-vote-btn-login:hover { box-shadow: 0 4px 12px rgba(45,27,78,0.3); color: #fff !important; }

/* Total Votes Footer */
.cv-total-votes { text-align: center; color: var(--text-muted); font-size: 0.85rem; padding: 12px 0; border-top: 1px solid #eee; }

/* Vote Input Modal (overlay) */
.cv-vote-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1060; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cv-vote-modal-content { background: #fff; border-radius: 12px; max-width: 380px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); transition: opacity 0.2s; }
.cv-vm-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-radius: 12px 12px 0 0; }
.cv-vm-header span { font-size: 0.95rem; }
.cv-vm-header strong { color: var(--accent); }
.cv-vm-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; opacity: 0.8; padding: 0; line-height: 1; }
.cv-vm-close:hover { opacity: 1; }
.cv-vm-body { padding: 20px; }
.cv-vm-balance { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.cv-vm-balance strong { color: var(--accent); font-size: 1.1rem; }
.cv-vm-quick { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.cv-vm-quick-btn { background: #f5f0ff; border: 1px solid #e0d4f5; color: var(--primary); padding: 6px 14px; border-radius: 6px; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: all 0.15s; }
.cv-vm-quick-btn:hover { background: var(--primary); color: #fff; }
.cv-vm-quick-all { background: var(--accent); color: #fff; border-color: var(--accent); }
.cv-vm-quick-all:hover { background: var(--accent-hover); }
.cv-vm-input { width: 100%; text-align: center; font-size: 1.4rem; font-weight: 800; border: 2px solid var(--accent); border-radius: 8px; padding: 10px; color: var(--primary); outline: none; }
.cv-vm-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,27,78,0.1); }
.cv-vm-footer { padding: 0 20px 20px; }

/* Responsive */
@media (max-width: 991px) {
    .cv-nominees-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .cv-nominees-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cv-poll-title { font-size: 1.3rem; }
    .cv-nominee-name { font-size: 0.8rem; }
    .cv-vote-btn { font-size: 0.8rem; padding: 8px; }
    .cv-balance-bar { flex-direction: column; align-items: flex-start; }
    .cv-balance-actions { width: 100%; }
    .cv-balance-actions .cv-btn { flex: 1; justify-content: center; }
    .cv-cd-unit { min-width: 40px; padding: 4px 6px; }
    .cv-cd-unit span { font-size: 1rem; }
    .cv-vote-modal-content { max-width: 100%; }
}

/* ===== Instagram Follow Banner ===== */
.bonus-ig-follow-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-radius: 12px;
    padding: 14px 18px;
    box-sizing: border-box;
}
.bonus-ig-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}
.bonus-ig-text {
    flex: 1;
}
.bonus-ig-headline {
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0;
}
.bonus-ig-sub {
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    margin: 3px 0 0;
}
.bonus-ig-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #833ab4;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bonus-ig-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    color: #833ab4;
    text-decoration: none;
}

/* ===== Instagram Auth Banner (Results Page) ===== */
.ig-auth-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(131,58,180,0.25);
}
.ig-auth-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}
.ig-auth-text {
    flex: 1;
}
.ig-auth-headline {
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0;
}
.ig-auth-sub {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    margin: 3px 0 0;
}
.ig-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #833ab4;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ig-auth-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    color: #833ab4;
    text-decoration: none;
}
@media (max-width: 576px) {
    .ig-auth-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 14px 16px;
    }
    .ig-auth-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Bonus Vote Share Section ===== */
.bonus-vote-section {
    width: 100%;
    background: linear-gradient(135deg, rgba(233,30,140,0.12), rgba(45,27,78,0.25));
    border: 1px solid rgba(233,30,140,0.3);
    border-radius: 12px;
    padding: 16px 18px;
    text-align: center;
}
.bonus-vote-header {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.bonus-vote-header strong {
    color: #FFD700;
}
.bonus-vote-desc {
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    margin: 0 0 14px;
}
.bonus-share-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.bonus-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
}
.bonus-share-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    color: #fff;
    text-decoration: none;
}
.bonus-share-btn[data-platform="twitter"] { background: #1da1f2; border-color: #1da1f2; }
.bonus-share-btn[data-platform="facebook"] { background: #1877f2; border-color: #1877f2; }
.bonus-share-btn[data-platform="whatsapp"] { background: #25d366; border-color: #25d366; }
.bonus-share-btn[data-platform="telegram"] { background: #0088cc; border-color: #0088cc; }
.bonus-share-btn[data-platform="reddit"] { background: #ff4500; border-color: #ff4500; }
.bonus-share-btn[data-platform="instagram"] { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); border-color: #fd1d1d; }
.bonus-share-btn[data-platform="copy"] { background: rgba(255,255,255,0.12); }
.bonus-share-btn.claimed {
    opacity: 0.5;
    pointer-events: none;
}
.bonus-vote-claimed {
    color: #25d366;
    font-weight: 700;
    font-size: 0.92rem;
    margin-top: 12px;
    animation: bonusFadeIn 0.4s ease;
}
.bonus-vote-claimed i {
    font-size: 1.1rem;
    margin-right: 4px;
}
@keyframes bonusFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Exhausted Share-for-Bonus Section ===== */
.exhausted-bonus-section {
    background: linear-gradient(135deg, rgba(233,30,140,0.15), rgba(45,27,78,0.3));
    border: 1px solid rgba(233,30,140,0.35);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 20px auto 0;
    max-width: 480px;
    text-align: center;
}
.exhausted-bonus-header {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.exhausted-bonus-header strong {
    color: #FFD700;
}
.exhausted-bonus-desc {
    color: rgba(255,255,255,0.65);
    font-size: 0.84rem;
    margin: 0 0 14px;
}
.exhausted-share-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.exhausted-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
}
.exhausted-share-btn:hover {
    background: rgba(255,255,255,0.22);
    transform: scale(1.05);
    color: #fff;
    text-decoration: none;
}
.exhausted-share-btn.claimed {
    opacity: 0.4;
    pointer-events: none;
}
.exhausted-share-btn[data-platform="twitter"] { background: rgba(29,161,242,0.3); border-color: rgba(29,161,242,0.4); }
.exhausted-share-btn[data-platform="facebook"] { background: rgba(66,103,178,0.3); border-color: rgba(66,103,178,0.4); }
.exhausted-share-btn[data-platform="whatsapp"] { background: rgba(37,211,102,0.3); border-color: rgba(37,211,102,0.4); }
.exhausted-share-btn[data-platform="telegram"] { background: rgba(0,136,204,0.3); border-color: rgba(0,136,204,0.4); }
.exhausted-share-btn[data-platform="reddit"] { background: rgba(255,69,0,0.3); border-color: rgba(255,69,0,0.4); }
.exhausted-share-btn[data-platform="copy"] { background: rgba(255,255,255,0.15); }
.exhausted-bonus-claimed {
    color: #25d366;
    font-weight: 700;
    font-size: 0.92rem;
    margin-top: 10px;
    animation: bonusFadeIn 0.4s ease;
}
.exhausted-bonus-claimed i {
    font-size: 1.1rem;
    margin-right: 4px;
}
@media (max-width: 576px) {
    .exhausted-bonus-section {
        padding: 16px;
        max-width: 100%;
    }
    .exhausted-share-btn {
        padding: 7px 11px;
        font-size: 0.78rem;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .bonus-ig-follow-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 14px;
    }
    .bonus-share-btn {
        padding: 8px 12px;
        font-size: 0.78rem;
    }
}

/* ===================================================================
   HOMEPAGE VARIANTS — Articles & Polls
   =================================================================== */

/* --- Article Card Excerpt --- */
.m-article-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Article Category Tag on Image --- */
.m-article-cat-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 3px;
    z-index: 2;
}
.m-article-img-wrap {
    position: relative;
}

/* --- CTA Banner --- */
.hp-cta-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    text-align: center;
}
.hp-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}
.hp-cta-inner h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 12px;
}
.hp-cta-inner p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* --- Polls Homepage: Poll Card Grid --- */
.hp-poll-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hp-poll-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.hp-poll-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}
.hp-poll-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.hp-poll-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.hp-poll-card:hover .hp-poll-card-img img {
    transform: scale(1.05);
}
.hp-poll-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 27, 78, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.hp-poll-card:hover .hp-poll-card-overlay {
    opacity: 1;
}
.hp-poll-vote-btn {
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}
.hp-poll-card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hp-poll-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.4;
}
.hp-poll-card-meta {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: auto;
}
.hp-poll-card-meta i {
    color: var(--accent);
    margin-right: 3px;
}

/* --- Outline Button --- */
.m-btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.m-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
    color: #fff;
}

/* --- Responsive: Homepage Variants --- */
@media (max-width: 991px) {
    .hp-poll-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .hp-cta-inner h2 {
        font-size: 1.6rem;
    }
}
@media (max-width: 767px) {
    .hp-poll-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hp-cta-banner {
        padding: 40px 0;
    }
    .hp-cta-inner h2 {
        font-size: 1.4rem;
    }
    .hp-cta-inner p {
        font-size: 0.92rem;
    }
}
@media (max-width: 480px) {
    .hp-poll-grid {
        grid-template-columns: 1fr;
    }
}
