/*
Theme Name: SP SEO Theme
Theme URI: https://site-pro.co.il/
Author: Sitepro
Author URI: https://site-pro.co.il/
Description: Modern SEO theme with RTL Hebrew support - Blue & White design
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sp-seo-theme
License: GPL-2.0+
License URI: www.gnu.org/licenses/gpl-2.0.html
*/

/* ===== Root Variables ===== */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --accent-blue: #0ea5e9;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --gradient-hero: linear-gradient(180deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --font-hebrew: 'Heebo', 'Rubik', 'Assistant', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-hebrew);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-blue-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Wide Container - For full width pages */
.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Full Width Container - No max-width restriction */
.container-fluid {
    width: 100%;
    padding: 0 2rem;
}

/* ===== Full Width Page Template ===== */
.page-full-width {
    min-height: calc(100vh - 200px);
}

.page-full-width .page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.page-full-width .page-header h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--gray-900);
}

.page-full-width .entry-content {
    font-size: 1rem;
    line-height: 1.7;
}

/* Remove title margin when using shortcodes */
.page-full-width .entry-content > *:first-child {
    margin-top: 0;
}

/* No Title Template - minimal padding */
.page-no-title {
    padding-top: 80px !important;
}

.page-no-title .entry-content {
    padding-top: 0;
}

/* Responsive adjustments for wide template */
@media (max-width: 1200px) {
    .container-wide {
        max-width: 100%;
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .container-wide,
    .container-fluid {
        padding: 0 1rem;
    }
    
    .page-full-width {
        padding-top: 80px !important;
    }
    
    .page-full-width .page-header h1 {
        font-size: 1.5rem;
    }
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: var(--white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-logo .custom-logo {
    height: 50px !important;
    width: auto !important;
    max-width: 220px;
    display: block;
}

.site-logo .custom-logo-link img {
    height: 50px !important;
    width: auto !important;
}

.site-logo svg {
    width: 2.5rem;
    height: 2.5rem;
}

.main-nav {
    margin-right: 3rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-blue);
}

.main-nav a:hover::after {
    width: 100%;
}

/* ===== User Account Section ===== */
.user-account-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: auto;
    margin-left: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-credits {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: default;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
    flex-direction: row;
}

.user-credits:hover {
    background: var(--gray-50);
    border-color: var(--primary-blue);
}

.credits-icon {
    display: none;
}

.credits-unit {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gray-500);
    line-height: 1;
}

.credits-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: none;
}

.credits-amount {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.user-btn:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

.user-avatar {
    font-size: 1.2rem;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.6rem;
    color: var(--gray-500);
    transition: transform 0.2s ease;
}

.user-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: auto;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary-blue);
}

.dropdown-item.logout:hover {
    background: #fef2f2;
    color: var(--error);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.25rem 0;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.login-icon {
    font-size: 1rem;
}

/* ===== Hero Section ===== */
.hero-section {
    background: var(--gradient-hero);
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect fill="url(%23grid)" width="100" height="100"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge .icon {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    background: linear-gradient(135deg, #60a5fa 0%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== Domain Checker Form ===== */
.domain-checker {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.domain-checker h3 {
    text-align: center;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.domain-checker .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    direction: rtl;
}

.form-group {
    flex: 1;
    min-width: 200px;
    direction: rtl;
    text-align: right;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: right;
    direction: rtl;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    direction: rtl;
    text-align: right;
    background: white;
    color: var(--gray-900);
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    background: white;
}

.form-group input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
    font-style: italic;
}

.btn-check {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-check:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-check:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-check .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Results Section ===== */
.results-section {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary-blue-light);
    direction: rtl;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.02) 0%, transparent 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.results-section.active {
    display: block;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    direction: rtl;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    color: white;
}

.results-header h4 {
    margin: 0;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    direction: rtl;
    color: white;
}

.results-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    direction: rtl;
}

.stat-item {
    text-align: center;
    direction: rtl;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    min-width: 80px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table-wrap {
    overflow-x: auto;
    max-height: 450px;
    overflow-y: auto;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    direction: rtl;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    direction: rtl;
    text-align: right;
}

.results-table th {
    background: linear-gradient(180deg, #1e40af 0%, #1d4ed8 100%);
    padding: 1rem 1rem;
    text-align: right;
    font-weight: 700;
    color: white;
    border-bottom: 3px solid #fbbf24;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: right;
    border-left: 1px solid var(--gray-200);
}

.results-table td:last-child {
    border-left: none;
}

.results-table td:first-child {
    direction: rtl;
    text-align: right;
    font-weight: 600;
    color: var(--gray-900);
    background: rgba(30, 64, 175, 0.04);
    border-right: 3px solid var(--primary-blue);
}

.results-table tr:hover {
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.12) 0%, rgba(30, 64, 175, 0.04) 100%);
}

.results-table tr:hover td:first-child {
    background: rgba(30, 64, 175, 0.15);
    border-right-color: #fbbf24;
}

.results-table tbody tr:nth-child(even) {
    background: rgba(241, 245, 249, 0.8);
}

.results-table tbody tr:nth-child(odd) {
    background: white;
}

.results-table td:not(:first-child) {
    text-align: center;
}

/* Keyword Link Styling */
.keyword-link {
    color: var(--gray-900);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 600;
}

.keyword-link:hover {
    color: var(--primary-blue);
}

.keyword-link .link-icon {
    font-size: 0.875rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.keyword-link:hover .link-icon {
    opacity: 1;
    transform: scale(1.1);
}

.results-table tr:hover .keyword-link {
    color: var(--primary-blue);
}

.results-table tr:hover .keyword-link .link-icon {
    opacity: 1;
}

/* URL Cell Styling */
.url-cell {
    direction: ltr;
    text-align: left;
}

.page-url-link {
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-family: monospace;
    background: rgba(37, 99, 235, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-url-link:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-blue-light);
}

.page-url-link .link-icon {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.page-url-link:hover .link-icon {
    opacity: 1;
}

.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.position-top3 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--white);
    border: 2px solid #d97706;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.position-top10 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    border: 2px solid #047857;
}

.position-top20 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: var(--white);
    border: 2px solid #1d4ed8;
}

.position-other {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.volume-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0369a1;
}

/* ===== Features Section ===== */
.features-section {
    padding: 3rem 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.section-header h2 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue-light);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 3rem 0;
    background: var(--gradient-primary);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.cta-button.cta-button-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary-blue-dark);
}

.cta-button.cta-button-secondary:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 1);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-700);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ===== Loading State ===== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-2xl);
    z-index: 10;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* ===== Messages ===== */
.message {
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

.message-success {
    background: #ecfdf5;
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.message-warning {
    background: #fffbeb;
    color: var(--warning);
    border: 1px solid #fcd34d;
}

/* ===== Credits Log Modal ===== */
.credits-log-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.credits-log-modal.active {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.credits-log-modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.credits-log-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.credits-log-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.credits-log-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.credits-log-modal-close:hover {
    color: var(--gray-700);
}

.credits-log-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.credits-summary {
    margin-bottom: 1.5rem;
}

.credits-current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-blue-light);
}

.credits-current-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.credits-current-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.credits-current-unit {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.credits-log-table-wrap {
    max-height: 400px;
    overflow-y: auto;
}

.credits-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.credits-log-table th {
    background: var(--gray-100);
    padding: 0.75rem;
    text-align: right;
    font-weight: 600;
    color: var(--gray-700);
    position: sticky;
    top: 0;
}

.credits-log-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.credits-log-table tr:hover {
    background: var(--gray-50);
}

.credits-log-table .log-date {
    font-size: 0.8rem;
}

.credits-log-table .date-relative {
    display: block;
    color: var(--gray-600);
}

.credits-log-table .date-full {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
}

.credits-log-table .log-description {
    color: var(--gray-700);
}

.credits-log-table .log-request-type {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.credits-log-table .log-amount {
    font-weight: 600;
    text-align: center;
}

.credits-log-table .action-deduct .log-amount {
    color: var(--error);
}

.credits-log-table .action-add .log-amount {
    color: var(--success);
}

.credits-log-table .log-balance {
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
}

.credits-log-empty {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

.credits-log-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--gray-500);
}

.credits-log-loading .spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.credits-log-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.credits-log-pagination button {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.credits-log-pagination button:hover:not(:disabled) {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.credits-log-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.credits-log-pagination .page-info {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Make user-credits a button style */
button.user-credits {
    cursor: pointer;
    transition: all 0.2s ease;
}

button.user-credits:hover {
    background: var(--primary-blue-light);
    transform: scale(1.05);
}

/* ===== Results Locked Overlay ===== */
.results-section {
    position: relative;
}

.results-locked-overlay {
    position: relative;
    margin-top: -60px;
    padding-top: 80px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.9) 20%,
        rgba(255, 255, 255, 1) 40%
    );
    text-align: center;
}

.locked-content {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 2px solid var(--primary-blue-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.locked-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.locked-content h4 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.locked-content h4 span {
    color: var(--primary-blue);
    font-weight: 800;
}

.locked-content p {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.locked-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: var(--white) !important;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 8rem 0 4rem;
    }
    
    .domain-checker {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .main-nav {
        display: none;
    }
    
    .user-account-section {
        margin-right: 0;
        margin-left: auto;
    }
    
    .user-name {
        display: none;
    }
    
    .user-credits {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        flex-direction: row;
        gap: 0.25rem;
    }
    
    .credits-label {
        display: none;
    }
    
    .credits-unit {
        font-size: 0.6rem;
    }
    
    .user-btn {
        padding: 0.4rem 0.6rem;
    }
    
    .login-btn span:not(.login-icon) {
        display: none;
    }
    
    .login-btn {
        padding: 0.5rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .results-stats {
        justify-content: center;
    }
    
    .locked-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .locked-content h4 {
        font-size: 1.25rem;
    }
    
    .locked-content p {
        font-size: 0.9rem;
    }
    
    .btn-register {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}
