/* Base styles */
:root {
    --background-dark: #121212;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #007AFF;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-background: rgba(255, 255, 255, 0.05);
    --bg-secondary: rgba(255, 255, 255, 0.02);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: #232323;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Mobile frame container */
.mobile-container {
    max-width: 430px; /* iPhone 12 Pro Max width */
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(to bottom, #0f1115, #1a1d22, #2b2f36);
    
}

.container {
    padding: 16px;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Header styles */
.app-header {
    padding: 20px 16px;
    text-align: left;
}

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

.header-logo {
    width: 120px;
    height: auto;
}

h1 {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 16px;
    text-align: center;
}

.logo {
    text-align: center;
    margin-bottom: 8px;
    margin-top: 36px;
}

.logo-image {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    
}

/* Filter navigation */
.filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 16px 16px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    font-family: var(--font-primary);
    background: #E8F1FF;
    border: none;
    color: #000000;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    opacity: 1;
    transition: all 0.2s ease;
}

.filter-btn.active {
    opacity: 1;
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
}

/* City grid - now a single column */
#city-subheader {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.city-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
}

.city-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 18/9;
    background: var(--card-background);
    text-decoration: none;
    color: var(--text-primary);
}

.city-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.city-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.city-header {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.city-name {
    font-family: var(--font-primary);
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-price {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.city-intro {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* City labels */
.city-label {
    position: absolute;
    top: 4px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    background-color: #000000;
    color: #ffffff;
    font-weight: 700;
    padding: 4px 10px;
    margin: 14px 6px;
    height: 24px;
}

.city-label.locked {
    background-color: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    font-weight: 500;
    border-radius: 2px;
    padding: 4px 6px;
    margin: 14px 6px;
}

.padlock-icon {
    width: 9px !important;
    height: 9px !important;
    vertical-align: middle;
    margin-right: 1px;
    margin-bottom: 2px;
}

/* Bottom navigation */
.bottom-nav {
    display: none !important;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.nav-btn img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.nav-btn.active img {
    opacity: 1;
}

/* Category styles */
.category-item {
    background: var(--card-background);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
}

.category-icon {
    font-size: 24px;
    min-width: 32px;
    text-align: center;
}

.category-info {
    flex-grow: 1;
}

.category-info h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.category-info p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.expand-icon {
    font-size: 24px;
    color: var(--text-primary);
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.subcategory-item.selected .expand-icon {
    transform: rotate(90deg);
}

/* Subcategory styles */
.subcategories-container {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 16px;
}

.subcategory-item {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.subcategory-item.selected {
    background: #333333;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.subcategory-item:last-child {
    margin-bottom: 0;
}

.subcategory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    width: 100%;
    height: 64px;
}

.subcategory-item.selected .subcategory-header {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.subcategory-header h3 {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.subcategory-header-main {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 42px;
    letter-spacing: 0px;
}

.subcategory-header-in {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin-left: 8px;
    vertical-align: middle;
}

#subcategoryList {
    padding-left: 16px;
    padding-right: 16px;
}

.guide-items-container {
    background: #1C1C1E;
    border-top: none;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-top: 0px;
}

.subcategory-item.selected .guide-items-container {
    /* max-height: 1000px; */
    opacity: 1;
    padding: 10px 16px 10px 16px;
}

.loading {
    text-align: center;
    padding: 16px;
    color: var(--text-secondary);
}

/* .guide-item, .guide-item * {
    font-weight: 300 !important;
} */

.guide-item {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 0;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
}

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

.guide-item-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 16px;
    border-radius: 8px;
    flex-shrink: 0;
}

.guide-item-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.guide-item h4 {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

/* Utility classes */
.error {
    color: #ff3b30;
    padding: 16px;
    text-align: center;
    background: rgba(255, 59, 48, 0.1);
    border-radius: 12px;
    margin: 16px;
}

.no-results {
    display: none;
    text-align: center;
    padding: 16px;
    color: var(--text-secondary);
}

.category-link {
    display: flex;
        align-items: center;
        gap: 8px;
        padding: 16px 20px;
        text-decoration: none;
        color: var(--text-primary);
        font-family: var(--font-primary);
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 10px;
        margin-left: 16px;
        margin-right: 16px;
        transition: all 0.2s ease;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(4px);
}

.category-link:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.category-icon {
    font-size: 18px;
    opacity: 0.9;
    height: 24px;
    display: flex;
    align-items: center;
}

.category-name {
    flex: 1;
    font-size: 16px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#categoryName, #cityName {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 46px;
    letter-spacing: 0px;
    color: #fff;
    margin: 0;
    margin-bottom: -12px;
}

#categoryName {
    align-items: baseline;
    display: flex;
}

.custom-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #0a0a0a;
    padding: 24px 16px 24px 16px;
}

.back-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 16px;
}

.back-chevron {
    width: 36px;
    height: 36px;
}

.header-center {
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.header-logo {
    width: 36px;
    height: 36px;
    margin-right: 16px;
}

.header-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    margin-bottom: 16px;
}

.logo-horizontal {
    margin: 0 auto;
    width: 100px;
    height: 24px;
    display: block;
}


.accordion-text .guide-item * { 
    font-weight: 300 !important;
 }



.skeleton-loader {
    height: 48px;
    margin: 8px 0;
    border-radius: 6px;
    background: #2a2a2a;
}

.guide-item-title-row {
    display: block;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.guide-item-likes-tag {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #fff;
    margin-left: 4px;
    min-width: 24px;
    justify-content: center;
    background: transparent;
    flex-direction: column;
}

.guide-item-like-icon {
    width: 24px;
    height: 24px;
    margin-right: 4px;
    stroke: #fff;
    fill: none;
    display: inline-block;
    vertical-align: middle;
}

.guide-item-likes-count {
    font-size: 12px;
    font-weight: 400;
    margin-left: 2px;
    margin-top: -4px;
}

.guide-item-price {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
    margin-left: 16px;
    margin-right: 0;
    margin-left: auto;
}

a.guide-item {
    color: inherit;
    text-decoration: none;
}

a.guide-item:hover,
a.guide-item:focus {
    cursor: pointer
}

.guide-item-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.guide-item-tag {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #a9a9a9;
    border-radius: 16px;
    font-size: 10px;
    color: #a9a9a9;
    background: transparent;
    font-weight: 400;
    white-space: nowrap;
}

/* nk */
.imgfix {
    display: flex;
    width: 100%;
}
.pricefix {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
p {
    font-size: 14px;
}

.guide-item-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    width: 100%;
}

.guide-item-link:visited,
.guide-item-link:active,
.guide-item-link:focus,
.guide-item-link:hover {
    color: inherit;
    text-decoration: none;
}

.guide-item-title-row.pricefix {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guide-item-title-row.appfix {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
    flex-shrink: 0;
}

.app-title {
    font-weight: 700;
    font-size: 16px;
    flex: 1 1 auto;
    color: #fff;
}

.app-desc {
    font-size: 16px;
    color: #fff;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 16px;
}

.guide-item-likes-tag.liked .guide-item-like-icon {
    stroke: #e74c3c;
    fill: #e74c3c;
}

h4 {
    font-weight: 600;
}

.guide-item-subdetail {
    font-weight: 400;
    color: #a9a9a9;
    font-size: 0.9em;
    margin-left: 0px;
}

.accordion-image-content {
    display: flex;
    align-items: center;
    gap: 0px;
}

.accordion-image-content .guide-item-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.accordion-image-content .guide-item-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

p {
    color: #a9a9a9;
}

.feedback-delayed {
  opacity: 0;
  animation: feedbackFadeIn 0.8s 0.85s forwards;
}

@keyframes feedbackFadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.buy-header {
    padding-bottom: 0px;
}

.buy-2-header {
margin-top: 50px;
padding-bottom: 32px;
padding-top: 50px;
border-top: 1px solid rgba(255,255,255,0.1);
}

.button-1 {
  display: block;
  padding: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  background-color: #10B981;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
  padding: 14px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
}
.button-1:hover,
.button-1:focus {
    transform: translateY(-1px);
    background-color: #059669; /* slightly deeper green */
}

.buy-header-title {
    text-align: left;
}
.buy-header-subtitle {
    text-align: left;
}
.email-title {
    text-align: left;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #fff;
}
.result {
    color: #fff;
    font-weight: 500;
}

/* Login button and modal styles */
.header-actions {
    position: absolute;
    top: 20px;
    right: 16px;
}

.login-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    color: var(--accent-color);
}

.logout-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* .logout-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
} */

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--background-dark);
    margin: 20px;
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    border: 1px solid var(--border-color);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-secondary);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-content p {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#login-email {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-background);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
}

#login-email:focus {
    outline: none;
    border-color: var(--accent-color);
}

#login-result {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

#login-result.success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

#login-result.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Premium Banner Styles */
.premium-banner {
    margin: 20px 0 0 0;
    background: linear-gradient(90deg, #0f9b6c, #1da851);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    scroll-margin-top: 20px;
    /* animation: floatBanner 2.5s ease-in-out infinite; */
    
}
/* @keyframes floatBanner {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-4px);
    }
  } */
.premium-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    flex-wrap: wrap;
}

.banner-text {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.banner-arrow {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.banner-link:hover .banner-arrow {
    transform: translateX(4px);
}

/* Hide banner for premium users */
.premium-banner.hidden {
    display: none;
}
.banner-text2 {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 300;
    color: #ffffff;
}
.banner-text-container {
    display: flex;
    flex-direction: column;
}
.banner-text3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}
.city-image {
    opacity: 0.6;
}
.payment-success-title {
    margin-top:30px;
}
.index-header {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}
.index-subtitle {
    font-size: 16px;
    font-weight: 400;
}
.index-landing-header {
    font-size: 26px;
    font-weight: 600;
    color: #fff;    
    line-height: 1.3;
    margin-bottom: 8px;
}
.carousel-image {
    width: 150px;
    height: 100%;
    object-fit: cover;
}
.index-landing-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
    flex-direction: row;
    gap: 12px;
    justify-content: left;
    overflow-x: auto;
    margin-bottom: 40px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.index-landing-image-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.landing-subtitle {
    margin-bottom: 40px;
    margin-top: 10px;
}
.index-landing-button {
    background-color: #10B981;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.header-logo-1 {
    width: 120px;
    height: auto;
    margin-top: -6px;
}
.card {
    background-color: #121212; /* dark card background */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
