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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f5f5;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: 0 0;
    color: #333;
    line-height: 1.6;
}

.site-header {
    width: 100%;
    padding: 32px 0 24px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    display: block;
    height: 80px;
}

.header-tagline {
    margin-top: 8px;
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
    font-style: italic;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    color: #0D7B96;
}

.site-footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 32px 0;
    margin-top: 60px;
    text-align: center;
}

.site-footer p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.site-footer a {
    color: #0D7B96;
    text-decoration: none;
    font-weight: 500;
}

.site-footer a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header-minimal {
    padding: 12px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
}

.hero-section {
    width: 100%;
    margin-bottom: 0;
}

.hero-content {
    width: 100%;
}

.hero-title {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-description {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
}

.country-selection-inline {
    background: #e5e7eb;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 24px -20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.country-selection-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    flex-shrink: 0;
}

.tooltip-trigger {
    cursor: help;
    font-size: 14px;
    color: #6b7280;
}

.tooltip-trigger:hover {
    color: #0D7B96;
}

.tooltip-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #1f2937;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tooltip-trigger:hover + .tooltip-content,
.country-selection-title:hover .tooltip-content {
    display: block;
}

.country-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.country-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.country-pill:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.country-pill.active {
    background: #0D7B96;
    color: white;
    border-color: #0D7B96;
}

.country-pill.active:hover {
    background: #0D7B96;
    border-color: #0D7B96;
}

.country-pill-flag {
    font-size: 18px;
    line-height: 1;
}

.country-pill-name {
    display: inline;
}

@media (max-width: 768px) {
    .country-pill-name {
        display: none;
    }
}

.add-country-link {
    color: #0D7B96;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px dashed #0D7B96;
    transition: all 0.15s ease;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.add-country-link:hover {
    background: #eff6ff;
    border-color: #0D7B96;
}

#refresh-recommendations-link {
    transition: opacity 0.15s ease;
}

#refresh-recommendations-link:hover {
    opacity: 0.7;
}

.handwriting-cta {
    display: inline-block;
    margin-left: 10px;
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 18px;
    color: #0D7B96;
    transform: rotate(-2deg);
    font-weight: 500;
}

.arrow {
    display: inline-block;
    transform: rotate(-10deg);
    margin-left: 4px;
    font-size: 20px;
}

.quick-add-wrapper {
    flex: 0 0 350px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 2px dashed #0D7B96;
}

.quick-add-wrapper .help-text {
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
}

.quick-add-wrapper textarea {
    width: 100%;
    margin-bottom: 12px;
}

.quick-add-wrapper button {
    width: 100%;
}

h1 {
    margin: 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
}

.btn-settings {
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-settings:hover {
    opacity: 0.7;
}

.btn-settings i {
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background-color: white;
    margin: 40px auto;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s;
}

.modal-small {
    max-width: 400px;
}

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.btn-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-close:hover {
    background: #f3f4f6;
}

.btn-close i {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    margin-bottom: 15px;
    color: #1f2937;
    font-size: 20px;
    padding-left: 0;
}

.section > h2 {
    padding-left: 0;
    margin-left: 0;
}

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

.section-header h2 {
    margin-bottom: 0;
}

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

.clear-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.app-list-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.clear-link:hover {
    color: #6b7280;
    text-decoration: underline;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: transparent;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0D7B96 0%, #8b5cf6 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-steps {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}

.progress-step:last-child {
    border-bottom: none;
}

.progress-step-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.progress-step.completed {
    color: #10b981;
}

.progress-step.cached {
    color: #8b5cf6;
}

.progress-step.active {
    color: #0D7B96;
    font-weight: 500;
}

.help-text {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #0D7B96;
    color: white;
}

.btn-primary:hover {
    background: #1a8ba3;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    }
}

.btn-enabled-animation {
    animation: btnPulse 0.5s ease-in-out;
}

.btn-secondary {
    background: #e5e7eb;
    color: #333;
}

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

.text-link {
    color: #ef4444;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.text-link:hover {
    text-decoration: underline;
}

.btn-danger {
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Empty State */
.apps-empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
}

.empty-state-decoration {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-405px, -80px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 3;
}

.get-started-text {
    font-family: 'Caveat', cursive;
    font-size: 32px;
    font-weight: 700;
    color: #0D7B96;
    margin-bottom: -10px;
    transform: rotate(-5deg) translate(-39px, -9px);
}

.arrow-image {
    margin-left: 20px;
    width: 140px;
    height: auto;
}

.empty-state-frame {
    text-align: center;
    padding: 32px 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 2px dashed #0D7B96;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.store-icons-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(138px, -230px);
    width: 180px;
    height: auto;
    z-index: 3;
}

.empty-state-frame h3 {
    color: #1f2937;
    margin-bottom: 12px;
    font-size: 20px;
}

.empty-state-frame p {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 14px;
}

.empty-state-frame textarea {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px;
}

.empty-state-frame button {
    width: auto;
    background: #FFE175 !important;
    color: #000000 !important;
    font-weight: 700 !important;
}

.empty-state-frame button:hover {
    background: #ffd54f !important;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 12px;
    padding: 8px 12px;
    background: #fee2e2;
    border-radius: 4px;
    border-left: 3px solid #dc2626;
}

/* Store Column Backgrounds */
#apps-list {
    position: relative;
}

.store-column-backgrounds {
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    height: calc(100% + 10px);
    pointer-events: none;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 220px 220px 180px 220px;
    gap: 20px;
}

.store-column-bg {
    background: #FEF9E3;
    border-radius: 20px;
    height: 100%;
}

.play-store-bg {
    grid-column: 2;
}

.app-store-bg {
    grid-column: 3;
}

/* App List Header */
.app-list-header {
    display: grid;
    grid-template-columns: 1fr 220px 220px 180px 220px;
    gap: 20px;
    padding: 12px 15px 8px 15px;
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    background: transparent;
    z-index: 100;
    align-items: end;
}

.app-list-header-cell {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-list-header-cell.store-column {
    text-align: center;
    position: relative;
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.app-list-header-cell.store-column .store-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    display: block;
}

.app-list-header-cell.sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.app-list-header-cell.sortable:hover {
    color: #0D7B96;
}

.sort-indicator {
    display: inline-block;
    margin-left: 4px;
    font-weight: 700;
}

/* App Item */
.app-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 16px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.app-item.no-data {
    background: white;
    border: 2px dotted #d1d5db;
}

.app-item.loading {
    background: rgba(219, 234, 254, 0.3);
    border: 1px solid rgba(191, 219, 254, 0.5);
    animation: pulsateBackground 2s ease-in-out infinite;
}

.app-item.next-in-queue {
    background: #ffffff;
    border: 1px solid rgba(160, 160, 160, 0.3);
}

@keyframes pulsateBackground {
    0%, 100% {
        background: rgba(219, 234, 254, 0.3);
    }
    50% {
        background: rgba(219, 234, 254, 0.7);
    }
}


.app-compact {
    display: grid;
    grid-template-columns: 1fr 220px 220px 180px 220px;
    gap: 20px;
    align-items: center;
}

.app-icon-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.app-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.no-data .app-icon-img {
    filter: grayscale(100%);
    opacity: 0.5;
}

.app-icon-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.no-data .app-icon-placeholder {
    background: #d1d5db;
    color: #9ca3af;
}

.app-name {
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
}

.app-store-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding-left: 24px;
}

.app-store-score {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.app-store-reviews {
    font-size: 13px;
    color: #6b7280;
}

.loading-placeholder {
}

.loading-skeleton {
    background: #e5e7eb;
    border-radius: 4px;
    height: 20px;
    width: 80px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.app-store-timestamp {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.app-timestamp-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -4px;
    margin-bottom: 8px;
    padding: 0 12px;
}

.app-timestamp {
    font-size: 11px;
    color: #9ca3af;
}

.correct-app-link {
    font-size: 11px;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0;
    visibility: hidden;
}

.correct-app-link:hover {
    color: #0D7B96;
}

.app-item:hover + .app-timestamp-container .correct-app-link,
.app-timestamp-container:hover .correct-app-link {
    opacity: 1;
    visibility: visible;
}

.similar-app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.similar-app-item:hover {
    background: #f9fafb;
    border-color: #0D7B96;
}

.recommendation-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.recommendation-card:hover {
    background: #f9fafb;
    border-color: #0D7B96;
    box-shadow: 0 2px 8px rgba(13, 123, 150, 0.1);
}

.recommendation-card:hover .btn-icon {
    opacity: 1 !important;
}

.app-store-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.store-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 6px;
    transition: all 0.2s;
}

.store-link i {
    font-size: 18px;
}

.store-link:hover {
    background: #e5e7eb;
    color: #374151;
}

.store-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.app-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 6px 12px;
    font-size: 12px;
    background: #e5e7eb;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #d1d5db;
}

.app-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.app-details.expanded {
    display: block;
}

.app-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.form-group input[type="text"],
.form-group input[type="number"],
.country-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

#default-countries {
    display: flex;
    gap: 10px;
}

.country-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
    text-transform: lowercase;
    font-size: 14px;
}

.countries-row {
    margin-top: 10px;
}

.countries-label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
}

.countries-inputs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.countries-inputs input {
    flex: 1;
    min-width: 50px;
    max-width: 80px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
    text-transform: lowercase;
    font-size: 13px;
}

#bulk-apps-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 10px;
    resize: vertical;
}

#bulk-add-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

#bulk-add-status.loading {
    background: #dbeafe;
    color: #1e40af;
    display: block;
}

#bulk-add-status.success {
    background: #dcfce7;
    color: #166534;
    display: block;
}

#bulk-add-status.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

#scraping-progress {
    margin-top: 15px;
}

.progress-item {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: #f9fafb;
    border-left: 3px solid #d1d5db;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-item.loading {
    border-left-color: #0D7B96;
    background: #eff6ff;
}

.progress-item.success {
    border-left-color: #10b981;
    background: #ecfdf5;
}

.progress-item.error {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.progress-icon {
    font-size: 16px;
    min-width: 20px;
}

.progress-text {
    flex: 1;
    font-size: 14px;
}

#settings-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

#settings-status.success {
    background: #dcfce7;
    color: #166534;
    display: block;
}

.results-actions {
    display: flex;
    gap: 10px;
}

.results-table {
    overflow-x: auto;
}

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

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

tr:hover {
    background: #f9fafb;
}

.rating-good {
    color: #059669;
    font-weight: 600;
}

.rating-medium {
    color: #d97706;
    font-weight: 600;
}

.rating-poor {
    color: #dc2626;
    font-weight: 600;
}

.rating-na {
    color: #9ca3af;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0D7B96;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.loading-skeleton {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.loading-cell {
    padding: 8px 12px;
}

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

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.apps-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 30px;
}

#progress-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 0;
}

.fetch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.fetch-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fetch-overlay-content {
    position: relative;
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.fetch-overlay-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.fetch-overlay-content p {
    color: #4b5563;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.fetch-overlay-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.fetch-overlay-actions .btn {
    flex: 1;
    max-width: 200px;
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.toggle-label-wrapper {
    flex: 1;
}

.toggle-label-wrapper label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #0D7B96;
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #d1d5db;
    outline: none;
    margin-top: 8px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0D7B96;
    cursor: pointer;
    transition: 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    background: #1a8aa3;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0D7B96;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.slider::-moz-range-thumb:hover {
    background: #1a8aa3;
}

/* Announcement Bar */
.announcement-bar {
    background: #fef9e4;
    color: #0D7B96;
    text-align: center;
    padding: 15px;
    font-size: 15px;
}

.announcement-bar p {
    margin: 0;
}

.announcement-bar a {
    color: #0D7B96;
    text-decoration: underline;
    font-weight: 600;
}

.announcement-bar a:hover {
    text-decoration: none;
}

/* Container Variations */
.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Full Width Sections */
.full-width-section {
    width: 100%;
    padding: 60px 0;
}

.section-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    text-align: center;
}

.section-text {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 16px;
    text-align: center;
}

/* Features Section */
.features-section {
    background: transparent;
}

.features-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.features-content {
    text-align: left;
}

.features-content .section-heading {
    text-align: left;
    font-size: 24px;
    margin-bottom: 20px;
}

.features-content .section-text {
    text-align: left;
    font-size: 15px;
    color: #6b7280;
}

.features-icons {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-icon-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon-item i {
    width: 48px;
    height: 48px;
    background: #0D7B96;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.feature-icon-item span {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

@media (max-width: 768px) {
    .features-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-icons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Hero Features Section */
.hero-features-section {
    background: transparent;
    padding: 0px;
    overflow: hidden;
}

.hero-features-layout {
    display: flex;
    align-items: center;
    gap: 0px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-features-content {
    flex: 0 0 500px;
    text-align: left;
}

.hero-features-content .hero-title {
    margin: 0 0 24px 0;
    color: #1f2937;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-text {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-quote {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 40px;
    padding: 0;
}

.hero-quote .quote-mark {
    font-size: 48px;
    line-height: 0.8;
    color: #FFE175;
    font-weight: 700;
    font-family: Georgia, serif;
}

.hero-quote p {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    margin: 0;
    padding-top: 8px;
}

.hero-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: -30%;
    min-height: 378px;
}

.hero-illustration img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
}

.hero-features-icons {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

@media (max-width: 1200px) {
    .hero-illustration {
        margin-right: -200px;
    }
}

@media (max-width: 768px) {
    .hero-features-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-features-content {
        flex: 1;
    }
    
    .hero-illustration {
        margin-right: 0;
        min-height: auto;
    }
    
    .hero-illustration img {
        max-width: 100%;
    }
    
    .hero-features-icons {
        flex-direction: column;
        gap: 16px;
    }
}

/* Premium Section */
.premium-section-wrapper {
    background: transparent;
}

.premium-box {
    background: linear-gradient(135deg, #0ea5cc 0%, #0D7B96 50%, #0ea5cc 100%);
    background-size: 200% 200%;
    border-radius: 16px;
    color: white;
    overflow: hidden;
}

.premium-box .section-heading {
    color: white;
    text-align: left;
    font-size: 24px;
    margin-bottom: 32px;
}

.premium-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.premium-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
}

.premium-left {
    padding: 40px;
}

.premium-right {
    display: flex;
    align-items: stretch;
}

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

.premium-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.premium-feature i {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    opacity: 0.9;
}

.premium-feature h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.premium-feature p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

/* Waitlist Compact */
.waitlist-compact {
    background: rgba(255, 255, 255, 0.15);
    padding: 40px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.waitlist-compact h3 {
    font-size: 30px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.waitlist-compact p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.waitlist-compact form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waitlist-compact input {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
}

.waitlist-compact input:focus {
    outline: none;
    border-color: white;
    background: white;
}

.waitlist-compact button {
    width: 100%;
    background: #FFE175;
    color: #000000;
    border: none;
    font-weight: 700;
}

.waitlist-compact button:hover {
    background: #ffd54f;
}

#waitlist-message {
    margin-top: 8px;
    font-size: 15px;
    text-align: center;
}

#waitlist-message.success {
    color: #10b981;
}

#waitlist-message.error {
    color: #fca5a5;
}

@media (max-width: 900px) {
    .premium-grid {
        grid-template-columns: 1fr;
    }
    
    .premium-features {
        grid-template-columns: 1fr;
    }

    .waitlist-compact {
        border-radius: 12px;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .premium-left {
        padding: 30px 20px;
    }

    .btn-label {
        display: none;
    }

    .empty-state-decoration {
        display: none;
    }

    .store-icons-decoration {
        display: none;
    }

    .header-logo img {
        height: 60px;
        max-width: 90vw;
    }

    .app-list-header {
        display: grid !important;
        grid-template-columns: 80px 1fr 1fr !important;
        padding: 12px 15px 8px 15px;
        gap: 10px !important;
    }

    .app-list-header-cell:nth-child(4) {
        display: none;
    }

    .app-list-header-cell:nth-child(5) {
        display: none;
    }

    .app-list-header-cell.store-column {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding-left: 0 !important;
    }

    .app-list-header-cell.store-column img {
        display: none !important;
    }
    
    .app-list-header-cell.store-column span {
        padding-left: 0 !important;
        text-align: left !important;
    }

    .store-column-backgrounds {
        display: none;
    }

    .app-compact {
        display: grid !important;
        grid-template-columns: 80px 1fr 1fr !important;
        gap: 10 !important;
        align-items: center !important;
    }

    .app-icon-name {
        grid-column: 1;
        width: auto !important;
    }

    .app-name {
        display: none;
    }

    .app-icon {
        margin-right: 0 !important;
    }

    .app-compact > div:nth-of-type(2) {
        grid-column: 2;
    }

    .app-compact > div:nth-of-type(3) {
        grid-column: 3;
    }

    .app-compact > div:nth-of-type(4) {
        display: none !important;
    }

    .app-compact > div:nth-of-type(5) {
        display: none !important;
    }

    .app-compact .app-store-data {
        padding-left: 0 !important;
        align-items: flex-start !important;
    }

    .app-store-score {
        font-size: 14px;
    }

    .app-store-reviews {
        font-size: 11px;
    }

    #clear-list-link {
        display: none !important;
    }

    .clear-list-bottom {
        display: block !important;
    }

    .breakdown-country-name {
        display: none;
    }

    .breakdown-row {
        grid-template-columns: 80px 1fr 1fr !important;
        gap:20px !important;
    }

    .breakdown-row > div:nth-child(4),
    .breakdown-row > div:nth-child(5) {
        display: none !important;
    }

    .breakdown-row > div {
        padding-left: 0 !important;
    }

    .store-ids-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .store-ids-grid > div:first-child,
    .store-ids-grid > div:last-child {
        display: none;
    }

    .store-ids-grid .app-store-data {
        width: 100%;
    }
}

.clear-list-bottom {
    display: none;
    text-align: center;
    padding: 20px 0;
    margin-top: 10px;
}

/* FAQ Section */
.faq-section {
    background: transparent;
}

.faq-list {
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .store-column-backgrounds {
        display: none;
    }
    
    /* Hide store icons on smaller screens */
    .app-list-header-cell.store-column .store-icon {
        display: none;
    }
    
    /* Adjust header layout without icons */
    .app-list-header-cell.store-column {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
    
    /* Remove left padding on smaller screens since no background */
    .app-store-data {
        padding-left: 0;
    }

    /* Hide country labels in breakdown */
    .breakdown-country-name {
        display: none;
    }
}

/* Country List Items */
.country-list-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #1f2937;
}

.country-list-item:last-child {
    border-bottom: none;
}

.country-list-item:hover {
    background-color: #f9fafb;
}

.country-list-item:active {
    background-color: #f3f4f6;
}

#country-search:focus {
    outline: none;
    border-color: #0D7B96;
}
