* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
}

a {
    color: inherit;
}

.v2-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 14px;
}

.v2-header {
    text-align: center;
    padding: 18px 16px;
    background: linear-gradient(180deg, var(--bg-elevated), var(--bg-dark));
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.v2-logo-text {
    margin: 0;
    font-family: "Grechen Fuemen", cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-light);
}

.v2-logo-img {
    height: 52px;
    max-width: 220px;
    object-fit: contain;
}

.v2-top-banner,
.v2-bottom-banner {
    display: block;
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
}

.v2-top-banner img,
.v2-bottom-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.v2-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 15px 18px;
    border-radius: 999px;
    margin: 14px 0;
}

.v2-warning {
    background: linear-gradient(135deg, #d25e5e, #b44765);
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.v2-tier-section {
    margin: 18px 0 22px;
}

.v2-tier-title {
    margin: 8px 0 10px;
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    color: var(--accent-light);
}

.v2-section-banner {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.v2-section-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.v2-platin-list {
    display: grid;
    gap: 14px;
}

.v2-platin-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    background: var(--bg-card);
    border: 1px solid rgba(var(--card-rgb), 0.28);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    min-height: 210px;
}

.v2-tier-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.v2-new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    background: linear-gradient(135deg, #ff7a18, #ff4d4d);
    color: #fff;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.v2-platin-info {
    padding: 12px 10px;
    background: linear-gradient(135deg, rgba(var(--card-rgb), 0.18), rgba(var(--card-rgb), 0.03));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-platin-info h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 1.22rem;
    color: var(--card-color);
}

.v2-platin-meta {
    display: grid;
    gap: 5px;
    font-size: 0.8rem;
}

.v2-platin-meta i {
    width: 14px;
    color: var(--card-color);
}

.v2-flag-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.v2-flag-tags span {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.v2-platin-icons {
    display: flex;
    gap: 12px;
    color: var(--accent-light);
}

.v2-platin-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.v2-platin-actions a {
    flex: 1;
    text-align: center;
    padding: 7px 8px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
}

.v2-platin-actions a:nth-child(1) {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #111;
}

.v2-platin-gallery {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #0a0a0a;
}

.v2-location-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.v2-static-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 100%;
}

.v2-static-gallery.is-single-image {
    grid-template-columns: 1fr;
    background: #0a0a0a;
}

.v2-static-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.v2-static-gallery.is-single-image img {
    object-fit: contain;
}

.v2-marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    padding: 0;
    height: 100%;
    align-items: stretch;
    animation: marqueeScroll 14s linear infinite;
}

.v2-marquee-item {
    width: 160px;
    min-height: 190px;
    height: 100%;
    flex: none;
}

.v2-marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    display: block;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.v2-grid-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.v2-grid-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 320px;
    background: var(--bg-card);
    cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}

.v2-grid-card > .v2-tier-badge {
    top: 8px;
    right: 8px;
}

.v2-grid-card img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.v2-grid-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 10px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84));
}

.v2-grid-overlay h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.v2-grid-overlay p {
    margin: 0;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.v2-grid-submeta {
    margin-top: 4px !important;
}

.v2-grid-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.v2-grid-actions a {
    flex: 1;
    text-decoration: none;
    text-align: center;
    padding: 6px 7px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.v2-grid-actions a:nth-child(1) {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #111;
}

.v2-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.v2-footer {
    text-align: center;
    padding: 24px 0 34px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.theme-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    overflow-y: auto;
    padding: 4vh 8px calc(4vh + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
}

.theme-lightbox.is-open {
    display: block;
}

.theme-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.theme-lightbox__card {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 14px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
    max-height: none;
    overflow: visible;
}

.theme-lightbox__close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--rose);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.theme-lightbox__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 42px 10px 0;
    font-size: 1.2rem;
}

.theme-lightbox__title-text {
    min-width: 0;
}

.theme-lightbox__verified {
    display: inline-flex;
    align-items: center;
    color: var(--accent-light);
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent-light) 40%, transparent));
}

.theme-lightbox__title small {
    font-size: 0.75rem;
    opacity: 0.75;
}

.theme-lightbox__gallery {
    position: relative;
    display: block;
}

.theme-lightbox__gallery-stage {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 10px;
    background: #050507;
}

.theme-lightbox__gallery-image {
    display: none;
    width: 100%;
    height: min(62vh, 520px);
    object-fit: contain;
    object-position: center top;
}

.theme-lightbox__gallery-image.is-active {
    display: block;
}

.theme-lightbox__gallery-nav {
    position: absolute;
    top: calc(50% - 24px);
    z-index: 3;
    width: 42px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    cursor: pointer;
}

.theme-lightbox__gallery-nav.prev {
    left: 10px;
}

.theme-lightbox__gallery-nav.next {
    right: 10px;
}

.theme-lightbox__gallery-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.theme-lightbox__gallery-thumbs {
    display: flex;
    gap: 7px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.theme-lightbox__gallery-thumb {
    flex: 0 0 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.theme-lightbox__gallery-thumb.is-active {
    border-color: var(--accent);
}

.theme-lightbox__gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-lightbox__actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: nowrap;
}

.theme-lightbox__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 11px;
    border-radius: 9px;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
}

.theme-lightbox__actions .wa {
    background: #25d366;
    color: #fff;
}

.theme-lightbox__actions .tg {
    background: #0088cc;
    color: #fff;
}

.theme-lightbox__actions .tel {
    background: linear-gradient(135deg, var(--purple), var(--accent));
    color: #fff;
}

.theme-lightbox__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.theme-lightbox__meta div {
    padding: 8px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 0.82rem;
}

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

.theme-lightbox__feature-tags span {
    font-size: 0.73rem;
    padding: 4px 7px;
    background: var(--bg-elevated);
    border-radius: 999px;
}

.theme-lightbox__profile-link {
    display: block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #111;
    padding: 11px;
    border-radius: 10px;
    margin-top: 10px;
    font-weight: 700;
}

body.theme-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .v2-grid-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-platin-card {
        grid-template-columns: 1fr;
    }

    .v2-platin-gallery {
        min-height: 220px;
    }

    .v2-marquee-item {
        width: 130px;
        height: 170px;
    }
}

@media (max-width: 560px) {
    .v2-grid-list {
        grid-template-columns: 1fr;
    }

    .theme-lightbox__meta {
        grid-template-columns: 1fr;
    }

    .v2-platin-actions,
    .v2-grid-actions {
        flex-wrap: wrap;
    }
}

body.theme-legacy .v2-grid-list {
    grid-template-columns: 1fr;
}
