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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #111;
    color: #fff;
}

/* ============================================
   LANDING PAGE
   ============================================ */

#landing-page {
    min-height: 100vh;
    background: #fafafa;
}

/* Nav */
.nav {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.nav-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-inner.nav-wide {
    max-width: 1100px;
}

.logo {
    font-weight: 600;
    font-size: 18px;
    color: #111;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.link-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    text-decoration: none;
    padding: 8px 0;
}

.link-btn:hover {
    color: #111;
}

/* Main */
.landing-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Split */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0 80px;
    align-items: center;
}

.hero-left {
    max-width: 480px;
}

.hero-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 16px;
}

.hero-left h1 {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.hero-left .hero-sub {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* How List */
.how-list {
    margin-bottom: 32px;
}

.how-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.how-item span {
    width: 28px;
    height: 28px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.how-item div strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.how-item div p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.hero-note {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}

/* Demo Preview */
.demo-preview {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.demo-preview-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.demo-preview-controls .demo-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-preview-controls .demo-control label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.demo-preview-controls .demo-input {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
}

.demo-preview-controls .demo-input span {
    color: #888;
    font-size: 15px;
}

.demo-preview-controls .demo-input input {
    border: none;
    font-size: 15px;
    font-weight: 600;
    width: 55px;
    padding: 8px 4px;
    background: transparent;
}

.demo-preview-controls .demo-input input:focus {
    outline: none;
}

.demo-preview-header {
    display: flex;
    padding: 10px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.demo-preview-header span:first-child {
    flex: 1;
}

.demo-preview-header span:nth-child(2) {
    width: 85px;
    text-align: right;
}

.demo-preview-header span:nth-child(3) {
    width: 100px;
    text-align: right;
}

.demo-preview-table {
    padding: 4px 0;
}

.demo-row {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    transition: background 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.demo-row:last-child {
    border-bottom: none;
}

.demo-country {
    flex: 1;
    white-space: nowrap;
}

.demo-apple {
    width: 85px;
    text-align: right;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}

.demo-pk {
    width: 100px;
    text-align: right;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 13px;
    font-weight: 600;
}

.demo-pk.tag-down {
    color: #16a34a;
}

.demo-pk.tag-up {
    color: #111;
    font-weight: 700;
}

.demo-pk.tag-same {
    color: #666;
}

.demo-row.updated {
    background: #f0fdf4;
}

.demo-row.updated .demo-pk {
    color: #16a34a;
}

.demo-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.update-count {
    font-size: 13px;
    color: #888;
}

.demo-push-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-push-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

.demo-push-btn.pushed {
    background: #16a34a;
}

@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-left {
        max-width: none;
        text-align: center;
    }
    
    .hero-left h1 {
        font-size: 32px;
    }
    
    .how-list {
        text-align: left;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 32px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 80px 24px;
    max-width: 700px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-top: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: 1px solid #eee;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: #888;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

@media (max-width: 700px) {
    .faq-section h2 {
        font-size: 26px;
    }
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(180deg, #fff 0%, #f8f8ff 100%);
    border-top: 1px solid #eee;
}

.final-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.final-cta p {
    font-size: 18px;
    color: #666;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.final-cta .btn {
    font-size: 17px;
    padding: 16px 32px;
}

@media (max-width: 700px) {
    .final-cta h2 {
        font-size: 26px;
    }
    .final-cta p {
        font-size: 16px;
    }
}

/* How Steps */
.how-steps {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 20px 0 50px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    max-width: 220px;
}

.step-num {
    width: 32px;
    height: 32px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-text strong {
    font-size: 15px;
    font-weight: 600;
}

.step-text span {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 700px) {
    .how-steps {
        flex-direction: column;
        gap: 24px;
        padding: 20px 24px 40px;
        align-items: flex-start;
    }
    
    .step {
        max-width: none;
    }
}

/* Interactive Demo */
.demo-interactive {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 60px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.demo-controls-bar {
    display: flex;
    gap: 32px;
    padding: 24px 28px;
    border-bottom: 1px solid #eee;
    background: #f8f8f8;
    align-items: flex-start;
}

.demo-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-control label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.demo-control label strong {
    color: #111;
    font-weight: 600;
    background: #e8e8e8;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
}

.demo-input {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 14px;
    width: 120px;
}

.demo-input span {
    color: #888;
    font-size: 18px;
}

.demo-input input {
    border: none;
    font-size: 20px;
    font-weight: 600;
    width: 80px;
    padding: 10px 6px;
    background: transparent;
}

.demo-input input:focus {
    outline: none;
}

.demo-control-slider {
    flex: 1;
}

.demo-control-slider input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #e0e0e0, #333);
    border-radius: 4px;
    margin-top: 2px;
}

.demo-control-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #111;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.slider-hints {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
}

.demo-table-wrap {
    overflow-x: auto;
}

.demo-prices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.demo-prices-table th {
    text-align: left;
    padding: 14px 28px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.demo-prices-table th:nth-child(2),
.demo-prices-table th:nth-child(3) {
    text-align: right;
}

.demo-prices-table td {
    padding: 16px 28px;
    border-bottom: 1px solid #f5f5f5;
}

.demo-prices-table tr:last-child td {
    border-bottom: none;
}

.demo-prices-table .price-col {
    text-align: right;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 14px;
    font-weight: 500;
}

.demo-prices-table td:last-child {
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    width: 70px;
}

.demo-cta {
    padding: 28px;
    border-top: 1px solid #eee;
    background: #f8f8f8;
    text-align: center;
}

.cta-note {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .demo-controls-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .demo-control-slider {
        max-width: none;
    }
    
    .hero-minimal h1 {
        font-size: 26px;
    }
}

/* App Preview */
.app-preview {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.preview-sidebar {
    width: 140px;
    background: #f5f5f5;
    border-right: 1px solid #e5e5e5;
    padding: 16px 0;
}

.preview-logo {
    font-weight: 600;
    font-size: 13px;
    padding: 0 16px 16px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 12px;
}

.preview-nav-section {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    padding: 8px 16px 4px;
}

.preview-nav-item {
    font-size: 12px;
    padding: 8px 16px;
    color: #666;
    border-left: 3px solid transparent;
}

.preview-nav-item.active {
    background: #e8e8e8;
    color: #111;
    font-weight: 500;
    border-left-color: #111;
}

.preview-nav-item.sub {
    padding-left: 28px;
    font-size: 11px;
    border-left: none;
}

.preview-nav-item.sub.active {
    background: transparent;
    border-left: none;
}

.preview-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    font-weight: 500;
}

.preview-controls {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.preview-table {
    flex: 1;
    font-size: 12px;
}

.preview-row {
    display: flex;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.preview-row span:first-child {
    flex: 1;
}

.preview-row span:nth-child(2) {
    width: 70px;
    text-align: right;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 11px;
}

.preview-row span:last-child {
    width: 50px;
    text-align: right;
    font-size: 11px;
    font-weight: 500;
}

.preview-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
    font-size: 12px;
    color: #888;
}

.fake-btn {
    background: #111;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
}

.tag-base { color: #666; }
.tag-down { color: #16a34a; }
.tag-up { color: #dc2626; }
.tag-same { color: #888; }

.row-green { background: #f0fdf4; }
.row-red { background: #fef2f2; }

/* Demo Card (used in unlock page) */
.demo-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.demo-header {
    padding: 14px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.demo-base {
    color: #888;
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.demo-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.demo-table td:first-child {
    width: 50%;
}

.demo-table .mono {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 13px;
    text-align: right;
    width: 100px;
}

.demo-table td:last-child {
    text-align: right;
    width: 60px;
    font-size: 12px;
    font-weight: 500;
}

/* Sections */
.section-wide {
    padding: 60px 0;
    border-top: 1px solid #e5e5e5;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.two-col h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.two-col p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Steps */
.steps-section {
    background: #fff;
    margin: 0 -24px;
    padding: 60px 24px;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
}

.step-num {
    width: 36px;
    height: 36px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Pricing */
.pricing-section {
    border-top: none;
}

.pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 32px 40px;
}

.pricing-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pricing-text p {
    color: #666;
    font-size: 15px;
}

/* Footer */
.footer {
    padding: 60px 24px 40px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.footer-tagline {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.15s;
}

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

.footer-copy {
    font-size: 13px;
    color: #999;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .hero-left h1 {
        font-size: 30px;
    }
    
    .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .steps-row {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 400px;
    }
    
    .pricing-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .app-preview {
        display: none;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    background: #eee;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.btn-sm:hover {
    background: #e0e0e0;
}

.btn-secondary {
    padding: 12px 24px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: #e5e5e5;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-google:hover {
    background: #fafafa;
    border-color: #ccc;
}

/* ============================================
   UNLOCK PAGE (Unpaid Users)
   ============================================ */

.unlock-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.unlock-hero {
    text-align: center;
    margin-bottom: 40px;
}

.unlock-hero h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.unlock-hero p {
    color: #666;
    font-size: 16px;
}

.unlock-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: stretch;
}

.unlock-preview-full {
    display: flex;
}

.unlock-preview-full .app-preview {
    flex: 1;
    min-height: 420px;
}

.unlock-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.unlock-price-row {
    text-align: center;
    margin-bottom: 20px;
}

.price-big {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: block;
}

.price-label {
    color: #666;
    font-size: 14px;
}

.unlock-includes {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.include-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
    padding: 8px 0;
}

.include-item span {
    color: #16a34a;
    font-weight: 600;
}

.user-email-nav {
    font-size: 14px;
    color: #666;
}

@media (max-width: 800px) {
    .unlock-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .unlock-preview-full {
        display: none;
    }
    
    .unlock-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ============================================
   APP INTERFACE
   ============================================ */

.layout {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #fafafa;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#user-email {
    font-size: 13px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.btn-text {
    background: none;
    border: none;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    padding: 0;
}

.btn-text:hover {
    color: #111;
}

.sidebar-section {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-section h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 12px;
}

.btn-connect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-connect svg {
    flex-shrink: 0;
}

.connected-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 500;
}

.connected-badge .check {
    width: 22px;
    height: 22px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.apps-list,
.subs-list {
    max-height: 200px;
    overflow-y: auto;
    margin: 0 -20px;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.1s ease;
}

.app-item:hover {
    background: #f0f0f0;
}

.app-item.selected {
    background: #e8e8e8;
}

.app-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.sub-item {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.1s ease;
}

.sub-item:hover {
    background: #f0f0f0;
}

.sub-item.selected {
    background: #e8e8e8;
    font-weight: 500;
}

.sub-item .period {
    color: #888;
    font-size: 12px;
    margin-left: 6px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.sidebar-link:hover {
    color: #111;
    background: #f0f0f0;
}

.sidebar-link svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.sidebar-link:hover svg {
    opacity: 1;
}

.sidebar-signout {
    color: #888;
}

.sidebar-signout:hover {
    color: #dc2626;
    background: #fef2f2;
}

.sidebar-signout:hover svg {
    stroke: #dc2626;
}

.loading,
.empty {
    padding: 20px;
    color: #888;
    font-size: 13px;
}

/* Main */
.main {
    flex: 1;
    overflow-y: auto;
    background: #fff;
}

/* Welcome Screen */
.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 48px 32px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.welcome-content {
    max-width: 480px;
    text-align: center;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    color: #555;
}

.welcome-content h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.welcome-content > p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.welcome-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
    text-align: left;
}

.welcome-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.welcome-step:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.step-content strong {
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

.step-content span {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.welcome-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.welcome-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.welcome-link {
    display: block;
    font-size: 14px;
    color: #888;
    text-decoration: none;
    transition: color 0.15s ease;
}

.welcome-link:hover {
    color: #111;
}

/* Legacy welcome (for compatibility) */
.welcome {
    max-width: 400px;
    margin: 80px auto;
    text-align: center;
}

.welcome h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.welcome p {
    color: #666;
    font-size: 14px;
}

/* Pricing View */
#pricing-view {
    padding: 32px;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 24px;
    flex-wrap: wrap;
}

.view-header h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

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

.control label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.control label strong {
    color: #111;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
}

.input-prefix {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 14px;
    transition: border-color 0.15s ease;
}

.input-prefix:focus-within {
    border-color: #111;
}

.input-prefix span {
    color: #888;
    font-size: 16px;
}

.input-prefix input {
    border: none;
    font-size: 16px;
    font-weight: 600;
    width: 70px;
    padding: 10px 8px;
}

.input-prefix input:focus {
    outline: none;
}

.control input[type="range"] {
    width: 180px;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #e0e0e0, #333);
    border-radius: 3px;
    margin-top: 2px;
}

.control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #111;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Price Table */
.price-table {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.table-head {
    display: flex;
    padding: 14px 24px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.table-body {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
}

.table-row {
    display: flex;
    padding: 14px 24px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    align-items: center;
    transition: background 0.1s ease;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: #fafafa;
}

.table-row.base-row {
    background: #f8f8f8;
}

.table-row.base-row:hover {
    background: #f5f5f5;
}

.col-country {
    flex: 1;
}

.col-country .badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: #111;
    color: #fff;
    margin-left: 8px;
    text-transform: uppercase;
}

.col-current,
.col-new {
    width: 110px;
    text-align: right;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 13px;
}

.col-current {
    color: #999;
}

.col-new {
    font-weight: 600;
}

.col-change {
    width: 70px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
}

.table-row.lower .col-new,
.table-row.lower .col-change {
    color: #16a34a;
}

.table-row.higher .col-new,
.table-row.higher .col-change {
    color: #dc2626;
}

.table-row.same .col-change {
    color: #bbb;
}

/* Action Bar */
.action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 18px 24px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

#changes-count {
    flex: 1;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   MODALS
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(2px);
}

.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-wide {
    max-width: 480px;
}

.modal-box h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.modal-box .hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-box .hint a {
    color: #111;
    font-weight: 500;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #aaa;
}

.file-drop {
    padding: 24px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    text-align: center;
    color: #888;
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 14px;
    transition: all 0.15s ease;
}

.file-drop:hover,
.file-drop.dragover {
    border-color: #111;
    background: #fafafa;
}

.file-drop.success {
    border-color: #16a34a;
    border-style: solid;
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 500;
}

.modal-btns {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.modal-btns button {
    flex: 1;
}

.separator {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.separator span {
    padding: 0 16px;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-msg {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
}

.modal-footer {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: 20px;
}

.modal-footer a {
    color: #111;
    font-weight: 500;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */

.problem-section {
    padding: 80px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.problem-section h2 {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
}

.problem-intro {
    text-align: center;
    font-size: 17px;
    color: #666;
    margin-bottom: 48px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.problem-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
}

.problem-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.problem-solution {
    text-align: center;
    font-size: 17px;
    color: #444;
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.problem-solution strong {
    color: #16a34a;
}

@media (max-width: 700px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .problem-section h2 {
        font-size: 24px;
    }
}

/* ============================================
   CONNECTED WELCOME - APPS GRID
   ============================================ */

.welcome-icon-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
    text-align: left;
    max-width: 560px;
}

.apps-grid-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.apps-grid-item:hover {
    border-color: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.apps-grid-item .app-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 16px;
}

.apps-grid-item .app-info {
    flex: 1;
    min-width: 0;
}

.apps-grid-item .app-name {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apps-grid-item .app-hint {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.apps-grid-item .app-arrow {
    color: #ccc;
    transition: color 0.15s ease, transform 0.15s ease;
}

.apps-grid-item:hover .app-arrow {
    color: #111;
    transform: translateX(2px);
}

.apps-grid-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: #888;
    font-size: 14px;
}

/* ============================================
   UPDATE PROGRESS MODAL
   ============================================ */

.update-header {
    text-align: center;
    margin-bottom: 28px;
}

.update-header h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.update-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.update-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: #f5f5f5;
    color: #555;
}

.update-icon.spinning {
    animation: spin 1s linear infinite;
}

.update-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

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

.update-progress {
    margin-bottom: 24px;
}

.progress-bar {
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #111 0%, #333 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    color: #888;
    text-align: center;
}

.update-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.update-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fafafa;
    border-radius: 8px;
    font-size: 14px;
}

.update-item.pending .update-status {
    color: #888;
}

.update-item.success {
    background: #f0fdf4;
}

.update-item.success .update-status {
    color: #16a34a;
    font-weight: 500;
}

.update-item.failed {
    background: #fef2f2;
}

.update-item.failed .update-status {
    color: #dc2626;
    font-weight: 500;
}

.update-more {
    text-align: center;
    font-size: 13px;
    color: #888;
    padding: 8px;
}

.update-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 24px;
    max-height: 180px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 6px;
    font-size: 13px;
}

.result-item.success {
    background: #f0fdf4;
}

.result-item.success .result-status {
    color: #16a34a;
    font-weight: 600;
}

.result-item.failed {
    background: #fef2f2;
}

.result-item.failed .result-status {
    color: #dc2626;
    font-weight: 600;
}

/* Schedule Info Box */
.schedule-info {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    margin-bottom: 20px;
}

.schedule-info .info-icon {
    flex-shrink: 0;
    color: #b45309;
    margin-top: 1px;
}

.schedule-info .info-text {
    font-size: 13px;
    line-height: 1.5;
    color: #92400e;
}

.schedule-info .info-text strong {
    color: #78350f;
}

/* Schedule Form */
.schedule-form {
    margin: 20px 0 24px;
}

.schedule-form .field {
    margin-bottom: 20px;
}

.schedule-form .field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.date-picker-wrapper {
    position: relative;
}

.schedule-date-input {
    width: 100%;
    padding: 16px 18px;
    padding-right: 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    background: #fafafa;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.schedule-date-input:hover {
    border-color: #d1d5db;
    background: #f5f5f5;
}

.schedule-date-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* Custom calendar icon */
.date-picker-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    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='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    pointer-events: none;
}

/* Style the native date picker */
.schedule-date-input::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.field-hint {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-hint::before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

.schedule-summary {
    background: linear-gradient(135deg, #f0f0ff 0%, #f8f8ff 100%);
    border: 1px solid #e0e0ff;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    text-align: center;
    margin-top: 8px;
}

.schedule-summary span {
    font-weight: 600;
    color: var(--primary);
}

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

@media (max-width: 600px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-sub {
        font-size: 16px;
    }
    
    .demo-table td {
        padding: 10px 16px;
    }
    
    .pricing-box {
        padding: 24px;
    }
    
    .price {
        font-size: 40px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
}
