:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --gold: #d4af37;
    --gold-hover: #f1c40f;
    --red: #c0392b;
    --red-hover: #e74c3c;
    --input-bg: #2c2c2c;
    --border-color: #333;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--gold-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: var(--bg-card);
    border-bottom: 2px solid var(--gold);
    padding: 15px 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* User Actions */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-gold {
    background: var(--gold);
    color: #000;
}

.btn-gold:hover {
    background: var(--gold-hover);
}

.btn-outline {
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: #000;
}

/* Ticker */
.ticker-wrap {
    background: #000;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid #222;
    padding: 12px 0;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    /* Ensure container fits */
}

.ticker-wrap:hover .ticker-scroll {
    animation-play-state: paused;
}

.ticker {
    display: flex;
    width: max-content;
}

.ticker-scroll {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    animation: ticker-loop 50s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 4rem;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ticker-item:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.ticker-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.ticker-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    font-size: 24px;
}

.ticker-city {
    color: var(--gold);
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.ticker-name {
    font-weight: 700;
}

@keyframes ticker-loop {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .ticker-wrap {
        padding: 10px 0;
    }

    .ticker-item {
        padding: 0 2rem;
        font-size: 16px;
        gap: 10px;
    }

    .ticker-avatar,
    .ticker-avatar-placeholder {
        width: 48px;
        height: 48px;
    }

    /* Header Mobile alignment */
    header {
        padding: 15px 0;
    }

    .nav-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .logo {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .main-nav ul {
        justify-content: center;
        gap: 15px;
    }

    .user-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding-top: 5px;
    }

    .user-actions .btn {
        width: 100%;
        text-align: center;
        padding: 12px 5px;
        font-size: 13px;
        margin: 0 !important;
    }
}

/* Hero / City Selection */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at center, #2a2a2a 0%, #121212 100%);
}

.hero h1 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.city-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.city-card {
    background: var(--bg-card);
    padding: 20px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 18px;
    transition: transform 0.2s, border-color 0.2s;
}

.city-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

/* Forms */
.auth-box {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Premium Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #bbb;
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: #252525;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--gold);
    background: #2a2a2a;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Custom Checkboxes & Radios */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Dashboard Grids */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.premium-card {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.premium-card h3 {
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

/* Service Items */
.service-item {
    background: #252525;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    transition: border-color 0.3s;
}

.service-item:hover {
    border-color: #555;
}

.service-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.service-item span {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
}

.service-item input[type="number"] {
    background: #1a1a1a !important;
    border: 1px solid #444;
    color: #fff !important;
    font-size: 14px;
    padding: 8px;
    margin-top: 5px;
}

.service-item input[type="number"]:focus {
    border-color: var(--gold);
}

/* Photo Upload */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.photo-item {
    aspect-ratio: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-add-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #252525;
    color: #aaa;
    border: 2px dashed #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 1;
}

.photo-add-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: #2a2a2a;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    /* Header Mobile overhaul */
    header {
        padding: 10px 0;
    }

    .nav-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .logo {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .main-nav ul {
        gap: 15px;
    }

    .main-nav a {
        font-size: 14px;
        padding: 5px 0;
    }

    .user-actions {
        display: flex;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    .user-actions .btn {
        flex: 1;
        padding: 10px 5px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Catalog Mobile Layout */
    .catalog-container {
        flex-direction: column !important;
        gap: 20px !important;
    }

    aside {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Grid Adjustments */
    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 10px !important;
    }

    .profile-card a div[style*="height: 280px"] {
        height: 200px !important;
    }

    .profile-card h3 {
        font-size: 16px !important;
    }

    /* Dashboard grids */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .premium-card {
        padding: 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .city-grid {
        gap: 8px;
    }

    .city-card {
        padding: 15px 25px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
}