:root {
    --bg-dark: #fdfdfd;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --text-primary: #111111;
    --text-secondary: #6b7280;
    --accent: #000000;
    --accent-hover: #333333;
    --accent-glow: transparent;
    --border-color: #e5e7eb;
    --glass-bg: #ffffff;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('hero_background.png');
    background-size: cover;
    background-position: center top;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* Utilities */
.hidden { display: none !important; }
.highlight { color: var(--accent); font-weight: 800; }
.highlight-text { 
    color: var(--text-primary);
}

/* Buttons */
button {
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-text {
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
}

.btn-text:hover {
    color: var(--text-secondary);
}

.btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-primary.full-width,
.btn-social.full-width {
    width: 100%;
    padding: 1rem;
}

.btn-social {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-social:hover {
    background: #f8fafc;
}

.social-icon {
    width: 20px;
    height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 253, 253, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-user-profile {
    position: relative;
    display: flex;
    align-items: center;
}

.avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.avatar-icon:hover {
    background: var(--bg-card-hover);
    border-color: #cbd5e1;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    z-index: 1000;
}

.dropdown-header {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.truncate-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.8rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger:hover {
    background: #fff1f2;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Hero Section */
.hero {
    padding: 6rem 5% 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.search-bar {
    display: flex;
    align-items: center;
    max-width: 650px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.search-bar .divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 0.5rem;
}

.custom-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.city-dropdown-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    padding: 0;
    outline: none;
    cursor: pointer;
    min-width: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.city-dropdown-menu {
    position: absolute;
    top: 150%;
    left: -1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 250px;
    z-index: 200;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.city-search-container {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.city-search-container input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-main);
}

.city-list {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.city-list li.city-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-primary);
}

.city-list li.city-item:hover {
    background: #f1f5f9;
}

.city-list li.group-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.8rem 1rem 0.2rem;
    pointer-events: none;
    font-weight: 700;
    letter-spacing: 1px;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0 1rem;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
}

.search-bar input:disabled,
.btn-search:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.btn-search {
    background: var(--accent);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-search:hover {
    background: var(--accent-hover);
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    min-width: 180px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sections General */
.how-it-works-section, .guidelines-section {
    padding: 3rem 5% 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.guidelines-section {
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem 2rem;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.step-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.step-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.rule-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.rule-card .rule-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.rule-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.rule-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.warning-card {
    border-left: 4px solid var(--danger);
}

/* Main Content & Feed */
.review-feed {
    padding: 2rem 5% 6rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.feed-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.filters {
    display: flex;
    gap: 1rem;
}

.filter {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.filter:hover {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.filter.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Review Cards */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    position: relative;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.review-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

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

.btn-link.danger:hover {
    color: var(--danger);
}


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

.location h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.granular-details {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.badge {
    background: rgba(108, 92, 231, 0.15);
    color: #a29bfe;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
}

.star {
    color: var(--warning);
}

.review-body {
    margin: 0.5rem 0;
}

.review-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    background: #f1f5f9;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

.tag.negative { color: var(--danger); background: #fef2f2; border: 1px solid #fecaca; }
.tag.positive { color: var(--success); background: #f0fdf4; border: 1px solid #bbf7d0; }

/* --- GATING SYSTEM --- */

.not-logged-in .sensitive-data {
    color: transparent;
    text-shadow: 0 0 15px rgba(255,255,255,0.7);
    user-select: none;
    pointer-events: none;
}

/* The actual review text on the cards needs heavy blurring */
.not-logged-in .review-card .review-body {
    filter: blur(6px);
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
}

.not-logged-in .review-card .granular-details .badge {
    filter: blur(4px);
    opacity: 0.6;
}

/* The inline sign-in button overlay on blurred reviews */
.sign-in-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sign-in-overlay:hover {
    background: var(--bg-card-hover);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-backdrop.hidden .modal {
    transform: translateY(20px);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-btn:hover {
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #111111;
}

.form-group input {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.form-group input:focus, .form-group textarea:focus, .modal-select:focus {
    border-color: var(--accent);
}

.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Add Review Modal specific */
.review-modal {
    max-width: 850px;
    width: 95%;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
}

.numbered-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.step-num {
    background: var(--text-primary);
    color: var(--bg-card);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.section-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}



/* Ensure Google Places Autocomplete displays OVER the modal */
.pac-container {
    z-index: 20000 !important;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group.half {
    flex: 1;
}

.form-group.third {
    flex: 1;
}

.character-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    font-weight: 500;
}

.character-counter.near-limit {
    color: #eab308;
}

.character-counter.at-limit {
    color: var(--danger);
}

/* Star Rating Layout */
.star-rating {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.star {
    font-size: 1.5rem;
    cursor: pointer;
    color: #e5e7eb; /* Empty grey star */
    transition: color 0.2s ease, transform 0.1s ease;
    user-select: none;
}

.star:hover {
    transform: scale(1.1);
}

.star.hovered, .star.active {
    color: #f59e0b; /* Bright golden star */
}

.form-group textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.modal-select {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.modal-select option {
    background: #ffffff;
    color: var(--text-primary);
}

.modal-custom-dropdown {
    position: relative;
    width: 100%;
}

.form-toggle-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    height: 3.5rem; /* Matches input sizes approximately */
}

.form-toggle-btn .chevron {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.modal-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-container {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #f9f9f9;
}

.modal-search-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    background: #ffffff;
}

.modal-search-input:focus {
    border-color: var(--accent);
}

.modal-options-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.modal-options-list li {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.modal-options-list li:hover {
    background: var(--bg-card);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.tag-option {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-weight: 500;
}

.tag-option:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.tag-option.selected {
    background: var(--text-primary);
    color: var(--bg-card);
    border-color: var(--text-primary);
}

.review-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-body);
}

.dashboard-actions {
    justify-content: space-between;
    align-items: center;
}

.vote-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.vote-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.vote-btn:hover {
    background: var(--bg-body);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.vote-btn.voted-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.vote-btn.voted-active .vote-count {
    color: #ffffff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.review-card {
    animation: fadeIn 0.5s ease backwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .hero { min-height: auto; padding: 6rem 1rem 3rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    
    .search-bar { 
        flex-direction: column; 
        border-radius: 16px; 
        padding: 1rem; 
        gap: 0.5rem;
    }
    .search-bar .divider { display: none; }
    .search-bar input { padding: 0.5rem 0; text-align: center; }
    .btn-search { border-radius: 8px; width: 100%; }

    .nav-links { display: none; } /* Hide on mobile for cleanliness */
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr; }
}
/* ============================
   Comments System
   ============================ */

.comments-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.2s ease-out;
}

.comment-bubble {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
}

.comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-right: 8px;
    flex-shrink: 0;
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    word-wrap: break-word;
}

.comment-textarea {
    width: 100%;
    min-height: 60px;
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    transition: var(--transition);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.add-comment-form {
    margin-top: 1rem;
}

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

/* ============================
   Granular Flat Filters
   ============================ */

.granular-filters {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    animation: fadeIn 0.3s ease-out;
}

.granular-filters .filter-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.granular-filters .filter-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.granular-filters input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.granular-filters input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

@media (max-width: 600px) {
    .granular-filters {
        flex-direction: column;
    }
}
