.language-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: none;
    padding: 0;
}

.language-toggle:hover {
    color: var(--primary);
}:root {
    --primary: #d4af37;
    --primary-hover: #f4d03f;
    --primary-dark: #b8941f;
    --dark: #2c2c2c;
    --darker: #1a1a1a;
    --gray: #666;
    --light-gray: #ccc;
    --border: #e0e0e0;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --error: #dc2626;
    --success: #059669;
    
    --max-width: 1200px;
    --radius: 12px;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.1);
    --shadow-strong: 0 20px 60px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    --gradient-light: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
}

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

body {
    font-family: var(--font-family);
    background: var(--white);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--gradient-dark);
    padding: 10px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.brand {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-hover);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.nav-link--small {
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    padding: 0;
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    min-width: 60px;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--darker);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-1px);
}

.cta-primary {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: var(--primary);
    border: none;
    padding: 18px 40px;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.cta-primary:hover {
    transform: translateY(-2px);
}

.btn--payment {
    width: 100%;
    padding: 24px 28px;
    background: #000;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 16px;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn--payment:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s;
}

.btn--payment:hover:not(:disabled) {
    background: var(--gradient-primary);
    color: var(--darker);
    border-color: var(--primary-hover);
    box-shadow: 0 12px 30px rgba(44, 44, 44, 0.4);
}

.btn--payment:hover:before {
    left: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* User Navigation */
.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trial-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.counter-label {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.counter-value {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--primary);
    color: #000;
}

.user-name {
    font-size: 14px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.user-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    min-width: 180px;
    z-index: 1000;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item--danger {
    color: var(--error);
}

.dropdown-item--danger:hover {
    background: #fdf2f2;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Hero Section */
.hero {    
    background: var(--white);
    text-align: center;    
}

.hero-features-mobile {
    display: none;
}

.hero--styled h1,
.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero--styled p,
.hero p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-cta {
    text-align: center;
    margin-bottom: 25px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    text-align: center;
}

.hero-feature-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 8px auto;
}

.hero-feature-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.cta-secondary {
    background: transparent;
    border: 2px dashed var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-secondary:hover {
    background: var(--primary);
    color: #000;
}

/* Search */
.search-container,
.search-box,
.search-box-hero {
    display: flex;
    max-width: 500px;
    margin: 0 auto 60px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    border: 2px solid #e9ecef;
    position: relative;
    transition: var(--transition);
}

.search-box-hero {
    max-width: 100%;
    margin-bottom: 25px;
    overflow: hidden;
    border: 2px solid transparent;
}

.search-container:focus-within,
.search-box-hero:focus-within {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

.search-input,
.search-input-hero {
    flex: 1;
    border: none;
    padding: 18px 25px;
    font-size: 16px;
    border-radius: 15px;
    outline: none;
    background: transparent;
    color: #333;
}

.search-input::placeholder,
.search-input-hero::placeholder {
    color: #999;
}

.search-btn,
.search-btn-hero {
    background: var(--gradient-dark);
    border: none;
    padding: 18px 25px;
    border-radius: 0 13px 13px 0;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    position: relative;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-hover);
    font-weight: 600;
}

.search-btn-hero {
    padding: 18px 28px;
    min-width: 140px;
    gap: 8px;
    font-size: 16px;
}

.search-btn:hover:not(:disabled),
.search-btn-hero:hover:not(:disabled) {
    background: linear-gradient(135deg, #3a3a3a 0%, var(--dark) 100%);
    transform: translateY(-1px);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.search-btn:disabled,
.search-btn-hero:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.search-btn .loading {
    display: none;
    width: 6px;
    height: 6px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid var(--primary-hover);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.search-btn.loading .loading {
    display: block;
}

.search-btn.loading .search-icon {
    display: none;
}

/* Dashboard */
.dashboard-body {
    background: var(--gradient-light);
    min-height: 100vh;
}

.dashboard-main {
    padding: 20px 0 60px;
}

.search-hero {
    text-align: center;
    margin-bottom: 50px;
}

.search-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.search-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
}

.search-icon-large {
    font-size: 36px;
    opacity: 0.8;
}

.trial-status-compact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    font-size: 14px;
}

.trial-icon {
    font-size: 18px;
}

.trial-text strong {
    color: var(--primary);
    font-size: 16px;
    margin-right: 4px;
}

.upgrade-btn,
.upgrade-btn-compact {
    background: var(--gradient-primary);
    color: var(--dark);
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.upgrade-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
}

.upgrade-btn:hover,
.upgrade-btn-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* How it works section */
.how-it-works {
    background: var(--light-bg);
    padding: 60px 0;
    margin-top: 10px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: #000;
    font-weight: bold;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.title-icon {
    width: 32px;
    height: 32px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Steps & How it works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.step-card {
    text-align: center;
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.step-card--highlighted {
    border: 2px solid var(--primary);
}

.step-card--highlighted .step-title {
    color: var(--primary);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.step-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.step-title {
    font-size: 18px;
    color: #000;
    margin-bottom: 12px;
    font-weight: 600;
}

.step-description {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
}

/* Analysis Section */
.analysis-section {
    padding: 60px 0 80px;
    background: black;
    color: var(--white);
}

.analysis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.analysis-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.analysis-text p {
    font-size: 18px;
    color: var(--light-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Features */
.features,
.features-grid {
    display: grid;
    gap: 20px;
}

.features {
    grid-template-columns: 1fr 1fr;
    margin-top: 30px;
}

.features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto 40px auto;
}

.features-grid--two-cols {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    justify-items: center;
}

.feature,
.feature-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255,255,255,0.08) 100%);
    padding: 25px 20px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card {
    background: #000;
    color: var(--white);
    padding: 35px;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-hover);
}

.feature-card--highlighted {
    border: 3px solid var(--primary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    width: 100%;
    max-width: 380px;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.6s ease;
}

.feature:hover::before {
    left: 100%;
}

.feature:hover,
.feature-card:hover {    
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    border-color: rgba(212, 175, 55, 0.6);
}

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

.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.feature-emoji {
    font-size: 32px;
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--primary-hover);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.feature-title,
.feature-card h3 {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-hover);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card h3 {
    font-size: 20px;
    text-transform: none;
}

.feature-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.feature:hover .feature-value {
    color: var(--primary-hover);
}

.feature-card p {
    margin: 0;
    font-size: 16px;
    color: var(--light-gray);
    line-height: 1.6;
}

.feature-card--highlighted h3 {
    color: var(--primary);
}

.feature-card--highlighted p {
    font-weight: 500;
}

/* Report Preview */
.report-preview {
    position: relative;
    perspective: 1000px;
}

.report-mockup {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-strong);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: var(--transition);
    max-width: 400px;
    margin: 0 auto;
}

.report-mockup:hover {
    transform: rotateY(-10deg) rotateX(2deg);
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
}

.report-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--gradient-dark);
    color: var(--white);
    border-radius: 15px;
}

.report-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.property-address {
    font-size: 12px;
    color: var(--light-gray);
    line-height: 1.4;
}

.report-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.metric {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.metric:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.metric-label {
    font-size: 10px;
    color: var(--gray);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.score-section {
    text-align: center;
    background: var(--gradient-primary);
    padding: 20px;
    border-radius: 15px;
    color: var(--darker);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.score-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.score-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.score-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* History */
.history-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 15px;
    margin-top: 40px;
}

.history-header-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
}

.history-title-modern {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    text-align: center;
}

.refresh-btn-icon {
    position: absolute;
    right: 0;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--gray);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.refresh-btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.empty-state,
.empty-state-modern {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state-modern {
    padding: 40px 20px;
}

.empty-icon,
.empty-icon-modern {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-icon-modern {
    font-size: 48px;
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.empty-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.empty-description,
.empty-text p {
    font-size: 16px;
    color: var(--gray);
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
}

.empty-text p {
    line-height: 1.4;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.property-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

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

.property-code,
.property-code-display,
.property-code-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.property-code-display {
    font-size: 24px;
}

.analysis-date {
    font-size: 12px;
    color: var(--gray);
    background: var(--light-bg);
    padding: 2px 8px;
    border-radius: 10px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.score-badge {
    background: var(--gradient-primary);
    color: var(--dark);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.card-actions {
    display: flex;
    gap: 6px;
}

.action-btn,
.action-btn-small {
    background: var(--light-bg);
    border: 1px solid #ddd;
    color: var(--gray);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn-small {
    padding: 4px 8px;
    font-size: 11px;
    border: none;
}

.action-btn:hover,
.action-btn-small:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn-small:hover {
    background: var(--primary);
    color: var(--dark);
}

.action-btn--primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.action-btn--primary:hover {
    background: var(--primary-hover);
}

.show-more-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.show-more-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content,
.modal-content-improved {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 20px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(212, 175, 55, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal h2 {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 30px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border-radius: 20px 20px 0 0;
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 9999;
    background: rgba(212, 175, 55, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: var(--darker);
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: var(--primary-hover);
    color: #000;
    transform: scale(1.1);
}

.modal-header {
    padding: 25px 30px 15px;
    text-align: center;
}

.modal-header h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
    background: none;
    padding: 0;
    border: none;
}

.modal-body {
    padding: 15px 30px 25px;
}

.modal-actions {
    padding: 20px 30px 30px;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group.readonly {
    margin-bottom: 15px;
}

.form-group.email-field {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group.email-field .form-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-bg);
    box-sizing: border-box;
    color: var(--dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-input:read-only {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
}

.form-group.email-field .form-input {
    border: 3px solid var(--primary);
    background: #fffbf0;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    font-weight: 500;
}

.form-group.email-field .form-input:focus {
    border-color: var(--primary-dark);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.form-input--score {
    background: linear-gradient(135deg, #fffbf0 0%, #fdf8e8 100%);
    border: 2px solid #ddd;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    color: #333;
    padding-bottom: 18px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.form-input.error {
    border-color: var(--error);
    background: #fef2f2;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    animation: shake 0.5s ease-in-out;
}

.form-input.error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--light-bg) inset;
    -webkit-text-fill-color: var(--dark);
    background-color: var(--light-bg);
}

.score-field {
    position: relative;
}

.score-progress-bar {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    height: 5px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
}

.score-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 80%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.error-message-inline {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
    border-radius: 0 0 8px 8px;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: var(--error);
    font-weight: 500;
    z-index: 10;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.1);
}

.error-message-inline::before {
    content: '⚠️';
    margin-right: 6px;
}

/* Status Messages */
.status-message {
    margin-bottom: 20px;
}

.status-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.status-content.processing {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary);
}

.status-content.success {
    background: rgba(5, 150, 105, 0.1);
    border-color: var(--success);
}

.status-content.error {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--error);
}

.status-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.status-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 15px;
}

.status-content.processing .status-title { 
    color: var(--primary); 
}

.status-content.success .status-title { 
    color: var(--success); 
}

.status-content.error .status-title { 
    color: var(--error); 
}

.status-details {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.4;
}

/* Success Messages */
.success-message {
    background: var(--white);
    border-radius: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.success-header {
    background: var(--gradient-dark);
    border-radius: 20px 20px 0 0;
    padding: 30px;
    text-align: center;
    border-bottom: 2px solid var(--primary);
    margin: 0;
    position: relative;
    overflow: hidden;
}

.success-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 2;
    background: none;
    padding: 0;
    border: none;
}

.success-icon {
    background: linear-gradient(135deg, var(--success) 0%, #10b981 100%);
    color: var(--white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.success-content {
    padding: 30px;
}

.success-content p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    text-align: center;
}

.success-notice {
    background: linear-gradient(135deg, #fffbf0 0%, #fef3c7 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 15px;
    margin-top: 25px;
    color: #92400e;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.success-notice::before {
    content: '🔧';
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Error Messages */
.error-box {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.error-message h3 {
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.error-icon {
    color: var(--error);
    font-size: 1.4rem;
}

.error-box p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.contact-section {
    background: var(--light-bg);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 25px;
    border-top: 3px solid var(--primary);
}

.contact-section h4 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-section p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Loading States */
.loading,
.history-loading,
.history-loading-modern {
    text-align: center;
    padding: 40px;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.95), rgba(26, 26, 26, 0.95));
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.loading-spinner,
.loading-spinner-modern {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-modern {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.loading-btn {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

/* Results */
.results {
    margin: 40px 0;
    display: none;
}

.not-found {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.95), rgba(26, 26, 26, 0.95));
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-strong);
    animation: slideIn 0.3s ease;
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

.footer--large {
    background: #000;
    padding: 60px 0;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content--centered {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
}

.footer--large h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.footer p {
    color: var(--light-gray);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer--large p {
    font-size: 18px;
    margin-bottom: 40px;
}

.support-email {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.support-email--large {
    font-size: 20px;
}

.support-email:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.support-email--large:hover {
    opacity: 0.8;
}

.contact-section .support-email {
    padding: 10px 18px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    display: inline-block;
    font-size: 0.95rem;
}

.contact-section .support-email:hover {
    background: var(--primary);
    color: var(--darker);
    transform: translateY(-1px);
    text-decoration: none;
}

.footer-divider {
    border-top: 1px solid #333;
    padding-top: 25px;
    font-size: 14px;
    color: var(--gray);
}

/* Utility Classes */
.text-center { text-align: center; }
.hidden { display: none; }
.visible { display: block; }
.fade-in { animation: fadeIn 0.5s ease; }
.slide-up { animation: slideUp 0.5s ease; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translate(-50%, -60%); 
        opacity: 0; 
    }
    to { 
        transform: translate(-50%, -50%); 
        opacity: 1; 
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

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

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4); 
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 6px 20px rgba(5, 150, 105, 0.6); 
    }
}

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

/* Media Queries */
@media (max-width: 1024px) {
    .analysis-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .hero-features {
        display: none;
    }

    .hero-features-mobile {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin-bottom: 60px;
        flex-wrap: wrap;
    }

    .mobile-feature {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
        flex: 1;
        max-width: 120px;
    }

    .mobile-feature-dot {
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
    }

    .mobile-feature span {
        font-size: 13px;
        color: #333;
        font-weight: 500;
        line-height: 1.2;
    }

    .cta-primary {
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 18px 32px !important;
        font-size: 20px !important;
    }

    .header-content {
        flex-direction: row;
        gap: 15px;
        text-align: left;
        justify-content: space-between;
    }

    .brand {
        font-size: 24px;
    }

    .hero {
        padding: 15px 0 20px !important;
    }

    .header-nav {
        gap: 10px;
    }

    .nav-controls {
        gap: 8px;
    }

    .login-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: auto;
    }

    .user-name {
        max-width: 60px;
    }

    .brand {
        font-size: 24px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1,
    .hero--styled h1 {
        font-size: 32px;
        margin-bottom: 15px;
        min-height: 80px;
    }

    .hero p,
    .hero--styled p {
        font-size: 18px;
        margin-bottom: 30px;
        min-height: 60px;
    }

    .search-container,
    .search-box-hero {
        flex-direction: row;
        max-width: 100%;
        margin-bottom: 40px;
    }

    .search-input,
    .search-input-hero {
        border-radius: 8px 0 0 8px;
        padding: 15px 20px;
        font-size: 14px;
        text-align: left;
    }

    .search-btn,
    .search-btn-hero {
        border-radius: 0 8px 8px 0;
        width: auto;
        padding: 15px 18px;
        font-size: 16px;
        justify-content: center;
        min-width: 60px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid--two-cols {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .analysis-content {
        gap: 30px;
        text-align: center;
    }

    .analysis-text h2 {
        font-size: 28px;
    }

    .analysis-text p {
        font-size: 16px;
    }

    .report-preview {
        order: -1;
    }

    .report-mockup {
        transform: none;
        max-width: 100%;
        padding: 20px;
    }

    .hero-features {
        flex-direction: column;
        gap: 20px;
    }
  
    .search-title {
        font-size: 24px;
        margin-bottom: 20px;
        flex-direction: column;
        gap: 8px;
    }
  
    .trial-status-compact {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }
  
    .history-section {
        padding: 20px;
        margin-top: 30px;
    }
  
    .history-header-modern {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
  
    .refresh-btn-icon {
        position: static;
    }
  
    .history-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
  
    .property-card {
        padding: 15px;
    }
  
    .card-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .modal h2 {
        font-size: 22px;
        margin-bottom: 20px;
        padding: 25px 20px;
    }

    .modal-header h2 {
        font-size: 22px;
        padding: 0;
        background: none;
        border: none;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-input {
        font-size: 16px;
        padding: 12px;
    }
    
    .btn,
    .btn--payment {
        padding: 15px;
        font-size: 16px;
    }

    .btn--payment {
        font-size: 1.25rem;
        padding: 20px 22px;
    }
    
    .success-header {
        padding: 25px 20px;
    }
    
    .success-content {
        padding: 25px 20px;
    }

    .footer {
        padding: 30px 0;
    }

    .footer h3 {
        font-size: 18px;
    }

    .footer--large h3 {
        font-size: 28px;
    }
    
    .footer--large p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .brand {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .header-content {
        gap: 10px;
    }

    .hero h1,
    .hero--styled h1 {
        font-size: 28px;
        line-height: 1.1;
        min-height: auto;
    }

    .hero p,
    .hero--styled p {
        font-size: 16px;
    }

    .hero-features {
        gap: 15px;
        margin-bottom: 30px;
    }

    .hero-feature-text {
        font-size: 13px;
    }

    .search-input,
    .search-input-hero {
        padding: 12px 15px;
        font-size: 14px;
    }

    .search-btn,
    .search-btn-hero {
        padding: 10px 15px;
        font-size: 14px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .cta-primary {
        padding: 14px 24px;
        font-size: 16px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .report-mockup {
        padding: 15px;
    }

    .report-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .analysis-text h2 {
        font-size: 24px;
    }

    .search-title {
        font-size: 20px;
    }

    .trial-status-compact {
        font-size: 13px;
        padding: 12px;
    }

    .history-title-modern {
        font-size: 20px;
    }

    .modal h2 {
        padding: 20px 15px;
        font-size: 1.2rem;
    }

    .modal-header {
        padding: 20px 15px 10px;
    }

    .modal-body {
        padding: 10px 15px 20px;
    }

    .modal-actions {
        padding: 15px;
    }

    .btn--payment {
        padding: 18px 20px;
        font-size: 1.1rem;
    }

    .success-header {
        padding: 20px 15px;
    }

    .success-content {
        padding: 20px 15px;
    }

    .form-group.readonly {
        margin-bottom: 10px;
    }
    
    .form-group.email-field {
        margin-bottom: 18px;
    }
    
    .form-group.email-field .form-input {
        border-width: 2px;
        padding: 10px 14px;
    }
    
    .form-group.email-field .form-label {
        font-size: 0.9rem;
    }

    .footer--large {
        padding: 40px 0;
    }
    
    .footer--large h3 {
        font-size: 24px;
    }
    
    .footer--large .support-email--large {
        font-size: 18px;
        word-break: break-all;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    .hero h1,
    .hero--styled h1 {
        font-size: 24px;
    }
    
    .hero p,
    .hero--styled p {
        font-size: 14px;
    }
    
    .search-input,
    .search-input-hero {
        padding: 12px;
        font-size: 14px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
        
    .form-input {
        padding: 12px;
    }
}

.btn-compact {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-compact.download {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: white;
}

.btn-compact.download:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.btn-compact.share {
    background: #f8fafc;
    color: #64748b;
}

.btn-compact:hover {
    transform: scale(1.05);
}