/*
Theme Name: ForexPro
Theme URI: https://forexpro.com
Author: ForexPro Team
Author URI: https://forexpro.com
Description: A modern, clean, and fully responsive WordPress Forex theme optimized for Elementor. Features live currency rates, gold prices, currency converter, and fintech-style design with blue accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forexpro
Domain Path: /languages
Tags: elementor, forex, finance, responsive, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Requires PHP: 7.4
Requires at least: 5.8
Tested up to: 6.4

ForexPro WordPress Theme, Copyright 2024 ForexPro Team
ForexPro is distributed under the terms of the GNU GPL
*/

/* ============================================
   FOREXPRO THEME - MAIN STYLESHEET
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors - Fintech Blue */
    --fp-primary: #2563eb;
    --fp-primary-dark: #1d4ed8;
    --fp-primary-light: #3b82f6;
    --fp-primary-lighter: #dbeafe;
    
    /* Secondary Colors */
    --fp-secondary: #0ea5e9;
    --fp-accent: #06b6d4;
    
    /* Neutral Colors */
    --fp-white: #ffffff;
    --fp-gray-50: #f8fafc;
    --fp-gray-100: #f1f5f9;
    --fp-gray-200: #e2e8f0;
    --fp-gray-300: #cbd5e1;
    --fp-gray-400: #94a3b8;
    --fp-gray-500: #64748b;
    --fp-gray-600: #475569;
    --fp-gray-700: #334155;
    --fp-gray-800: #1e293b;
    --fp-gray-900: #0f172a;
    
    /* Semantic Colors */
    --fp-success: #10b981;
    --fp-success-light: #d1fae5;
    --fp-warning: #f59e0b;
    --fp-warning-light: #fef3c7;
    --fp-danger: #ef4444;
    --fp-danger-light: #fee2e2;
    --fp-info: #3b82f6;
    --fp-info-light: #dbeafe;
    
    /* Gold Colors */
    --fp-gold: #fbbf24;
    --fp-gold-dark: #d97706;
    --fp-gold-light: #fef3c7;
    
    /* Typography */
    --fp-font-primary: 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fp-font-heading: 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes */
    --fp-text-xs: 0.75rem;
    --fp-text-sm: 0.875rem;
    --fp-text-base: 1rem;
    --fp-text-lg: 1.125rem;
    --fp-text-xl: 1.25rem;
    --fp-text-2xl: 1.5rem;
    --fp-text-3xl: 1.875rem;
    --fp-text-4xl: 2.25rem;
    --fp-text-5xl: 3rem;
    
    /* Spacing */
    --fp-space-1: 0.25rem;
    --fp-space-2: 0.5rem;
    --fp-space-3: 0.75rem;
    --fp-space-4: 1rem;
    --fp-space-5: 1.25rem;
    --fp-space-6: 1.5rem;
    --fp-space-8: 2rem;
    --fp-space-10: 2.5rem;
    --fp-space-12: 3rem;
    --fp-space-16: 4rem;
    --fp-space-20: 5rem;
    
    /* Border Radius */
    --fp-radius-sm: 0.25rem;
    --fp-radius-md: 0.5rem;
    --fp-radius-lg: 0.75rem;
    --fp-radius-xl: 1rem;
    --fp-radius-2xl: 1.5rem;
    --fp-radius-full: 9999px;
    
    /* Shadows */
    --fp-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --fp-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --fp-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --fp-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --fp-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --fp-shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --fp-transition-fast: 150ms ease-in-out;
    --fp-transition-base: 200ms ease-in-out;
    --fp-transition-slow: 300ms ease-in-out;
    
    /* Container */
    --fp-container-max: 1280px;
    --fp-container-padding: 2%;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--fp-font-primary);
    font-size: var(--fp-text-base);
    /* line-height: 1.6; */
    color: var(--fp-gray-700);
    background-color: var(--fp-white);
}

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

a {
    color: var(--fp-primary);
    text-decoration: none;
    transition: color var(--fp-transition-fast);
}

a:hover {
    color: var(--fp-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fp-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--fp-gray-900);
    margin-bottom: var(--fp-space-4);
}

h1 { font-size: var(--fp-text-4xl); }
h2 { font-size: var(--fp-text-3xl); }
h3 { font-size: var(--fp-text-2xl); }
h4 { font-size: var(--fp-text-xl); }
h5 { font-size: var(--fp-text-lg); }
h6 { font-size: var(--fp-text-base); }

p {
    margin-bottom: var(--fp-space-4);
}

ul, ol {
    margin-bottom: var(--fp-space-4);
    padding-left: var(--fp-space-6);
}

/* ============================================
   LAYOUT
   ============================================ */

.fp-container {
    width: 100%;
    max-width: var(--fp-container-max);
    margin: 0 auto;
    padding-left: var(--fp-container-padding);
    padding-right: var(--fp-container-padding);
}

.fp-container-fluid {
    width: 100%;
    padding-left: var(--fp-container-padding);
    padding-right: var(--fp-container-padding);
}

.fp-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--fp-space-4) * -1);
    margin-right: calc(var(--fp-space-4) * -1);
}

.fp-col {
    flex: 1;
    padding-left: var(--fp-space-4);
    padding-right: var(--fp-space-4);
}

/* Grid Layouts */
.fp-grid {
    display: grid;
    gap: var(--fp-space-6);
}

.fp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.fp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.fp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.fp-grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
    .fp-grid-4,
    .fp-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .fp-grid-2,
    .fp-grid-3,
    .fp-grid-4,
    .fp-grid-5 { grid-template-columns: 1fr; }
}

/* ============================================
   HEADER
   ============================================ */

.fp-header {
    background: var(--fp-white);
    border-bottom: 1px solid var(--fp-gray-200);
    position: relative;
    z-index: 1000;
}

.fp-header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease-out;
    box-shadow: var(--fp-shadow-md);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.fp-logo {
    display: flex;
    align-items: center;
    font-family: 'Roboto Flex', sans-serif;
    font-size: var(--fp-text-2xl);
    font-weight: 800;
    color: var(--fp-primary);
}

.fp-logo img {
    height: 40px;
    width: auto;
    margin-right: var(--fp-space-3);
}

/* Navigation */
.fp-nav {
    display: flex;
    align-items: center;
}

.fp-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--fp-space-8);
}

.fp-menu li {
    position: relative;
}

.fp-menu a {
    display: block;
    padding: var(--fp-space-2) 0;
    color: var(--fp-gray-700);
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 500;
    font-size: var(--fp-text-sm);
    letter-spacing: 0.02em;
    position: relative;
}

.fp-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fp-primary);
    transition: width var(--fp-transition-base);
}

.fp-menu a:hover,
.fp-menu .current-menu-item a {
    color: var(--fp-primary);
}

.fp-menu a:hover::after,
.fp-menu .current-menu-item a::after {
    width: 100%;
}

/* Dropdown Menu */
.fp-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--fp-white);
    border: 1px solid var(--fp-gray-200);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow-lg);
    min-width: 200px;
    padding: var(--fp-space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--fp-transition-base);
    list-style: none;
    z-index: 100;
}

.fp-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fp-menu .sub-menu a {
    padding: var(--fp-space-3) var(--fp-space-4);
    border-radius: var(--fp-radius-md);
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.fp-menu .sub-menu a:hover {
    background: var(--fp-gray-50);
}

.fp-menu .sub-menu a::after {
    display: none;
}

/* Mobile Menu Toggle */
.fp-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.fp-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--fp-gray-700);
    margin: 3px 0;
    transition: all var(--fp-transition-base);
}

.fp-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.fp-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.fp-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
    .fp-menu-toggle {
        display: flex;
    }
    
    .fp-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--fp-white);
        padding: var(--fp-space-6);
        transform: translateX(100%);
        transition: transform var(--fp-transition-base);
        overflow-y: auto;
    }
    
    .fp-nav.active {
        transform: translateX(0);
    }
    
    .fp-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .fp-menu li {
        border-bottom: 1px solid var(--fp-gray-200);
    }
    
    .fp-menu a {
        padding: var(--fp-space-4) 0;
        font-size: var(--fp-text-base);
        font-family: 'Roboto Flex', sans-serif;
    }
    
    .fp-menu a::after {
        display: none;
    }
    
    .fp-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: var(--fp-space-4);
        display: none;
    }
    
    .fp-menu li.submenu-open > .sub-menu {
        display: block;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.fp-hero {
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-dark) 100%);
    color: var(--fp-white);
    padding: var(--fp-space-20) 0;
    position: relative;
    overflow: hidden;
}

.fp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.fp-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.fp-hero h1 {
    font-size: var(--fp-text-5xl);
    font-weight: 800;
    color: var(--fp-white);
    margin-bottom: var(--fp-space-6);
    line-height: 1.1;
}

.fp-hero p {
    font-size: var(--fp-text-xl);
    opacity: 0.9;
    margin-bottom: var(--fp-space-8);
}

.fp-hero-buttons {
    display: flex;
    gap: var(--fp-space-4);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .fp-hero {
        padding: var(--fp-space-12) 0;
    }
    
    .fp-hero h1 {
        font-size: var(--fp-text-3xl);
    }
    
    .fp-hero p {
        font-size: var(--fp-text-lg);
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--fp-space-2);
    padding: var(--fp-space-3) var(--fp-space-6);
    font-size: var(--fp-text-base);
    font-weight: 600;
    border-radius: var(--fp-radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--fp-transition-base);
    text-decoration: none;
}

.fp-btn-primary {
    background: var(--fp-primary);
    color: var(--fp-white);
}

.fp-btn-primary:hover {
    background: var(--fp-primary-dark);
    color: var(--fp-white);
    transform: translateY(-2px);
    box-shadow: var(--fp-shadow-md);
}

.fp-btn-secondary {
    background: var(--fp-white);
    color: var(--fp-primary);
}

.fp-btn-secondary:hover {
    background: var(--fp-gray-100);
    color: var(--fp-primary-dark);
}

.fp-btn-outline {
    background: transparent;
    color: var(--fp-white);
    border: 2px solid var(--fp-white);
}

.fp-btn-outline:hover {
    background: var(--fp-white);
    color: var(--fp-primary);
}

.fp-btn-lg {
    padding: var(--fp-space-4) var(--fp-space-8);
    font-size: var(--fp-text-lg);
}

.fp-btn-sm {
    padding: var(--fp-space-2) var(--fp-space-4);
    font-size: var(--fp-text-sm);
}

/* ============================================
   CARDS
   ============================================ */

.fp-card {
    background: var(--fp-white);
    border-radius: var(--fp-radius-xl);
    box-shadow: var(--fp-shadow-card);
    padding: var(--fp-space-6);
    transition: all var(--fp-transition-base);
    border: 1px solid var(--fp-gray-100);
}

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

.fp-card-header {
    display: flex;
    align-items: center;
    gap: var(--fp-space-3);
    margin-bottom: var(--fp-space-4);
}

.fp-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--fp-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fp-text-2xl);
}

.fp-card-icon-blue {
    background: var(--fp-primary-lighter);
    color: var(--fp-primary);
}

.fp-card-icon-gold {
    background: var(--fp-gold-light);
    color: var(--fp-gold-dark);
}

.fp-card-icon-green {
    background: var(--fp-success-light);
    color: var(--fp-success);
}

.fp-card-title {
    font-size: var(--fp-text-lg);
    font-weight: 600;
    margin: 0;
    color: var(--fp-gray-900);
}

.fp-card-value {
    font-size: var(--fp-text-3xl);
    font-weight: 700;
    color: var(--fp-gray-900);
    margin: var(--fp-space-2) 0;
}

.fp-card-change {
    display: inline-flex;
    align-items: center;
    gap: var(--fp-space-1);
    font-size: var(--fp-text-sm);
    font-weight: 600;
    padding: var(--fp-space-1) var(--fp-space-2);
    border-radius: var(--fp-radius-md);
}

.fp-card-change.positive {
    background: var(--fp-success-light);
    color: var(--fp-success);
}

.fp-card-change.negative {
    background: var(--fp-danger-light);
    color: var(--fp-danger);
}

/* Rate Card */
.fp-rate-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--fp-space-4);
    background: var(--fp-white);
    border-radius: var(--fp-radius-lg);
    border: 1px solid var(--fp-gray-200);
    transition: all var(--fp-transition-fast);
}

.fp-rate-card:hover {
    border-color: var(--fp-primary);
    box-shadow: var(--fp-shadow-md);
}

.fp-rate-pair {
    display: flex;
    align-items: center;
    gap: var(--fp-space-3);
}

.fp-rate-flag {
    width: 32px;
    height: 32px;
    border-radius: var(--fp-radius-full);
    object-fit: cover;
}

.fp-rate-info {
    display: flex;
    flex-direction: column;
}

.fp-rate-code {
    font-weight: 700;
    font-size: var(--fp-text-lg);
    color: var(--fp-gray-900);
}

.fp-rate-name {
    font-size: var(--fp-text-xs);
    color: var(--fp-gray-500);
}

.fp-rate-value {
    font-size: var(--fp-text-xl);
    font-weight: 700;
    color: var(--fp-gray-900);
}

/* ============================================
   CURRENCY CONVERTER
   ============================================ */

.fp-converter {
    background: var(--fp-white);
    border-radius: var(--fp-radius-2xl);
    box-shadow: var(--fp-shadow-xl);
    padding: var(--fp-space-8);
    max-width: 600px;
    margin: 0 auto;
}

.fp-converter-header {
    text-align: center;
    margin-bottom: var(--fp-space-6);
}

.fp-converter-title {
    font-size: var(--fp-text-2xl);
    font-weight: 700;
    margin-bottom: var(--fp-space-2);
}

.fp-converter-form {
    display: flex;
    flex-direction: column;
    gap: var(--fp-space-4);
}

.fp-converter-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--fp-space-4);
    align-items: end;
}

@media (max-width: 640px) {
    .fp-converter-row {
        grid-template-columns: 1fr;
    }
}

.fp-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--fp-space-2);
}

.fp-form-label {
    font-size: var(--fp-text-sm);
    font-weight: 500;
    color: var(--fp-gray-600);
}

.fp-form-input,
.fp-form-select {
    padding: var(--fp-space-3) var(--fp-space-4);
    border: 2px solid var(--fp-gray-200);
    border-radius: var(--fp-radius-lg);
    font-size: var(--fp-text-base);
    transition: border-color var(--fp-transition-fast);
    background: var(--fp-white);
}

.fp-form-input:focus,
.fp-form-select:focus {
    outline: none;
    border-color: var(--fp-primary);
}

.fp-swap-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--fp-radius-full);
    background: var(--fp-primary-lighter);
    color: var(--fp-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--fp-transition-fast);
}

.fp-swap-btn:hover {
    background: var(--fp-primary);
    color: var(--fp-white);
    transform: rotate(180deg);
}

.fp-converter-result {
    background: var(--fp-gray-50);
    border-radius: var(--fp-radius-lg);
    padding: var(--fp-space-6);
    text-align: center;
    margin-top: var(--fp-space-4);
}

.fp-result-amount {
    font-size: var(--fp-text-3xl);
    font-weight: 700;
    color: var(--fp-gray-900);
}

.fp-result-rate {
    font-size: var(--fp-text-sm);
    color: var(--fp-gray-500);
    margin-top: var(--fp-space-2);
}

/* ============================================
   GOLD PRICE CARDS
   ============================================ */

.fp-gold-card {
    background: linear-gradient(135deg, var(--fp-gold-light) 0%, var(--fp-white) 100%);
    border: 2px solid var(--fp-gold);
    border-radius: var(--fp-radius-xl);
    padding: var(--fp-space-6);
    position: relative;
    overflow: hidden;
}

.fp-gold-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
}

.fp-gold-card .fp-card-value {
    color: var(--fp-gold-dark);
}

/* ============================================
   SIDEBAR
   ============================================ */

.fp-sidebar {
    /* background: var(--fp-white); */
    /* border-radius: var(--fp-radius-xl); */
    /* padding: var(--fp-space-6); */
    /* box-shadow: var(--fp-shadow-card); */
}

/* ========================================
   FRONTEND WIDGETS - Modern Design
   ======================================== */

/* Base Widget Styles */
.fp-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    margin-bottom: var(--fp-space-6);
    overflow: hidden;
    transition: all 0.2s ease;
}

.fp-widget:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.fp-widget:last-child {
    margin-bottom: 0;
}

.fp-widget-title {
    font-size: var(--fp-text-lg);
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-widget-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 2px;
}

/* Widget Content Padding */
.fp-widget > div:not(.fp-widget-title) {
    padding: 16px 20px;
}

/* ========================================
   Gold Reserves Widget - Linear Design
   ======================================== */
.fp-widget-reserves-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fp-widget-reserve-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
    border-radius: 8px;
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fp-widget-reserve-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
}

.fp-widget-reserve-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
    border-color: #fbbf24;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* Rank Badge */
.fp-widget-reserve-rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

.fp-widget-reserve-rank.top-1 {
    background: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

.fp-widget-reserve-rank.top-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #9ca3af 100%);
}

.fp-widget-reserve-rank.top-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #b45309 100%);
}

.fp-widget-reserve-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

/* Linear Progress Bar Design */
.fp-widget-reserve-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fp-widget-reserve-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fp-widget-reserve-country {
    font-weight: 600;
    color: #1e293b;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fp-widget-reserve-value {
    font-weight: 700;
    color: #92400e;
    font-size: 13px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.fp-widget-reserve-value::after {
    content: " tonnes";
    font-weight: 500;
    font-size: 10px;
    color: #a8a29e;
    margin-left: 2px;
}

/* Progress Bar */
.fp-widget-reserve-bar {
    height: 6px;
    background: #fef3c7;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.fp-widget-reserve-progress {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border-radius: 3px;
    transition: width 0.6s ease;
    position: relative;
}

.fp-widget-reserve-progress::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Shine Effect on Hover */
.fp-widget-reserve-item:hover .fp-widget-reserve-progress {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 30%, #fbbf24 50%, #f59e0b 100%);
}

/* ========================================
   Market News Widget
   ======================================== */
.fp-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fp-news-item {
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.fp-news-item:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
}

.fp-news-title {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 6px;
}

.fp-news-title:hover {
    color: #3b82f6;
}

.fp-news-time {
    font-size: 12px;
    color: #64748b;
}

.fp-no-news {
    text-align: center;
    padding: 24px;
    color: #64748b;
    font-style: italic;
}

/* ========================================
   Currency Converter Widget
   ======================================== */
.fp-converter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fp-converter-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fp-converter-input,
.fp-converter-select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.fp-converter-input {
    flex: 1;
    min-width: 80px;
}

.fp-converter-select {
    min-width: 80px;
}

.fp-converter-input:focus,
.fp-converter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.fp-converter-equals {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #64748b;
    padding: 4px 0;
}

.fp-converter-result {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

.fp-result-value {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
}

.fp-converter-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.fp-converter-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(37,99,235,0.3);
}

/* ========================================
   Exchange Rates Widget
   ======================================== */
.fp-rates-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fp-rate-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.fp-rate-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.fp-rate-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.fp-rate-currency {
    flex: 1;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.fp-rate-value {
    font-weight: 700;
    color: #059669;
    font-size: 14px;
    font-family: monospace;
}

/* ========================================
   Gold Prices Widget
   ======================================== */
.fp-gold-prices-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fp-gold-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.fp-gold-price-item:hover {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}

.fp-gold-karat {
    font-weight: 700;
    color: #92400e;
    font-size: 14px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px;
    border: 1px solid #fcd34d;
}

.fp-gold-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    font-family: monospace;
}

/* ========================================
   Quick Links Widget
   ======================================== */
.fp-widget-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fp-widget-links li {
    margin: 0;
}

.fp-widget-links a {
    display: block;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.fp-widget-links a:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    color: #1d4ed8;
    transform: translateX(4px);
}

.fp-widget-links a::after {
    content: "→";
    float: right;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fp-widget-links a:hover::after {
    opacity: 1;
}

/* ========================================
   Custom HTML Widget
   ======================================== */
.fp-widget-custom .fp-widget-content {
    padding: 16px 20px;
    line-height: 1.6;
}

.fp-widget-custom .fp-widget-content p {
    margin-bottom: 12px;
}

.fp-widget-custom .fp-widget-content p:last-child {
    margin-bottom: 0;
}

/* Mini Chart Widget */
.fp-mini-chart {
    height: 150px;
    background: var(--fp-gray-50);
    border-radius: var(--fp-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fp-chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, var(--fp-primary-lighter), transparent);
}

/* News Widget */
.fp-news-item {
    display: flex;
    gap: var(--fp-space-3);
    padding: var(--fp-space-3) 0;
    border-bottom: 1px solid var(--fp-gray-100);
}

.fp-news-item:last-child {
    border-bottom: none;
}

.fp-news-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--fp-radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.fp-news-content {
    flex: 1;
}

.fp-news-title {
    font-size: var(--fp-text-sm);
    font-weight: 600;
    color: var(--fp-gray-800);
    margin-bottom: var(--fp-space-1);
    line-height: 1.4;
}

.fp-news-time {
    font-size: var(--fp-text-xs);
    color: var(--fp-gray-500);
}

/* ============================================
   FOOTER
   ============================================ */

.fp-footer {
    background: var(--fp-gray-900);
    color: var(--fp-gray-300);
    padding: var(--fp-space-16) 0 var(--fp-space-8);
}

.fp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--fp-space-8);
    margin-bottom: var(--fp-space-8);
}

@media (max-width: 1024px) {
    .fp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .fp-footer-grid {
        grid-template-columns: 1fr;
    }
}

.fp-footer-brand {
    max-width: 300px;
}

.fp-footer-logo {
    font-size: var(--fp-text-2xl);
    font-weight: 700;
    color: var(--fp-white);
    margin-bottom: var(--fp-space-4);
}

.fp-footer-desc {
    font-size: var(--fp-text-sm);
    line-height: 1.7;
    margin-bottom: var(--fp-space-4);
}

.fp-footer-title {
    font-size: var(--fp-text-base);
    font-weight: 700;
    color: var(--fp-white);
    margin-bottom: var(--fp-space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fp-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-footer-menu li {
    margin-bottom: var(--fp-space-3);
}

.fp-footer-menu a {
    color: var(--fp-gray-400);
    font-size: var(--fp-text-sm);
    transition: color var(--fp-transition-fast);
}

.fp-footer-menu a:hover {
    color: var(--fp-white);
}

/* Social Icons */
.fp-social {
    display: flex;
    gap: var(--fp-space-3);
}

.fp-social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--fp-radius-full);
    background: var(--fp-gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fp-gray-400);
    transition: all var(--fp-transition-fast);
}

.fp-social-link:hover {
    background: var(--fp-primary);
    color: var(--fp-white);
}

/* Newsletter */
.fp-newsletter {
    display: flex;
    gap: var(--fp-space-2);
}

.fp-newsletter-input {
    flex: 1;
    padding: var(--fp-space-3) var(--fp-space-4);
    border: 1px solid var(--fp-gray-700);
    border-radius: var(--fp-radius-lg);
    background: var(--fp-gray-800);
    color: var(--fp-white);
    font-size: var(--fp-text-sm);
}

.fp-newsletter-input:focus {
    outline: none;
    border-color: var(--fp-primary);
}

.fp-newsletter-btn {
    padding: var(--fp-space-3) var(--fp-space-4);
    background: var(--fp-primary);
    color: var(--fp-white);
    border: none;
    border-radius: var(--fp-radius-lg);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--fp-transition-fast);
}

.fp-newsletter-btn:hover {
    background: var(--fp-primary-dark);
}

/* Footer Bottom */
.fp-footer-bottom {
    border-top: 1px solid var(--fp-gray-800);
    padding-top: var(--fp-space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--fp-space-4);
}

.fp-copyright {
    font-size: var(--fp-text-sm);
    color: var(--fp-gray-500);
}

/* ============================================
   PAGE STRUCTURE
   ============================================ */

.fp-page-header {
    background: var(--fp-gray-50);
    padding: var(--fp-space-12) 0;
    text-align: center;
}

.fp-page-title {
    font-size: var(--fp-text-4xl);
    font-weight: 800;
    color: var(--fp-gray-900);
    margin-bottom: var(--fp-space-4);
}

.fp-page-subtitle {
    font-size: var(--fp-text-lg);
    color: var(--fp-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.fp-content {
    padding: var(--fp-space-16) 0;
}

.fp-content-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--fp-space-8);
}

.fp-primary-content {
    min-width: 0;
    overflow-x: auto;
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .fp-content-sidebar {
        grid-template-columns: 1fr;
        gap: var(--fp-space-6);
    }
    
    .fp-primary-content {
        order: 1;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .fp-content-sidebar {
        grid-template-columns: 1fr;
        gap: var(--fp-space-4);
    }
    
    .fp-primary-content {
        order: 1;
        padding: 0 var(--fp-space-2);
    }
    
    .fp-primary-content .fp-gold-pk-cards {
        grid-template-columns: 1fr;
        gap: var(--fp-space-4);
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .fp-content-sidebar {
        gap: var(--fp-space-3);
    }
    
    .fp-primary-content {
        padding: 0;
    }
}

/* ============================================
   SECTIONS
   ============================================ */

.fp-section {
    padding: var(--fp-space-16) 0;
}

.fp-section-title {
    text-align: center;
    margin-bottom: var(--fp-space-12);
}

.fp-section-title h2 {
    font-size: var(--fp-text-3xl);
    font-weight: 700;
    margin-bottom: var(--fp-space-4);
}

.fp-section-title p {
    font-size: var(--fp-text-lg);
    color: var(--fp-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   TABLES
   ============================================ */

.fp-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--fp-white);
    border-radius: var(--fp-radius-xl);
    overflow: hidden;
    box-shadow: var(--fp-shadow-card);
}

.fp-table thead {
    background: var(--fp-gray-50);
}

.fp-table th,
.fp-table td {
    padding: var(--fp-space-4);
    text-align: left;
    border-bottom: 1px solid var(--fp-gray-100);
}

.fp-table th {
    font-weight: 600;
    font-size: var(--fp-text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fp-gray-600);
}

.fp-table tbody tr:hover {
    background: var(--fp-gray-50);
}

.fp-table .fp-rate-trend {
    display: inline-flex;
    align-items: center;
    gap: var(--fp-space-1);
    font-weight: 600;
}

.fp-table .fp-rate-trend.up {
    color: var(--fp-success);
}

.fp-table .fp-rate-trend.down {
    color: var(--fp-danger);
}

/* ============================================
   SEARCH
   ============================================ */

.fp-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.fp-search-input {
    width: 100%;
    padding: var(--fp-space-4) var(--fp-space-6);
    padding-left: var(--fp-space-12);
    border: 2px solid var(--fp-gray-200);
    border-radius: var(--fp-radius-full);
    font-size: var(--fp-text-base);
    transition: all var(--fp-transition-fast);
    background: var(--fp-white);
}

.fp-search-input:focus {
    outline: none;
    border-color: var(--fp-primary);
    box-shadow: 0 0 0 4px var(--fp-primary-lighter);
}

.fp-search-icon {
    position: absolute;
    left: var(--fp-space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--fp-gray-400);
    pointer-events: none;
}

/* ============================================
   BADGES
   ============================================ */

.fp-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--fp-space-1) var(--fp-space-3);
    font-size: var(--fp-text-xs);
    font-weight: 600;
    border-radius: var(--fp-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fp-badge-primary {
    background: var(--fp-primary-lighter);
    color: var(--fp-primary);
}

.fp-badge-success {
    background: var(--fp-success-light);
    color: var(--fp-success);
}

.fp-badge-warning {
    background: var(--fp-warning-light);
    color: var(--fp-warning);
}

.fp-badge-danger {
    background: var(--fp-danger-light);
    color: var(--fp-danger);
}

/* ============================================
   ALERTS
   ============================================ */

.fp-alert {
    padding: var(--fp-space-4) var(--fp-space-6);
    border-radius: var(--fp-radius-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--fp-space-3);
}

.fp-alert-info {
    background: var(--fp-info-light);
    color: var(--fp-info);
    border-left: 4px solid var(--fp-info);
}

.fp-alert-success {
    background: var(--fp-success-light);
    color: var(--fp-success);
    border-left: 4px solid var(--fp-success);
}

.fp-alert-warning {
    background: var(--fp-warning-light);
    color: var(--fp-warning);
    border-left: 4px solid var(--fp-warning);
}

.fp-alert-danger {
    background: var(--fp-danger-light);
    color: var(--fp-danger);
    border-left: 4px solid var(--fp-danger);
}

/* ============================================
   LOADING STATES
   ============================================ */

.fp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--fp-gray-200);
    border-top-color: var(--fp-primary);
    border-radius: 50%;
    animation: fp-spin 0.8s linear infinite;
}

@keyframes fp-spin {
    to {
        transform: rotate(360deg);
    }
}

.fp-skeleton {
    background: linear-gradient(90deg, var(--fp-gray-100) 25%, var(--fp-gray-200) 50%, var(--fp-gray-100) 75%);
    background-size: 200% 100%;
    animation: fp-skeleton 1.5s infinite;
    border-radius: var(--fp-radius-md);
}

@keyframes fp-skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   DARK MODE
   ============================================ */

.fp-dark-mode {
    --fp-white: #0f172a;
    --fp-gray-50: #1e293b;
    --fp-gray-100: #334155;
    --fp-gray-200: #475569;
    --fp-gray-300: #64748b;
    --fp-gray-400: #94a3b8;
    --fp-gray-500: #cbd5e1;
    --fp-gray-600: #e2e8f0;
    --fp-gray-700: #f1f5f9;
    --fp-gray-800: #f8fafc;
    --fp-gray-900: #ffffff;
}

.fp-dark-mode .fp-header,
.fp-dark-mode .fp-card,
.fp-dark-mode .fp-sidebar {
    background: var(--fp-gray-50);
}

.fp-dark-mode .fp-footer {
    background: #020617;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fp-fade-in {
    animation: fp-fadeIn 0.5s ease-out;
}

@keyframes fp-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fp-pulse {
    animation: fp-pulse 2s infinite;
}

@keyframes fp-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.fp-text-center { text-align: center; }
.fp-text-left { text-align: left; }
.fp-text-right { text-align: right; }

.fp-mt-0 { margin-top: 0; }
.fp-mt-4 { margin-top: var(--fp-space-4); }
.fp-mt-8 { margin-top: var(--fp-space-8); }

.fp-mb-0 { margin-bottom: 0; }
.fp-mb-4 { margin-bottom: var(--fp-space-4); }
.fp-mb-8 { margin-bottom: var(--fp-space-8); }

.fp-hidden { display: none; }
.fp-block { display: block; }
.fp-flex { display: flex; }

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */

/* Sticky Header Body Offset */
body.has-sticky-header {
    padding-top: 72px;
}

body.has-sticky-header.admin-bar {
    padding-top: 104px;
}

/* Admin Bar Offset */
body.admin-bar .fp-header-sticky {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .fp-header-sticky {
        top: 46px;
    }
    
    body.has-sticky-header.admin-bar {
        padding-top: 118px;
    }
}

@media (max-width: 600px) {
    body.has-sticky-header {
        padding-top: 64px;
    }
    
    body.has-sticky-header.admin-bar {
        padding-top: 110px;
    }
}

/* WordPress Alignments */
.alignleft {
    float: left;
    margin-right: var(--fp-space-4);
}

.alignright {
    float: right;
    margin-left: var(--fp-space-4);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--fp-space-4);
}

/* Post Navigation */
.post-navigation {
    margin-top: var(--fp-space-8);
    padding-top: var(--fp-space-8);
    border-top: 1px solid var(--fp-gray-200);
}

/* Comments */
.comments-area {
    margin-top: var(--fp-space-8);
}

/* Screen Reader Text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   ELEMENTOR COMPATIBILITY
   ============================================ */

.elementor-page .fp-content {
    padding: 0;
}

.elementor-page .fp-page-header {
    display: none;
}

/* Ensure Elementor sections take full width */
.elementor-section-wrap {
    width: 100%;
}
