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

:root {
    --primary: #00ffff;
    --primary-dark: #00cccc;
    --secondary: #9b59b6;
    --secondary-dark: #8e44ad;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --border: #2a2a2a;
    --text: #e5e5e5;
    --text-muted: #888;
    --danger: #ff4d4d;
    --success: #00ff9d;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.logo span {
    color: #fff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

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

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

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0a0a0a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #ff3333;
}

/* Hero */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 80px 0;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.box-glow {
    position: relative;
}

.box-glow::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
    z-index: -1;
    border-radius: 22px;
    opacity: 0.3;
    filter: blur(10px);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
}

.card h2, .card h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2 i, .card h3 i {
    color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Boxes */
.login-box,
.register-box {
    max-width: 500px;
    margin: 60px auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
}

.login-box h1,
.register-box h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-box .sub,
.register-box .sub {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Dashboard */
.dashboard-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 24px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
}

/* Alerts */
.alert {
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(0, 255, 157, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-info {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* Row/Col */
.row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.col {
    flex: 1;
    min-width: 200px;
}

/* Image Preview */
.image-preview {
    max-width: 150px;
    margin-top: 12px;
    border-radius: 12px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* User Page */
.banner {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-section {
    max-width: 800px;
    margin: -80px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.profile-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 28px;
    text-align: center;
    border: 1px solid var(--border);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    margin: -88px auto 16px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-handle {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.user-content {
    max-width: 800px;
    margin: 40px auto 60px;
    padding: 0 24px;
}

.module {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 24px;
}

.module h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module h3 i {
    color: var(--primary);
}

/* Bike Check */
.bike-check {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.bike-image {
    flex: 1;
    min-width: 150px;
    background: #1a1a1a;
    border-radius: 20px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bike-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bike-specs {
    flex: 2;
}

.spec-list {
    list-style: none;
    margin: 12px 0;
}

.spec-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.vote-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0a0a0a;
    padding: 8px 20px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

/* Flohmarkt */
.flohmarkt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.2s;
}

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

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--bg-card);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .features {
        grid-template-columns: 1fr;
        padding: 40px 16px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-split {
        flex-direction: column;
        padding: 40px 16px;
        text-align: left;
    }
    
    .hero-visual {
        justify-content: center;
        width: 100%;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .banner {
        height: 180px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        margin-top: -68px;
    }
    
    .profile-name {
        font-size: 1.4rem;
    }
    
    .module {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}