/* ============================================
   F18Zone - Hauptstylesheet
   Dating Community Platform
   Version: 3.0
   ============================================ */

/* ========== GLOBALE VARIABLEN ========== */
:root {
    --primary: #ff6b6b;
    --primary-dark: #ff4757;
    --primary-light: #ffa5a5;
    --secondary: #667eea;
    --secondary-dark: #5a67d8;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-xl: 0 10px 30px rgba(0,0,0,0.2);
    --radius: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --transition: all 0.3s ease;
}

/* ========== RESET & BASIS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.5;
}

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

/* ========== TYPOGRAPHIE ========== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: white;
}

.logo:hover {
    color: var(--primary-light);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    transition: var(--transition);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav a:hover,
.nav a.active {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--gray);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning);
    color: #333;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

/* ========== CARDS ========== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ========== ALERTS & MESSAGES ========== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

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

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info);
}

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-container {
    margin-top: 80px;
    padding: 30px 0;
    background: #f5f5f5;
    min-height: calc(100vh - 80px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary);
}

.online-card,
.visitors-card,
.stats-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.online-card h3,
.visitors-card h3,
.stats-card h3 {
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    display: inline-block;
}

/* Online Users */
.online-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}

.online-user a {
    text-decoration: none;
    color: #333;
    flex: 1;
}

.online-user a:hover {
    color: var(--primary);
}

.online-dot {
    width: 10px;
    height: 10px;
    background: #2ed573;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Visitor Items */
.visitor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}

.visitor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.welcome-card {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
}

.section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.section h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Member Grid */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.member-card {
    text-align: center;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.member-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.member-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.member-name a {
    color: #333;
    text-decoration: none;
}

.member-name a:hover {
    color: var(--primary);
}

.member-city {
    font-size: 11px;
    color: #999;
}

/* Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.album-card {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.album-cover {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

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

.album-cover .placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 32px;
    color: white;
}

.album-info {
    padding: 10px;
    text-align: center;
}

.album-title {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 3px;
}

.album-stats {
    font-size: 10px;
    color: #666;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.quick-link-btn {
    background: var(--light);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    transition: var(--transition);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-link-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ========== PROFILE PAGE ========== */
.profile-container {
    margin-top: 80px;
    padding: 40px 0;
    background: #f5f5f5;
    min-height: calc(100vh - 80px);
}

.profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

.profile-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.verified-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.profile-stat {
    text-align: center;
}

.profile-stat-number {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
}

.profile-stat-label {
    font-size: 12px;
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
    justify-content: center;
}

.profile-info {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 15px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    word-wrap: break-word;
}

.full-width {
    grid-column: span 2;
}

/* ========== CHAT PAGE ========== */
.chat-container {
    margin-top: 80px;
    height: calc(100vh - 80px);
    display: flex;
    background: white;
}

.chat-sidebar {
    width: 280px;
    background: var(--dark);
    color: white;
    overflow-y: auto;
}

.chat-room {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s;
    border-left: 3px solid transparent;
}

.chat-room:hover {
    background: rgba(255,255,255,0.1);
}

.chat-room.active {
    background: var(--primary);
    border-left-color: white;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 70%;
    word-wrap: break-word;
}

.message-mine {
    background: var(--primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.message-other {
    background: white;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 5px;
    box-shadow: var(--shadow);
}

.message-user {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 12px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 10px;
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--gray-light);
    border-radius: 30px;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--primary);
}

/* ========== PRIVATE MESSAGES ========== */
.pm-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 600px;
}

.pm-sidebar {
    background: #f8f9fa;
    border-right: 1px solid var(--gray-light);
}

.pm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
}

.pm-item:hover {
    background: var(--gray-light);
}

.pm-item.active {
    background: #fff3cd;
    border-left: 3px solid var(--warning);
}

.pm-item.unread {
    background: #e3f2fd;
}

.pm-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.pm-badge {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
}

.message-sent .message-bubble {
    background: var(--primary);
    color: white;
    border-top-right-radius: 5px;
}

.message-received .message-bubble {
    background: white;
    border-top-left-radius: 5px;
    box-shadow: var(--shadow);
}

.message-attachment img,
.message-attachment video {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
}

/* ========== FORUM ========== */
.forum-container {
    margin-top: 80px;
    padding: 30px 0;
}

.forum-category {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.category-header {
    background: var(--primary);
    color: white;
    padding: 15px 25px;
}

.topic-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

.topic-row:hover {
    background: var(--light);
}

.topic-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.topic-title a:hover {
    color: var(--primary);
}

/* ========== VIDEO SECTION ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.video-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.thumbnail-container {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.thumbnail-container img,
.thumbnail-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .play-icon {
    opacity: 1;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* ========== ADMIN PANEL ========== */
.admin-container {
    margin-top: 80px;
    padding: 30px 0;
    background: #f5f5f5;
    min-height: calc(100vh - 80px);
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: var(--radius);
    overflow-x: auto;
    display: block;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

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

.admin-table th {
    background: var(--dark);
    color: white;
    font-weight: 600;
}

.admin-table tr:hover {
    background: var(--light);
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.close:hover {
    color: #333;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
}

.pagination .current {
    background: var(--primary);
    color: white;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 40px;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 15px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: #888;
    text-align: center;
    padding: 30px;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
    transition: var(--transition);
}

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

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: #999; }

.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.ml-10 { margin-left: 10px; }
.mr-10 { margin-right: 10px; }

.hidden { display: none; }
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========== LOADING SPINNER ========== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .dashboard-grid,
    .profile-grid,
    .pm-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav {
        justify-content: center;
    }
    
    .nav a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .dashboard-grid,
    .profile-grid,
    .pm-wrapper {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .chat-sidebar {
        width: 200px;
    }
    
    .message {
        max-width: 85%;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .member-grid,
    .video-grid,
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .full-width {
        grid-column: span 1;
    }
    
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 10px;
        font-size: 24px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .member-grid,
    .video-grid,
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons a,
    .action-buttons button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .pm-item {
        flex-wrap: wrap;
    }
    
    .message-attachment img,
    .message-attachment video {
        max-width: 150px;
    }
}