/* SmartphonesNetwork.com Core Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Color Palette - Dark Mode Default */
    --bg-main: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(26, 36, 57, 0.9);
    --bg-header: rgba(11, 15, 25, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Neon Accents */
    --accent-indigo: #6366f1;
    --accent-indigo-glow: rgba(99, 102, 241, 0.15);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.15);
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    --gradient-hero: linear-gradient(0deg, rgba(11, 15, 25, 1) 0%, rgba(11, 15, 25, 0.4) 60%, rgba(11, 15, 25, 0.1) 100%);
    
    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadows & Glassmorphism */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
    --shadow-indigo: 0 0 25px rgba(99, 102, 241, 0.25);
    --glass-blur: blur(16px);
    
    /* Layout */
    --max-width: 1240px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Override (if toggled) */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-header: rgba(248, 250, 252, 0.8);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(99, 102, 241, 0.6);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-indigo-glow: rgba(99, 102, 241, 0.08);
    --accent-cyan-glow: rgba(6, 182, 212, 0.08);
    
    --gradient-hero: linear-gradient(0deg, rgba(248, 250, 252, 1) 0%, rgba(248, 250, 252, 0.4) 60%, rgba(248, 250, 252, 0.1) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-indigo: 0 0 25px rgba(99, 102, 241, 0.15);
}

/* --- Base & Reset Rules --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    color: inherit;
}

/* --- Layout Containers --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 400;
}

/* --- Header / Navigation --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.4rem;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    -webkit-text-fill-color: white;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Quick Search Bar */
.search-box {
    position: relative;
    width: 220px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px 8px 36px;
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    width: 280px;
    border-color: var(--accent-indigo);
    outline: none;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: var(--text-secondary);
    pointer-events: none;
}

/* Dark Mode Toggle */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-primary);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    cursor: pointer;
}

.burger-line {
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* --- Common Components: Cards --- */
.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

.card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1e293b;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .card-image {
    transform: scale(1.04);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Button & Action Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-indigo);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
}

.btn-icon {
    padding: 10px;
    border-radius: 50%;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-review { background-color: rgba(99, 102, 241, 0.15); color: var(--accent-indigo); border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-news { background-color: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-guide { background-color: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }

/* --- Homepage Layout (Magazine Style) --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 30px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hero-main:hover .hero-main-img {
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-card {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    align-items: center;
    transition: var(--transition-smooth);
}

.mini-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.mini-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #1e293b;
}

.mini-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mini-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

/* Grid of Articles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* --- Review Page Specific Elements --- */
.review-header {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.review-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.04) 0%, rgba(11, 15, 25, 0) 100%);
    z-index: -1;
}

.review-meta-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-headline {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.review-summary-block {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.review-rating-box {
    background: var(--gradient-glow);
    border: 1px solid var(--accent-indigo);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-indigo);
}

.rating-score {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.rating-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin: 8px 0;
}

.rating-stars {
    color: #f59e0b;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Pros and Cons Box */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.pro-box, .con-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
}

.pro-box { border-left: 4px solid var(--accent-emerald); }
.con-box { border-left: 4px solid var(--accent-rose); }

.pro-con-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-con-list {
    list-style: none;
}

.pro-con-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.pro-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
    font-weight: 700;
}

.con-box li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--accent-rose);
    font-weight: 700;
}

/* Dynamic Price Comparison Widget Styling */
.price-comparison-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 40px 0;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.price-row:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.price-merchant {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.merchant-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.price-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-stock {
    font-size: 0.75rem;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

/* Specs Table */
.specs-table-wrapper {
    margin: 40px 0;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.95rem;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 14px 16px;
}

.specs-label {
    width: 30%;
    color: var(--text-secondary);
    font-weight: 600;
}

.specs-value {
    color: var(--text-primary);
}

/* Sticky Buy Floating Bar */
.sticky-buy-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: 90%;
    max-width: 600px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--accent-indigo);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg), var(--shadow-indigo);
    z-index: 99;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-buy-bar.show {
    transform: translateX(-50%) translateY(0);
}

.sticky-bar-info {
    display: flex;
    flex-direction: column;
}

.sticky-bar-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.sticky-bar-price {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* --- Smartphone Comparison Tool Styling --- */
.compare-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.selector-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    position: relative;
}

.search-dropdown-wrapper {
    position: relative;
    margin-top: 16px;
}

.compare-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.compare-search-input:focus {
    border-color: var(--accent-indigo);
    outline: none;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    max-height: 250px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    display: none;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
}

.autocomplete-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.autocomplete-thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

/* Compare Matrix Table */
.compare-matrix-wrapper {
    margin-top: 40px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

.compare-matrix {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    table-layout: fixed;
    min-width: 600px;
}

.compare-matrix th, .compare-matrix td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.compare-matrix th {
    background: rgba(255, 255, 255, 0.01);
    font-size: 1rem;
    font-weight: 700;
}

.compare-matrix tr:last-child td {
    border-bottom: none;
}

.col-label {
    width: 25%;
    font-weight: 600;
    color: var(--text-secondary);
}

.col-item {
    width: 37.5%;
}

.compare-phone-card {
    text-align: center;
    padding: 10px 0;
}

.compare-phone-img {
    height: 140px;
    object-fit: contain;
    margin: 0 auto 16px;
}

.compare-phone-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.compare-phone-price {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}

.remove-phone-btn {
    color: var(--accent-rose);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.remove-phone-btn:hover {
    text-decoration: underline;
}

.compare-winner {
    background: rgba(16, 185, 129, 0.08) !important;
    border-left: 3px solid var(--accent-emerald);
}

/* --- SIM & Contract Deals Styles --- */
.filter-tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
}

.filter-tab:hover, .filter-tab.active {
    border-color: var(--accent-indigo);
    background: var(--accent-indigo-glow);
    color: var(--text-primary);
}

.deals-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.deal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.deal-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.deal-carrier-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.carrier-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.carrier-ee { background: #007c7a; }
.carrier-o2 { background: #0019a5; }
.carrier-vodafone { background: #e60000; }
.carrier-three { background: #000000; border: 1px solid rgba(255, 255, 255, 0.2); }
.carrier-id { background: #2f2e41; }

.deal-data {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    line-height: 1;
}

.deal-details {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.deal-price-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.deal-cost {
    display: flex;
    flex-direction: column;
}

.deal-cost-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.deal-cost-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Newsletter Block --- */
.newsletter-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid var(--accent-indigo);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.newsletter-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.newsletter-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
}

.newsletter-input {
    flex-grow: 1;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.newsletter-input:focus {
    border-color: var(--accent-indigo);
    outline: none;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.newsletter-form .btn {
    white-space: nowrap;
}

.newsletter-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* --- Footer --- */
.footer {
    background-color: #05070c;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-desc {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 280px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon:hover {
    color: var(--text-primary);
}

/* --- Custom Toast Notification --- */
.toast-msg {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f172a;
    border: 1px solid var(--accent-indigo);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg), var(--shadow-indigo);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-main {
        aspect-ratio: 16 / 10;
    }
    .review-summary-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .review-rating-box {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 30px;
    }
    .burger-menu {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: #0b0f19;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 90;
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.active {
        left: 0;
    }
    .search-box {
        display: none; /* Hide quick search on mobile main header, place inside burger if needed */
    }
    .hero-overlay {
        padding: 24px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .review-headline {
        font-size: 2.2rem;
    }
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
    .compare-selector {
        grid-template-columns: 1fr;
    }
    .newsletter-card {
        padding: 40px 20px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
