/**
 * ForexPro Theme Additional Styles
 *
 * @package ForexPro
 * @version 1.0.0
 */

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

.fp-post-card {
    background: var(--fp-white);
    border-radius: var(--fp-radius-xl);
    overflow: hidden;
    box-shadow: var(--fp-shadow-card);
    transition: all var(--fp-transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.fp-post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.fp-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--fp-transition-slow);
}

.fp-post-card:hover .fp-post-thumbnail img {
    transform: scale(1.05);
}

.fp-post-content {
    padding: var(--fp-space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fp-post-category {
    margin-bottom: var(--fp-space-3);
}

.fp-post-title {
    font-size: var(--fp-text-xl);
    font-weight: 700;
    margin-bottom: var(--fp-space-3);
    line-height: 1.3;
}

.fp-post-title a {
    color: var(--fp-gray-900);
    text-decoration: none;
    transition: color var(--fp-transition-fast);
}

.fp-post-title a:hover {
    color: var(--fp-primary);
}

.fp-post-excerpt {
    color: var(--fp-gray-600);
    font-size: var(--fp-text-sm);
    line-height: 1.6;
    margin-bottom: var(--fp-space-4);
    flex: 1;
}

.fp-post-meta {
    display: flex;
    gap: var(--fp-space-4);
    font-size: var(--fp-text-xs);
    color: var(--fp-gray-500);
}

.fp-post-meta svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

/* ============================================
   PAGINATION
   ============================================ */

.fp-pagination {
    margin-top: var(--fp-space-12);
}

.fp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 4px;
    border-radius: var(--fp-radius-lg);
    background: var(--fp-white);
    color: var(--fp-gray-700);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--fp-transition-fast);
    box-shadow: var(--fp-shadow-sm);
}

.fp-pagination .page-numbers:hover,
.fp-pagination .page-numbers.current {
    background: var(--fp-primary);
    color: var(--fp-white);
}

.fp-pagination .prev,
.fp-pagination .next {
    width: auto;
    padding: 0 var(--fp-space-4);
}

/* ============================================
   BREADCRUMBS
   ============================================ */

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

.fp-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-breadcrumb-item {
    display: flex;
    align-items: center;
}

.fp-breadcrumb-item a {
    color: var(--fp-gray-600);
}

.fp-breadcrumb-item a:hover {
    color: var(--fp-primary);
}

.fp-breadcrumb-sep {
    margin: 0 var(--fp-space-2);
    color: var(--fp-gray-400);
}

.fp-breadcrumb-item.active {
    color: var(--fp-gray-900);
    font-weight: 500;
}

/* ============================================
   ENTRY STYLES
   ============================================ */

.entry-header {
    margin-bottom: var(--fp-space-6);
}

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

.entry-meta {
    display: flex;
    gap: var(--fp-space-4);
    font-size: var(--fp-text-sm);
    color: var(--fp-gray-600);
}

.entry-content {
    font-size: var(--fp-text-lg);
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--fp-space-8);
    margin-bottom: var(--fp-space-4);
}

.entry-content p {
    margin-bottom: var(--fp-space-6);
}

.entry-content blockquote {
    border-left: 4px solid var(--fp-primary);
    padding-left: var(--fp-space-6);
    margin: var(--fp-space-6) 0;
    font-style: italic;
    color: var(--fp-gray-700);
}

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

.entry-content li {
    margin-bottom: var(--fp-space-2);
}

/* ============================================
   SOCIAL SHARE
   ============================================ */

.fp-social-share {
    display: flex;
    align-items: center;
    gap: var(--fp-space-3);
    margin-top: var(--fp-space-8);
    padding-top: var(--fp-space-6);
    border-top: 1px solid var(--fp-gray-200);
}

.fp-share-label {
    font-size: var(--fp-text-sm);
    font-weight: 600;
    color: var(--fp-gray-600);
    margin-right: var(--fp-space-2);
}

.fp-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--fp-radius-full);
    background: var(--fp-gray-100);
    color: var(--fp-gray-600);
    transition: all var(--fp-transition-fast);
}

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

.fp-share-facebook:hover { background: #1877f2; }
.fp-share-twitter:hover { background: #1da1f2; }
.fp-share-linkedin:hover { background: #0a66c2; }
.fp-share-whatsapp:hover { background: #25d366; }

/* ============================================
   FORMS
   ============================================ */

.wp-block-search__input,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea {
    width: 100%;
    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);
}

.wp-block-search__input:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--fp-primary);
}

button,
input[type="submit"],
.wp-block-search__button {
    padding: var(--fp-space-3) var(--fp-space-6);
    background: var(--fp-primary);
    color: var(--fp-white);
    border: none;
    border-radius: var(--fp-radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--fp-transition-fast);
}

button:hover,
input[type="submit"]:hover {
    background: var(--fp-primary-dark);
}

/* ============================================
   COMMENTS
   ============================================ */

.comments-area {
    margin-top: var(--fp-space-12);
    padding-top: var(--fp-space-8);
    border-top: 1px solid var(--fp-gray-200);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: var(--fp-space-6);
    padding: var(--fp-space-6);
    background: var(--fp-gray-50);
    border-radius: var(--fp-radius-lg);
}

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

.comment-author img {
    width: 48px;
    height: 48px;
    border-radius: var(--fp-radius-full);
}

.comment-content {
    font-size: var(--fp-text-base);
    line-height: 1.6;
}

.comment-reply-link {
    display: inline-block;
    margin-top: var(--fp-space-3);
    font-size: var(--fp-text-sm);
    font-weight: 600;
    color: var(--fp-primary);
}

/* ============================================
   WIDGETS
   ============================================ */

.widget {
    margin-bottom: var(--fp-space-8);
}

.widget-title {
    font-size: var(--fp-text-lg);
    font-weight: 700;
    margin-bottom: var(--fp-space-4);
    padding-bottom: var(--fp-space-3);
    border-bottom: 2px solid var(--fp-gray-100);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: var(--fp-space-2) 0;
    border-bottom: 1px solid var(--fp-gray-100);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--fp-gray-700);
}

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

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .fp-content-sidebar {
        grid-template-columns: 1fr;
    }
    
    .fp-posts-grid.fp-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .entry-title {
        font-size: var(--fp-text-2xl);
    }
    
    .entry-content {
        font-size: var(--fp-text-base);
    }
    
    .fp-page-header {
        padding: var(--fp-space-8) 0;
    }
    
    .fp-page-title {
        font-size: var(--fp-text-3xl);
    }
}

/* ============================================
   HOMEPAGE RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .fp-converter-row-main {
        flex-wrap: wrap;
    }
    
    .fp-converter-amount-wrap {
        flex: 1 1 100%;
    }
    
    .fp-converter-result-wrap {
        flex: 1 1 100%;
        text-align: left;
        margin-top: 16px;
    }
    
    .fp-cross-rate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fp-home-layout {
        grid-template-columns: 1fr;
    }
    
    .fp-home-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .fp-hero-simple {
        padding-top: 100px;
    }
    
    .fp-hero-simple-content h1 {
        font-size: 1.75rem;
    }
    
    .fp-converter-box {
        padding: 20px;
    }
    
    .fp-converter-row-main {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fp-converter-amount-wrap,
    .fp-converter-select-wrap,
    .fp-converter-swap,
    .fp-converter-result-wrap {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .fp-converter-swap {
        align-self: center;
        transform: rotate(90deg);
        margin: 12px auto;
        display: flex !important;
        width: 48px;
        height: 48px;
    }
    
    .fp-converter-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .fp-converter-btn-main {
        width: 100%;
    }
    
    .fp-popular-currencies {
        flex-wrap: wrap;
    }
    
    .fp-cross-rate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fp-gold-grid-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fp-cross-rate-grid {
        grid-template-columns: 1fr;
    }
    
    .fp-converter-result-amount {
        font-size: 1.25rem;
    }
    
    .fp-cross-rate-value {
        font-size: 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--fp-primary);
    color: var(--fp-white);
    padding: 8px 16px;
    z-index: 100000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--fp-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   HOMEPAGE DESIGN - MATCHING SCREENSHOT
   ============================================ */

/* Simple Hero - Two Column Layout */
.fp-hero-simple {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.fp-hero-simple::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.fp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.fp-hero-simple-content {
    text-align: left;
    position: relative;
    z-index: 1;
    width: 95%;
}

.fp-hero-simple-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
}

.fp-hero-simple-content h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 2px;
}

.fp-hero-simple-content p {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.6;
    max-width: 90%;
    font-weight: 400;
}

.fp-hero-calculator {
    position: relative;
    z-index: 1;
    width: 105%;
}

.fp-hero-calculator .fp-converter-box {
    margin: 0;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .fp-hero-grid {
        gap: 30px;
    }
    
    .fp-hero-simple-content h1 {
        font-size: 1.875rem;
    }
}

@media (max-width: 900px) {
    .fp-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .fp-hero-simple {
        padding: 50px 0 40px;
    }
    
    .fp-hero-simple-content {
        text-align: center;
    }
    
    .fp-hero-simple-content h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .fp-hero-simple-content p {
        max-width: 100%;
    }
    
    .fp-hero-calculator {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .fp-hero-simple {
        padding: 40px 0 30px;
    }
    
    .fp-hero-simple-content h1 {
        font-size: 1.625rem;
    }
    
    .fp-hero-simple-content h1::after {
        width: 50px;
        height: 3px;
    }
    
    .fp-hero-simple-content p {
        font-size: 1rem;
    }
}

/* Main Converter Box - Modern Attractive Design */
.fp-main-converter {
    padding: 20px 0 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

.fp-main-converter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.fp-main-converter::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.fp-converter-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1), 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.fp-converter-form-main {
    width: 100%;
}

.fp-converter-row-main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #ffffff;
    overflow: visible;
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* New grouped layout for better organization */
.fp-converter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: calc(50% - 20px);
    min-width: 0;
}

.fp-converter-group-from {
    padding-right: 6px;
}

.fp-converter-group-to {
    justify-content: flex-start;
    padding-left: 6px;
}

/* Swap button perfectly centered */
.fp-converter-swap {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    padding: 0;
    box-shadow: none;
    z-index: 2;
    position: relative;
    margin: 0 4px;
    overflow: hidden;
    box-sizing: border-box;
}

.fp-converter-swap:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.fp-converter-swap svg {
    display: block;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.fp-converter-swap:hover svg {
transform: rotate(180deg);
}

.fp-converter-amount-wrap {
flex: 0 0 100px;
display: flex;
align-items: center;
}

.fp-converter-amount-wrap::before {
content: '';
position: absolute;
left: 16px;
color: #64748b;
font-size: 1.125rem;
font-weight: 600;
    position: absolute;
    left: 16px;
    color: #64748b;
    font-size: 1.125rem;
    font-weight: 600;
}

.fp-converter-amount-input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1f2937;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.15s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: none;
}

.fp-converter-amount-input:hover {
    border-color: #9ca3af;
}

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

.fp-converter-amount-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.fp-converter-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 8px;
    background: #ffffff;
    width: 100px;
    height: 36px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.15s ease;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: none;
}

.fp-converter-select-wrap:hover {
    border-color: #9ca3af;
}

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

.fp-converter-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    margin-right: 4px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.fp-converter-select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    outline: none;
    appearance: none;
    padding-right: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-converter-select:focus {
    outline: none;
}

.fp-converter-select option {
    padding: 10px;
    font-size: 0.9375rem;
}

.fp-select-arrow {
    position: absolute;
    right: 10px;
    color: #64748b;
    pointer-events: none;
}

.fp-converter-swap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #2563eb;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.fp-converter-swap svg {
    display: block;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.fp-converter-swap:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    border-color: #2563eb;
    transform: rotate(180deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.fp-converter-swap:hover svg {
    transform: rotate(-180deg);
}

.fp-converter-result-wrap {
    flex: 0 0 100px;
    text-align: center;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    background: #f0fdf4;
    overflow: visible;
    flex-shrink: 0;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    box-shadow: none;
}

.fp-converter-result-amount {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #166534;
    white-space: nowrap;
    overflow: visible;
}

.fp-converter-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 6px;
    border: 1px solid #bfdbfe;
}

.fp-exchange-rate {
    font-size: 0.75rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fp-exchange-rate::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #00e676;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.3), 0 0 10px #00e676;
    flex-shrink: 0;
}

.fp-exchange-rate strong {
    color: #2563eb;
    font-weight: 700;
    font-size: 0.8125rem;
}

.fp-converter-btn-main {
    padding: 8px 22px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fp-popular-currencies {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 2px dashed #e2e8f0;
    font-size: 0.75rem;
    color: #64748b;
    justify-content: center;
}

.fp-popular-currencies span {
    font-weight: 600;
    color: #475569;
}

.fp-popular-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-popular-link:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
}

.fp-popular-link img {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Cross Rate Cards */
.fp-cross-rates {
    padding: 15px 0;
    background: #bfdbfe;
    position: relative;
    overflow: hidden;
}

.fp-cross-rates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #bfdbfe;
}

.fp-cross-rate-grid {
    gap: 12px;
}

.fp-cross-rate-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.fp-cross-rate-pair {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.fp-cross-rate-pair img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.fp-cross-rate-code {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.fp-cross-rate-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 2px;
}

.fp-cross-rate-change {
    font-size: 0.75rem;
    font-weight: 500;
}

.fp-cross-rate-change.positive {
    color: #00c853;
}

.fp-cross-rate-change.negative {
    color: #dc2626;
}

.fp-cross-rate-change.neutral {
    color: #64748b;
}

.fp-cross-rate-small {
    padding: 12px;
}

.fp-cross-rate-small .fp-cross-rate-value {
    font-size: 1.125rem;
}

/* Gold & News Section */
.fp-gold-news-section {
    padding: 40px 0 60px;
    background: #fff;
}

.fp-section-title-simple {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
}

.fp-gold-grid-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.fp-gold-card-main {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.fp-gold-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fp-gold-icon-main {
    width: 32px;
    height: 32px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.fp-gold-karat-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #000000;
}

.fp-gold-price-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 4px;
}

.fp-gold-currency {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-right: 4px;
}

.fp-gold-unit-main {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 400;
}

.fp-gold-change-main {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
}

.fp-gold-change-main.positive {
    color: #00c853;
}

.fp-gold-chart-mini {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    opacity: 0.6;
}

.fp-gold-chart-mini svg {
    width: 100%;
    height: 100%;
}

/* Pakistan Gold Prices - New Card Design */
.fp-gold-pk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.fp-gold-pk-title {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-gold-pk-flag {
    font-size: 28px;
}

.fp-gold-pk-badge {
    background: #d4f5dc;
    color: #2d7a46;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.fp-gold-pk-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fp-gold-pk-card {
    background: #fff;
    border-radius: 12px;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #3b82f6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fp-gold-pk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.fp-gold-pk-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-gold-pk-icon {
    width: 30px;
    height: 30px;
    background: #f4e7c1;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    flex-shrink: 0;
}

.fp-gold-pk-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
}

.fp-gold-pk-tag {
    display: inline-block;
    background: #dbeafe;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #1e40af;
}

.fp-gold-pk-purity {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #3b82f6;
}

.fp-gold-pk-price {
    text-align: right;
}

.fp-gold-pk-price h2 {
    margin: 0;
    color: #1e40af;
    font-size: 1.25rem;
    font-weight: 700;
}

.fp-gold-pk-price small {
    display: block;
    color: #64748b;
    font-size: 10px;
    margin-top: 2px;
}

/* Responsive adjustments for Pakistan Gold Prices */
@media (max-width: 768px) {
    .fp-gold-pk-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        padding: 0;
        flex-wrap: nowrap;
    }
    
    .fp-gold-pk-title {
        font-size: 16px;
        flex-wrap: nowrap;
        gap: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .fp-gold-pk-title small {
        font-size: 11px;
        margin-left: 4px;
        color: #888;
    }
    
    .fp-gold-pk-flag {
        font-size: 20px;
    }
    
    .fp-gold-pk-badge {
        font-size: 10px;
        padding: 4px 8px;
        white-space: nowrap;
        flex-shrink: 0;
        background: #d4f5dc;
        border-radius: 12px;
    }
    
    .fp-gold-pk-card {
        padding: 15px;
    }
    
    .fp-gold-pk-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .fp-gold-pk-info h3 {
        font-size: 15px;
    }
    
    .fp-gold-pk-price h2 {
        font-size: 1.4rem;
    }
}

/* Sidebar Widgets */
.fp-widget-title-simple {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
}

.fp-widget-news-modern {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.fp-news-item-modern {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.fp-news-title-modern {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 6px;
    line-height: 1.4;
}

.fp-news-excerpt {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.fp-read-more-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    margin-top: 12px;
}

.fp-widget-gold-chart {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.fp-gold-chart-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 12px;
}

.fp-gold-chart-area {
    position: relative;
}

.fp-gold-chart-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.fp-gold-chart-visual {
    width: 100%;
}

/* ============================================
   GOLD RATES IN MAJOR CURRENCIES SECTION
   ============================================ */

.fp-gold-currencies-section {
    padding: 40px 0 60px;
    background: #f8fafc;
}

.fp-section-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 24px;
}

.fp-gold-currencies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fp-gold-currency-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
    border-radius: 12px;
    padding: 12px 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
    cursor: pointer;
}

.fp-gold-currency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.fp-gold-currency-card:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 25px rgba(255, 179, 71, 0.4);
}

.fp-gold-currency-flag {
    width: 48px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    border: 3px solid #ffffff;
    flex-shrink: 0;
}

.fp-gold-currency-name {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #000000;
    padding: 0 16px;
    text-transform: capitalize;
    letter-spacing: -0.01em;
}

.fp-gold-currency-value {
    font-size: 1rem;
    font-weight: 800;
    color: #000000;
    background: rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    letter-spacing: -0.01em;
}

/* Responsive for Gold Currencies */
@media (max-width: 1200px) {
    .fp-gold-currencies-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .fp-gold-currencies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .fp-gold-currencies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .fp-gold-currency-card {
        padding: 10px 14px;
    }
    
    .fp-gold-currency-name {
        font-size: 0.875rem;
        padding: 0 10px;
    }
    
    .fp-gold-currency-value {
        font-size: 0.9375rem;
        padding: 5px 10px;
    }
    
    .fp-gold-currency-flag {
        width: 40px;
        height: 30px;
        border: 2px solid #ffffff;
    }
}

@media (max-width: 480px) {
    .fp-gold-currencies-grid {
        grid-template-columns: 1fr;
    }
}

/* Smaller Currency Card Elements */
.fp-gold-currency-card.smaller {
    padding: 4px 6px;
    border-radius: 6px;
    min-height: auto;
}

.fp-gold-currency-card.smaller .fp-gold-currency-flag {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    border-width: 1px;
}

.fp-gold-currency-card.smaller .fp-gold-currency-name {
    font-size: 0.65rem;
    padding: 0 4px;
    font-weight: 600;
}

.fp-gold-currency-card.smaller .fp-gold-currency-value {
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 6px;
    font-weight: 700;
}

/* Currency-specific gradient variations */
.fp-gold-currency-card[data-currency="USD"] {
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
}

.fp-gold-currency-card[data-currency="EUR"] {
    background: linear-gradient(135deg, #ffa726 0%, #ffcc80 100%);
}

.fp-gold-currency-card[data-currency="GBP"] {
    background: linear-gradient(135deg, #ff7043 0%, #ffab91 100%);
}

.fp-gold-currency-card[data-currency="PKR"] {
    background: linear-gradient(135deg, #66bb6a 0%, #a5d6a7 100%);
}

.fp-gold-currency-card[data-currency="SAR"] {
    background: linear-gradient(135deg, #26a69a 0%, #80cbc4 100%);
}

.fp-gold-currency-card[data-currency="AED"] {
    background: linear-gradient(135deg, #42a5f5 0%, #90caf9 100%);
}

.fp-gold-currency-card[data-currency="QAR"] {
    background: linear-gradient(135deg, #9c27b0 0%, #ce93d8 100%);
}

.fp-gold-currency-card[data-currency="KWD"] {
    background: linear-gradient(135deg, #00796b 0%, #4db6ac 100%);
}

/* ============================================
   GOLD RESERVES BY COUNTRY SECTION
   ============================================ */

.fp-gold-reserves-section {
    padding: 40px 0 50px;
    background: #ffffff;
}

.fp-gold-reserves-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.fp-gold-reserve-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.fp-gold-reserve-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
    border-color: #3b82f6;
}

.fp-reserve-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-reserve-flag {
    width: 36px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    border: 1px solid #ffffff;
    flex-shrink: 0;
}

.fp-reserve-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fp-reserve-country {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fp-reserve-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.fp-reserve-btn-wrap {
    text-align: center;
}

.fp-reserve-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

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

/* Responsive for Gold Reserves */
@media (max-width: 1024px) {
    .fp-gold-reserves-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fp-gold-reserves-grid {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .fp-gold-reserve-card {
        padding: 14px;
        border-radius: 10px;
    }
    
    .fp-reserve-flag {
        width: 40px;
        height: 28px;
    }
    
    .fp-reserve-country {
        font-size: 0.8125rem;
    }
    
    .fp-reserve-value {
        font-size: 1.125rem;
    }
    
    .fp-reserve-btn {
        padding: 10px 24px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .fp-gold-reserves-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ============================================
   GOLD PRICE CALCULATOR PAGE
   ============================================ */

.fp-gold-calculator-page {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    min-height: calc(100vh - 72px);
}

/* Header Section */
.fp-gold-calc-header {
    padding: 32px 0 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.fp-gold-calc-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.fp-gold-calc-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.fp-gold-calc-header-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.fp-gold-icon-large {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    flex-shrink: 0;
}

.fp-gold-calc-header-text {
    text-align: left;
}

.fp-gold-calc-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.fp-gold-calc-header p {
    font-size: 0.9375rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.fp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #00e676;
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid #00c853;
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.4);
}

.fp-live-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse-dot 1.2s infinite;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 0 8px #ffffff;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.3), 0 0 10px #00e676; }
    50% { opacity: 0.8; transform: scale(0.85); box-shadow: 0 0 0 6px rgba(0, 230, 118, 0.1), 0 0 15px #00e676; }
}

/* Main Calculator Section */
.fp-gold-calc-main {
    padding: 40px 0 60px;
}

/* Calculator Card */
.fp-gold-calc-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Form Groups */
.fp-calc-group {
    margin-bottom: 28px;
}

.fp-calc-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.fp-calc-label svg {
    color: #2563eb;
}

/* Input Wrap */
.fp-calc-input-wrap {
    display: flex;
    gap: 12px;
}

.fp-calc-input {
    flex: 1;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-size: 1rem;
    color: #000000;
    background: #fafafa;
    transition: all 0.2s ease;
}

.fp-calc-input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.fp-calc-input::placeholder {
    color: #999;
}

/* Unit Select */
.fp-calc-unit-select {
    height: 52px;
    padding: 0 32px 0 16px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #000000;
    background: #fafafa;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23666' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s ease;
}

.fp-calc-unit-select:focus {
    border-color: #2563eb;
    outline: none;
}

/* Karat Buttons */
.fp-karat-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.fp-karat-btn {
    height: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fp-karat-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.fp-karat-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Currency Grid */
.fp-calc-currency-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.fp-currency-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fp-currency-btn img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.fp-currency-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
}

.fp-currency-btn:hover {
    border-color: #2563eb;
    background: #fff;
}

.fp-currency-btn.active {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-color: #000000;
}

.fp-currency-btn.active span {
    color: #2563eb;
}

/* Submit Button */
.fp-calc-submit-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.fp-calc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Reset Button */
.fp-calc-reset-btn {
    width: 100%;
    height: 38px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.fp-calc-reset-btn:hover {
    border-color: #999;
    color: #000000;
}

/* Result Section */
.fp-calc-result {
    margin-top: 32px;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border: 2px solid #d4af37;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.fp-result-divider {
    display: none;
}

.fp-result-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #8b7355;
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fp-result-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.2;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fp-result-amount::before {
    display: none;
}

/* Breakdown */
.fp-result-breakdown {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.fp-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

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

.fp-breakdown-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
}

.fp-breakdown-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Note */
.fp-calc-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.75rem;
    color: #999;
}

.fp-calc-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Gold Rates Table */
.fp-gold-rates-table {
    width: 100%;
    max-width: 100%;
    margin: 0 0 40px;
}

.fp-gold-rates-table h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
}

.fp-rates-table-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

.fp-table {
    width: 100%;
    border-collapse: collapse;
}

.fp-table th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #666;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.fp-table td {
    font-size: 0.9375rem;
    color: #000000;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

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

.fp-table td:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.fp-table td:first-child img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
}

/* Chart Section */
.fp-gold-chart-section {
    max-width: 800px;
    margin: 0 auto;
}

.fp-gold-chart-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
}

.fp-chart-placeholder {
    background: #fff;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.fp-chart-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.fp-chart-placeholder p {
    font-size: 0.9375rem;
    color: #999;
}

/* Footer Links */
.fp-gold-calc-footer {
    padding: 40px 0;
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

.fp-calc-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fp-calc-footer-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.fp-calc-footer-links a:hover {
    color: #2563eb;
}

.fp-footer-divider {
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .fp-gold-calc-header h1 {
        font-size: 1.75rem;
    }
    
    .fp-gold-calc-card {
        padding: 28px 24px;
        margin: 0 0 32px;
    }
    
    .fp-calc-input-wrap {
        flex-direction: column;
    }
    
    .fp-calc-unit-select {
        width: 100%;
    }
    
    .fp-karat-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fp-calc-currency-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fp-result-amount {
        font-size: 2.25rem;
    }
    
    .fp-rates-table-wrap {
        padding: 16px;
    }
    
    .fp-table {
        font-size: 0.875rem;
    }
    
    .fp-table th,
    .fp-table td {
        padding: 12px 8px;
    }
}

/* Sidebar Layout */
.fp-calc-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.fp-calc-primary {
    min-width: 0;
}

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

/* Sidebar Widgets */
.fp-calc-widget {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e5e5;
}

.fp-calc-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
}

.fp-calc-widget-title svg {
    color: #2563eb;
}

/* Navigation Widget */
.fp-calc-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-calc-nav-list li {
    border-bottom: 1px solid #f0f0f0;
}

.fp-calc-nav-list li:last-child {
    border-bottom: none;
}

.fp-calc-nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.fp-calc-nav-list a:hover {
    color: #2563eb;
}

.fp-calc-nav-list a svg {
    color: #999;
    transition: color 0.2s;
}

.fp-calc-nav-list a:hover svg {
    color: #2563eb;
}

/* Gold Info Widget */
.fp-calc-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fp-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.fp-info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000;
}

.fp-info-value {
    font-size: 0.8125rem;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Today's Rate Widget */
.fp-calc-today {
    text-align: center;
}

.fp-today-rate {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.fp-today-currency {
    font-size: 1.25rem;
    font-weight: 500;
    color: #999;
}

.fp-today-price {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
}

.fp-today-unit {
    font-size: 0.875rem;
    color: #999;
}

.fp-today-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.fp-today-change.positive {
    color: #00c853;
}

.fp-today-change.negative {
    color: #dc2626;
}

/* Support Widget */
.fp-calc-support p {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.fp-calc-support-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.fp-calc-support-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
    .fp-calc-layout {
        grid-template-columns: 1fr;
    }
    
    .fp-calc-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .fp-calc-widget {
        flex: 1 1 calc(50% - 10px);
        min-width: 260px;
    }
}

@media (max-width: 600px) {
    .fp-calc-sidebar {
        flex-direction: column;
    }
    
    .fp-calc-widget {
        flex: 1 1 100%;
    }
}

/* ============================================
   PSX DASHBOARD STYLES - CLEAN & ATTRACTIVE
   ============================================ */

.fp-psx-dashboard {
    background: #ffffff;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Market Overview Section - Clean White Design */
.fp-market-overview {
    padding: 32px 0;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.fp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #2563eb;
}

.fp-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fp-section-header h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 2px;
}

.fp-last-updated {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fp-last-updated::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #00e676;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.3), 0 0 10px #00e676;
    flex-shrink: 0;
}

/* Market Grid */
.fp-market-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.fp-market-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fp-market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.fp-market-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
    border-color: #bfdbfe;
}

.fp-market-card:hover::before {
    transform: scaleX(1);
}

.fp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fp-index-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.01em;
}

.fp-index-badge {
    font-size: 0.625rem;
    font-weight: 600;
    color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
}

.fp-card-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.fp-card-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f8fafc;
}

.fp-positive {
    color: #00c853;
    background: #b9f6ca;
}

.fp-positive svg {
    stroke: #00c853;
}

.fp-negative {
    color: #dc2626;
    background: #fee2e2;
}

.fp-negative svg {
    stroke: #dc2626;
}

.fp-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.fp-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fp-stat-label {
    font-size: 0.625rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.fp-stat-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
}

/* Dashboard Main Layout */
.fp-dashboard-main {
    padding: 40px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.fp-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

/* Index Tabs - Pill Style */
.fp-index-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.fp-tab-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fp-tab-btn:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #f8fafc;
    transform: translateY(-1px);
}

.fp-tab-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Chart Section - Clean Card */
.fp-chart-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    margin-bottom: 28px;
    position: relative;
}

.fp-chart-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 20px 20px 0 0;
}

.fp-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.fp-chart-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-chart-header h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
}

.fp-time-filters {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.fp-filter-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fp-filter-btn:hover {
    background: #e2e8f0;
    color: #000000;
}

.fp-filter-btn.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fp-chart-container {
    position: relative;
}

.fp-chart-placeholder {
    width: 100%;
}

.fp-chart-placeholder svg {
    width: 100%;
    height: auto;
}

.fp-chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 8px;
}

.fp-chart-labels span {
    font-size: 0.75rem;
    color: #64748b;
}

/* Index Grid - Modern Cards */
.fp-index-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fp-index-detail-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fp-index-detail-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.fp-index-detail-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
}

.fp-index-detail-card:hover::after {
    transform: scaleX(1);
}

.fp-index-detail-card h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #94a3b8;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fp-detail-value {
    font-size: 2rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.fp-detail-change {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 6px 12px;
    border-radius: 8px;
}

.fp-detail-range {
    margin-bottom: 16px;
}

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

.fp-detail-range > span {
    font-size: 0.6875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.fp-range-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    position: relative;
    margin-bottom: 8px;
    overflow: hidden;
}

.fp-range-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.fp-range-fill.fp-negative {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.fp-range-fill.fp-range-wide {
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
}

.fp-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

/* Sidebar Data Tables - Clean Cards */
.fp-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fp-data-table-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.fp-data-table-card:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
    border-color: #bfdbfe;
}

.fp-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.fp-table-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-view-all {
    font-size: 0.8125rem;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.fp-view-all:hover {
    background: #eff6ff;
}

.fp-data-table {
    width: 100%;
    border-collapse: collapse;
}

.fp-data-table thead {
    display: none;
}

.fp-data-table th {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    text-align: left;
}

.fp-data-table th:last-child {
    text-align: right;
}

.fp-data-table td {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.fp-data-table tr:last-child td {
    border-bottom: none;
}

.fp-data-table tr:hover td {
    background: #f8fafc;
}

.fp-symbol {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fp-symbol-code {
    font-size: 0.875rem;
    font-weight: 700;
    color: #000000;
}

.fp-symbol-name {
    font-size: 0.6875rem;
    color: #64748b;
}

.fp-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000000;
    text-align: right;
}

.fp-change {
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: right;
}

.fp-volume {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #000000;
    text-align: right;
}

/* Market Summary Section - Attractive Cards */
.fp-market-summary {
    padding: 40px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid #e2e8f0;
}

.fp-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.fp-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fp-summary-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #2563eb 0%, #3b82f6 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.fp-summary-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.fp-summary-card:hover::before {
    transform: scaleY(1);
}

.fp-summary-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
    border: 1px solid #bfdbfe;
}

.fp-summary-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fp-summary-label {
    font-size: 0.6875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.fp-summary-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
}

/* Responsive Dashboard */
@media (max-width: 1400px) {
    .fp-market-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .fp-dashboard-grid {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 1024px) {
    .fp-market-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fp-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .fp-dashboard-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .fp-data-table-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 280px;
    }
    
    .fp-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .fp-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .fp-market-grid {
        grid-template-columns: 1fr;
    }
    
    .fp-market-card {
        padding: 12px;
    }
    
    .fp-card-value {
        font-size: 1.25rem;
    }
    
    .fp-index-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .fp-tab-btn {
        white-space: nowrap;
        flex: 0 0 auto;
    }
    
    .fp-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fp-time-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .fp-index-grid {
        grid-template-columns: 1fr;
    }
    
    .fp-dashboard-sidebar {
        flex-direction: column;
    }
    
    .fp-data-table-card {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .fp-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fp-summary-card {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .fp-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .fp-card-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   GOLD RESERVES WIDGET STYLES
   ============================================ */

.fp-widget-reserves-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.fp-widget-reserve-item:hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.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 #ffffff;
    flex-shrink: 0;
}

.fp-widget-reserve-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.fp-widget-reserve-country {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fp-widget-reserve-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.fp-widget-reserve-link {
    display: block;
    text-align: center;
    padding: 8px;
    margin-top: 6px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* ============================================
   PSX DASHBOARD SIDEBAR
   ============================================ */

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

.fp-dashboard-sidebar .fp-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.fp-dashboard-sidebar .fp-widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

/* ============================================
   CURRENCY BOX STYLES
   ============================================ */

.fx-currency-box {
    flex: 1;
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    /* padding: 12px; */
    text-align: center;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

/* ============================================
   CURRENCY CONVERTER RESPONSIVE REDESIGN
   ============================================ */

/* Base responsive container */
.fp-converter-box,
.racc-converter-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Tablet: 768px and below */
@media (max-width: 768px) {
    .fp-converter-box {
        padding: 12px;
        border-radius: 12px;
    }

    .fp-converter-row-main {
        gap: 10px;
        padding: 12px;
    }

    .fp-converter-group {
        max-width: calc(50% - 22px);
        gap: 8px;
    }

    .fp-converter-group-from {
        padding-right: 4px;
    }

    .fp-converter-group-to {
        padding-left: 4px;
    }

    .fp-converter-amount-wrap {
        flex: 0 0 70px;
    }

    .fp-converter-amount-input {
        font-size: 0.8125rem;
        padding: 6px;
        height: 36px;
    }

    .fp-converter-select-wrap {
        flex: 1;
        min-width: 65px;
        height: 36px;
    }

    .fp-converter-swap {
        width: 32px;
        height: 32px;
        margin: 0 0;
    }

    .fp-converter-swap svg {
        width: 14px;
        height: 14px;
    }

    .fp-converter-result-wrap {
        flex: 0 0 100px;
        justify-content: center;
        min-height: 36px;
    }

    .fp-converter-result-amount {
        font-size: 0.8125rem;
    }

    .fp-converter-bottom {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .fp-exchange-rate {
        text-align: center;
        order: 2;
    }

    .fp-converter-btn-main {
        width: 100%;
        order: 1;
        padding: 14px 24px;
        font-size: 0.9375rem;
    }

    .fp-popular-currencies {
        flex-wrap: wrap;
        gap: 8px;
    }

    .fp-popular-currencies span {
        width: 100%;
        text-align: center;
    }

    .fp-popular-link {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }

    /* Hero calculator specific */
    .fp-hero-calculator .fp-converter-box {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
    .fp-converter-box {
        padding: 12px;
        border-radius: 10px;
    }

    .fp-converter-row-main {
        padding: 12px;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .fp-converter-group {
        gap: 8px;
        flex: 1;
        max-width: 100%;
        flex-direction: column;
    }

    .fp-converter-group-from {
        padding-right: 0;
        order: 2;
    }

    .fp-converter-group-to {
        padding-left: 0;
        order: 3;
    }

    .fp-converter-amount-wrap {
        flex: 1;
        width: 100%;
        order: 1;
    }

    .fp-converter-amount-input {
        font-size: 0.875rem;
        padding: 10px;
        height: 40px;
    }

    .fp-converter-select-wrap {
        flex: 1;
        width: 100%;
        height: 40px;
    }

    .fp-converter-swap {
        width: 32px;
        height: 32px;
        margin: 8px auto;
        align-self: center;
        order: 4;
    }

    .fp-converter-swap svg {
        width: 14px;
        height: 14px;
    }

    .fp-converter-select {
        font-size: 0.875rem;
    }

    .fp-converter-flag {
        width: 20px;
        height: 14px;
    }

    .fp-converter-result-wrap {
        flex: 1;
        min-height: 40px;
        padding: 10px;
        width: 100%;
        order: 5;
    }

    .fp-converter-result-amount {
        font-size: 0.875rem;
    }

    .fp-converter-bottom {
        padding: 12px;
        gap: 10px;
    }

    .fp-converter-btn-main {
        padding: 14px 20px;
        font-size: 0.875rem;
    }

    .fp-popular-currencies {
        gap: 6px;
        margin-top: 10px;
        padding-top: 8px;
    }

    .fp-popular-link {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .fp-popular-link img {
        width: 16px;
        height: 12px;
    }

    /* Sidebar/Widget specific */
    .fp-calc-sidebar .fp-converter-box,
    .fp-dashboard-sidebar .fp-converter-box,
    .widget .fp-converter-box {
        padding: 12px;
    }

    .fp-calc-sidebar .fp-converter-row-main,
    .fp-dashboard-sidebar .fp-converter-row-main,
    .widget .fp-converter-row-main {
        padding: 12px;
    }

    .fp-calc-sidebar .fp-converter-group,
    .fp-dashboard-sidebar .fp-converter-group,
    .widget .fp-converter-group {
        flex-wrap: wrap;
        gap: 8px;
    }

    .fp-calc-sidebar .fp-converter-amount-wrap,
    .fp-dashboard-sidebar .fp-converter-amount-wrap,
    .widget .fp-converter-amount-wrap {
        flex: 1 1 100%;
    }

    .fp-calc-sidebar .fp-converter-select-wrap,
    .fp-dashboard-sidebar .fp-converter-select-wrap,
    .widget .fp-converter-select-wrap {
        flex: 1 1 calc(50% - 25px);
        min-width: 70px;
    }

    .fp-calc-sidebar .fp-converter-swap,
    .fp-dashboard-sidebar .fp-converter-swap,
    .widget .fp-converter-swap {
        width: 38px;
        height: 38px;
    }

    .fp-calc-sidebar .fp-converter-result-wrap,
    .fp-dashboard-sidebar .fp-converter-result-wrap,
    .widget .fp-converter-result-wrap {
        flex: 1 1 100%;
        justify-content: center;
    }

    .fp-calc-sidebar .fp-converter-bottom,
    .fp-dashboard-sidebar .fp-converter-bottom,
    .widget .fp-converter-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .fp-calc-sidebar .fp-converter-btn-main,
    .fp-dashboard-sidebar .fp-converter-btn-main,
    .widget .fp-converter-btn-main {
        width: 100%;
    }
}

/* Small Mobile: 360px and below */
@media (max-width: 360px) {
    .fp-converter-box {
        padding: 10px;
    }

    .fp-converter-row-main {
        padding: 8px;
    }

    .fp-converter-amount-input {
        font-size: 0.9375rem;
        height: 40px;
    }

    .fp-converter-select-wrap {
        height: 40px;
        padding: 0 6px;
    }

    .fp-converter-select {
        font-size: 0.875rem;
    }

    .fp-converter-flag {
        width: 18px;
        height: 12px;
    }

    .fp-converter-swap {
        width: 34px;
        height: 34px;
    }

    .fp-converter-swap svg {
        width: 14px;
        height: 14px;
    }

    .fp-converter-result-amount {
        font-size: 1.125rem;
    }

    .fp-converter-bottom {
        padding: 8px;
    }

    .fp-exchange-rate {
        font-size: 0.6875rem;
    }

    .fp-converter-btn-main {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
}

/* Large screens: Ensure proper scaling */
@media (min-width: 1200px) {
    .fp-converter-box {
        max-width: 900px;
    }
}

/* Fix for hero section calculator */
.fp-hero-calculator .fp-converter-box {
    width: 100%;
    max-width: 100%;
}

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

    .fp-hero-calculator {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Custom Country Dropdown Component */
.fp-country-dropdown {
    position: relative;
    width: 100%;
}

.fp-country-dropdown-button {
    width: 100%;
    min-height: 36px;
    padding: 0 8px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    box-shadow: none;
}

.fp-country-dropdown-button:hover {
    border-color: #9ca3af;
}

.fp-country-dropdown-button:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fp-country-dropdown-button.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fp-country-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

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

.fp-country-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-country-code {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.fp-country-dropdown-arrow {
    width: 14px;
    height: 14px;
    color: #6b7280;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.fp-country-dropdown-button.active .fp-country-dropdown-arrow {
    transform: rotate(180deg);
}

.fp-country-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.fp-country-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fp-country-dropdown-search {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
    z-index: 10;
}

.fp-country-dropdown-search {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fp-country-search-icon {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    flex-shrink: 0;
}

.fp-country-search-input {
    flex: 1;
    height: 28px;
    padding: 0 6px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1f2937;
    background: #ffffff;
    outline: none;
    transition: all 0.15s ease;
}

.fp-country-search-input::placeholder {
    color: #9ca3af;
}

.fp-country-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.fp-country-dropdown-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.fp-country-dropdown-list::-webkit-scrollbar {
    width: 4px;
}

.fp-country-dropdown-list::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.fp-country-dropdown-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.fp-country-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.fp-hero-calc {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
}

.fp-hero-calc-header {
    margin-bottom: 14px;
}

.fp-hero-calc-title {
    font-weight: 800;
    font-size: 14px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.fp-hero-calc-subtitle {
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
}

.fp-hero-calc-form {
    display: grid;
    gap: 10px;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
}

.fp-hero-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fp-hero-calc-selectwrap {
    position: relative;
    display: flex;
    align-items: center;
}

.fp-hero-calc-flag {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    object-fit: cover;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.fp-hero-calc-row {
    display: grid;
    gap: 6px;
}

.fp-hero-calc-label {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
}

.fp-hero-calc-input,
.fp-hero-calc-select {
    width: 100%;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0 10px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
}

.fp-hero-calc-select {
    padding-left: 38px;
    position: relative;
    z-index: 1;
}

.fp-hero-calc-input:focus,
.fp-hero-calc-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.fp-hero-calc-btn {
    height: 38px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.fp-hero-calc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.25);
}

.fp-hero-calc-result {
    border-radius: 14px;
    padding: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.fp-hero-calc-result-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.fp-hero-calc-result-value {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
}

.fp-hero-calc-result-rate {
    margin-top: 4px;
    font-size: 11px;
    color: #64748b;
}

@media (max-width: 768px) {
    .fp-hero-calc {
        padding: 14px;
        border-radius: 14px;
    }
    .fp-hero-calc-grid {
        grid-template-columns: 1fr;
    }
}

.fp-country-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    outline: none;
}

.fp-country-item:hover {
    background: #f3f4f6;
}

.fp-country-item:focus {
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.fp-country-item.selected {
    background: #eff6ff;
}

.fp-country-item .fp-country-flag {
    width: 16px;
    height: 12px;
}

.fp-country-item .fp-country-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.fp-country-item .fp-country-code {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #9ca3af;
    margin-left: auto;
}

.fp-country-no-results {
    padding: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.75rem;
}
