* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #000;
    color: #fff;
}

/* AUTH PAGES */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #000;
}

.auth-container {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    border: 1px solid #333;
}

.auth-logo {
    color: #1d9bf0;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: #1d9bf0;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #000;
    padding: 20px;
    border-right: 1px solid #2f3336;
    overflow-y: auto;
}

.nav-logo {
    color: #1d9bf0;
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-left: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    margin-bottom: 8px;
    transition: background 0.2s;
    font-size: 1.1rem;
}

.nav-item:hover {
    background: #1a1a1a;
}

.nav-item .icon {
    margin-right: 15px;
    font-size: 1.4rem;
}

.nav-item.logout {
    color: #f4212e;
}

.btn-post-main {
    width: 100%;
    padding: 16px;
    background: #1d9bf0;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s;
}

.btn-post-main:hover {
    background: #1a8cd8;
}

/* MAIN CONTENT */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
}

.content-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

.feed {
    flex: 1;
    max-width: 600px;
    border-right: 1px solid #2f3336;
}

.feed-header {
    padding: 20px;
    border-bottom: 1px solid #2f3336;
    position: sticky;
    top: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.feed-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

/* POST FORM */
.post-form {
    padding: 20px;
    border-bottom: 1px solid #2f3336;
}

.post-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    resize: vertical;
    min-height: 100px;
    outline: none;
    font-family: inherit;
}

.post-form textarea::placeholder {
    color: #71767b;
}

.post-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2f3336;
}

.upload-btn {
    color: #1d9bf0;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.2s;
}

.upload-btn:hover {
    background: #0a171f;
}

/* POSTS */
.post {
    padding: 16px 20px;
    border-bottom: 1px solid #2f3336;
    transition: background 0.2s;
}

.post:hover {
    background: #0a0a0a;
}

.post-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.post-user {
    flex: 1;
}

.post-name {
    font-weight: 700;
    color: #fff;
    margin-right: 4px;
}

.post-username {
    color: #71767b;
    font-size: 0.95rem;
}

.post-content {
    margin: 12px 0 12px 60px;
    line-height: 1.5;
    font-size: 1rem;
    color: #fff;
}

.post-content .hashtag {
    color: #1d9bf0;
    text-decoration: none;
}

.post-content .mention {
    color: #1d9bf0;
    text-decoration: none;
}

.post-image {
    width: 90%; /* 100% - 25% Verkleinerung */
    border-radius: 16px;
    margin: 12px 0 12px 60px;
    max-height: 500px;
    object-fit: cover;
}


.post-actions {
    display: flex;
    gap: 60px;
    margin: 12px 0 0 60px;
}

.post-action {
    background: transparent;
    border: none;
    color: #71767b;
    cursor: pointer;
    padding: 8px;
    border-radius: 20px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.post-action:hover {
    background: #0a171f;
    color: #1d9bf0;
}

/* BUTTONS */
.btn {
    background: #1d9bf0;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.btn:hover {
    background: #1a8cd8;
}

.btn-block {
    width: 100%;
    padding: 14px;
}

.btn-secondary {
    background: #16181c;
    color: #fff;
    border: 1px solid #333;
}

.btn-secondary:hover {
    background: #1a1a1a;
}

.btn-danger {
    background: #f4212e;
}

.btn-danger:hover {
    background: #d01829;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-delete {
    background: transparent;
    border: none;
    color: #f4212e;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 20px;
    transition: background 0.2s;
}

.btn-delete:hover {
    background: rgba(244, 33, 46, 0.1);
}

/* SIDEBAR RIGHT */
.sidebar-right {
    width: 500px;
    padding: 20px;
}

.admin-ad-box {
    background: #16181c;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid #2f3336;
}

.admin-ad-box h4 {
    color: #1d9bf0;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* USER ADS */
.user-ads-container {
    margin: 20px;
    padding: 16px;
    background: #16181c;
    border-radius: 16px;
    border: 1px solid #2f3336;
}

.user-ads-row {
    display: grid;
    grid-template-columns: 234px 234px;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
}

.user-ad-box {
    width: 234px;
    min-height: 60px;
    background: #000;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #2f3336;
}

.user-ad-box h4 {
    font-size: 0.75rem;
    margin-bottom: 4px;
    color: #71767b;
}

.ad-label {
    color: #71767b;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #2f3336;
}

.pagination span {
    color: #71767b;
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #71767b;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control, input:not([type="file"]), textarea, select {
    width: 100%;
    padding: 12px 16px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #1d9bf0;
}

/* MESSAGES */
.message {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid;
}

.message.success {
    background: rgba(0, 186, 124, 0.1);
    color: #00ba7c;
    border-color: #00ba7c;
}

.message.error {
    background: rgba(244, 33, 46, 0.1);
    color: #f4212e;
    border-color: #f4212e;
}

/* CARDS */
.card {
    background: #16181c;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid #2f3336;
}

.card h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

/* PROFILE */
.profile-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.profile-info {
    padding: 0 20px 20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #000;
    margin-top: -60px;
    object-fit: cover;
    background: #1a1a1a;
}

.profile-username {
    color: #71767b;
    font-size: 0.95rem;
}

.profile-bio {
    margin: 16px 0;
    line-height: 1.5;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0;
    color: #71767b;
    font-size: 0.95rem;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.profile-stats span {
    color: #71767b;
}

.profile-stats strong {
    color: #fff;
}

/* ADMIN */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: #16181c;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #2f3336;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #1d9bf0;
    margin-bottom: 8px;
}

.stat-card p {
    color: #71767b;
}

.admin-section {
    margin-bottom: 40px;
}

.admin-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #16181c;
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #2f3336;
}

.admin-table th {
    color: #71767b;
    font-weight: 600;
    font-size: 0.9rem;
}

.ad-admin-item {
    background: #16181c;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #2f3336;
}

.ad-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ad-preview {
    background: #000;
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
    border: 1px solid #2f3336;
    max-height: 200px;
    overflow: auto;
}

.ad-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    color: #71767b;
    font-size: 0.9rem;
}

/* BADGES */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.badge-active {
    background: rgba(0, 186, 124, 0.2);
    color: #00ba7c;
}

.badge-rejected {
    background: rgba(244, 33, 46, 0.2);
    color: #f4212e;
}

.badge-paid {
    background: rgba(0, 186, 124, 0.2);
    color: #00ba7c;
}

.badge-unpaid {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

/* HELPERS */
.text-muted {
    color: #71767b;
}

.info-box {
    background: #16181c;
    padding: 14px;
    border-radius: 12px;
    margin: 12px 0;
    color: #71767b;
    font-size: 0.9rem;
    border: 1px solid #2f3336;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    .sidebar .nav-item span:not(.icon) {
        display: none;
    }
    .nav-logo {
        font-size: 1.5rem;
    }
    .main-content {
        margin-left: 70px;
    }
    .sidebar-right {
        display: none;
    }
    .user-ads-row {
        grid-template-columns: 1fr;
    }
    .user-ad-box {
        width: 100%;
    }
}
