/*
Theme Name: Domaingex YBA
Theme URI: https://domaingex.com
Author: YBA
Version: 2.1 - Safari iOS Fixed
Description: Premium domain marketplace theme - Safari Compatible
*/

/* ==============================================
   1. Variables & Base Styles
   ============================================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-hover: #1c1c27;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #ffa500;
    --accent-hover: #ffb732;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
    /* iOS Safari smooth scrolling */
    -webkit-overflow-scrolling: touch;
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-primary); 
    color: var(--text-primary); 
    line-height: 1.6; 
    direction: ltr !important;
    text-align: left !important;
    overflow-x: hidden;
    /* Prevent font boosting in Safari */
    -webkit-text-size-adjust: 100%;
}

section { padding: 5rem 2rem; }

.section-header { 
    text-align: center; 
    margin-bottom: 3rem; 
}

.section-header h2 { 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
}

.section-header h2 span { color: var(--accent); }
.section-header p { 
    color: var(--text-secondary); 
    font-size: 1.1rem; 
}

/* ==============================================
   2. Navigation
   ============================================== */
.navbar { 
    background: rgba(10, 10, 15, 0.95); 
    backdrop-filter: blur(20px); 
    border-bottom: 1px solid var(--border); 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    padding: 1rem 0; 
}

.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 2rem; 
    display: flex; 
    justify-content: flex-start; 
    align-items: center; 
    gap: 2rem;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    text-decoration: none; 
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span { color: var(--accent); }

.header-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links { 
    display: flex; 
    gap: 2.5rem; 
    list-style: none; 
    align-items: center; 
}

.nav-links a { 
    color: var(--text-secondary); 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.3s; 
}

.nav-links a:hover { color: var(--accent); }

.btn-outline { 
    border: 1px solid var(--accent); 
    color: var(--accent); 
    padding: 0.6rem 1.5rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.3s; 
}

.btn-outline:hover { 
    background: var(--accent); 
    color: var(--bg-primary); 
}

/* Social links in header */
.header-social {
    display: flex;
    gap: 0.75rem;
    margin-left: 1rem;
}

.header-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.header-social a:hover {
    background: var(--accent);
    color: #000;
}

/* ==============================================
   3. Hero Section
   ============================================== */
.hero {
    padding: 10rem 2rem 6rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(
        ellipse 80% 50% at 50% 50%,
        rgba(139, 92, 246, 0.4) 0%,
        rgba(192, 132, 252, 0.2) 30%,
        rgba(124, 58, 237, 0.05) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 60%;
    background: radial-gradient(
        ellipse 60% 40% at 80% 100%,
        rgba(219, 39, 119, 0.15) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

.hero-badge { 
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 165, 0, 0.1); 
    color: var(--accent); 
    padding: 0.5rem 1rem; 
    border-radius: 50px; 
    font-size: 0.9rem; 
    font-weight: 600; 
    margin-bottom: 2rem; 
    border: 1px solid rgba(255, 165, 0, 0.2); 
}

.hero-badge img {
    height: 16px;
    width: auto;
    display: inline-block;
}

.hero h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    margin-bottom: 1.5rem; 
    line-height: 1.2; 
}

.hero h1 span { 
    background: linear-gradient(135deg, #ffa500, #ff6b6b); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.hero p { 
    font-size: 1.25rem; 
    color: var(--text-secondary); 
    margin-bottom: 3rem; 
}

.btn-primary { 
    background: linear-gradient(135deg, #ffa500, #ff8c00); 
    color: #000; 
    padding: 1rem 2.5rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    display: inline-block; 
    transition: transform 0.3s, box-shadow 0.3s; 
    border: none; 
    cursor: pointer; 
}

.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.3); 
}

/* ==============================================
   4. Purchase Options
   ============================================== */
.purchase-options { background: var(--bg-secondary); }

.purchase-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.purchase-card {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.purchase-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(255, 165, 0, 0.3); 
}

.purchase-icon { 
    width: 60px; 
    height: 60px; 
    background: rgba(255, 165, 0, 0.1); 
    border-radius: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 1.5rem; 
    font-size: 1.5rem; 
    color: var(--accent); 
    border: 1px solid rgba(255, 165, 0, 0.2); 
}

.purchase-card h3 { 
    font-size: 1.25rem; 
    margin-bottom: 1rem; 
}

.purchase-card p { 
    color: var(--text-secondary); 
    font-size: 0.95rem; 
    margin-bottom: 1.5rem; 
}

.security-notice { 
    max-width: 800px; 
    margin: 3rem auto 0; 
    background: rgba(255, 165, 0, 0.05); 
    border: 1px solid rgba(255, 165, 0, 0.2); 
    border-radius: 12px; 
    padding: 1.5rem; 
    text-align: center; 
    color: var(--text-secondary); 
}

/* ==============================================
   5. Domains Section & FILTERS - SAFARI iOS FIXED
   ============================================== */
.domains-section { 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* CRITICAL FIX: Filters Container - No overflow hidden */
.filters-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Remove any overflow that might clip dropdowns */
    overflow: visible;
    position: relative;
    z-index: 10;
}

/* Search Box */
.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    z-index: 5;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    /* Safari appearance fix */
    -webkit-appearance: none;
    appearance: none;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Category Tags */
.categories-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.5rem 0;
    position: relative;
    z-index: 5;
}

.tag-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Safari tap highlight */
    -webkit-tap-highlight-color: transparent;
}

.tag-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.tag-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

/* Price Range Container */
.price-range-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

.price-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price-range-header .price-label {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.price-range-header .price-value {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
}

.slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    margin: 0;
    /* Safari fix */
    -webkit-appearance: none;
    appearance: none;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: var(--bg-hover);
    border-radius: 4px;
    overflow: hidden;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ff8c00);
    border-radius: 4px;
    width: 100%;
    transition: width 0.1s ease;
}

.slider-thumb {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--accent);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(255, 165, 0, 0.4);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.slider-container:hover .slider-thumb {
    transform: translate(-50%, -50%) scale(1.2);
}

.price-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0 5px;
}

.price-marks span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Legacy Filters (for backward compatibility) */
.filters { 
    display: flex; 
    gap: 1rem; 
    margin-bottom: 3rem; 
    justify-content: center; 
    flex-wrap: wrap; 
    position: relative;
    z-index: 10;
    overflow: visible;
}

/* CRITICAL FIX: Select Dropdown Safari iOS */
.filters select,
select {
    padding: 1rem 2.5rem 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    /* CRITICAL: Safari iOS requires these */
    -webkit-appearance: menulist-button;
    appearance: menulist-button;
    /* Ensure dropdown is visible */
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 100;
    /* Prevent clipping */
    overflow: visible !important;
    /* Font size to prevent zoom on iOS */
    font-size: 16px;
}

/* Ensure select options are visible */
select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 10px;
}

/* Domains Grid */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.domain-card { 
    background: var(--bg-card); 
    border-radius: 16px; 
    overflow: hidden; 
    border: 1px solid var(--border); 
    transition: all 0.3s; 
    display: flex; 
    flex-direction: column; 
    height: 320px; 
    cursor: pointer;
    /* Safari tap highlight */
    -webkit-tap-highlight-color: transparent;
}

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

.domain-header { 
    flex: 2;
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 20px;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    min-height: 0;
}

.domain-name-gradient {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.domain-body { 
    flex: 1;
    padding: 1rem; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    text-align: center; 
}

.domain-name { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    margin-bottom: 0.5rem;
}

.domain-price { 
    font-size: 1.4rem; 
    font-weight: 700; 
    color: var(--accent); 
}

.domain-click-prompt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Zoom Icon */
.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.domain-card:hover .zoom-icon {
    opacity: 1;
}

.zoom-icon:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.1);
}

/* ==============================================
   6. MODAL SYSTEM - SAFARI iOS COMPATIBLE v2.0
   ============================================== */

/* Overlay - Uses visibility/opacity instead of display for Safari compatibility */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    
    /* Flex centering - always active but hidden via opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    /* Smooth transition */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* Prevent scroll on body when open */
    overscroll-behavior: contain;
}

/* Active state */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal Content */
.modal-content {
    background: #1a1a2e;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    
    /* iOS Safari momentum scrolling */
    -webkit-overflow-scrolling: touch;
    
    /* Prevent content shift */
    box-sizing: border-box;
    
    /* Animation */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover,
.modal-close:active {
    background: var(--accent);
    color: #000;
}

/* Modal Header */
.modal-header {
    padding: 1.5rem;
    text-align: center;
}

.modal-logo-container {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-logo-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-logo-inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-title-price-wrapper {
    padding: 1.5rem 0 0;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    word-break: break-word;
    color: var(--text-primary);
}

.modal-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

/* Modal Body */
.modal-body {
    padding: 0 1.5rem 1.5rem;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-features {
    margin-bottom: 1.5rem;
}

.modal-features h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.features-list li {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Purchase Options in Modal */
.purchase-options-modal {
    margin-top: 1.5rem;
}

.purchase-options-modal h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.purchase-btn {
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    -webkit-tap-highlight-color: transparent;
}

.purchase-btn:hover,
.purchase-btn:active {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
}

/* ==============================================
   7. Steps & Features Section
   ============================================== */
.steps-section { background: var(--bg-secondary); }

.steps-grid { 
    max-width: 1000px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 3rem; 
}

.step-card { 
    text-align: center; 
    padding: 2rem; 
}

.step-number { 
    width: 70px; 
    height: 70px; 
    background: linear-gradient(135deg, var(--accent), #ff6b6b); 
    color: #000; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin: 0 auto 1.5rem; 
}

.step-card h3 { margin-bottom: 1rem; }
.step-card p { color: var(--text-secondary); }

.features-grid {
    max-width: 1000px;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature { 
    text-align: center; 
    padding: 1rem;
}

.feature i { 
    font-size: 2.5rem; 
    color: var(--accent); 
    margin-bottom: 1rem; 
}

.feature h4 { 
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p { 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
}

/* ==============================================
   8. Contact Section
   ============================================== */
.contact-section { 
    max-width: 1000px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: start; 
}

.contact-info h2 { 
    font-size: 2.5rem; 
    margin-bottom: 1rem; 
}

.contact-info h2 span { color: var(--accent); }

.contact-info > p { 
    color: var(--text-secondary); 
    margin-bottom: 2rem; 
}

.contact-item { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-bottom: 1.5rem; 
    padding: 1rem; 
    background: var(--bg-card); 
    border-radius: 12px; 
    border: 1px solid var(--border); 
}

.contact-item i { 
    width: 45px; 
    height: 45px; 
    background: rgba(255, 165, 0, 0.1); 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--accent); 
    font-size: 1.1rem; 
    flex-shrink: 0; 
}

.contact-item h4 { 
    font-size: 0.9rem; 
    color: var(--text-secondary); 
    margin-bottom: 0.25rem; 
}

.contact-item p { font-weight: 600; }

.contact-form { 
    background: var(--bg-card); 
    padding: 2.5rem; 
    border-radius: 16px; 
    border: 1px solid var(--border); 
}

.contact-form h3 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group input, 
.form-group textarea { 
    width: 100%; 
    padding: 1rem; 
    background: var(--bg-primary); 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    color: var(--text-primary); 
    font-size: 1rem; 
    outline: none; 
    font-family: inherit; 
    /* Safari fix */
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus, 
.form-group textarea:focus { 
    border-color: var(--accent); 
}

.form-group textarea { 
    resize: vertical; 
    min-height: 120px; 
}

/* ==============================================
   9. Footer
   ============================================== */
footer { 
    background: #050508; 
    border-top: 1px solid var(--border); 
    padding: 4rem 2rem 2rem; 
}

.footer-content { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 3rem; 
    margin-bottom: 3rem; 
}

.footer-brand h3 { 
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand h3 span { color: var(--accent); }

.footer-brand p { 
    color: var(--text-secondary); 
    margin: 1rem 0; 
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
}

.social-links { 
    display: flex; 
    gap: 1rem; 
}

.social-links a { 
    width: 40px; 
    height: 40px; 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-secondary); 
    text-decoration: none; 
    transition: all 0.3s; 
}

.social-links a:hover { 
    background: var(--accent); 
    color: #000; 
    border-color: var(--accent); 
}

.footer-links h4 { margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }

.footer-links a { 
    color: var(--text-secondary); 
    text-decoration: none; 
    transition: color 0.3s; 
}

.footer-links a:hover { color: var(--accent); }

.newsletter h4 { margin-bottom: 1rem; }
.newsletter p { 
    color: var(--text-secondary); 
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-bottom { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding-top: 2rem; 
    border-top: 1px solid var(--border); 
    text-align: center; 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
}

/* ==============================================
   10. Back to Top Button
   ============================================== */
.back-to-top { 
    position: fixed; 
    bottom: 2rem; 
    right: 2rem; 
    width: 50px; 
    height: 50px; 
    background: var(--accent); 
    color: #000; 
    border: none; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.2rem; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s; 
    z-index: 999; 
}

.back-to-top.visible { 
    opacity: 1; 
    visibility: visible; 
}

.back-to-top:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

/* ==============================================
   11. WPForms Customization
   ============================================== */
.wpforms-container .wpforms-field-label {
    display: none;
}

.wpforms-container .wpforms-field input,
.wpforms-container .wpforms-field textarea {
    width: 100% !important;
    padding: 1rem !important;
    background: var(--bg-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    -webkit-appearance: none;
    appearance: none;
}

.wpforms-container .wpforms-field input:focus,
.wpforms-container .wpforms-field textarea:focus {
    border-color: var(--accent) !important;
}

.wpforms-container .wpforms-submit-container {
    text-align: left;
}

.wpforms-container .wpforms-submit {
    width: 100% !important;
    background: linear-gradient(135deg, #ffa500, #ff8c00) !important;
    color: #000 !important;
    padding: 1rem 2.5rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.wpforms-container .wpforms-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.3);
}

.footer-content .wpforms-container .wpforms-form .wpforms-field-container {
    display: flex;
    gap: 0.5rem;
}

.footer-content .wpforms-container .wpforms-field {
    flex-grow: 1;
    margin-bottom: 0 !important;
}

.footer-content .wpforms-container .wpforms-submit-container {
    flex-shrink: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.footer-content .wpforms-container .wpforms-field input {
    padding: 0.75rem 1rem !important;
    background: var(--bg-card) !important;
}

.footer-content .wpforms-container .wpforms-submit {
    padding: 0.75rem 1.5rem !important;
    background: var(--accent) !important;
    color: #000 !important;
    border-radius: 8px !important;
    height: 100%;
}

/* ==============================================
   12. Inner Pages Styling
   ============================================== */
.page:not(.home) .site-main {
    padding-top: 100px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding-bottom: 5rem;
}

.page:not(.home) .page-content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.page:not(.home) .entry-header {
    margin-bottom: 2rem;
}

.page:not(.home) .entry-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.page:not(.home) .entry-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.page:not(.home) .entry-content h2,
.page:not(.home) .entry-content h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.page .wpforms-container .wpforms-field input[type="text"],
.page .wpforms-container .wpforms-field input[type="email"],
.page .wpforms-container .wpforms-field input[type="number"],
.page .wpforms-container .wpforms-field textarea {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.page .wpforms-container .wpforms-field input:focus,
.page .wpforms-container .wpforms-field textarea:focus {
    border-color: var(--accent) !important;
}

.page .wpforms-container .wpforms-field-label {
    color: var(--text-secondary) !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}

/* ==============================================
   13. Hero Banner & Video
   ============================================== */
.hero-banner {
    margin: 0 auto 2rem auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.hero-video-container {
    margin: 0 auto 2rem auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: var(--bg-card);
}

.hero-video {
    width: 120%;
    height: 80%;
    object-fit: cover;
    object-position: center;
}

/* ==============================================
   14. Valuation Page Styles
   ============================================== */
.valuation-page {
    background: var(--bg-primary);
    min-height: 100vh;
}

.valuation-hero {
    padding: 8rem 2rem 3rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,165,0,0.05) 0%, transparent 100%);
}

.valuation-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,165,0,0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,165,0,0.2);
}

.valuation-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.valuation-hero h1 span {
    color: var(--accent);
}

.valuation-hero p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.valuation-tool {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.valuation-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    pointer-events: none;
}

.domain-input {
    flex: 1;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.domain-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,165,0,0.1);
}

.btn-valuate {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--accent), #ff8c00);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.btn-valuate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,165,0,0.3);
}

.btn-valuate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==============================================
   15. Responsive Design - MOBILE FIRST
   ============================================== */
.menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    color: var(--text-primary); 
    font-size: 1.5rem; 
    cursor: pointer; 
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 968px) { 
    .nav-links { 
        position: fixed; 
        top: 70px; 
        left: -100%; 
        width: 100%; 
        height: calc(100vh - 70px); 
        background: var(--bg-primary); 
        flex-direction: column; 
        padding: 2rem; 
        transition: transform 0.3s; 
        z-index: 999;
    } 
    
    .nav-links.active { left: 0; }
    
    .menu-toggle { 
        display: block; 
        color: #ffffff !important;
        z-index: 1001;
    }
    
    .hero { padding: 8rem 1.5rem 4rem; }
    .hero h1 { font-size: 2rem; }
    
    .purchase-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-section { grid-template-columns: 1fr; }
    
    .footer-content { 
        grid-template-columns: 1fr 1fr; 
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .header-social {
        display: none;
    }
    
    /* Mobile filters */
    .filters-container {
        padding: 0 1rem;
    }
    
    .categories-tags {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .categories-tags::-webkit-scrollbar {
        display: none;
    }
    
    .tag-btn {
        flex-shrink: 0;
    }
    
    .body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    /* Modal mobile fixes */
    .modal-overlay {
        align-items: flex-start;
        padding: 0;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-logo-container {
        height: 220px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-price {
        font-size: 1.75rem;
    }
    
    .modal-body {
        padding: 0 1rem 2rem;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.8);
    }
}

@media (max-width: 576px) { 
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .domains-grid {
        grid-template-columns: 1fr;
    }
    
    .domain-card {
        height: 300px;
    }
    
    .modal-title { font-size: 1.5rem; } 
    .modal-price { font-size: 2rem; }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter {
        grid-column: 1;
    }
    
    .valuation-hero h1 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn-valuate {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .features-grid {  
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

/* ==============================================
   16. Body Lock When Modal Open
   ============================================== */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

@supports (-webkit-touch-callout: none) {
    body.modal-open {
        position: fixed;
        overflow: hidden;
    }
}

/* ==============================================
   17. Safari iOS Select Dropdown FIX
   ============================================== */

/* CRITICAL FIX: Ensure select dropdowns work in Safari iOS */
select,
.filters select,
#categoryFilter,
#priceFilter {
    -webkit-appearance: menulist-button !important;
    appearance: menulist-button !important;
    background-color: var(--bg-card) !important;
    background-image: none !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 50px !important;
    padding: 1rem 2.5rem 1rem 1.5rem !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 100 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

/* Remove default arrow in some browsers */
select::-ms-expand {
    display: none;
}

/* Ensure options are visible */
select option {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    padding: 10px !important;
    font-size: 16px !important;
}

/* iOS specific */
@supports (-webkit-touch-callout: none) {
    select,
    .filters select {
        -webkit-appearance: menulist-button !important;
        font-size: 16px !important;
        line-height: normal !important;
        padding-right: 30px !important;
        /* Prevent zoom on focus */
        touch-action: manipulation;
    }
    
    /* Ensure dropdown opens */
    select:focus {
        outline: none !important;
        border-color: var(--accent) !important;
    }
}

/* Fix for filters container */
.filters {
    position: relative !important;
    z-index: 50 !important;
    overflow: visible !important;
}

/* Modal overlay fix for iOS */
@supports (-webkit-touch-callout: none) {
    .modal-overlay {
        height: -webkit-fill-available;
    }
}

/* Fix for sticky hover states */
@media (hover: none) {
    .domain-card:hover {
        transform: none;
    }
    
    .purchase-btn:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}
/* ==============================================
   VALUATION PAGE - COMPLETE RESULTS STYLES
   ============================================== */

.valuation-page {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-top: 80px;
}

.valuation-hero {
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,165,0,0.05) 0%, transparent 100%);
}

.valuation-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,165,0,0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,165,0,0.2);
}

.valuation-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.valuation-hero h1 span {
    color: var(--accent);
}

.valuation-hero p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Valuation Form */
.valuation-tool {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.valuation-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}

.valuation-form {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    position: relative;
    flex-wrap: wrap;
}

.input-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    pointer-events: none;
}

.domain-input {
    flex: 1;
    min-width: 250px;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.domain-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,165,0,0.1);
}

.btn-valuate {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--accent), #ff8c00);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.btn-valuate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,165,0,0.3);
}

.btn-valuate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text {
    display: inline;
}

.btn-loader {
    display: none;
}

.input-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

/* Error Message */
.error-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 10px;
    color: #ef4444;
    margin: 1rem 0;
}

/* Results Section */
.valuation-results {
    display: none;
    animation: fadeInUp 0.5s ease;
}

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

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.domain-display h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.valuation-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Score Circle */
.overall-score {
    text-align: center;
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.score-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg {
    fill: none;
    stroke: var(--bg-hover);
    stroke-width: 8;
}

.score-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s ease;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.score-value small {
    font-size: 0.9rem;
    opacity: 0.6;
}

.score-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Price Cards */
.valuation-range {
    margin: 2rem 0;
}

.valuation-range h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.price-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.price-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(255,165,0,0.1), transparent);
    transform: scale(1.05);
}

.price-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-2px);
}

.price-card .price-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.price-card .price-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Confidence Bar */
.confidence-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    margin-top: 1rem;
}

.confidence-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.confidence-track {
    flex: 1;
    height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    width: 0;
    transition: width 1s ease;
}

.confidence-fill.high {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.confidence-fill.medium {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.confidence-fill.low {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.confidence-value {
    color: var(--accent);
    font-weight: 700;
    min-width: 40px;
}

/* Valuation Reasons */
.valuation-reasons {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.reasons-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.valuation-reasons-list {
    list-style: none;
    padding: 0;
}

.valuation-reasons-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.valuation-reasons-list li i {
    color: var(--accent);
}

/* Evaluation Criteria */
.evaluation-criteria {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.criteria-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.evaluation-criteria-list {
    list-style: none;
    padding: 0;
    transition: all 0.3s ease;
}

.evaluation-criteria-list.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.evaluation-criteria-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 3px solid #8b5cf6;
    color: var(--text-secondary);
}

.criteria-toggle {
    text-align: center;
    margin-top: 1rem;
}

.criteria-toggle .btn-text {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    opacity: 0.8;
}

.criteria-toggle .btn-text:hover {
    opacity: 1;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 1rem 2rem;
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Recent Valuations */
.recent-valuations {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.recent-valuations h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-hover);
}

.recent-list::-webkit-scrollbar {
    height: 6px;
}

.recent-list::-webkit-scrollbar-track {
    background: var(--bg-hover);
    border-radius: 3px;
}

.recent-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.recent-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.recent-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.recent-domain {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.recent-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.recent-score {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.recent-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Notification */
.dgv-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.dgv-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive Valuation */
@media (max-width: 768px) {
    .valuation-hero h1 {
        font-size: 1.75rem;
    }
    
    .valuation-form-wrapper {
        padding: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn-valuate {
        width: 100%;
        justify-content: center;
    }
    
    .result-header {
        flex-direction: column;
        text-align: center;
    }
    
    .price-cards {
        grid-template-columns: 1fr;
    }
    
    .price-card.featured {
        transform: none;
        order: -1;
    }
    
    .price-card.featured:hover {
        transform: translateY(-2px);
    }
}

/* Fix Safari iOS Grid Stacking */
.price-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.result-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.result-header > * {
    min-width: 0;
    flex: 1 1 auto;
}

/* ==============================================
   WORDPRESS CUSTOMIZER COMPATIBILITY STYLES
   ============================================== */

/* Custom Logo */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.custom-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Logo Text Fallback */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text span {
    color: var(--accent);
}

/* Footer Logo */
.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
}

/* Widget Areas */
.footer-brand-widget,
.footer-links,
.newsletter {
    min-width: 0; /* Prevent overflow */
}

/* Menu Widgets */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* WordPress Menu Classes */
.nav-links .current-menu-item a,
.nav-links .current-page-item a {
    color: var(--accent);
}

.nav-links .menu-item-has-children {
    position: relative;
}

/* Sub-menus (if needed) */
.nav-links .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 100;
}

.nav-links .menu-item-has-children:hover .sub-menu {
    display: block;
}

.nav-links .sub-menu li {
    padding: 0.5rem 1rem;
}

/* Admin Bar Fix */
body.admin-bar .navbar {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
}
/* ==============================================
   ACF DYNAMIC STYLES SUPPORT
   ============================================== */

/* Header Logo Dynamic Size */
.custom-logo,
.logo img {
    height: 40px; /* Default - overridden by inline style */
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text span {
    color: var(--accent);
}

/* Footer Logo Dynamic Size */
.footer-logo {
    height: 50px; /* Default - overridden by inline style */
    width: auto;
    margin-bottom: 1rem;
    display: block;
}

/* Social Links Dynamic Size */
.social-links a {
    font-size: 20px; /* Default - overridden by inline style */
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Custom Content in Footer */
.custom-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Header Social (if enabled) */
.header-social {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
    margin-right: 1rem;
}

.header-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.header-social a:hover {
    background: var(--accent);
    color: #000;
}

@media (max-width: 968px) {
    .header-social {
        display: none;
    }
}
/* ==============================================
   CMB2 DYNAMIC STYLES - NEW ADDITIONS v7.4.0
   ============================================== */

/* Sticky Header */
.navbar.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

body:has(.navbar.sticky-header) {
    padding-top: 80px;
}

/* Admin Bar Fix for Sticky Header */
body.admin-bar .navbar.sticky-header {
    top: 32px;
}

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

/* ==============================================
   PRICE SLIDER STYLES
   ============================================== */

.price-range-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 2rem;
    max-width: 500px;
    margin: 1.5rem auto 0;
    width: 100%;
}

.price-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price-range-header .price-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price-range-header .price-value {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.25rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
}

.slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: var(--bg-hover);
    border-radius: 4px;
    overflow: hidden;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ff8c00);
    border-radius: 4px;
    width: 100%;
    transition: width 0.1s ease;
}

.slider-thumb {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: var(--accent);
    border: 4px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(255, 165, 0, 0.4);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.slider-container:hover .slider-thumb {
    transform: translate(-50%, -50%) scale(1.2);
}

.price-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0 5px;
}

.price-marks span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ==============================================
   CATEGORY TAGS STYLES
   ============================================== */

.categories-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.5rem 0;
    margin: 1rem 0;
}

.tag-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.tag-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.tag-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

/* ==============================================
   FILTERS CONTAINER
   ============================================== */

.filters-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: visible;
    position: relative;
    z-index: 10;
}

/* Search Box */
.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* ==============================================
   PURCHASE CARDS - DYNAMIC COLORS
   ============================================== */

.purchase-card {
    transition: all 0.3s ease;
}

.purchase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==============================================
   STEPS & FEATURES - DYNAMIC
   ============================================== */

.step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.feature {
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature:hover i {
    transform: scale(1.1);
}

.feature i {
    transition: transform 0.3s ease;
}

/* ==============================================
   RESPONSIVE IMPROVEMENTS
   ============================================== */

@media (max-width: 968px) {
    .filters-container {
        padding: 0 1rem;
    }
    
    .categories-tags {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .categories-tags::-webkit-scrollbar {
        display: none;
    }
    
    .tag-btn {
        flex-shrink: 0;
    }
    
    .price-range-container {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .price-range-header .price-value {
        font-size: 1rem;
    }
    
    .slider-thumb {
        width: 20px;
        height: 20px;
    }
}
.hero {
    padding-top: var(--hero-spacing, 6rem);
}
/* ==============================================
   WORDPRESS CUSTOMIZER COMPATIBILITY
   ============================================== */

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.custom-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Valuation Link in Menu */
.valuation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.valuation-link i {
    font-size: 0.9em;
}
/* iOS Safari: استخدم Flex للجوال فقط */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 767px) {
        .price-cards {
            display: flex;
            flex-direction: column;
        }
    }
}

