:root {
    --bg-body: #ffffff;
    --bg-alt: #f5f5f7;

    --text-main: #1d1d1f;
    --text-secondary: #86868b;

    --accent: #0066cc;
    /* Apple Link Blue */
    --accent-hover: #004499;

    --border-light: #d2d2d7;

    --radius-lg: 18px;
    --radius-md: 12px;

    --font-stack: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0, 0, 0.5, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-body);
    font-family: var(--font-stack);
    color: var(--text-main);
    line-height: 1.4;
    overflow-x: hidden;
}

.container {
    max-width: 980px;
    /* Apple standard max-width */
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header (Sticky White Glass)
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 19px;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 12px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

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

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-primary {
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 980px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #0077ed;
}

.btn-outline {
    background: transparent;
    color: #0071e3;
    border: 1px solid #0071e3;
    border-radius: 980px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
}

/* ========================================
   Hero Section (White, Clean, Big Type)
   ======================================== */
.hero-search-section {
    padding-top: 100px;
    /* Space for fixed header */
    padding-bottom: 60px;
    background: #fff;
    text-align: center;
}

.hero-mini {
    margin-bottom: 50px;
}

.hero-title-compact {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 12px;
    line-height: 1.08;
}

.gradient-text {
    color: #06c;
    /* Classic Apple Blue */
}

/* Inline stats - Clean row */
.hero-stats-inline {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    font-size: 17px;
    color: var(--text-secondary);
}

/* ========================================
   Search Area (Clean White Input)
   ======================================== */
.search-card {
    max-width: 680px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #d2d2d7;
    padding-bottom: 12px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 15px;
    color: #86868b;
    cursor: pointer;
    padding-bottom: 8px;
    font-weight: 500;
}

.tab-btn.active {
    color: #1d1d1f;
    border-bottom: 2px solid #000;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* Upload Area - Dashed Outline */
.upload-area {
    border: 2px dashed #d2d2d7;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    background: #fbfbfd;
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-area:hover {
    border-color: #0071e3;
    background: #f5f5f7;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: #86868b;
}

.upload-area h3 {
    font-size: 19px;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.upload-area p {
    font-size: 14px;
    color: #86868b;
}

/* Search Input - Clean */
.search-input-wrapper {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    height: 44px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 17px;
    outline: none;
}

.search-input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.search-filters {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.filter-select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #d2d2d7;
    font-size: 13px;
    background: #fff;
    color: #1d1d1f;
}

/* ========================================
   Horizontal Workflow & Pricing
   ======================================== */
.compact-info-section {
    background: #f5f5f7;
    /* Very light gray bg */
    padding: 80px 0;
    text-align: center;
}

.block-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
}

.horizontal-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
}

.mini-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.mini-step span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 50%;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

/* Pricing Cards - White Cards on Gray */
.pricing-section {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid #d2d2d7;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
}

.pricing-horizontal {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.price-item {
    flex: 1;
    max-width: 300px;
    padding: 40px 30px;
    border-radius: 18px;
    background: #f5f5f7;
    text-align: center;
    transition: transform 0.3s ease;
}

.price-item:hover {
    transform: scale(1.02);
}

.price-item h4 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 10px;
}

.p-price {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0 20px;
    color: #1d1d1f;
}

.price-item.featured {
    background: #1d1d1f;
    /* Dark card for premium */
}

.price-item.featured h4,
.price-item.featured .p-price,
.price-item.featured p {
    color: #fff;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #f5f5f7;
    padding: 40px 0;
    font-size: 12px;
    color: #86868b;
    border-top: 1px solid #d2d2d7;
}

.footer-bottom {
    text-align: center;
}

/* ========================================
   Mobile
   ======================================== */
@media (max-width: 768px) {
    .header-content {
        padding: 0 16px;
    }

    .hero-title-compact {
        font-size: 36px;
    }

    .hero-stats-inline {
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
    }

    .pricing-horizontal {
        flex-direction: column;
        align-items: center;
    }

    .horizontal-steps {
        flex-direction: column;
        gap: 30px;
    }
}
/* Result Card Styles (Appended) */
.result-image-wrapper {
    background: #f5f5f7;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.result-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.badgex {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-active { background: #e8f5e9; color: #2e7d32; }
.badge-expired { background: #f5f5f5; color: #616161; }

.similarity-text {
    color: #1d1d1f;
    background: #f5f5f7;
}

.result-meta {
    font-size: 13px;
    color: #86868b;
    margin-top: 4px;
}
