/*
Theme Name: Gold Prices Theme
Theme URI: https://goldprices.me
Author: Gold Prices Team
Author URI: https://goldprices.me
Description: Professional Arabic RTL theme for gold price tracking - EXACT match to Replit design
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gold-prices-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* ════════════ CSS VARIABLES - EXACT REPLIT ════════════ */
:root {
    --g9: #8B6914;
    --g8: #A67C00;
    --g7: #C89B00;
    --g6: #D4AF37;
    --g5: #E5C158;
    --g4: #F0D875;
    --g3: #F5E5A3;
    --g2: #FAF0C8;
    --g1: #FDF8E6;
    
    --bk: #1a1a1a;
    --b9: #2d2d2d;
    --b8: #3d3d3d;
    --b7: #4d4d4d;
    --b6: #666666;
    --b5: #808080;
    --b4: #999999;
    --b3: #b3b3b3;
    --b2: #e0e0e0;
    --b1: #f5f5f5;
    --wh: #ffffff;

    --ok: #059669;
    --okb: #d1fae5;
    --er: #dc2626;
    --erb: #fee2e2;

    --s1: 0 1px 3px rgba(0,0,0,.1);
    --s2: 0 4px 12px rgba(0,0,0,.1);
    --s3: 0 10px 30px rgba(0,0,0,.15);
    --sg: 0 8px 25px rgba(212,175,55,.25);

    --font-sans: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    --font-display: 'Cairo', sans-serif;
}

/* ════════════ RESET & BASE ════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--bk);
    background: #f8f6f0;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
}

/* ════════════ HEADER - EXACT REPLIT ════════════ */
.site-header {
    background: #fff;
    box-shadow: var(--s2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.logo-gem {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--g5), var(--g7));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sg);
    flex-shrink: 0;
}

.logo-text {
    text-align: right;
}

.logo-title {
    font-size: 1.48rem;
    font-weight: 900;
    color: var(--bk);
    line-height: 1.2;
    margin-bottom: 0.125rem;
    font-family: var(--font-display);
}

.logo-subtitle {
    display: block;
    font-size: 0.88rem;
    color: var(--g7);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Desktop Navigation - RTL Order */
.nav-desktop {
    display: flex;
    gap: 1.75rem;
    flex-direction: row-reverse;
}

.nav-link {
    color: var(--b7);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--g6);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--g7);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.625rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--g7);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,26,26,0.95);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-nav-overlay.active {
    display: flex;
}

.mobile-nav-close {
    position: absolute;
    top: 3rem;
    left: 1.75rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.875rem;
    cursor: pointer;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.mobile-nav-close:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav-link {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.25rem;
    width: 85%;
    max-width: 320px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.3s;
}

.mobile-nav-link:first-of-type {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-link:hover {
    color: var(--g4);
}

@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
    }
    .nav-desktop {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
}

/* ════════════ HERO LIGHT SECTION - EXACT REPLIT ════════════ */
.hero-light {
    background: linear-gradient(180deg, #f8f6f0 0%, #f0ebe0 100%);
    padding: 30px 0 40px;
}

.price-card-main {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    padding: 28px 24px;
    text-align: center;
    max-width: 420px;
    margin: 0 auto 24px;
}

.price-card-header {
    margin-bottom: 16px;
}

.price-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.price-card-subtitle {
    font-size: 0.85rem;
    color: #888;
}

.price-main-value {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.price-currency {
    font-size: 1.8rem;
    font-weight: 600;
    color: #666;
}

.price-change-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.88rem;
}

.price-change-badge.up {
    background: rgba(34,197,94,.12);
    color: #16a34a;
}

.price-change-badge.down {
    background: rgba(239,68,68,.12);
    color: #dc2626;
}

/* Karat Grid - Always 4 columns horizontal */
.karat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.karat-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: 14px 8px;
    text-align: center;
}

.karat-name {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 4px;
}

.karat-price {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.karat-unit {
    font-size: 0.72rem;
    color: #aaa;
    margin-bottom: 6px;
}

.karat-change {
    font-size: 0.75rem;
    font-weight: 700;
}

.karat-change.up {
    color: #16a34a;
}

.karat-change.down {
    color: #dc2626;
}

@media (max-width: 640px) {
    .karat-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    .price-main-value {
        font-size: 2.2rem;
    }
    .price-card-main {
        padding: 20px 16px;
    }
    .karat-box {
        padding: 10px 4px;
    }
    .karat-name {
        font-size: 0.65rem;
    }
    .karat-price {
        font-size: 0.95rem;
    }
    .karat-unit {
        font-size: 0.55rem;
    }
    .karat-change {
        font-size: 0.6rem;
    }
}

/* ════════════ SECTION HEADERS - EXACT REPLIT ════════════ */
.sec-hdr {
    text-align: center;
    margin-bottom: 38px;
}

.sec-title {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--bk);
    display: inline-block;
    position: relative;
    margin-bottom: 8px;
}

.sec-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--g6), var(--g7));
    border-radius: 2px;
}

.sec-sub {
    color: var(--b6);
    font-size: 0.97rem;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .sec-title {
        font-size: 1.7rem;
    }
    .sec-hdr {
        margin-bottom: 24px;
    }
}

/* ════════════ TABLES - EXACT REPLIT ════════════ */
.tbl-wrap {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--s2);
    overflow: hidden;
}

.dt {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.dt thead {
    background: linear-gradient(135deg, var(--g6), var(--g7));
    color: #fff;
}

.dt th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.dt tbody tr {
    border-bottom: 1px solid var(--b2);
    transition: background 0.2s;
}

.dt tbody tr:last-child {
    border-bottom: none;
}

.dt tbody tr:hover {
    background: var(--g1);
}

.dt td {
    padding: 10px 6px;
    text-align: center;
    font-size: 0.78rem;
}

.dt .cl {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--b7);
    text-align: center;
}

.dt .cp {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--g7);
}

@media (min-width: 768px) {
    .dt th {
        padding: 14px 12px;
        font-size: 0.88rem;
    }
    .dt td {
        padding: 14px 12px;
        font-size: 0.88rem;
    }
    .dt .cl {
        font-size: 0.92rem;
    }
    .dt .cp {
        font-size: 0.95rem;
    }
}

/* Badges */
.badge-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.83rem;
}

.badge-change.down { background: var(--erb); color: var(--er); }
.badge-change.up { background: var(--okb); color: var(--ok); }
.badge-change.neutral { background: var(--b1); color: var(--b5); }

.badge-sm {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.65rem;
    white-space: nowrap;
}
.badge-sm.up { background: var(--okb); color: var(--ok); }
.badge-sm.down { background: var(--erb); color: var(--er); }
.badge-sm.neutral { background: var(--b1); color: var(--b5); }

/* Hide on mobile */
@media (max-width: 640px) {
    .hide-mobile {
        display: none;
    }
}

/* ════════════ CHART - EXACT REPLIT ════════════ */
.chart-wrap {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--s2);
}

@media (max-width: 640px) {
    .chart-wrap {
        padding: 16px 12px;
        border-radius: 12px;
    }
}

.chart-container {
    height: 280px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .chart-container {
        height: 350px;
    }
}

@media (min-width: 768px) {
    .chart-container {
        height: 400px;
    }
}

.chart-karat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.chart-karat-btn {
    padding: 10px 8px;
    border: 2px solid var(--g3);
    background: var(--g1);
    color: var(--g7);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font-display);
    text-align: center;
}

.chart-karat-btn:hover,
.chart-karat-btn.active {
    background: var(--g6);
    border-color: var(--g6);
    color: #fff;
}

.chart-period-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
}

.chart-period-btn {
    padding: 10px 6px;
    border: 2px solid var(--b2);
    background: #fff;
    color: var(--b7);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    text-align: center;
}

.chart-period-btn:hover,
.chart-period-btn.active {
    background: var(--g6);
    border-color: var(--g6);
    color: #fff;
}

@media (max-width: 640px) {
    .chart-karat-grid {
        gap: 5px;
    }
    .chart-karat-btn {
        padding: 8px 4px;
        font-size: 0.72rem;
        border-width: 1.5px;
        border-radius: 6px;
    }
    .chart-period-grid {
        gap: 5px;
    }
    .chart-period-btn {
        padding: 8px 4px;
        font-size: 0.7rem;
        border-width: 1.5px;
        border-radius: 6px;
    }
}

/* ════════════ TOOL CARDS - EXACT REPLIT ════════════ */
.tools-elegant {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.tool-card {
    display: block;
    background: #fff;
    border: 1.5px solid var(--g3);
    border-radius: 18px;
    padding: 36px 28px 32px;
    transition: all 0.35s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,175,55,.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.tool-card:hover {
    border-color: var(--g6);
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(212,175,55,.18);
}

.tool-card:hover::before {
    opacity: 1;
}

.tc-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    background: linear-gradient(135deg, var(--g1), var(--g2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g7);
    transition: all 0.35s;
    font-size: 1.75rem;
}

.tool-card:hover .tc-icon {
    background: linear-gradient(135deg, var(--g6), var(--g7));
    color: #fff;
    transform: scale(1.08);
}

.tc-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bk);
    margin-bottom: 10px;
}

.tc-desc {
    color: var(--b6);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--g1), var(--g2));
    color: var(--g7);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.94rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.tool-card:hover .tc-btn {
    background: linear-gradient(135deg, var(--g6), var(--g7));
    color: #fff;
}

@media (max-width: 1100px) {
    .tools-elegant {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tools-elegant {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tool-card {
        padding: 30px 22px 26px;
    }
    .tc-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
    }
}

/* ════════════ BLOG LAYOUT - EXACT REPLIT ════════════ */
.blog-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.blog-featured {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--s2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-featured:hover {
    transform: translateY(-6px);
    box-shadow: var(--s3);
}

.bf-img {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--g6), var(--g8));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    position: relative;
    overflow: hidden;
}

.bf-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bf-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.18) 0%, transparent 60%);
}

.bf-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bf-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--bk);
    line-height: 1.4;
    margin-bottom: 14px;
}

.bf-exc {
    color: var(--b6);
    line-height: 1.75;
    margin-bottom: 18px;
    font-size: 1rem;
    flex: 1;
}

.bf-meta {
    display: flex;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--b5);
}

/* Blog Grid - Sidebar */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--s1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: row;
    height: 180px;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--s2);
}

.blog-img {
    width: 180px;
    height: 100%;
    background: linear-gradient(135deg, var(--g6), var(--g8));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-meta {
    display: flex;
    gap: 14px;
    font-size: 0.76rem;
    color: var(--b5);
    margin-bottom: 8px;
}

.blog-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--bk);
    line-height: 1.5;
    margin-bottom: 8px;
    flex: 1;
}

.blog-more {
    color: var(--g7);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    transition: gap 0.3s;
}

.blog-more:hover {
    gap: 9px;
}

@media (max-width: 1100px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
        height: 280px;
    }
    .blog-img {
        width: 100%;
        height: 140px;
    }
    .blog-body {
        padding: 12px;
        height: 140px;
        overflow: hidden;
    }
    .blog-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Blog Uniform Grid */
.blog-uniform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .blog-uniform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-uniform-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.blog-card-uniform {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--s1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card-uniform:hover {
    transform: translateY(-4px);
    box-shadow: var(--s2);
}

.blog-card-img {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--g6), var(--g8));
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bk);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ════════════ SINGLE POST - EXACT REPLIT ════════════ */
.single-post-header {
    text-align: center;
    margin-bottom: 30px;
}

.single-post-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--bk);
    line-height: 1.4;
    margin-bottom: 16px;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--b5);
}

.single-post-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--s2);
}

.single-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--s2);
}

.single-post-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bk);
    margin: 30px 0 16px;
}

.single-post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bk);
    margin: 24px 0 12px;
}

.single-post-content p {
    line-height: 1.9;
    margin-bottom: 18px;
    color: var(--b7);
}

.single-post-content ul,
.single-post-content ol {
    margin: 16px 0;
    padding-right: 24px;
}

.single-post-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .single-post-title {
        font-size: 1.6rem;
    }
    .single-post-content {
        padding: 24px 16px;
    }
}

/* ════════════ FOOTER - EXACT REPLIT ════════════ */
.site-footer {
    background: var(--bk);
    color: #fff;
    padding: 56px 0 26px;
    margin-top: 70px;
}

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

.foot-sec h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--g4);
    margin-bottom: 18px;
}

.foot-sec a {
    color: var(--b3);
    transition: color 0.3s;
    font-size: 0.92rem;
}

.foot-sec a:hover {
    color: var(--g4);
}

.foot-about {
    color: var(--b3);
    line-height: 1.8;
    font-size: 0.92rem;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.soc-a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    color: #fff;
}

.soc-a:hover {
    background: var(--g6);
    transform: translateY(-3px);
}

.news-inp {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid rgba(255,255,255,.15);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: rgba(255,255,255,.07);
    color: #fff;
    margin-bottom: 10px;
}

.news-inp::placeholder {
    color: var(--b4);
}

.news-inp:focus {
    outline: none;
    border-color: var(--g6);
}

.news-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--g6), var(--g7));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s;
}

.news-btn:hover {
    transform: translateY(-2px);
}

.foot-bot {
    border-top: 1px solid var(--b9);
    padding-top: 24px;
    text-align: center;
    color: var(--b4);
    font-size: 0.83rem;
}

@media (max-width: 1100px) {
    .foot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .foot-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
}

/* ════════════ BREADCRUMB ════════════ */
.breadcrumb {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid var(--b2);
}

.breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--b5);
}

.breadcrumb a {
    color: var(--b6);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--g7);
}

/* ════════════ CALCULATOR STYLES ════════════ */
.calc-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    padding: 36px;
    box-shadow: var(--s2);
}

.calc-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bk);
    text-align: center;
    margin-bottom: 24px;
}

.calc-group {
    margin-bottom: 20px;
}

.calc-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--b7);
}

.calc-input,
.calc-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--b2);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #fff;
}

.calc-input:focus,
.calc-select:focus {
    outline: none;
    border-color: var(--g6);
}

.calc-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--g6), var(--g7));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s;
    margin-top: 10px;
}

.calc-btn:hover {
    transform: translateY(-2px);
}

.calc-result {
    margin-top: 24px;
    padding: 20px;
    background: var(--g1);
    border-radius: 12px;
    text-align: center;
}

.calc-result-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--g7);
}

.calc-result-label {
    font-size: 0.9rem;
    color: var(--b6);
    margin-top: 4px;
}

/* ════════════ UTILITY CLASSES ════════════ */
.max-w-1200 { max-width: 1200px; }
.max-w-1400 { max-width: 1400px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.bg-light { background: #FAFAF5; }

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ════════════ ANIMATIONS ════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeUp 0.6s ease-out both;
}

/* ════════════ AD SPACE ════════════ */
.ad-space {
    background: var(--b1);
    border: 2px dashed var(--b2);
    border-radius: 14px;
    padding: 44px 20px;
    text-align: center;
    margin: 52px 0;
    color: var(--b5);
    font-weight: 600;
    font-size: 0.93rem;
}

/* ════════════ CONTENT PAGE ════════════ */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-page h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--bk);
    margin-bottom: 20px;
}

.content-page h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bk);
    margin: 30px 0 16px;
}

.content-page p {
    line-height: 1.9;
    margin-bottom: 18px;
    color: var(--b7);
}

.content-page ul,
.content-page ol {
    margin: 16px 0;
    padding-right: 24px;
}

.content-page li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* ════════════ QUICK LINKS ════════════ */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.quick-card {
    background: #fff;
    border-radius: 14px;
    padding: 26px 18px;
    text-align: center;
    box-shadow: var(--s1);
    transition: all 0.3s;
    cursor: pointer;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--s2);
    background: var(--g1);
}

@media (max-width: 768px) {
    .quick-grid {
        grid-template-columns: 1fr 1fr;
    }
}
