/* ============================================================
   STYLE.CSS - Premium Real Estate App Design
   Inspired by Biggee.vn / Modern Material Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ========================
   CSS Variables / Design Tokens
   ======================== */
:root {
    /* Primary Colors */
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-light: #6ea8fe;
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #0ea5e9 100%);
    --primary-gradient-hover: linear-gradient(135deg, #0b5ed7 0%, #0284c7 100%);

    /* Accent */
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

    /* Surfaces */
    --bg-primary: #f0f4f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-dark: #0f172a;

    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(13, 110, 253, 0.2);

    /* Borders */
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Spacing */
    --container-max: 900px;
    --gap: 16px;
}

/* ========================
   Reset & Base
   ======================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========================
   Animated Background
   ======================== */
.app-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 50%, #e0eafc 100%);
    z-index: -2;
}

.app-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(13, 110, 253, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 40%);
    animation: bgFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -1%) rotate(1deg); }
    66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

/* ========================
   Header / App Bar
   ======================== */
.app-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    transition: var(--transition);
}

.header-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.logo-sub {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ========================
   Container & Views
   ======================== */
.app-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 66px);
}

.view {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.view.active {
    display: block;
}

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

/* ========================
   HOME SCREEN
   ======================== */
.home-hero {
    text-align: center;
    padding: 40px 0 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(13, 110, 253, 0.15);
}

.home-hero h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.home-hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

/* Feature Cards */
.home-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    transition: var(--transition);
}

.feature-card.card-land::before {
    background: var(--primary-gradient);
}

.feature-card.card-house::before {
    background: var(--accent-gradient);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    height: 6px;
}

.feature-card:active {
    transform: translateY(-2px);
}

.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.card-land .card-icon {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    color: var(--primary);
}

.card-house .card-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: var(--accent);
}

.feature-card:hover .card-icon {
    transform: scale(1.1);
}

.card-land:hover .card-icon {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.3);
}

.card-house:hover .card-icon {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.feature-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.card-land .card-arrow { color: var(--primary); }
.card-house .card-arrow { color: var(--accent); }

.feature-card:hover .card-arrow {
    gap: 8px;
}

/* ========================
   BACK BUTTON
   ======================== */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
    font-family: inherit;
}

.btn-back:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* ========================
   FORM SECTIONS (Land Price & House Valuation)
   ======================== */
.form-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.form-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.form-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.land-price-icon { background: var(--primary-gradient); }
.house-val-icon { background: var(--accent-gradient); }

.form-title h2 {
    font-size: 18px;
    font-weight: 700;
}

.form-title p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Form Groups */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group label .label-icon {
    color: var(--primary);
}

/* Select Dropdowns */
.form-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-card);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: var(--transition);
}

.form-select:hover:not(:disabled) {
    border-color: var(--primary-light);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.form-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8fafc;
}

.form-select.populated {
    border-color: var(--primary-light);
    background-color: rgba(13, 110, 253, 0.02);
}

/* Input Fields */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.input-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Input with suffix */
.input-with-suffix {
    position: relative;
}

.input-with-suffix .form-input {
    padding-right: 50px;
}

.input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
}

/* ========================
   RANGE SLIDER (Condition)
   ======================== */
.slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.form-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.slider-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    min-width: 50px;
    text-align: center;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ========================
   SUBMIT BUTTONS
   ======================== */
.btn-submit {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

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

.btn-submit:hover:not(:disabled)::before {
    left: 100%;
}

.btn-land-price {
    background: var(--primary-gradient);
}

.btn-land-price:hover:not(:disabled) {
    background: var(--primary-gradient-hover);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.35);
    transform: translateY(-2px);
}

.btn-valuation {
    background: var(--accent-gradient);
}

.btn-valuation:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}

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

.btn-submit.ready {
    animation: pulseReady 2s infinite;
}

@keyframes pulseReady {
    0%, 100% { box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25); }
    50% { box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4); }
}

/* ========================
   RESULT VIEWS
   ======================== */
.result-header-card {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.valuation-header {
    background: var(--accent-gradient);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(245, 158, 11, 0.2);
}

.result-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.result-location h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.result-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0.9;
}

/* ========================
   PRICE TABLE
   ======================== */
.price-table-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}

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

.price-table thead th {
    background: #f8fafc;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.price-table thead th:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-table thead th:last-child {
    text-align: right;
}

.price-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

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

.price-table tbody tr {
    transition: var(--transition-fast);
}

.price-table tbody tr:hover {
    background: rgba(13, 110, 253, 0.03);
}

.road-type {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.road-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 24px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.badge-mt { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.badge-hem5 { background: linear-gradient(135deg, #0d6efd 0%, #0ea5e9 100%); }
.badge-hem35 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.badge-hem3 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }

.price-range {
    display: flex;
    align-items: baseline;
    gap: 6px;
    justify-content: flex-end;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-unit {
    font-size: 12px;
    color: var(--text-muted);
}

.price-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.price-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
}

.mt-fill { background: linear-gradient(90deg, #10b981, #059669); }
.hem5-fill { background: linear-gradient(90deg, #0d6efd, #0ea5e9); }
.hem35-fill { background: linear-gradient(90deg, #f59e0b, #d97706); }
.hem3-fill { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* ========================
   VALUATION RESULT CARDS
   ======================== */
.valuation-total-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(13, 110, 253, 0.1);
    position: relative;
    overflow: hidden;
}

.valuation-total-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.total-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.total-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.total-unit {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.total-range {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.total-in-billion {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 8px;
    padding: 8px 20px;
    background: rgba(13, 110, 253, 0.06);
    border-radius: 50px;
    display: inline-block;
}

/* Breakdown Chart */
.valuation-breakdown {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.valuation-breakdown h3,
.valuation-details h3,
.comparison-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.breakdown-chart {
    display: flex;
    align-items: center;
    gap: 32px;
}

.donut-chart {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.circular-chart {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3;
}

.circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease;
}

.land-circle { stroke: #0d6efd; }

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-percent {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.donut-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.breakdown-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    margin-top: 4px;
    flex-shrink: 0;
}

.land-dot { background: var(--primary-gradient); }
.build-dot { background: var(--accent-gradient); }

.legend-item strong {
    font-size: 14px;
    display: block;
}

.legend-item p {
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-item small {
    font-size: 11px;
    color: var(--text-muted);
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.valuation-details {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.detail-card {
    background: #f8fafc;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.detail-rows {
    padding: 4px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 13px;
}

.detail-row span {
    color: var(--text-secondary);
}

.detail-row strong {
    font-weight: 600;
    color: var(--text-primary);
}

.highlight-row {
    background: rgba(13, 110, 253, 0.04);
    border-top: 1px solid rgba(13, 110, 253, 0.1);
}

.highlight-row strong {
    color: var(--primary);
}

.condition-badge {
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.condition-excellent { background: #d1fae5; color: #059669; }
.condition-good { background: #dbeafe; color: #2563eb; }
.condition-fair { background: #fef3c7; color: #d97706; }
.condition-poor { background: #fee2e2; color: #dc2626; }

/* Comparison Card */
.comparison-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.comparison-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    background: #f8fafc;
    transition: var(--transition-fast);
}

.comp-row:hover {
    background: #f1f5f9;
}

.comp-row.active-comp {
    background: rgba(13, 110, 253, 0.06);
    border: 1px solid rgba(13, 110, 253, 0.15);
}

.comp-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

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

.comp-current {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

/* Expert Tips */
.expert-tip {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.04) 0%, rgba(14, 165, 233, 0.04) 100%);
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: var(--border-radius-lg);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 15px;
}

.tip-list {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tip-list li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Disclaimer */
.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--border-radius);
    font-size: 12px;
    color: #92400e;
    margin-bottom: 24px;
}

.disclaimer svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #f59e0b;
}

/* ========================
   YOUTUBE SECTION
   ======================== */
.youtube-section {
    margin-top: 32px;
}

.yt-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.yt-section-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.yt-channel-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.yt-channel-link:hover {
    color: var(--primary-dark);
}

.yt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.yt-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.yt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.yt-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1e293b;
}

.yt-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.yt-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3a5c 0%, #0ea5e9 100%);
}

.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.yt-card:hover .yt-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.yt-info {
    padding: 12px;
}

.yt-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-date {
    display: inline-block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* YouTube Modal */
.yt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.yt-modal.active {
    opacity: 1;
    pointer-events: all;
}

.yt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.yt-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.4s ease;
}

.yt-modal.active .yt-modal-content {
    animation: modalSlideIn 0.4s ease;
}

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

.yt-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.yt-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* ========================
   LOADING & TOAST
   ======================== */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 14px;
    color: var(--text-secondary);
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    opacity: 0;
    transition: var(--transition);
}

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

.error-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px;
}

/* ========================
   ANIMATIONS
   ======================== */
.animate-in {
    opacity: 0;
    transform: translateY(12px);
    animation: animateIn 0.5s ease forwards;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }
.animate-in:nth-child(6) { animation-delay: 0.5s; }

@keyframes animateIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================
   FORM ROW (2 columns)
   ======================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ========================
   FOOTER
   ======================== */
.app-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 40px;
}

.app-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
    .home-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .home-hero h1 {
        font-size: 24px;
    }

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

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

    .breakdown-chart {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .total-value {
        font-size: 28px;
    }

    .form-section {
        padding: 20px;
    }

    .result-header-card {
        padding: 20px;
    }

    .comp-row {
        flex-wrap: wrap;
        gap: 4px;
    }

    .comp-current {
        width: 100%;
    }
}

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

    .price-table thead th,
    .price-table tbody td {
        padding: 12px;
    }

    .price-value {
        font-size: 14px;
    }

    .app-container {
        padding: 16px;
    }
}
/* ========================
   PRODUCTS SECTION
   ======================== */
.products-section {
    margin-top: 32px;
}
.product-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.product-section-header h3 {
    font-size: 18px;
    font-weight: 700;
}
.view-all-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.view-all-link:hover {
    color: var(--primary-dark);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.product-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f1f5f9;
}
.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-thumbnail img {
    transform: scale(1.05);
}
.product-price-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-meta {
    margin-top: auto;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================
   SOCIAL CTA SECTION
   ======================== */
.social-cta-section {
    margin-top: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
}
.social-cta-section h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.social-cta-section p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}
.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-youtube { background: #ff0000; }
.btn-tiktok { background: #000000; }
.btn-facebook { background: #1877f2; }

/* ========================
   FOOTER MESSAGE
   ======================== */
.footer-message {
    margin-top: 32px;
    margin-bottom: 32px;
}
.contact-box {
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.contact-box strong {
    display: block;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 500;
}
.phone-number {
    display: inline-block;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 8px 24px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}
.phone-number:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.btn-website { background: #1a6e3a; color: white; }

.cta-urgent-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.urgent-line1 { color: #ffeb3b; font-size: 20px; font-weight: 800; text-transform: uppercase; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.urgent-line2 { color: #ffffff; font-size: 22px; font-weight: 900; text-transform: uppercase; background: #ef4444; padding: 4px 12px; border-radius: 8px; display: inline-block; margin: 0 auto; box-shadow: 0 4px 6px rgba(239, 68, 68, 0.4); border: 2px solid #ffffff; }


.phone-number { display: inline-block !important; white-space: nowrap !important; font-size: min(10vw, 36px) !important; font-weight: 900 !important; }

