/* ====================================
   MediaSite - Premium Platform CSS
   ==================================== */

:root {
    --ms-accent: #6c63ff;
    --ms-accent-hover: #5a52d5;
    --ms-accent-glow: rgba(108, 99, 255, 0.3);
    --ms-gold: #f59e0b;
    --ms-green: #10b981;
    --ms-red: #ef4444;
    --ms-transition: all 0.2s ease;
}

* { box-sizing: border-box; }

/* ====================================
   Motivec Theme Global Layout Styles
   ==================================== */

/* -- Navigation -- */
.ms-navbar-wrapper {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0 5%;
}

.ms-navbar-floating {
    background: #ffffff;
    border-radius: 40px;
    padding: 12px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    position: relative;
    display: flex;
}

.ms-nav-links a {
    color: #1a1a2e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

.ms-nav-links a:hover,
.ms-nav-links a.active {
    color: var(--ms-accent);
}

.ms-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--ms-accent);
    transition: width 0.3s ease;
}

.ms-nav-links a.active::after,
.ms-nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 991px) {
    .ms-navbar-wrapper { top: 10px; padding: 0 15px; }
    .ms-navbar-floating { padding: 12px 20px; border-radius: 30px; }
}

/* -- Content Container -- */
.ms-container {
    max-width: 1320px;
    margin: 0 auto;
}

/* -- Form Inputs (Light Theme) -- */
.ms-input-light {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    color: #1e293b !important;
    padding: 12px 16px !important;
    font-size: 14px;
    transition: all 0.2s ease;
}
.ms-input-light:focus {
    background: #ffffff !important;
    border-color: var(--ms-accent) !important;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1) !important;
}
.ms-input-light::placeholder { color: #94a3b8 !important; }

/* -- Footer -- */
.ms-footer-dark {
    background: #110928;
    color: #fff;
    margin-top: 0;
}
.text-hover-white { transition: color 0.2s; }
.text-hover-white:hover { color: #fff !important; }

.ms-footer-links li { margin-bottom: 10px; }
.ms-footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.ms-footer-links a:hover {
    color: var(--ms-accent);
    padding-left: 6px;
}

/* Hide original dark mode styles on body since we are transitioning to light content */
.ms-body {
    background: #f7f8fc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.text-accent { color: var(--ms-accent) !important; }
.bg-accent { background: var(--ms-accent) !important; }

/* ---- Navbar ---- */
.ms-navbar {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ms-border);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.ms-search-input {
    background: var(--ms-bg-input) !important;
    border: 1px solid var(--ms-border) !important;
    border-radius: 24px !important;
    color: var(--ms-text) !important;
    padding: 8px 40px 8px 16px !important;
    font-size: 14px;
    transition: var(--ms-transition);
}
.ms-search-input:focus {
    border-color: var(--ms-accent) !important;
    box-shadow: 0 0 0 3px var(--ms-accent-glow) !important;
}
.ms-search-input::placeholder { color: var(--ms-text-dim); }
.ms-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ms-accent);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--ms-transition);
}
.ms-search-btn:hover { background: var(--ms-accent-hover); }

/* Sub Navigation */
.ms-subnav {
    border-top: 1px solid rgba(255,255,255,0.05);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ms-subnav::-webkit-scrollbar { display: none; }
.ms-subnav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    white-space: nowrap;
}
.ms-subnav-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--ms-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: var(--ms-transition);
}
.ms-subnav-list li a:hover,
.ms-subnav-list li a.active {
    color: var(--ms-accent);
    border-bottom-color: var(--ms-accent);
}
.ms-subnav-list li a i { font-size: 14px; }

/* ---- Buttons ---- */
.ms-btn-accent {
    background: var(--ms-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 6px 16px !important;
    transition: var(--ms-transition);
}
.ms-btn-accent:hover {
    background: var(--ms-accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--ms-accent-glow);
}

.ms-btn-outline {
    background: transparent !important;
    color: var(--ms-accent) !important;
    border: 1px solid var(--ms-accent) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 6px 16px !important;
    transition: var(--ms-transition);
}
.ms-btn-outline:hover {
    background: var(--ms-accent) !important;
    color: #fff !important;
}

.ms-btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    transition: var(--ms-transition);
}
.ms-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245,158,11,0.4);
}

.ms-btn-danger {
    background: var(--ms-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
}

/* ---- Avatar ---- */
.ms-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ms-border);
}
.ms-avatar-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ms-border);
}
.ms-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ms-accent);
}
.ms-avatar-xl {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ms-accent);
    box-shadow: 0 0 20px var(--ms-accent-glow);
}
.ms-avatar-btn { text-decoration: none !important; }
.ms-avatar-btn::after { display: none !important; }

/* ---- Dropdown ---- */
.ms-dropdown {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    min-width: 200px;
}
.ms-dropdown .dropdown-item {
    color: #1e293b !important;
    font-size: 14px;
    padding: 8px 16px;
    transition: all 0.2s ease;
}
.ms-dropdown .dropdown-item:hover {
    background: #f8fafc !important;
    color: var(--ms-accent) !important;
}
.ms-dropdown .dropdown-divider { border-color: #e2e8f0; }
.ms-dropdown .dropdown-header {
    color: #1e293b !important;
}

/* ---- Cards ---- */
/* Legacy .ms-card styles removed, using .ev-card instead */

/* ---- Lock Overlay ---- */
.ms-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15,15,15,0.85), rgba(26,26,46,0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    z-index: 5;
}
.ms-lock-icon {
    font-size: 36px;
    color: var(--ms-gold);
    margin-bottom: 8px;
}
.ms-lock-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    text-align: center;
}

/* ---- Creator Card ---- */
.ms-creator-card {
    background: var(--ms-bg-card);
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    padding: 20px;
    text-align: center;
    transition: var(--ms-transition);
}
.ms-creator-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ms-shadow);
    border-color: var(--ms-accent);
}

/* ---- Creator Profile Banner ---- */
.ms-profile-banner {
    position: relative;
    height: 280px;
    border-radius: var(--ms-radius);
    overflow: hidden;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--ms-bg-card), var(--ms-accent));
}
.ms-profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ms-profile-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--ms-bg));
}
.ms-profile-avatar {
    position: absolute;
    bottom: -50px;
    left: 30px;
}

/* ---- Section Headers ---- */
.ms-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.ms-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.ms-section-link {
    color: var(--ms-accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.ms-section-link:hover { text-decoration: underline; }

/* ---- Stats ---- */
.ms-stat-card {
    background: var(--ms-bg-card);
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    padding: 20px;
    text-align: center;
}
.ms-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.ms-stat-label {
    font-size: 13px;
    color: var(--ms-text-muted);
    margin-top: 4px;
}

/* ---- Modal ---- */
.ms-modal {
    background: var(--ms-bg-elevated) !important;
    border: 1px solid var(--ms-border) !important;
    border-radius: var(--ms-radius) !important;
    color: var(--ms-text) !important;
}
.ms-modal .modal-title { color: #fff; }

/* ---- Auth Tabs ---- */
.ms-auth-tabs {
    background: var(--ms-bg-card);
    border-radius: var(--ms-radius-sm);
    padding: 3px;
}
.ms-auth-tabs .nav-link {
    color: var(--ms-text-muted) !important;
    border-radius: 6px !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border: none !important;
}
.ms-auth-tabs .nav-link.active {
    background: var(--ms-accent) !important;
    color: #fff !important;
}

/* ---- Input ---- */
.ms-input {
    background: var(--ms-bg-card) !important;
    border: 1px solid var(--ms-border) !important;
    border-radius: var(--ms-radius-sm) !important;
    color: var(--ms-text) !important;
    padding: 10px 14px !important;
    font-size: 14px;
    transition: var(--ms-transition);
}
.ms-input:focus {
    border-color: var(--ms-accent) !important;
    box-shadow: 0 0 0 3px var(--ms-accent-glow) !important;
}
.ms-input::placeholder { color: var(--ms-text-dim) !important; }

select.ms-input { appearance: auto; }

/* ---- Footer ---- */
.ms-footer {
    background: var(--ms-bg-card);
    border-top: 1px solid var(--ms-border);
}

/* ---- Alert ---- */
.ms-alert {
    border-radius: var(--ms-radius-sm);
    border: none;
    font-size: 14px;
}

/* ---- Pricing Card ---- */
.ms-pricing-card {
    background: var(--ms-bg-card);
    border: 2px solid var(--ms-border);
    border-radius: var(--ms-radius);
    padding: 28px;
    text-align: center;
    transition: var(--ms-transition);
    position: relative;
}
.ms-pricing-card.popular {
    border-color: var(--ms-accent);
    box-shadow: 0 0 30px var(--ms-accent-glow);
}
.ms-pricing-card .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ms-accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ms-pricing-price {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
}
.ms-pricing-period {
    font-size: 14px;
    color: var(--ms-text-muted);
}

/* ---- Dashboard ---- */
.ms-dash-sidebar {
    background: var(--ms-bg-card);
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    padding: 16px;
}
.ms-dash-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--ms-text-muted);
    text-decoration: none;
    border-radius: var(--ms-radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--ms-transition);
    margin-bottom: 4px;
}
.ms-dash-link:hover,
.ms-dash-link.active {
    background: var(--ms-bg-elevated);
    color: var(--ms-accent);
}
.ms-dash-link i { width: 20px; text-align: center; }

/* ---- Table ---- */
.ms-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.ms-table thead th {
    background: var(--ms-bg-elevated);
    color: var(--ms-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ms-border);
}
.ms-table thead th:first-child { border-radius: var(--ms-radius-sm) 0 0 0; }
.ms-table thead th:last-child { border-radius: 0 var(--ms-radius-sm) 0 0; }
.ms-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ms-border);
    font-size: 14px;
    color: var(--ms-text);
    vertical-align: middle;
}
.ms-table tbody tr:hover td { background: rgba(108,99,255,0.05); }

/* ---- Pagination ---- */
.ms-pagination .page-item .page-link {
    background: var(--ms-bg-card);
    border-color: var(--ms-border);
    color: var(--ms-text-muted);
    font-size: 14px;
    border-radius: 6px !important;
    margin: 0 2px;
}
.ms-pagination .page-item.active .page-link {
    background: var(--ms-accent);
    border-color: var(--ms-accent);
    color: #fff;
}
.ms-pagination .page-item .page-link:hover {
    background: var(--ms-bg-card-hover);
    color: var(--ms-accent);
}

/* ---- Slick Overrides ---- */
.slick-prev, .slick-next {
    z-index: 10;
    width: 36px;
    height: 36px;
}
.slick-prev { left: -5px; }
.slick-next { right: -5px; }
.slick-prev:before, .slick-next:before {
    font-size: 24px;
    color: var(--ms-accent);
    opacity: 0.8;
}

/* ---- Video Player Wrapper ---- */
.ms-video-wrapper {
    position: relative;
    border-radius: var(--ms-radius);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}
.ms-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .ms-profile-banner { height: 180px; margin-bottom: 50px; }
    .ms-profile-avatar { left: 16px; bottom: -40px; }
    .ms-avatar-xl { width: 80px; height: 80px; }
    .ms-stat-value { font-size: 22px; }
    .ms-section-title { font-size: 18px; }
    .ms-pricing-card { padding: 20px; }
    .ms-pricing-price { font-size: 28px; }
}

@media (max-width: 576px) {
    .ms-subnav-list li a { padding: 8px 12px; font-size: 12px; }
    .ms-card-title { font-size: 13px; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ms-bg); }
::-webkit-scrollbar-thumb {
    background: var(--ms-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ms-accent); }

/* ---- Status badges ---- */
.ms-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.ms-status-active { background: rgba(16,185,129,0.15); color: var(--ms-green); }
.ms-status-expired { background: rgba(239,68,68,0.15); color: var(--ms-red); }
.ms-status-pending { background: rgba(245,158,11,0.15); color: var(--ms-gold); }
.ms-status-cancelled { background: rgba(100,116,139,0.15); color: var(--ms-text-dim); }

/* ---- Verified badge ---- */
.ms-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--ms-accent);
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    margin-left: 4px;
}

/* ---- Empty State ---- */
.ms-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--ms-text-muted);
}
.ms-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--ms-text-dim);
}
.ms-empty h4 { color: var(--ms-text); margin-bottom: 8px; }

/* ====================================
   Creator Hero Section
   ==================================== */
.ms-hero {
    position: relative;
    border-radius: var(--ms-radius);
    overflow: hidden;
    min-height: 280px;
}
.ms-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}
.ms-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ms-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15,15,15,0.92) 0%, rgba(26,26,46,0.85) 50%, rgba(108,99,255,0.15) 100%);
}
.ms-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 32px;
}
.ms-hero-name {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}
.ms-hero-tagline {
    font-size: 15px;
    font-weight: 500;
    color: var(--ms-accent);
    margin: 4px 0 0;
}
.ms-hero-bio {
    font-size: 14px;
    color: var(--ms-text-muted);
    margin: 8px 0 0;
    max-width: 500px;
    line-height: 1.5;
}
.ms-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ms-hero-stat strong {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.ms-hero-stat span {
    font-size: 11px;
    color: var(--ms-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.ms-hero-actions {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .ms-hero { min-height: 220px; }
    .ms-hero-content { padding: 24px 20px; }
    .ms-hero-name { font-size: 22px; }
    .ms-hero-actions { width: 100%; margin-top: 12px; }
    .ms-hero-actions .btn { width: 100%; }
}

/* ====================================
   CTA Card
   ==================================== */
.ms-cta-card {
    background: linear-gradient(135deg, var(--ms-bg-card) 0%, var(--ms-bg-elevated) 50%, rgba(108,99,255,0.12) 100%);
    border: 2px solid var(--ms-accent);
    border-radius: var(--ms-radius);
    padding: 48px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px var(--ms-accent-glow);
}
.ms-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.ms-cta-content {
    position: relative;
    z-index: 1;
}

/* ====================================
   HLS Processing Badge
   ==================================== */
.ms-badge-processing {
    background: var(--ms-accent);
    color: #fff;
    animation: pulse-badge 1.5s infinite;
}
@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.ms-badge-hls {
    background: rgba(16,185,129,0.2);
    color: var(--ms-green);
}

/* ====================================
   Video Player Enhancements
   ==================================== */
.ms-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.ms-video-wrapper video::-webkit-media-controls {
    opacity: 0;
    transition: opacity 0.3s;
}
.ms-video-wrapper:hover video::-webkit-media-controls {
    opacity: 1;
}

/* ====================================
   Event-Style Home Page (Motivec)
   ==================================== */

/* -- Page Hero Banner -- */
.ev-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 0;
    margin: -100px -12px 0; /* Counteracts the app.blade.php container padding-top:100px */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}
.ev-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ev-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ev-hero-bg .ev-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(30, 13, 60, 0.55) 0%,
        rgba(30, 13, 60, 0.82) 60%,
        rgba(20, 8, 50, 0.95) 100%);
}
.ev-hero-inner {
    position: relative;
    z-index: 2;
    padding: 130px 40px 40px; /* Extra top padding to clear the floating header */
    width: 100%;
}
.ev-hero-title {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}
.ev-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ev-hero-breadcrumb a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}
.ev-hero-breadcrumb a:hover { color: #fff; }
.ev-hero-breadcrumb .ev-bc-sep { color: rgba(255,255,255,0.35); }
.ev-hero-breadcrumb .ev-bc-current { color: var(--ms-accent); }

@media (max-width: 768px) {
    .ev-hero { min-height: 200px; }
    .ev-hero-inner { padding: 32px 20px 28px; }
    .ev-hero-title { font-size: 28px; }
}

/* -- Light Content Area -- */
.ev-content {
    background: #f7f8fc;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    padding: 48px 5% 60px;
}
@media (max-width: 768px) {
    .ev-content { padding: 28px 16px 40px; }
}

.ev-content .ms-section-header { margin-bottom: 28px; }
.ev-content .ms-section-title {
    color: #1a1a2e;
    font-size: 22px;
}
.ev-content .ms-section-link {
    color: var(--ms-accent);
    font-weight: 700;
}

.ev-content .ms-pagination .page-item .page-link {
    background: #fff;
    border-color: #e2e8f0;
    color: #475569;
}
.ev-content .ms-pagination .page-item.active .page-link {
    background: var(--ms-accent);
    border-color: var(--ms-accent);
    color: #fff;
}
.ev-content .ms-pagination .page-item .page-link:hover {
    background: #f1f5f9;
    color: var(--ms-accent);
}

.ev-content .ms-empty {
    color: #64748b;
}
.ev-content .ms-empty i { color: #94a3b8; }
.ev-content .ms-empty h4 { color: #1e293b; }

/* -- Event Card -- */
.ev-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ev-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(108,99,255,0.12), 0 4px 16px rgba(0,0,0,0.08);
}

.ev-card-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 12px 12px 0;
    aspect-ratio: 16/10;
}
.ev-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ev-card:hover .ev-card-thumb img {
    transform: scale(1.06);
}

.ev-card-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Lock overlay inside ev-card */
.ev-card-thumb .ms-lock-overlay {
    border-radius: 16px;
}

.ev-card-body {
    padding: 16px 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ev-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ev-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: nowrap;
}

/* Category pill color palette */
.ev-pill-1 { background: #e91e63; }
.ev-pill-2 { background: #00bcd4; }
.ev-pill-3 { background: #9c27b0; }
.ev-pill-4 { background: #ff5722; }
.ev-pill-5 { background: #2196f3; }
.ev-pill-6 { background: #4caf50; }
.ev-pill-7 { background: #ff9800; }
.ev-pill-8 { background: #607d8b; }
.ev-pill-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ev-date {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.ev-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.ev-card-title a {
    color: inherit;
    text-decoration: none;
}
.ev-card-title a:hover {
    color: var(--ms-accent);
}

.ev-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 8px;
}
.ev-card-footer i {
    margin-right: 4px;
    font-size: 12px;
}

@media (max-width: 576px) {
    .ev-card-thumb { margin: 8px 8px 0; border-radius: 12px; }
    .ev-card-body { padding: 12px 12px 16px; }
    .ev-card-title { font-size: 14px; }
    .ev-pill { font-size: 10px; padding: 3px 10px; }
}

/* -- Newsletter / Subscribe CTA Section -- */
.ev-newsletter {
    background: #1a1a2e;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    padding: 60px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.ev-newsletter-text {
    flex: 1;
    min-width: 280px;
}
.ev-newsletter-text h2 {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.ev-newsletter-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    margin: 8px 0 0;
}
.ev-newsletter-form {
    flex: 1;
    min-width: 300px;
    max-width: 520px;
    display: flex;
    gap: 0;
}
.ev-newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.12);
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.ev-newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}
.ev-newsletter-form input:focus {
    border-color: var(--ms-accent);
}
.ev-newsletter-form button {
    padding: 14px 24px;
    background: var(--ms-accent);
    border: none;
    border-radius: 0 12px 12px 0;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}
.ev-newsletter-form button:hover {
    background: var(--ms-accent-hover);
}

@media (max-width: 768px) {
    .ev-newsletter { padding: 40px 20px; flex-direction: column; text-align: center; }
    .ev-newsletter-text h2 { font-size: 24px; }
    .ev-newsletter-form { width: 100%; max-width: 100%; }
}

/* -- Category chips on light bg -- */
.ev-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.ev-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.ev-cat-chip:hover {
    border-color: var(--ms-accent);
    color: var(--ms-accent);
    box-shadow: 0 4px 12px rgba(108,99,255,0.12);
    transform: translateY(-2px);
}
.ev-cat-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.ev-cat-chip i {
    color: var(--ms-accent);
}
