* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-main {
    padding-top: 86px;
}

.hidden {
    display: none !important;
}

/* Navbar */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 999;
    background: rgba(6, 18, 36, 0.72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

body:not(.theme-dark) .site-header {
    background: rgba(255, 255, 255, 0.88);
}

.navbar {
    padding: 12px 0;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand-text {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    color: var(--text);
    font-weight: 600;
}

.nav-link-btn,
.primary-btn,
.secondary-btn {
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.nav-link-btn,
.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: var(--shadow);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.theme-toggle,
.menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
}
.section-heading-with-action {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.card-grid-8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hidden-card {
    display: none;
}

.trend-card .post-image {
    position: relative;
}

.trend-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.two-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-required-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    padding: 20px;
}

.auth-required-modal.show {
    display: flex;
}

.auth-required-box {
    width: min(460px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 28px;
    text-align: center;
}

.auth-required-box h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.auth-required-box p {
    color: var(--muted);
    margin-bottom: 18px;
}

.auth-required-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-required-close {
    margin-top: 14px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 600;
}
/* Sections */
.content-section {
    padding: 40px 0 20px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 8px;
}

.section-heading p {
    color: var(--muted);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.post-body {
    padding: 16px;
}

.post-body h3 {
    font-size: 1rem;
    margin-bottom: 14px;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.top-row-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.action-btn {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    min-height: 62px;
}

.like-btn {
    flex-direction: column;
    gap: 4px;
}

.like-btn i {
    color: #ff4d6d;
    font-size: 1.2rem;
}

.like-btn.liked {
    border-color: rgba(255, 77, 109, 0.3);
    background: rgba(255, 77, 109, 0.08);
}

.action-meta {
    font-weight: 700;
    line-height: 1;
}

.icon-only-btn i {
    font-size: 1.25rem;
}

.ticket-row {
    display: block;
}

.ticket-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.free-ticket {
    background: rgba(34, 197, 94, 0.15);
    color: #7ee787;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.search-empty-state {
    text-align: center;
    padding: 28px;
    margin-top: 24px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.search-empty-state i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--primary);
}
.section-bottom-action {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.page-main {
    padding-bottom: 40px;
}

.page-section {
    padding: 28px 0 40px;
}

.page-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    box-shadow: var(--shadow);
    padding: 34px;
}

.page-badge {
    display: inline-flex;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 16px;
}

.page-card h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 12px;
    line-height: 1.08;
}

.page-lead {
    color: var(--muted);
    margin-bottom: 28px;
    max-width: 860px;
}

.page-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.page-content-block {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
}

.page-content-block h2 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.page-content-block p {
    color: var(--muted);
}

.page-highlight-box {
    margin-top: 24px;
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.12));
    border: 1px solid var(--border);
}

.page-highlight-box h3 {
    margin-bottom: 10px;
}

.page-highlight-box p {
    color: var(--muted);
}

.legal-card .legal-content {
    display: grid;
    gap: 18px;
}

.legal-card .legal-content h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.legal-card .legal-content p {
    color: var(--muted);
}