/* assets/css/main.css */

/* Screen Reader Only - Accessibility Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ad Container Styles */
.ad-container {
    margin: 20px auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    clear: both;
}

.ad-header {
    background: #f8f9fa;
    padding: 10px 0;
    min-height: 90px;
}

.ad-sidebar {
    min-height: 250px;
    margin: 15px 0;
}

.ad-content {
    min-height: 90px;
    margin: 30px auto;
}

.ad-footer {
    min-height: 90px;
    padding: 20px 0;
}

body {
    font-family: 'Arimo', Arial, sans-serif;
    margin: 0;
    background-color: #f1f2f6;
    color: #333;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #333;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 10px;
}

/* --- Modern UI Utilities --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.premium-shadow {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff4d4d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modern-badge {
    background: linear-gradient(135deg, #ff0055 0%, #ff4d4d 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Font Display Strategy handled via URL parameters and Async Loading */

.brand-logo-modern {
    width: auto;
    /* Allow natural width */
    height: 42px;
    /* Fixed height for consistency */
    aspect-ratio: 42 / 42;
    /* Explicit ratio to prevent CLS */
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.phone-finder-widget {
    min-height: 175px;
    /* Reserve space to prevent CLS */
}


/* Global Header */
.main-header {
    background: #ab0000;
    color: #fff;
    padding-bottom: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
    margin-top: 3px;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    font-family: 'Google Sans', sans-serif;
    letter-spacing: -1px;
    white-space: nowrap;
}

/* Top Search Bar Modern Design */
.top-search-bar {
    flex: 1;
    max-width: 600px;
}

.search-form-header {
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: visible;
    /* Changed from hidden to visible */
    height: 48px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.search-form-header:focus-within {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-select {
    border: none;
    background: #f8f9fa;
    padding: 0 20px;
    font-size: 14px;
    color: #444;
    height: 100%;
    border-right: 1px solid #eee;
    outline: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

/* ... skipped input styles ... */
.search-form-header input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 15px;
    outline: none;
    color: #333;
    font-weight: 500;
}

/* ... skipped placeholder ... */
.search-form-header button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #fff;
    padding: 0 25px;
    color: #ab0000;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

.search-form-header button:hover {
    background: #ab0000;
    color: #fff;
}

/* Search Dropdown Autocomplete */
.search-input-wrapper {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    animation: slideDown 0.2s ease-out;
}

.search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Widget Search Dropdown Positioning */
.widget-search .search-dropdown {
    top: 100%;
    margin-top: 10px;
    left: 0;
    right: 0;
}

.user-nav {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
}

.user-nav a.icon-link {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
    margin-left: 10px;
}

.user-nav a.icon-link:hover {
    opacity: 1;
}

/* User Dropdown Redesign */
.user-dropdown {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.user-profile-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background 0.2s;
}

.user-profile-head:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-profile-head img {
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    /* Controlled by JS or :hover if safe */
    padding: 8px 0;
    border: 1px solid #eee;
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown.active .user-dropdown-menu {
    display: block;
}

.dropdown-header {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 5px;
}

.dropdown-header span {
    display: block;
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.dropdown-header small {
    color: #888;
    font-size: 11px;
    text-transform: capitalize;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    opacity: 1;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

.dropdown-item.logout {
    color: #dc3545;
}

.dropdown-item.logout:hover {
    background: #fff5f5;
}

.dropdown-item.logout i {
    color: #dc3545;
}


.main-nav {
    background: #8e0000;
    margin-top: 0;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-nav a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: bold;
    opacity: 0.9;
}

.main-nav a:hover {
    background: #600000;
    opacity: 1;
}

.main-body {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

.sidebar-left {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    bottom: 20px;
    align-self: flex-start;
    z-index: 50;
    /* Maintain top: 20px for short pages where it might be better */
    top: 20px;
}

/* Sidebar Widgets - GSMSEA Style */
.sidebar-widget {
    background: #fff;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.sidebar-widget .widget-title {
    background: linear-gradient(to bottom, #f8f8f8 0%, #ececec 100%);
    margin: 0;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
    letter-spacing: 0.3px;
}

.device-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.device-item {
    border-bottom: 1px solid #f0f0f0;
}

.device-item:last-child {
    border-bottom: none;
}

.device-link {
    display: flex;
    padding: 8px;
    gap: 8px;
    align-items: center;
    transition: background 0.2s;
}

.device-link:hover {
    background: #f9f9f9;
}

.device-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.device-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.device-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.device-name {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-meta {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
}

/* Sidebar Device Grid (3-Column Uniform) */
.sidebar-device-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px;
}

.sidebar-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    height: 110px;
    width: 80px;
    overflow: hidden;
    padding: 6px;
}

.sidebar-grid-item img {
    width: 100%;
    height: 70px;
    /* Fixed image height */
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
    padding: 2px;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.sidebar-grid-item:hover img {
    transform: translateY(-2px);
    border-color: #ddd;
}

.sidebar-grid-name {
    font-size: 10px;
    color: #444;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
}

/* Footer Styles Redesign */
.main-footer {
    background: #0f1115;
    color: #99a0ac;
    padding: 60px 0 30px;
    margin-top: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 45px;
}

.footer-social-top-premium {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
}

.fb .social-icon {
    background: #1877f2;
}

.yt .social-icon {
    background: #ff0000;
}

.tw .social-icon {
    background: #000000;
}

.ig .social-icon {
    background: #e4405f;
}

.social-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.social-text span {
    font-size: 10px;
    color: #e9e9e9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-text strong {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .footer-social-top-premium {
        gap: 10px;
    }

    .social-text span {
        display: none;
    }
}

@media (max-width: 992px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-social-top-premium {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-label {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-label::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section li {
    margin: 0;
}

.footer-section a {
    color: #99a0ac;
    font-size: 14px;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-section a:hover {
    color: #fff;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px auto;
}

.footer-guides .guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

@media (min-width: 768px) {
    .footer-guides .guides-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-guides .guides-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.guides-grid a {
    color: #99a0ac;
    font-size: 14px;
    transition: color 0.2s;
}

.guides-grid a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 50px;
    font-size: 14px;
    color: #666;
}


.content-area {
    flex: 1;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-width: 0;

}

/* Product Page Header */
/* Product Page Header - Redesign 2026 */
.product-header {
    background: linear-gradient(135deg, #1a1d24 0%, #0f1115 100%);
    padding: 0;
    position: relative;
    border-bottom: 4px solid var(--primary-color, #ab0000);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-header-top {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.product-name {
    font-family: 'Inter', 'Google Sans', sans-serif;
    font-size: 32px;
    margin: 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.share-btn {
    color: #fff;
    font-size: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    opacity: 1;
    transform: rotate(15deg) scale(1.2);
    color: var(--primary-color, #ab0000);
}

.product-main-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    padding: 5px;
    align-items: start;
}

/* Image Col */
.product-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.product-image-wrapper img {
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    border-radius: 10px;
}

/* Info Col */
.product-info-col {
    display: flex;
    flex-direction: column;

}

.info-top-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2px;
}

.product-quick-meta {
    display: flex;
    flex-direction: column;
    gap: 13px;
    font-size: 13px;
    color: #444;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item i {
    width: 16px;
    text-align: center;
    color: #000;
    opacity: 0.7;
}

/* Popularity Box */
/* Popularity Box */
.product-popularity-box {
    display: flex;
    gap: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    /* padding-left: 30px; */
}


.pop-chart,
.pop-fans {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 10px;
}

.pop-chart i,
.pop-fans i {
    font-size: 24px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pop-data {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pop-pct,
.fan-count {
    font-size: 26px;
    color: #fff;
    font-family: 'Google Sans', sans-serif;
    line-height: 1;
}

/* Mobile Responsive Styles for Product Page */
@media (max-width: 768px) {

    /* Premium Dark Theme for Mobile Product View */
    .product-main-grid {
        display: flex;
        flex-direction: column;
        padding: 0;
        background: #0f1115;
        /* Deep dark background */
        color: #fff;
    }

    .product-image-col {
        width: 90%;
        padding: 30px 20px;
        background: radial-gradient(circle at center, #1a1d24 0%, #0f1115 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .product-image-wrapper {
        width: 90%;
        text-align: center;
    }

    .product-image-wrapper img {

        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
        /* Enhanced shadow */
        transform: scale(1.05);
        /* Slight pop */
    }

    .product-info-col {
        padding: 5px;
        background: #0f1115;
    }

    .info-top-row {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }

    .product-popularity-box {
        border: none;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 16px;
        justify-content: space-around;
        margin-top: 15px;
        padding: 15px 5px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    }

    .product-quick-meta {
        color: #e0e0e0;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.02);
        padding: 15px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .product-quick-meta .meta-item i {
        color: var(--primary-color, #ab0000);
        background: rgba(255, 255, 255, 0.1);
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
    }

    /* 2 Column Grid for Specs - Glassmorphism Style */
    .product-specs-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .spec-block {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 22px 15px;
        border-radius: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .spec-block:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.1);
    }

    /* Gradient Icons */
    .spec-block i {
        font-size: 32px;
        margin-bottom: 5px;
        background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
        filter: drop-shadow(0 2px 8px rgba(0, 114, 255, 0.4));
    }

    /* Specific Gradient Colors for variety */
    .spec-block:nth-child(2) i {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        -webkit-background-clip: text;
        background-clip: text;
        filter: drop-shadow(0 2px 8px rgba(245, 87, 108, 0.4));
    }

    .spec-block:nth-child(3) i {
        background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%);
        -webkit-background-clip: text;
        background-clip: text;
        filter: drop-shadow(0 2px 8px rgba(180, 144, 202, 0.4));
    }

    .spec-block:nth-child(4) i {
        background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
        -webkit-background-clip: text;
        background-clip: text;
        filter: drop-shadow(0 2px 8px rgba(253, 160, 133, 0.4));
    }

    .spec-text {
        text-align: center;
    }

    .spec-val {
        font-size: 17px;
        color: #fff;
        display: block;
        margin-bottom: 4px;
        font-weight: 700;
        font-family: 'Inter', 'Google Sans', sans-serif;
    }

    .spec-sub {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.6);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
    }
}

.pop-count,
.fan-label {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* End Legacy Specs Row */

/* Sub Navigation */
.sub-nav-bar {
    background: #fff;
    border-bottom: 2px solid #eee;
}

.sub-nav-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-nav-bar li {
    flex: 1;
}

.sub-nav-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.5px;
}

.sub-nav-bar i {
    font-size: 18px;
    margin-bottom: 5px;
    color: #888;
    transition: color 0.3s ease;
}

.sub-nav-bar li.active a,
.sub-nav-bar a:hover {
    color: #ab0000;
    background: #fcfcfc;
    border-bottom-color: #ab0000;
}

.sub-nav-bar li.active i,
.sub-nav-bar a:hover i {
    color: #ab0000;
}

@media (max-width: 768px) {
    .sub-nav-bar a {
        font-size: 9px;
        padding: 10px 5px;
    }

    .sub-nav-bar i {
        font-size: 14px;
    }
}

/* Specs Body */
.specs-body {
    padding: 5px;
}

.versions-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.gsm-specs-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.gsm-specs-table th.spec-category {
    width: 110px;
    text-align: left;
    vertical-align: top;
    color: #d32f2f;
    /* The Red */
    text-transform: uppercase;
    font-weight: bold;
    font-size: 13px;
    padding: 6px 10px 6px 0;
    border-bottom: 1px solid #ddd;
}

.gsm-specs-table td {
    padding: 4px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    vertical-align: top;
    color: #000;
    line-height: 1.4;
}

.gsm-specs-table td.spec-name {
    width: 90px;
    color: #666;
    font-weight: normal;
}

/* Sub-label like 'Dimensions' */
.gsm-specs-table tr:last-child td {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

/* Add spacer rows logic via PHP or just pad heavily? GSMSEA puts spacing between categories. Since we use rowspan, the bottom border of the last row needs to be distinct */

.disclaimer-text {
    font-size: 11px;
    color: #666;
    margin-top: 20px;
    text-align: right;
}

/* Map FontAwesome icons to my placeholders */
[class^="icon-"],
[class*=" icon-"] {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    text-decoration: none;
}

.icon-eye:before {
    content: "\f06e";
}

.icon-cube:before {
    content: "\f1b2";
}

.icon-calendar:before {
    content: "\f073";
}

.icon-mobile:before {
    content: "\f3ce";
}

.icon-android:before {
    content: "\f17b";
}

/* OS */
.icon-sd:before {
    content: "\f0a0";
}

/* HDD/Storage */
.icon-heart:before {
    content: "\f004";
}

.icon-screen:before {
    content: "\f108";
}

/* Desktop/Mobile icon */
.icon-camera:before {
    content: "\f030";
}

.icon-cpu:before {
    content: "\f2db";
}

.icon-battery:before {
    content: "\f240";
}

.icon-specs:before {
    content: "\f0ca";
}

.icon-review:before {
    content: "\f06e";
}

.icon-opinion:before {
    content: "\f086";
}

.icon-compare:before {
    content: "\f079";
}

.icon-pics:before {
    content: "\f03e";
}

.icon-price:before {
    content: "\f155";
}

/* Responsive */
@media (max-width: 768px) {
    .product-main-grid {
        grid-template-columns: 1fr;
    }

    .product-specs-grid {
        margin-top: 20px;
    }
}

/* Homepage Grid Redesign */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.phone-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.phone-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    padding-bottom: 10px;
}

.img-container {
    position: relative;
    width: 100%;
    height: 180px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    margin-bottom: 5px;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.phone-card:hover .img-container img {
    transform: scale(1.05);
}

.phone-card h3,
.phone-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 0 10px;
    line-height: 1.4;
    color: #333;
    font-family: 'Google Sans', sans-serif;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge.new {
    background: #4cc9f0;
    color: #fff;
}

.badge.hot {
    background: #e21371;
    color: #fff;
}

.badge.trending {
    background: #ff9f1c;
    color: #fff;
}


/* =========================================
   REDESIGN 2026 - MODERN UI SYSTEM
   ========================================= */

/* Hero Section */
.hero-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    min-height: 420px;
    position: relative;
    border: 1px solid #eee;
}

.hero-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: #ab0000;
    color: #fff;
    padding: 5px 10px 4px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    align-self: flex-start;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #222;
    line-height: 1.2;
}

.hero-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 500px;
}

.hero-btn {
    display: inline-block;
    background: #222;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s;
    align-self: flex-start;
}

.hero-btn:hover {
    background: #ab0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(171, 0, 0, 0.2);
}

.hero-image {
    flex: 1.2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.hero-image img {
    max-width: 85%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.hero-section:hover .hero-image img {
    transform: scale(1.03) rotate(-1deg);
}

/* Section Headers */
.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    position: relative;
}

.section-header-modern h2 {
    font-family: 'Google Sans', sans-serif;
    font-size: 22px;
    margin: 0;
    color: #333;
    position: relative;
}

.section-header-modern h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ab0000;
}

.section-header-modern .view-all {
    font-size: 13px;
    font-weight: bold;
    color: #ab0000;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-header-modern .view-all:hover {
    color: #222;
}

/* Featured Review Card (Masonry Style) */
.featured-review-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    margin-bottom: 30px;
    min-height: 300px;
}

.featured-review-img {
    flex: 1.5;
    position: relative;
    overflow: hidden;
}

.featured-review-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-review-card:hover .featured-review-img img {
    transform: scale(1.05);
}

.featured-review-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 5px;
}

.review-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.review-thumb {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.review-card:hover .review-thumb img {
    transform: scale(1.1);
}

.review-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(171, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
}

.review-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.4;
    color: #222;
}

.review-meta {
    font-size: 12px;
    color: #666;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
}

/* Brands Grid */
.brands-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.brand-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.brand-card:hover {
    border-color: #ab0000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.brand-card h4 {
    margin: 10px 0 5px;
    font-size: 16px;
    color: #333;
}

.brand-count {
    font-size: 12px;
    color: #888;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Input Styles */
.search-input-modern {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.3s;
    outline: none;
}

.search-input-modern:focus {
    border-color: #ab0000;
}

/* Tools & Deals */
.tool-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s;
}

.tool-card:hover {
    border-color: #ab0000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.deal-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}

.deal-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f72585;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 8px;
}

/* Futuristic Article Styles */
.article-hero {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 10s ease;
}

.article-hero:hover .article-hero-bg {
    transform: scale(1.1);
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0px;
}

.article-category-badge {
    display: inline-block;
    background: #ab0000;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 15px;
    align-self: flex-start;
    letter-spacing: 1px;
}

.article-title-hero {
    font-family: 'Google Sans', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.article-meta-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-body-modern {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.article-body-modern p {
    margin-bottom: 25px;
}

.article-body-modern h2 {
    font-family: 'Google Sans', sans-serif;
    font-size: 28px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #111;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid #ab0000;
}

.article-body-modern blockquote {
    background: #f9f9f9;
    border-left: 5px solid #222;
    margin: 30px 0;
    padding: 20px 30px;
    font-style: italic;
    font-size: 20px;
    color: #555;
    position: relative;
}

.article-body-modern b,
.article-body-modern strong {
    font-weight: 700;
    color: #000;
}

/* Share Bar */
.share-bar-modern {
    display: flex;
    gap: 10px;
    margin: 40px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    justify-content: center;
    align-items: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.btn-fb {
    background: #3b5998;
}

.btn-tw {
    background: #1da1f2;
}

.btn-wa {
    background: #25d366;
}

.btn-copy {
    background: #555;
}

/* Comments Modern */
.comments-section-modern {
    max-width: 800px;
    margin: 60px auto 0;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.section {
    padding: 20px;
}




.comment-card-modern {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #888;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: bold;
    color: #222;
    font-size: 15px;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-text {
    color: #555;
    line-height: 1.5;
    font-size: 14px;
}

.comment-form-modern textarea {
    width: 100%;
    border: 2px solid #eee;
    border-radius: 8px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: border 0.3s;
    outline: none;
    margin-bottom: 15px;
}

.comment-form-modern textarea:focus {
    border-color: #ab0000;
}

/* Futuristic News Page Styles */
.news-hero-futuristic {
    position: relative;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: block;
    /* Make it a block link */
    text-decoration: none;
}

.news-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-hero-futuristic:hover .news-hero-bg {
    transform: scale(1.05);
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    z-index: 2;
}

.news-hero-badge {
    background: #ff0055;
    /* Futuristic Pink/Red */
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 15px;
    align-self: flex-start;
    box-shadow: 0 2px 10px rgba(255, 0, 85, 0.4);
}

.news-hero-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

.news-hero-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    gap: 15px;
    align-items: center;
}

.news-grid-futuristic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.news-card-futuristic {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-card-futuristic:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #eee;
}

.news-card-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card-futuristic:hover .news-card-thumb img {
    transform: scale(1.1);
}

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-cat {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.news-card-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px;
    line-height: 1.4;
    transition: color 0.2s;
}

.news-card-futuristic:hover .news-card-title {
    color: #ab0000;
}

.news-card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
}

/* 
   PREMIUM / GORGEOUS GRID SYSTEM
   Shared by Deals, News, and Reviews
*/

.premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.premium-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    /* Lighter shadow for general content */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border-color: rgba(171, 0, 0, 0.1);
}

.premium-card-thumb-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.premium-card-thumb-wrapper img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Featured News Classes (Replaced Inline Styles) */
.featured-news-card {
    margin-bottom: 40px;
}

.featured-thumb-wrapper {
    height: 400px;
}

.featured-tag {
    left: 20px;
    right: auto;
    top: 20px;
    background: #ab0000;
    color: #fff;
}

.featured-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.featured-excerpt {
    font-size: 16px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.featured-btn-circle {
    transform: rotate(0);
    background: #222;
    color: #fff;
}


/* Desktop Grid Overrides (News & Reviews) */
@media (min-width: 1025px) {

    .news-container-premium .premium-grid,
    .reviews-container-premium .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) and (min-width: 769px) {

    .news-container-premium .premium-grid,
    .reviews-container-premium .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design - 2026 Update */

/* Tablet & Smaller (Max 1024px) */
@media (max-width: 1024px) {
    .premium-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-specs-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablet Portrait (Max 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }

    .main-body {
        flex-direction: column;
    }

    .sidebar-left {
        width: 100%;
        order: 2;
        /* Move sidebar below content on mobile */
    }

    .content-area {
        order: 1;
    }

    /* Phone Page Mobile */
    .product-main-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }



    .info-top-row {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .product-quick-meta {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px 20px;
    }

    .product-popularity-box {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        justify-content: center;
    }

    .product-specs-row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* News & Reviews Page Mobile */
    .premium-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .featured-thumb-wrapper {
        height: 300px;
    }

    .featured-title {
        font-size: 24px;
    }

    /* Sub Nav Scrolling */
    .sub-nav-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sub-nav-bar ul {
        width: max-content;
        justify-content: flex-start;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile (Max 480px) */
@media (max-width: 480px) {
    .premium-grid {
        grid-template-columns: 1fr;
    }

    .img-container {
        width: 150px;
        height: 180px;
    }

    .featured-thumb-wrapper {
        height: 200px;
    }

    .product-specs-row {
        grid-template-columns: 1fr;
    }

    .product-name {
        font-size: 24px;
    }

    /* Table Responsive */
    .specs-table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gsm-specs-table th.spec-category {
        width: auto;
        display: block;
        padding-bottom: 5px;
        border-bottom: none;
    }

    .gsm-specs-table td.spec-name {
        display: block;
        width: auto;
        font-weight: bold;
        padding-bottom: 2px;
        border-bottom: none;
    }

    .gsm-specs-table td.spec-value {
        display: block;
        padding-left: 10px;
        padding-bottom: 10px;
    }

    .gsm-specs-table tr {
        display: block;
        border-bottom: 1px solid #f0f0f0;
        padding: 5px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 28px;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .top-search-bar {
        max-width: 100%;
        width: 100%;
    }

    .user-nav {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

.premium-card:hover .premium-card-thumb-wrapper img {
    transform: scale(1.1);
}

.premium-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.premium-card:hover .premium-card-overlay {
    opacity: 1;
}

.premium-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.premium-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(171, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.premium-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.4;
    transition: color 0.2s;
}

.premium-card:hover .premium-title {
    color: #ab0000;
}

.premium-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.premium-footer {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.premium-btn-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s;
}

.premium-card:hover .premium-btn-circle {
    background: #ab0000;
    color: #fff;
    transform: rotate(-45deg);
    /* Arrow effect */
}

/* Phone Finder Widget (GSMSEA Style) */
.phone-finder-widget {
    background: #ededed;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 2px;
    overflow: hidden;
}

.finder-header {
    background: #757575;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #fff;
}

.finder-header a {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Google Sans', sans-serif;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.finder-header i {
    font-size: 20px;
    color: #222;
    /* Darker accent for icon */
}

.finder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 5px 0;
}

.finder-item {
    text-align: center;
    padding: 8px 2px;
    border-right: 1px solid #d8d8d8;
}

.finder-item:nth-child(4n) {
    border-right: none;
}

.finder-item a {
    color: #555;
    font-size: 11px;
    font-weight: bold;
    transition: color 0.2s;
    font-family: Arial, sans-serif;
}

.finder-item a:hover {
    color: #ab0000;
}

.finder-footer {
    display: flex;
    background: #757575;
    border-top: 1px solid #fff;
}

.footer-btn {
    flex: 1;
    text-align: center;
    padding: 12px 5px;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-btn:last-child {
    border-right: none;
}

.footer-btn i {
    color: #555;
}

.footer-btn:hover {
    background: #999;
}

/* ==========================================================================
   Ad Container Styles
   ========================================================================== */

.ad-container {
    width: 100%;
    box-sizing: border-box;
}

.ad-container.ad-header {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ad-container.ad-sidebar {
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.ad-container.ad-footer {
    margin: 20px 0;
    padding: 15px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Ad placeholder styling */
.ad-container .ad-placeholder {
    transition: all 0.3s ease;
}

.ad-container .ad-placeholder:hover {
    border-color: #bbb;
    transform: translateY(-2px);
}

/* Responsive ad container */
@media screen and (max-width: 768px) {
    .ad-container.ad-header {
        padding: 10px 0;
        min-height: 60px;
    }

    .ad-container.ad-header>div {
        max-width: 320px;
        height: 50px;
        font-size: 12px;
    }

    .ad-container .fas.fa-ad {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .ad-container.ad-header {
        padding: 8px 0;
        min-height: 50px;
    }

    .ad-container.ad-header>div {
        max-width: 280px;
        height: 45px;
        font-size: 11px;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    /* Header responsive */
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .top-search-bar {
        width: 100%;
        max-width: none;
    }

    /* Main body layout */
    .main-body {
        flex-direction: column;
    }

    .sidebar-left,
    .sidebar-right {
        width: 100%;
        order: 2;
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 1000;
        background: #fff;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        max-width: 280px;
    }

    .sidebar-left.active,
    .sidebar-right.active {
        left: 0;
    }

    .content-area {
        width: 100%;
        order: 1;
    }

    /* Brands grid */
    .brands-grid-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .brand-card {
        padding: 15px;
    }

    /* Premium grid */
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* News grid */
    .news-grid-futuristic {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Product main grid */
    .product-main-grid {
        grid-template-columns: 1fr;
    }

    .product-specs-grid {
        margin-top: 20px;
    }

    /* Navigation */
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .main-nav ul li a {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Hero sections */
    .article-hero,
    .news-hero-futuristic {
        height: 300px;
    }

    .article-hero-overlay,
    .news-hero-overlay {
        padding: 0px;
    }

    .article-title-hero,
    .news-hero-title {
        font-size: 28px;
    }

    /* Finder widget */
    .finder-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Card grid */
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .phone-card h4 {
        font-size: 13px;
    }

    /* Popular phones section */
    .pop-stats {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    /* Comparison table */
    .comparison-table {
        overflow-x: auto;
    }

    /* Tools and deals containers */
    .tools-grid,
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Tablet */
@media screen and (max-width: 768px) {

    /* Header */
    .header-container {
        padding: 10px;
    }

    .logo {
        font-size: 22px;
    }

    .search-form-header {
        max-width: none;
    }

    .search-form-header input {
        font-size: 13px;
    }

    /* Navigation */
    .main-nav {
        display: none;
        /* Hide main nav, use mobile menu */
    }

    .user-nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .user-nav a {
        font-size: 13px;
        padding: 6px 10px;
    }

    /* Brands grid */
    .brands-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Premium grid */
    .premium-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* News grid */
    .news-grid-futuristic {
        grid-template-columns: 1fr;
    }

    /* Card grid - 2 columns on mobile */
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-col {
        margin-bottom: 20px;
    }

    /* Product header */
    .product-title-bar {
        padding: 15px;
    }

    .product-name {
        font-size: 22px;
    }

    .pop-pct,
    .fan-count {
        font-size: 20px;
    }

    /* Sub navigation */
    .sub-nav-bar ul {
        flex-wrap: wrap;
    }

    .sub-nav-bar a {
        padding: 10px 15px;
        font-size: 11px;
    }

    /* Spec table */
    .gsm-specs-table {
        font-size: 12px;
    }

    /* Finder */
    .finder-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Article/News sections */
    .article-body-modern,
    .news-card-content {
        font-size: 16px;
    }

    .article-body-modern h2 {
        font-size: 22px;
    }

    /* Share bar */
    .share-bar-modern {
        flex-wrap: wrap;
        gap: 8px;
    }

    .share-btn {
        flex: 1 1 45%;
        justify-content: center;
    }

    /* Comments */
    comments-section-modern {
        padding: 20px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }

    .section,
    .reviews-container-premium,
    .news-container-premium,
    .section-header-modern,
    .brands-grid-modern,
    .compare-header,
    .tools-container,
    .deals-container-premium,
    .content-area .card-grid,
    .article-container-modern {
        padding: 5px;
    }
}

/* Small Mobile */
@media screen and (max-width: 600px) {

    /* Header */
    .logo {
        font-size: 18px;
    }

    .search-form-header button {
        padding: 0 10px;
    }

    /* User navigation */
    .user-nav {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    /* Brands - 2 columns on mobile */
    .brands-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .brand-card {
        padding: 12px;
    }

    /* Phone cards - 2 columns on small mobile */
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .phone-card {
        margin: 0 auto;
        max-width: 100%;
    }

    /* Main navigation - completely hide on mobile */
    .main-nav {
        display: none;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-col {
        margin-bottom: 15px;
    }

    .copyright {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Product details */
    .product-title-bar {
        padding: 12px;
    }

    .product-name {
        font-size: 18px;
    }

    .pop-stats {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .product-main-grid {
        padding: 10px;
    }

    .product-image-container {
        margin: 0 auto;
    }

    /* Specs */
    .sub-nav-bar a {
        padding: 8px 10px;
        font-size: 10px;
        flex-direction: row;
        gap: 5px;
    }

    .sub-nav-bar i {
        font-size: 14px;
    }

    .gsm-specs-table {
        font-size: 11px;
    }

    .gsm-specs-table td {
        padding: 6px;
    }

    /* Hero sections */
    .article-hero,
    .news-hero-futuristic {
        height: 250px;
    }

    .article-hero-overlay,
    .news-hero-overlay {
        padding: 0px;
    }

    .article-title-hero,
    .news-hero-title {
        font-size: 22px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 14px;
    }

    /* Premium cards */
    .premium-card-content {
        padding: 15px;
    }

    .premium-title {
        font-size: 16px;
    }

    /* News cards */
    .news-card-thumb {
        height: 150px;
    }

    .news-card-content {
        padding: 15px;
    }

    /* Finder widget */
    .finder-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .finder-item a {
        font-size: 10px;
    }

    .footer-btn {
        font-size: 11px;
        padding: 10px 3px;
    }

    /* Article body */
    .article-body-modern {
        font-size: 15px;
        padding: 0 10px;
    }

    .article-body-modern h2 {
        font-size: 20px;
        margin-top: 25px;
        padding-left: 15px;
    }

    .article-body-modern blockquote {
        padding: 15px 20px;
        font-size: 16px;
        margin: 20px 0;
    }

    /* Comments */
    .comments-section-modern {
        padding: 15px;
    }

    .comment-card-modern {
        gap: 10px;
    }

    .comment-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    /* Share buttons */
    .share-bar-modern {
        padding: 15px;
        gap: 6px;
    }

    .share-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Tools and deals */
    .tool-card,
    .deal-card {
        padding: 15px;
    }
}

/* Extra Small Mobile */
@media screen and (max-width: 480px) {
    .brands-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .main-nav ul li a {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Ensure sidebars take full width on small screens */
    .sidebar-left,
    .sidebar-right {
        max-width: 100%;
    }

    /* Compact headers */
    .section-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-title {
        font-size: 20px;
    }

    /* Compact statistics */
    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* Product comparison */
    .comparison-card {
        padding: 12px;
    }

    .comparison-device-name {
        font-size: 13px;
    }
}

/* Landscape mobile optimizations */
@media screen and (max-width: 900px) and (orientation: landscape) {

    .article-hero,
    .news-hero-futuristic {
        height: 250px;
    }

    .product-title-bar {
        height: auto;
        min-height: 100px;
    }

    .sidebar-left,
    .sidebar-right {
        max-width: 350px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .main-nav ul li a,
    .user-nav a,
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-menu a,
    .device-link {
        min-height: 44px;
    }

    /* Reduce hover effects on touch devices */
    .phone-card:hover,
    .brand-card:hover,
    .premium-card:hover {
        transform: none;
    }
}

.article-title-hero,
.news-hero-title {
    font-size: 22px;
}

.hero-title {
    font-size: 28px;
}

.hero-desc {
    font-size: 14px;
}

/* Premium cards */
.premium-card-content {
    padding: 15px;
}

.premium-title {
    font-size: 16px;
}

/* News cards */
.news-card-thumb {
    height: 150px;
}

.news-card-content {
    padding: 15px;
}

/* Finder widget */
.finder-grid {
    grid-template-columns: repeat(2, 1fr);
}

.finder-item a {
    font-size: 10px;
}

.footer-btn {
    font-size: 11px;
    padding: 10px 3px;
}

/* Article body */
.article-body-modern {
    font-size: 15px;
    padding: 0 10px;
}

.article-body-modern h2 {
    font-size: 20px;
    margin-top: 25px;
    padding-left: 15px;
}

.article-body-modern blockquote {
    padding: 15px 20px;
    font-size: 16px;
    margin: 20px 0;
}

/* Comments */
.comments-section-modern {
    padding: 15px;
}

.comment-card-modern {
    gap: 10px;
}

.comment-avatar {
    width: 35px;
    height: 35px;
    font-size: 16px;
}

/* Share buttons */
.share-bar-modern {
    padding: 15px;
    gap: 6px;
}

.share-btn {
    padding: 8px 12px;
    font-size: 12px;
}

/* Tools and deals */
.tool-card,
.deal-card {
    padding: 15px;
}

/* Extra Small Mobile */
@media screen and (max-width: 480px) {
    .brands-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .main-nav ul li a {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Ensure sidebars take full width on small screens */
    .sidebar-left,
    .sidebar-right {
        max-width: 100%;
    }

    /* Compact headers */
    .section-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-title {
        font-size: 20px;
    }

    /* Compact statistics */
    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* Product comparison */
    .comparison-card {
        padding: 12px;
    }

    .comparison-device-name {
        font-size: 13px;
    }
}

/* Landscape mobile optimizations */
@media screen and (max-width: 900px) and (orientation: landscape) {

    .article-hero,
    .news-hero-futuristic {
        height: 250px;
    }

    .product-title-bar {
        height: auto;
        min-height: 100px;
    }

    .sidebar-left,
    .sidebar-right {
        max-width: 350px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .main-nav ul li a,
    .user-nav a,
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-menu a,
    .device-link {
        min-height: 44px;
    }

    /* Reduce hover effects on touch devices */
    .phone-card:hover,
    .brand-card:hover,
    .premium-card:hover {
        transform: none;
    }

    .phone-card:active .img-container img,
    .brand-card:active .brand-logo img {
        transform: scale(0.95);
    }
}

/* ==========================================
   AUTHENTICATION PAGES (Login / Signup)
   ========================================== */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: radial-gradient(circle at top right, rgba(171, 0, 0, 0.08), transparent),
        radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.05), transparent),
        #fcfcfc;
}

.auth-card-premium {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 50px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
    animation: authSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1,
.auth-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.auth-header p {
    color: var(--light-text);
    font-size: 15px;
}

.auth-form .form-group {
    margin-bottom: 25px;
}

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input-wrapper,
.password-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    z-index: 100;
    transition: color 0.3s;
    font-size: 16px;
    background: transparent;
    border: none;
    padding: 6px 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    box-shadow: none;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.password-toggle-icon:hover,
.password-toggle-icon.active {
    color: var(--primary-color);
}

/* Manually draw a slash when active, bypassing the missing fa-eye-slash glyph */
.password-toggle-icon.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 2px;
}

.password-toggle-icon i {
    opacity: 1;
    visibility: visible;
    display: inline-block;
}

/* Only style the left-side decorative icon, NOT the eye-toggle button's icon */
.auth-input-wrapper>i,
.auth-input-wrapper>i.fas,
.auth-input-wrapper>i.far {
    position: absolute;
    left: 18px;
    color: #cbd5e1;
    transition: color 0.3s;
    font-size: 16px;
    pointer-events: none;
}

.auth-form input {
    width: 100%;
    padding: 16px 48px 16px 50px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s;
    color: var(--dark-text);
}

.auth-form input:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(171, 0, 0, 0.08);
    outline: none;
}

/* Change the left icon colour on focus */
.auth-form input:focus~i,
.auth-input-wrapper:focus-within>i {
    color: var(--primary-color);
}

.auth-btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ab0000 0%, #d40000 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(171, 0, 0, 0.25);
    margin-top: 15px;
}

.auth-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(171, 0, 0, 0.4);
}

.auth-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-footer {
    margin-top: 35px;
    text-align: center;
    font-size: 15px;
    color: var(--light-text);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-error-box {
    background: #fff1f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-success-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-to-site {
    position: fixed;
    top: 30px;
    left: 30px;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    opacity: 0.7;
}

.back-to-site:hover {
    opacity: 1;
    transform: translateX(-5px);
}

/* Phone Finder Widget */
.phone-finder-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    margin-bottom: 15px;
}

.phone-finder-widget .widget-title i {
    margin-right: 5px;
    color: #ab0000;
}

.finder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #eee;
    padding: 1px;
}

.finder-item {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    text-align: center;
    transition: background 0.2s;
    text-decoration: none;
}

.finder-item:hover {
    background: #f8f9fa;
}

.finder-item i {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

.finder-item span {
    font-size: 10px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    display: block;
}

.finder-footer {
    padding: 8px 10px;
    text-align: center;
    border-top: 1px solid #eee;
}

.finder-footer a {
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.finder-footer a i {
    font-size: 9px;
    margin-left: 3px;
}

/* Mobile Responsiveness for Phone Finder */
@media (max-width: 768px) {
    .finder-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Standalone Auth Quick Links */
.auth-quick-links {
    margin: 40px auto 0;
    max-width: 600px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-quick-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s;
    white-space: nowrap;
}

.auth-quick-links a:hover {
    color: var(--primary-color);
}

/* Breadcrumbs Navigation */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.breadcrumb-nav .container-fluid {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
}

.breadcrumb-nav a {
    color: #666;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #ab0000;
}

.breadcrumb-nav i {
    font-size: 10px;
    color: #999;
}

.breadcrumb-nav span {
    color: #333;
    font-weight: bold;
}

/* Related Phones Section */
.related-section {
    padding: 30px 20px;
    background: #fff;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.related-section .section-header-modern {
    margin-bottom: 25px;
}

.related-section .view-all {
    font-size: 13px;
    color: #ab0000;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-section .card-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 0 10px;
}

@media screen and (max-width: 992px) {
    .related-section .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .related-section .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-body-area {
        margin: 0;
    }
}

/* --- Futuristic Posts & Empty States (2026 Redesign) --- */
.news-container-premium {
    padding: 30px 0;
}

.section-header-modern {
    margin-bottom: 40px;
    position: relative;
    padding-left: 20px;
}

.section-header-modern h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    color: #222;
    letter-spacing: -1px;
}

.section-header-modern h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 6px;
    background: #ab0000;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(171, 0, 0, 0.4);
}

.premium-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.premium-card-thumb-wrapper {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 */
    overflow: hidden;
}

.premium-card-thumb-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-card:hover .premium-card-thumb-wrapper img {
    transform: scale(1.1);
}

.premium-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: #ab0000;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.premium-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.premium-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: #1a1a1a;
}

.premium-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.premium-footer {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
}

.premium-btn-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ab0000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.premium-card:hover .premium-btn-circle {
    transform: rotate(-45deg);
    background: #8e0000;
}

/* Featured Card */
.featured-news-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    margin-bottom: 40px;
    min-height: 400px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .featured-news-card {
        grid-template-columns: 1fr;
    }
}

.featured-thumb-wrapper {
    height: 100%;
}

.featured-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Empty State Styling */
.no-content-premium {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Article Page (Futuristic) */
.article-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
}

.article-title-hero {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 20px 0;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.article-category-badge {
    display: inline-block;
    padding: 6px 18px;
    background: #ab0000;
    color: #fff;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    width: fit-content;
}

.article-meta-hero {
    display: flex;
    gap: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.article-meta-item i {
    margin-right: 8px;
    color: #ab0000;
}

.article-body-modern {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #333;
    max-width: 800px;
    margin: 40px auto;
}

.article-body-modern p {
    margin-bottom: 25px;
}

.article-body-modern img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Phone Specifications & Product Header --- */
.breadcrumb-nav {
    padding: 15px 0;
    font-size: 13px;
    color: #888;
}

.breadcrumb-nav a {
    color: var(--primary-color);
    transition: color 0.2s;
}

.breadcrumb-nav i {
    font-size: 10px;
    margin: 0 8px;
    color: #ccc;
}

/* --- Phone Specifications & Product Header (Desktop Redesign) --- */
.product-header {
    border-radius: 0;
    /* Full width feel */
    overflow: visible;
    margin-bottom: 0;
    box-shadow: none;
    /* Gradient handled by inline style */
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.product-header-top {
    padding: 5px 15px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-name {
    font-size: 25px;
    font-weight: 300;
    /* Thin look matching image */
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    color: var(--header-text-color, inherit);
}

.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.product-actions a {
    width: 100px;
}

.product-main-grid {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 0;
    padding: 5px;
}

.product-image-col {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.product-image-wrapper {
    background: transparent;
    padding: 0;
    border-radius: 0;
    /* Raw image look */
    box-shadow: none;
}

.product-image-wrapper img {
    width: 200px;
    height: auto;
    max-width: 200px;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.product-info-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

/* Info Top: Meta List & Popularity */
.info-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-quick-meta {
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: start;
    text-align: start;
    gap: 8px;
    padding: 5px;
    border-radius: 12px;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.meta-item {
    font-size: 14px;
    color: var(--header-text-color, #ffffff);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.meta-item:hover {
    transform: translateX(8px);
    color: #fff;
}

.meta-item i {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--primary-color, #ab0000);
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-popularity-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    /* padding: 10px; */
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    width: 230px;
}

/* Card Style for Price */
.pop-price {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 6px 15px;
    border-radius: 12px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pop-price:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.pop-price i {
    font-size: 20px;
    margin-bottom: 0;
    background-image: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}

.pop-price .pop-data {
    align-items: flex-start;
}

.pop-price .price-val {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.pop-price .price-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Ensure chart/fans fit with new width */

.pop-chart,
.pop-fans {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 5px;
    border-radius: 10px;
    width: 100px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.pop-chart:hover,
.pop-fans:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.pop-chart i,
.pop-fans i {
    font-size: 22px;
    margin-bottom: 2px;
    background-image: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 75, 43, 0.3));
}

.pop-data {
    display: flex;
    flex-direction: column;
}

.pop-pct,
.fan-count {
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    color: var(--header-text-color, #fff);
    text-shadow: 0 4px 15px rgba(255, 65, 108, 0.3);
    font-family: 'Inter', sans-serif;
}

.pop-count,
.fan-label {
    font-size: 10px;
    opacity: 0.95;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: 1.2px;
    color: var(--header-text-color, #ffffff);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Specs Row: Columnar with dividers */
.product-specs-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: auto;
    margin-left: 10px;
}

.spec-block {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.spec-block:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.spec-block:last-child {
    border-right: none;
}

.spec-block i {
    font-size: 28px;
    margin-bottom: 8px;
    display: inline-block;
    color: var(--primary-color, #ab0000);
    /* Robust Fallback */
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 114, 255, 0.3));
}

.spec-block:nth-child(2) i {
    background-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    filter: drop-shadow(0 4px 10px rgba(245, 87, 108, 0.3));
}

.spec-block:nth-child(3) i {
    background-image: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%);
    filter: drop-shadow(0 4px 10px rgba(180, 144, 202, 0.3));
}

.spec-block:nth-child(4) i {
    background-image: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    filter: drop-shadow(0 4px 10px rgba(253, 160, 133, 0.3));
}

.spec-text {
    display: flex;
    flex-direction: column;
}

.spec-val {
    font-size: 16px;
    font-weight: 700;
    display: block;
    line-height: 1.2;
    margin-bottom: 4px;
    font-family: 'Inter', 'Google Sans', sans-serif;
    color: var(--header-text-color, #fff);
    letter-spacing: -0.2px;
}

.spec-sub {
    font-size: 11px;
    opacity: 0.9;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--header-text-color, #ffffff);
}

/* Sub Nav Bar - Integrated Tab Look */
.sub-nav-bar {
    background: rgba(0, 0, 0, 0.15);
    /* Darker stripe at bottom */
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sub-nav-bar ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    /* Centered tabs */
}

.sub-nav-bar li {
    flex: 0 0 auto;
    text-align: center;
}

.sub-nav-bar a {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: none;
    opacity: 0.9;
    letter-spacing: 1px;
}

.sub-nav-bar i {
    margin-right: 8px;
}

.sub-nav-bar li.active a,
.sub-nav-bar a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .product-main-grid {
        grid-template-columns: 1fr;
    }

    .product-image-col {
        order: -1;
        display: flex;
        justify-content: center;
    }

}

@media (max-width: 768px) {
    .product-header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .product-specs-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-popularity-box {
        justify-content: center;
        background-color: #222;
    }

    .info-top-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Global Layout Utilities */
.section-mt {
    margin-top: 40px;
}

.text-placeholder {
    color: #999;
    font-size: 14px;
}

.no-content-premium {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.no-content-premium i {
    font-size: 50px;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

.no-content-premium h2 {
    color: #444;
}

.no-content-premium p {
    color: #888;
}

.no-content-premium .btn-return {
    margin-top: 25px;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    background: var(--primary-color);
    color: #fff;
}

/* --- Comparison Page --- */
.compare-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.compare-search {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.compare-input-container {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.compare-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.compare-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.autocomplete-item:hover {
    background: #f8f8f8;
}

.autocomplete-item img {
    width: 40px;
    height: 50px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 4px;
}

.vs-badge {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
}

.compare-table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.compare-btn {
    padding: 12px 30px;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .compare-form {
        flex-direction: column;
    }

    .compare-input-container {
        width: 100%;
    }

    .vs-badge {
        display: none;
    }
}

/* --- Mobile Responsive Fixes (2026) --- */
/* --- Mobile Responsive Fixes (2026 - Vertical Stack Strategy) --- */
@media (max-width: 768px) {

    /* Global Safety */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container,
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    /* 1. Reset Header Container */
    .product-header {
        border-radius: 0;
        margin: 0 0 10px 0;
        padding-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .product-header-top {
        flex-direction: column;
        /* Stack Vertical */
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
        gap: 12px;
    }

    .product-name {
        font-size: 22px;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
        width: 100%;
        margin-right: 0;
    }

    .product-actions {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-shrink: 0;
        padding-top: 0;
    }

    .product-actions a {
        flex: 1;
        /* Stretch buttons */
        max-width: 150px;
        /* But not too wide */
        justify-content: center;
    }

    /* 2. Main Grid Stack */
    .product-main-grid {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .product-image-col {
        padding: 0;
        justify-content: center;
        width: 100%;
        display: flex;
        margin-bottom: 20px;
    }

    .product-image-wrapper {
        background: transparent;
        box-shadow: none;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .product-image-wrapper img {
        width: 100%;
        /* Force scale up on mobile */
        height: auto;
        max-height: 600px;
        /* Increased from 480px */
        max-width: 100%;
        object-fit: contain;
        margin: 0 auto;
        transform: none;
    }

    /* 3. Info Column - Fully Responsive Stack */
    .product-info-col {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .info-top-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        border: none;
        padding: 0;
        margin-bottom: 20px;
    }

    /* Meta Items: Grid 2x2 */
    .product-quick-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 Columns */
        gap: 10px;
        width: 100%;
        padding: 0 5%;
        /* Slight indent for visual balance */
        box-sizing: border-box;
    }

    .meta-item {
        background: rgba(255, 255, 255, 0.15);
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 11px;
        white-space: nowrap;
        backdrop-filter: blur(5px);
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Popularity: Side-by-Side (Restored) */
    .product-popularity-box {
        display: flex;
        flex-direction: row;
        /* Back to Row */
        flex-wrap: nowrap;
        /* Force side by side */
        width: 100%;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.2);
        padding: 12px 10px;
        border-radius: 12px;
        gap: 0;
        /* Remove gap, use border separator */
        border: none;
        justify-content: space-between;
    }

    .pop-chart,
    .pop-fans {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        /* Center content in half */
        gap: 10px;
        width: 50%;
        border-bottom: none;
        padding-bottom: 0;
        box-sizing: border-box;
    }

    .pop-chart {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
        padding-right: 5px;
    }

    .pop-fans {
        padding-left: 5px;
    }

    .pop-data {
        align-items: flex-start;
        text-align: left;
        min-width: 0;
    }

    .pop-pct,
    .fan-count {
        font-size: 16px;
        /* Smaller for shared row */
        line-height: 1.2;
        font-weight: 700;
    }

    .pop-count,
    .fan-label {
        font-size: 10px;
        opacity: 0.8;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 4. Specs: 2x2 Grid (Classic Responsive) or 1x4 Swipe? 
       User complained about unexpected behavior. Let's do a safe 2x2 Grid. */
    .product-specs-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 Columns */
        gap: 10px;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .spec-block {
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 10px;
        padding: 15px;
        text-align: center;
        height: auto;
    }

    .spec-block i {
        font-size: 20px;
        margin-bottom: 5px;
        display: inline-block;
        align-self: center;
    }

    .spec-val {
        font-size: 14px;
    }

    .spec-sub {
        font-size: 10px;
        opacity: 0.8;
    }

    /* 5. Sub Nav Bar - Wrapping Grid */
    .sub-nav-bar {
        border-radius: 0;
        margin: 0;
        background: #fff;
        border-bottom: 1px solid #eee;
        position: relative;
        /* Not sticky, safer */
        top: 0;
        width: 100%;
        box-sizing: border-box;
        height: auto;
    }

    .sub-nav-bar ul {
        display: flex;
        flex-wrap: wrap;
        /* MULTILINE */
        justify-content: space-around;
        padding: 5px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .sub-nav-bar li {
        flex: 1 1 30%;
        /* 3 items per row approx */
        text-align: center;
        box-sizing: border-box;
    }

    .sub-nav-bar a {
        font-size: 10px;
        padding: 10px 5px;
        white-space: nowrap;
        color: #333;
        display: flex;
        flex-direction: column;
        /* Icon Top */
        align-items: center;
        gap: 5px;
        border-bottom: none;
        border-radius: 6px;
    }

    .sub-nav-bar i {
        margin: 0;
        font-size: 16px;
    }

    .sub-nav-bar li.active a {
        background: #f0f0f0;
        color: #000;
    }
}

/* Pagination Modern Styles */
.pagination-modern {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    color: #333;
    border: 1px solid #eee;
    border-radius: 50%;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff4d4d 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(171, 0, 0, 0.3);
}

.page-link i {
    font-size: 14px;
}


/* Layout Fixes */
.news-container-premium {
    width: 100%;
    display: block;
    position: relative;
    padding-bottom: 40px;
}

.pagination-modern {
    width: 100%;
    clear: both;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* --- Performance Optimizations (CLS Fixes) --- */
.hero-image {
    aspect-ratio: 4/3;
    width: 100%;
    position: relative;
}

.hero-image img {
    width: 95%;
    height: 100%;
    object-fit: cover;
}

.phone-card .img-container {
    aspect-ratio: 3/4;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.phone-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .phone-card .img-container {
        aspect-ratio: 1/1;
    }
}

/* --- Related Posts Futuristic Redesign (2026) --- */
.article-container-modern .related-section-premium {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-top: 60px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.02);
}

.article-container-modern .related-section-premium .section-header-modern h2::after {
    width: 100px;
    background: linear-gradient(90deg, #ab0000, transparent);
}

.article-container-modern .related-section-premium .premium-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.article-container-modern .related-section-premium .premium-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.article-container-modern .related-section-premium .premium-card:hover {
    transform: translateX(10px);
    border-color: #ab0000;
    box-shadow: 0 15px 40px rgba(171, 0, 0, 0.08);
}

.article-container-modern .related-section-premium .premium-card-thumb-wrapper {
    height: 110px;
    border-radius: 8px;
    margin-bottom: 0;
}

.article-container-modern .related-section-premium .premium-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-container-modern .related-section-premium .premium-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-container-modern .related-section-premium .premium-footer {
    font-size: 11px;
    color: #888;
}

@media (max-width: 991px) {
    .article-container-modern .related-section-premium .premium-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .article-container-modern .related-section-premium .premium-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .article-container-modern .related-section-premium .premium-card-thumb-wrapper {
        height: 150px;
        width: 100%;
    }
}

/* Hero and Image Fixes */
.brand-hero-section {
    max-height: 550px;
}

.hero-featured-device-img {
    max-height: 450px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {

    .logo a img,
    .logo a svg {
        width: 300px;
        height: 57px;
        object-fit: contain;
    }
}

/* Brand Page Styles */
.brand-not-found-wrapper {
    text-align: center;
    padding: 100px 0;
}

.brand-not-found-btn {
    margin-top: 20px;
    display: inline-block;
}

.brand-hero-wrapper {
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 400px;
    position: relative;
}

.brand-hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(67, 97, 238, 0.15), transparent 50%);
}

.brand-hero-content {
    flex: 1;
    padding: 60px;
    position: relative;
    z-index: 2;
}

.brand-hero-tag {
    background: var(--primary-color);
    padding: 5px 15px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.brand-hero-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 15px;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.brand-hero-price-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

.brand-hero-btn {
    margin: 0;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: none;
    font-size: 16px;
}

.brand-hero-price {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.brand-hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.brand-hero-image-inner {
    position: relative;
    width: 300px;
    height: 400px;
}

.brand-hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 350px;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(40px);
    border-radius: 50%;
}

.brand-detail-card {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.brand-detail-header {
    margin-bottom: 15px;
}

.brand-detail-title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.brand-detail-title i {
    color: var(--primary-color);
}

.brand-detail-text {
    color: #444;
    line-height: 1.8;
    font-size: 15px;
}

.brand-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.brand-page-title {
    margin: 0;
    font-size: 24px;
}

.brand-page-count {
    font-size: 14px;
    color: #888;
    border-left: 1px solid #ddd;
    padding-left: 12px;
    margin-left: 12px;
    font-weight: 500;
}

.brand-page-filters {
    display: flex;
    gap: 10px;
}
/* User Requested Fixes */
.article-body-modern, .post-content { padding: 5px !important; }
.btn { padding: 8px 16px; font-size: 14px; min-height: auto; min-width: auto; }



/* Forced Mobile 3-column Finder Grid */
@media (max-width: 768px) {
    .finder-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}


/* Compact Mobile Product Header Override */
@media (max-width: 768px) {
    .product-header { padding-bottom: 15px !important; margin-bottom: 0 !important; }
    .product-header-top { padding: 10px !important; gap: 8px !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; text-align: center !important; }
    .product-header-top .product-name { font-size: 18px !important; margin: 0 !important; flex: 1 1 100% !important; text-align: center !important; }
    .product-actions { width: 100% !important; justify-content: center !important; margin: 0 !important; flex-wrap: wrap; }
    .product-actions > a { padding: 5px 10px !important; font-size: 10px !important; }
    
    /* Grid layout */
    .product-main-grid {
        display: grid !important;
        grid-template-columns: 140px 1fr !important;
        grid-template-areas: 
            "image quickmeta"
            "gallery gallery"
            "popularity popularity"
            "specs specs" !important;
        gap: 3px !important;
        padding: 0 10px 10px 10px !important;
        align-items: stretch !important; /* Match heights */
    }
    .product-image-col, .product-info-col, .info-top-row {
        display: contents !important;
    }
    .product-image-wrapper { 
        grid-area: image !important; 
        max-width: 140px !important; 
        margin: 0 auto !important; 
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
    }
    .product-image-wrapper img { max-height: 200px !important; width: 100%; object-fit: contain; margin: 0 auto; display: block; }
    
    .product-quick-meta { 
        grid-area: quickmeta !important; 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: flex-end !important; /* Meta section right aligned */
        justify-content: space-between !important; /* Spread items across image height */
        margin-bottom: 0 !important; 
        width: 100% !important;
        height: 100% !important;
        padding: 5px 0 !important;
        box-sizing: border-box !important;
    }
    .product-quick-meta .meta-item { 
        font-size: 11px !important; 
        padding: 4px 6px !important; 
        text-align: left !important; /* Items text left aligned */
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important; /* Items icon/text left aligned */
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        overflow: visible !important;
        line-height: 1.3 !important;
    }
    .product-quick-meta .meta-item i { margin: 2px 0 0 0 !important; flex-shrink: 0 !important; font-size: 11px !important; }
    .product-quick-meta .meta-item span { flex: 1 !important; }
    
    .product-popularity-box { 
        grid-area: popularity !important; 
        display: flex !important; 
        flex-direction: row !important; 
        flex-wrap: nowrap !important;
        gap: 8px !important; 
        margin-top: 10px !important; 
        margin-bottom: 0 !important; 
        justify-content: space-between !important; 
    }
    .pop-chart, .pop-fans, .pop-price { 
        padding: 6px !important; 
        display: flex !important; 
        flex-direction: column !important;
        align-items: center !important; 
        justify-content: center !important; 
        text-align: center !important;
        min-width: 0 !important;
        flex: 1 !important;
    }
    .pop-chart i, .pop-fans i, .pop-price i { 
        font-size: 16px !important; 
        margin: 0 0 4px 0 !important; 
        display: block !important; 
    }
    .pop-data { 
        text-align: center !important; 
        align-items: center !important; 
        flex-direction: column !important; 
        gap: 2px !important; 
    }
    .pop-data .pop-pct, .pop-data .fan-count, .pop-data .price-val { font-size: 13px !important; font-weight: bold; }
    .pop-data .pop-count, .pop-data .fan-label, .pop-data .price-label { font-size: 9px !important; }
    
    .phone-gallery-row { 
        grid-area: gallery !important; 
        justify-content: center !important; 
        margin-top: 5px !important; 
    }
    .phone-gallery-row div { width: 45px !important; height: 45px !important; }
    
    .product-specs-row { 
        grid-area: specs !important; 
        gap: 4px !important; 
        margin-top: 5px !important; 
        padding: 8px !important; 
        border-radius: 8px !important; 
        justify-content: space-between !important; 
    }
    .spec-block { gap: 4px !important; flex: 1; text-align: center; min-width: 0 !important; padding: 0 !important; }
    .spec-block i { font-size: 14px !important; margin-bottom: 2px !important; }
    .spec-val { font-size: 11px !important; }
    .spec-sub { font-size: 9px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }
}

@media (max-width: 768px) {
    .review-card .review-body {
        padding: 5px 8px !important;
    }
    .review-title, .review-title a {
        font-size: 11px !important;
        text-align: left !important;
    }
    .review-excerpt {
        font-size: 10px !important;
        text-align: left !important;
        margin: 5px 0 !important;
    }
}







/* Added for 3-row layout in widgets */
@media (min-width: 768px) {
    .home-widget-grid { grid-template-columns: 1fr 1fr; }
    .home-widget-grid > .review-card:first-child { grid-row: span 4; height: 100%; }
}
.review-thumb { flex: 1; min-height: 180px; }

