/* ===== GRADIENT STRIPE ===== */
.gradient-stripe {
    height: 3px;
    background: var(--gradient-stripe);
    background-size: 200% 100%;
    animation: stripeMove 4s linear infinite;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}
@keyframes stripeMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 59, 59, 0.10);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: var(--transition);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.3);
}
.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}
.logo-text {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 50px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    flex: 0 1 400px;
}
.header-search:focus-within {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--accent-red-glow);
}
.header-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 300;
    padding: 10px 0;
    width: 100%;
    font-family: var(--font-main);
}
.header-search input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}
.header-search button {
    padding: 6px 0 6px 12px;
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}
.header-search button:hover {
    color: var(--accent-red);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* ===== DROPDOWN MENU ===== */
.dropdown-container {
    position: relative;
}
.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    background: transparent;
    border: 1px solid transparent;
    font-family: var(--font-main);
}
.dropdown-trigger:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.06);
}
.dropdown-trigger.open .icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transition: var(--transition);
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
}
.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-secondary);
    transition: var(--transition);
    border-left: 2px solid transparent;
}
.dropdown-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-left-color: var(--accent-red);
}
.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 6px 16px;
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== BREAKING NEWS TICKER ===== */
.breaking-news {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 59, 59, 0.08);
    padding: 6px 0;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}
.breaking-news .label {
    flex-shrink: 0;
    background: var(--gradient-red);
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 14px;
    border-radius: 4px;
    margin-right: 16px;
    margin-left: 20px;
    animation: pulseLabel 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 4px;
}
@keyframes pulseLabel {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.breaking-news .ticker {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    position: relative;
}
.breaking-news .ticker-track {
    display: inline-block;
    animation: tickerScroll 28s linear infinite;
    padding-left: 100%;
}
.breaking-news .ticker-track span {
    display: inline-block;
    padding: 0 40px;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-secondary);
}
.breaking-news .ticker-track span strong,
.breaking-news .ticker-track span a {
    color: var(--accent-red);
    font-weight: 600;
}
.breaking-news .ticker-track span a:hover {
    color: var(--accent-red-light);
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== APP LAYOUT ===== */
.app-layout {
    display: flex;
    margin-top: calc(var(--header-height) + 40px);
    min-height: calc(100vh - var(--header-height) - 40px - 60px);
    padding-bottom: 20px;
    gap: 0;
}
body.no-breaking .app-layout {
    margin-top: var(--header-height);
}

.main-content {
    flex: 1;
    padding: 20px 24px 40px;
    min-width: 0;
    max-width: 100%;
}

/* ===== LEFT SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 46px);
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    padding: 24px 16px 40px;
    height: calc(100vh - var(--header-height) - 46px);
    overflow-y: auto;
    overflow-x: hidden;
    transition: var(--transition);
    z-index: 100;
    scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar {
    width: 3px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 10px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.sidebar-overlay.active {
    display: block;
}

.sidebar-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 300;
    color: var(--text-secondary);
    transition: var(--transition);
    border-left: 2px solid transparent;
}
.sidebar-nav a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}
.sidebar-nav a.active {
    background: var(--bg-card);
    color: var(--accent-red);
    border-left-color: var(--accent-red);
    font-weight: 500;
}
.sidebar-nav a .count {
    margin-left: auto;
    font-size: 10px;
    background: var(--bg-card);
    padding: 1px 10px;
    border-radius: 50px;
    color: var(--text-muted);
}
.sidebar-nav a.active .count {
    background: var(--accent-red-glow);
    color: var(--accent-red);
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    margin: 16px 0;
}

.sidebar-section {
    margin-top: 20px;
}
.sidebar-section .sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
    transition: var(--transition);
    border-radius: var(--radius-sm);
}
.sidebar-section .sub-link:hover {
    color: var(--text-secondary);
    background: var(--bg-card);
}
.sidebar-section .sub-link .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-red);
    flex-shrink: 0;
}

/* ===== RIGHT SIDEBAR ===== */
.right-sidebar {
    width: 300px;
    flex-shrink: 0;
    padding: 20px 16px 48px;
    position: sticky;
    top: calc(var(--header-height) + 46px);
    max-height: calc(100vh - var(--header-height) - 46px);
    align-self: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.right-sidebar > * {
    flex-shrink: 0;
}
.right-sidebar::-webkit-scrollbar {
    width: 3px;
}
.right-sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 10px;
}

/* ===== AD BLOCKS ===== */
.ad-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    transition: var(--transition);
}
.ad-block:hover {
    border-color: rgba(255, 59, 59, 0.15);
}
.ad-block .ad-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}
.ad-block .ad-placeholder {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 300;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    flex-direction: column;
}
.ad-block .ad-placeholder .ad-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.3;
}
.ad-block .ad-placeholder span {
    display: block;
}
.ad-block-large .ad-placeholder {
    min-height: 200px;
}

/* ===== WIDGETS ===== */
.widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.widget-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-title .accent {
    color: var(--accent-red);
}

/* ===== PORTAL STATS WIDGET ===== */
.widget-stats {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(255, 59, 59, 0.04) 100%);
    border-color: rgba(255, 59, 59, 0.1);
    position: relative;
    flex-shrink: 0;
}

.widget-stats::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.widget-stats .widget-title,
.widget-stats .portal-stats,
.widget-stats .portal-stats-bar {
    position: relative;
    z-index: 1;
}

.portal-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.portal-stat:hover {
    border-color: rgba(255, 59, 59, 0.15);
    background: var(--bg-card-hover);
}

.portal-stat-highlight {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.12), rgba(255, 59, 59, 0.03));
    border-color: rgba(255, 59, 59, 0.18);
}

.portal-stat-highlight:hover {
    border-color: rgba(255, 59, 59, 0.3);
}

.portal-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--accent-red-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    flex-shrink: 0;
}

.portal-stat-icon .icon {
    width: 17px;
    height: 17px;
}

.portal-stat-highlight .portal-stat-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 59, 59, 0.35);
}

.portal-stat-highlight .portal-stat-icon .icon {
    width: 18px;
    height: 18px;
}

.portal-stat-data {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.portal-stat-highlight .portal-stat-data {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.portal-stat-data strong {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    font-feature-settings: "tnum";
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.portal-stat-highlight .portal-stat-data strong {
    font-size: 22px;
    color: var(--accent-red-light);
}

.portal-stat-data span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    flex-shrink: 0;
}

.portal-stat-highlight .portal-stat-data span {
    font-size: 10px;
    margin-top: 2px;
}

.portal-stats-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
    animation: livePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* ===== TRENDING ===== */
.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    cursor: pointer;
}
.trending-item:last-child {
    border-bottom: none;
}
.trending-item:hover {
    padding-left: 4px;
}
.trending-item .rank {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 28px;
    text-align: center;
    font-feature-settings: "tnum";
}
.trending-item .rank.top {
    color: var(--accent-red);
}
.trending-item .info {
    flex: 1;
    min-width: 0;
}
.trending-item .info .title {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trending-item .info .meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== NEWSLETTER WIDGET ===== */
.newsletter-widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid rgba(255, 59, 59, 0.08);
    text-align: center;
}
.newsletter-widget h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.newsletter-widget p {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 14px;
}
.newsletter-widget .input-group {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    border-radius: 50px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.newsletter-widget .input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: var(--font-main);
    font-weight: 300;
    min-width: 0;
}
.newsletter-widget .input-group input::placeholder {
    color: var(--text-muted);
}
.newsletter-widget .input-group button {
    background: var(--gradient-red);
    color: #fff;
    border-radius: 50px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 12px;
    font-family: var(--font-main);
    white-space: nowrap;
    transition: var(--transition);
}
.newsletter-widget .input-group button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 59, 59, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-footer);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 40px 20px 20px;
    margin-top: 20px;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand .logo {
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 300px;
    line-height: 1.7;
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.footer-col a {
    display: block;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-muted);
    padding: 4px 0;
    transition: var(--transition);
}
.footer-col a:hover {
    color: var(--accent-red);
    padding-left: 4px;
}
.footer-bottom {
    max-width: 1400px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom .socials {
    display: flex;
    gap: 12px;
}
.footer-bottom .socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-bottom .socials a:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    height: var(--mobile-bottom-height);
    padding: 0 8px;
    justify-content: space-around;
    align-items: center;
}
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 300;
    background: transparent;
    border: none;
    font-family: var(--font-main);
    position: relative;
    min-width: 48px;
}
.mobile-bottom-nav .nav-item .icon {
    width: 20px;
    height: 20px;
}
.mobile-bottom-nav .nav-item.active {
    color: var(--accent-red);
}
.mobile-bottom-nav .nav-item.active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-red);
    border-radius: 2px;
}
.mobile-bottom-nav .nav-item .badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 2px solid var(--bg-header);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-red);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 59, 59, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 59, 59, 0.5);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 300px;
        height: calc(100vh - var(--header-height));
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        background: var(--bg-sidebar);
        padding: 20px 16px 100px;
        transition: left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        overflow-y: auto;
        box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
        border-radius: 0;
    }
    .sidebar.open {
        left: 0;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .main-content {
        padding: 16px 16px 80px;
    }
    .header-search {
        flex: 0 1 200px;
    }
    .header-right .btn-icon.hide-mobile {
        display: none;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    .app-layout {
        margin-top: calc(var(--header-height) + 40px);
        padding-bottom: var(--mobile-bottom-height);
    }
    body.no-breaking .app-layout {
        margin-top: var(--header-height);
        padding-bottom: var(--mobile-bottom-height);
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --mobile-bottom-height: 60px;
    }
    .header {
        padding: 0 12px;
        height: var(--header-height);
    }
    .logo {
        font-size: 18px;
        gap: 6px;
    }
    .logo-icon,
    .logo-img {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .header-search {
        flex: 0 1 140px;
        padding: 0 10px;
    }
    .header-search input {
        font-size: 12px;
        padding: 8px 0;
    }
    .header-search input::placeholder {
        font-size: 11px;
    }
    .header-right .btn-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    .header-right .btn-primary {
        padding: 5px 14px;
        font-size: 10px;
    }
    .dropdown-trigger {
        display: none;
    }
    .breaking-news {
        height: 34px;
        top: var(--header-height);
    }
    .breaking-news .label {
        font-size: 8px;
        padding: 1px 10px;
        margin-left: 10px;
        margin-right: 10px;
    }
    .breaking-news .ticker-track span {
        font-size: 11px;
        padding: 0 20px;
    }
    .app-layout {
        margin-top: calc(var(--header-height) + 34px);
    }
    body.no-breaking .app-layout {
        margin-top: var(--header-height);
    }
    .main-content {
        padding: 12px 12px 70px;
    }
    .right-sidebar {
        display: none;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .sidebar {
        width: 280px;
        padding: 16px 14px 100px;
    }
    .newsletter-widget .input-group {
        flex-wrap: wrap;
        border-radius: var(--radius-sm);
        background: transparent;
        padding: 0;
        border: none;
        gap: 8px;
    }
    .newsletter-widget .input-group input {
        background: var(--bg-secondary);
        border-radius: 50px;
        padding: 10px 16px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }
    .newsletter-widget .input-group button {
        width: 100%;
        padding: 10px;
        border-radius: 50px;
    }
    .mobile-bottom-nav .nav-item {
        font-size: 9px;
        padding: 4px 8px;
        min-width: 40px;
    }
    .mobile-bottom-nav .nav-item .icon {
        width: 18px;
        height: 18px;
    }
    .scroll-top {
        bottom: 80px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header-search {
        flex: 0 1 100px;
    }
    .header-search input {
        font-size: 11px;
    }
    .header-search input::placeholder {
        font-size: 10px;
    }
    .header-right .btn-icon.hide-mobile-xs {
        display: none;
    }
    .logo {
        font-size: 16px;
    }
    .logo-icon,
    .logo-img {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .sidebar {
        width: 260px;
    }
    .mobile-bottom-nav {
        padding: 0 4px;
    }
    .mobile-bottom-nav .nav-item {
        min-width: 36px;
        padding: 4px 6px;
        font-size: 8px;
    }
    .mobile-bottom-nav .nav-item .icon {
        width: 16px;
        height: 16px;
    }
    .breaking-news .ticker-track span {
        font-size: 10px;
        padding: 0 14px;
    }
    .dropdown-menu {
        min-width: 180px;
    }
    .dropdown-menu a {
        font-size: 12px;
        padding: 8px 16px;
    }
}
