/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #121212;
    color: #e0e0e0;
    padding-bottom: 70px;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================
   DARK THEME
   ============================================ */
.dark-theme {
    background: #121212;
    color: #e0e0e0;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: #1e1e1e;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.user-name {
    font-weight: bold;
    font-size: 15px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: #888;
}

.user-xu {
    font-size: 12px;
    color: #ffd700;
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.notification {
    position: relative;
    font-size: 22px;
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.notification:hover {
    color: #ffd700;
}

.notification.has-message {
    color: #ffd700;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.notification .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
}

/* ============================================
   ROLE BADGES
   ============================================ */
.role-admin {
    color: #ff4444;
}

.role-smod {
    color: #ff9800;
}

.role-member {
    color: #888;
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    display: flex;
    justify-content: space-around;
    padding: 6px 0 env(safe-area-inset-bottom);
    border-top: 1px solid #333;
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    text-decoration: none;
    font-size: 10px;
    padding: 4px 8px;
    transition: color 0.3s;
    position: relative;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
    transition: transform 0.3s;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.nav-item.active {
    color: #ffd700;
}

.nav-item.active i {
    transform: scale(1.05);
}

.nav-item:hover {
    color: #ffd700;
}

.nav-item .badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(15px);
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 1px 5px;
    font-size: 9px;
    min-width: 16px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #1a1a1a;
}

/* ============================================
   AUTH PAGES (Login/Register)
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #121212, #1a1a1a);
    max-width: 600px;
    margin: 0 auto;
}

.auth-box {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 1px solid #2a2a2a;
}

.auth-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}

.auth-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-box .form-group {
    margin-bottom: 18px;
}

.auth-box .form-group label {
    display: block;
    margin-bottom: 6px;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
}

.auth-box .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-box .form-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.auth-box .btn {
    width: 100%;
    padding: 13px;
    background: #ffd700;
    color: #121212;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    margin-top: 5px;
}

.auth-box .btn:hover {
    background: #f5c800;
}

.auth-box .btn:active {
    transform: scale(0.98);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 14px;
}

.auth-link a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #ff4444;
    color: white;
}

.alert-success {
    background: #4CAF50;
    color: white;
}

/* ============================================
   HOME - GLOBAL CHAT
   ============================================ */
.chat-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 4px 7px;
    height: calc(100vh - 137px);
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px 10px 5px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.header-left-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left-section h2 {
    color: #ffd700;
    font-size: 18px;
}

.header-left-section #onlineCount {
    color: #666;
    font-size: 12px;
}

.header-left-section #onlineCount #memberCount {
    color: #4CAF50;
    font-weight: bold;
}

.header-right-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 8px;
    transition: color 0.3s, background 0.3s;
    position: relative;
}

.admin-btn:hover {
    color: #ffd700;
    background: #2a2a2a;
}

.admin-btn .badge {
    position: absolute;
  
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 1px 5px;
    font-size: 9px;
    min-width: 16px;
    text-align: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Chat message styles */
.chat-message {
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.mine {
    align-items: flex-end;
}

.chat-message.other {
    align-items: flex-start;
}

.message-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 85%;
}

.chat-message.mine .message-wrapper {
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.message-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    word-wrap: break-word;
    max-width: 100%;
    position: relative;
    min-width: 40px;
}

.bubble-other {
    background: #1e1e1e;
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
}

.bubble-mine {
    background: #ffd700;
    color: #121212;
    border-bottom-right-radius: 4px;
}

.msg-sender {
    font-weight: bold;
    font-size: 12px;
    color: #ffd700;
    margin-bottom: 3px;
}

.bubble-mine .msg-sender {
    color: #121212;
}

.msg-content {
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.msg-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.msg-time {
    font-size: 10px;
    color: #888;
    margin-top: 3px;
    text-align: right;
}

.bubble-mine .msg-time {
    color: #666;
}

/* Chat Input - Fixed Bottom */
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #1a1a1a;
    border-radius: 25px;
    border: 1px solid #333;
    align-items: center;
    flex-shrink: 0;
    margin-top: auto;
}

.chat-input-area input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    background: #2a2a2a;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 15px;
    min-width: 0;
}

.chat-input-area input[type="text"]:focus {
    outline: none;
}

.chat-input-area input[type="text"]::placeholder {
    color: #666;
}

.chat-input-area button {
    padding: 0;
    background: #ffd700;
    color: #121212;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-input-area button:hover {
    background: #f5c800;
}

.chat-input-area button:active {
    transform: scale(0.95);
}

.chat-input-area button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-input-area .file-btn {
    background: transparent;
    color: #888;
    width: 44px;
    height: 44px;
    padding: 0;
}

.chat-input-area .file-btn:hover {
    background: #2a2a2a;
    color: #ffd700;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification-area {
    padding: 10px 5px;
    margin-bottom: 5px;
}

.notification-item {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border: 1px solid #2a2a2a;
    position: relative;
    animation: slideIn 0.3s ease;
}

.notification-item .notif-content {
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
    padding-right: 70px;
}

.notification-item .notif-time {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.notification-item .notif-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.notification-item .notif-actions .notif-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
    font-size: 14px;
}

.notification-item .notif-actions .notif-btn:hover {
    background: #2a2a2a;
}

.notification-item .notif-actions .notif-btn.edit:hover {
    color: #ffd700;
}

.notification-item .notif-actions .notif-btn.delete:hover {
    color: #ff4444;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #1e1e1e;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #333;
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 700px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #ffd700;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #ff4444;
}

.modal-body {
    padding: 20px;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
}

.modal-body .form-group .form-control {
    width: 100%;
    padding: 10px 14px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.modal-body .form-group .form-control:focus {
    outline: none;
    border-color: #ffd700;
}

.modal-body .form-group textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.modal-body .form-group select.form-control {
    cursor: pointer;
}

.modal-body .form-group select.form-control option {
    background: #1e1e1e;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}

.modal-footer .btn-primary {
    background: #ffd700;
    color: #121212;
}

.modal-footer .btn-primary:hover {
    background: #f5c800;
}

.modal-footer .btn-secondary {
    background: #2a2a2a;
    color: #888;
}

.modal-footer .btn-secondary:hover {
    background: #333;
}

/* ============================================
   NOTIFICATION LIST
   ============================================ */
.notification-list-item {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #2a2a2a;
}

.notification-list-item.expired {
    opacity: 0.5;
}

.notification-list-item .notif-content {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.notification-list-item .notif-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.notification-list-item .notif-meta .notif-expired {
    color: #ff4444;
    font-weight: bold;
}

.notification-list-item .notif-actions {
    margin-top: 8px;
    display: flex;
    gap: 5px;
}

.notification-list-item .notif-actions .notif-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.notification-list-item .notif-actions .notif-btn:hover {
    background: #2a2a2a;
}

.notification-list-item .notif-actions .notif-btn.edit:hover {
    color: #ffd700;
}

.notification-list-item .notif-actions .notif-btn.delete:hover {
    color: #ff4444;
}

/* ============================================
   WALL - POSTS
   ============================================ */
.wall-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
}

.wall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.wall-header h2 {
    color: #ffd700;
    font-size: 20px;
    margin: 0;
}

.wall-header .user-xu-display {
    color: #ffd700;
    font-size: 14px;
    background: rgba(255, 215, 0, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Post form */
.post-form {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #2a2a2a;
}

.post-form textarea {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.post-form textarea:focus {
    outline: none;
    border-color: #ffd700;
}

.post-form .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.post-form .form-actions .file-input-wrapper {
    position: relative;
    display: inline-block;
}

.post-form .form-actions .file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.post-form .form-actions .file-input-wrapper label {
    display: inline-block;
    padding: 8px 15px;
    background: #2a2a2a;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    border: 1px solid #333;
}

.post-form .form-actions .file-input-wrapper label:hover {
    background: #333;
    color: #ffd700;
    border-color: #ffd700;
}

.post-form .form-actions .file-info {
    color: #666;
    font-size: 12px;
    flex: 1;
    min-width: 100px;
}

.post-form .form-actions .btn-submit {
    padding: 8px 20px;
    background: #ffd700;
    color: #121212;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.post-form .form-actions .btn-submit:hover {
    background: #f5c800;
    transform: scale(1.02);
}

.post-form .form-actions .btn-submit:active {
    transform: scale(0.98);
}

.post-form .form-actions .btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.post-form .error-message {
    color: #ff4444;
    margin-top: 10px;
    font-size: 14px;
    padding: 8px 12px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

/* Post card */
.post-card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s;
}

.post-card:hover {
    border-color: #333;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
}

.post-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #333;
}

.post-author {
    font-weight: bold;
    color: #fff;
    font-size: 15px;
    flex: 1;
}

.post-time {
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.post-delete-btn {
    background: rgba(255, 68, 68, 0.1);
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    opacity: 0;
    flex-shrink: 0;
}

.post-card:hover .post-delete-btn {
    opacity: 1;
}

.post-delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.post-content {
    margin: 10px 0;
    line-height: 1.6;
    word-wrap: break-word;
    font-size: 14px;
    color: #e0e0e0;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin: 10px 0;
}

.post-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.post-images img:hover {
    transform: scale(1.02);
}

.post-images.single {
    grid-template-columns: 1fr;
}

.post-images.single img {
    max-height: 400px;
    height: auto;
}

.post-actions {
    display: flex;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid #333;
    margin-top: 5px;
}

.post-actions button,
.post-actions a {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.post-actions button:hover,
.post-actions a:hover {
    background: #2a2a2a;
    color: #ffd700;
}

.post-actions button:active,
.post-actions a:active {
    transform: scale(0.95);
}

.post-actions .like-btn {
    color: #888;
}

.post-actions .like-btn.liked {
    color: #ff4444;
}

.post-actions .like-btn.liked i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.post-actions .comment-btn {
    color: #888;
}

/* Comments */
.comment-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.empty-comments {
    color: #666;
    font-size: 13px;
    padding: 8px 0;
    text-align: center;
}

.comment {
    padding: 6px 0;
    font-size: 14px;
    word-wrap: break-word;
    border-bottom: 1px solid #2a2a2a;
}

.comment:last-child {
    border-bottom: none;
}

.comment .comment-author {
    font-weight: bold;
    color: #ffd700;
}

.comment .comment-time {
    font-size: 11px;
    color: #666;
    float: right;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.comment-form input {
    flex: 1;
    padding: 8px 15px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.comment-form input:focus {
    outline: none;
    border-color: #ffd700;
}

.comment-form button {
    padding: 8px 18px;
    background: #ffd700;
    color: #121212;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.comment-form button:hover {
    background: #f5c800;
    transform: scale(1.02);
}

.comment-form button:active {
    transform: scale(0.98);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.empty-state .icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.empty-state h3 {
    color: #888;
    font-size: 18px;
    margin-bottom: 5px;
}

.empty-state p {
    font-size: 14px;
    color: #666;
}

/* Modal delete */
.modal-small {
    max-width: 400px;
}

.modal .btn-danger {
    background: #ff4444;
    color: white;
}

.modal .btn-danger:hover {
    background: #cc0000;
}

.modal .btn-secondary {
    background: #2a2a2a;
    color: #888;
}

.modal .btn-secondary:hover {
    background: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .post-images {
        grid-template-columns: 1fr;
    }
    
    .post-images img {
        height: 250px;
    }
    
    .post-form .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .post-form .form-actions .file-input-wrapper {
        width: 100%;
    }
    
    .post-form .form-actions .file-input-wrapper label {
        width: 100%;
        text-align: center;
    }
    
    .post-form .form-actions .file-info {
        text-align: center;
    }
    
    .post-form .form-actions .btn-submit {
        width: 100%;
    }
    
    .post-header {
        flex-wrap: wrap;
    }
    
    .post-delete-btn {
        opacity: 1;
    }
    
    .wall-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .post-images img {
        height: 200px;
    }
    
    .post-actions {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .post-actions button,
    .post-actions a {
        font-size: 13px;
        padding: 5px 10px;
    }
}

@media (min-width: 601px) {
    .post-delete-btn {
        opacity: 0;
    }
}


/* ============================================
   POST IMAGES GRID
   ============================================ */
.post-images {
    display: grid;
    gap: 4px;
    margin: 10px 0;
}

.post-images.grid-1 {
    grid-template-columns: 1fr;
}

.post-images.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.post-images.grid-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.post-images.grid-3 .image-item:first-child {
    grid-row: span 2;
}

.post-images.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.post-images .image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #1a1a1a;
}

.post-images .image-item img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-images .image-item:hover img {
    transform: scale(1.05);
}

.post-images .image-item .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.post-images .image-item:first-child {
    aspect-ratio: auto;
}

.post-images.grid-3 .image-item:first-child {
    aspect-ratio: 1;
}

/* ============================================
   IMAGE VIEWER MODAL
   ============================================ */
.image-viewer {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(8px);
    z-index: 10000;
}

.image-viewer-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-viewer-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.image-viewer-close:hover {
    background: rgba(255, 68, 68, 0.3);
    transform: rotate(90deg);
}

.image-viewer-download {
    position: fixed;
    top: 20px;
    right: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.image-viewer-download:hover {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.image-viewer-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.image-viewer-prev,
.image-viewer-next {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.image-viewer-prev:hover,
.image-viewer-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-viewer-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    max-height: 80vh;
}

.image-viewer-main img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-viewer-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* ============================================
   POST ACTIONS
   ============================================ */
.post-actions {
    display: flex;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid #333;
    margin-top: 5px;
}

.post-actions button,
.post-actions a {
    background: dimgrey;
    border: none;
    color: #1a1a2e;
    cursor: pointer;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.post-actions button:hover,
.post-actions a:hover {
    background: #2a2a2a;
    color: #ffd700;
}

.post-actions button:active,
.post-actions a:active {
    transform: scale(0.95);
}

.post-actions .like-btn {
    color: #888;
}

.post-actions .like-btn.liked {
    color: #ff4444;
}

.post-actions .like-btn.liked i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.post-actions .comment-btn {
    color: #888;
}

.post-actions .comment-count,
.post-actions .like-count {
    font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .post-images.grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    
    .post-images.grid-3 .image-item:first-child {
        grid-row: span 1;
    }
    
    .image-viewer-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 45px;
        height: 45px;
    }
    
    .image-viewer-download {
        top: 10px;
        right: 65px;
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
    
    .image-viewer-prev,
    .image-viewer-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .image-viewer-main {
        min-height: 30vh;
    }
    
    .image-viewer-main img {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .post-images {
        gap: 3px;
    }
    
    .post-images .image-item {
        border-radius: 4px;
    }
    
    .image-viewer-close {
        top: 5px;
        right: 5px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
    
    .image-viewer-download {
        top: 5px;
        right: 50px;
        font-size: 16px;
        width: 35px;
        height: 35px;
    }
    
    .image-viewer-prev,
    .image-viewer-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .image-viewer-nav {
        gap: 10px;
    }
}

/* ============================================
   MESSAGES
   ============================================ */
.messages-container {
    max-width: 600px;
    margin: 0 auto;
    height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
}

.messages-header {
    padding: 10px 15px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.messages-header .back-btn {
    display: none;
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
}

.messages-header .back-btn:hover {
    color: #ffd700;
}

.messages-header .user-info {
    flex: 1;
}

.messages-header .user-info .name {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.messages-header .user-info .status {
    font-size: 12px;
    color: #4CAF50;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* Message items */
.message-item {
    padding: 10px 14px;
    margin: 4px 0;
    border-radius: 16px;
    max-width: 80%;
    word-wrap: break-word;
    animation: slideIn 0.3s ease;
    position: relative;
}

.message-item.sent {
    background: #ffd700;
    color: #121212;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-item.received {
    background: #2a2a2a;
    color: #e0e0e0;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message-item .msg-sender-name {
    font-size: 12px;
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
}

.message-item.sent .msg-sender-name {
    color: #121212;
}

.message-item.received .msg-sender-name {
    color: #ffd700;
}

.message-item .msg-text {
    font-size: 14px;
    line-height: 1.5;
}

.message-item .msg-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 300px;
    object-fit: cover;
}

.message-item .msg-time {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
    display: block;
    text-align: right;
}

.message-item.sent .msg-time {
    color: #666;
}

/* Contacts list */
.contacts-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.contacts-list .search-box {
    margin-bottom: 15px;
}

.contacts-list .search-box input {
    width: 100%;
    padding: 10px 15px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
}

.contacts-list .search-box input:focus {
    outline: none;
    border-color: #ffd700;
}

.contacts-list .search-results {
    background: #1e1e1e;
    border-radius: 10px;
    margin-top: 5px;
    display: none;
}

.contacts-list .search-results.active {
    display: block;
}

.contacts-list .section-title {
    color: #888;
    font-size: 13px;
    margin: 15px 0 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #333;
    text-decoration: none;
    color: #e0e0e0;
    transition: background 0.3s;
    cursor: pointer;
}

.contact-item:hover {
    background: #2a2a2a;
}

.contact-item:active {
    background: #333;
}

.contact-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-item .info {
    flex: 1;
    min-width: 0;
}

.contact-item .info .name {
    font-weight: bold;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item .info .last-msg {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item .info .time {
    font-size: 11px;
    color: #666;
    float: right;
}

.contact-item .unread-badge {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.empty-state {
    text-align: center;
    color: #666;
    padding: 50px 20px;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state h3 {
    color: #888;
    margin-bottom: 5px;
}

.empty-state p {
    font-size: 13px;
}

/* ============================================
   PROFILE
   ============================================ */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffd700;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.profile-avatar:hover {
    transform: scale(1.02);
}

.profile-header h2 {
    color: #fff;
    font-size: 22px;
}

.profile-header .role {
    color: #888;
    font-size: 14px;
}

.profile-header .xu {
    margin-top: 8px;
    color: #ffd700;
    font-size: 16px;
}

.profile-header .xu i {
    margin-right: 5px;
}

.profile-section {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #2a2a2a;
}

.profile-section .section-title {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.profile-section .form-group {
    margin-bottom: 15px;
}

.profile-section .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
}

.profile-section .form-group input {
    width: 100%;
    padding: 10px 14px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.profile-section .form-group input:focus {
    outline: none;
    border-color: #ffd700;
}

.profile-section .form-group input[type="file"] {
    padding: 8px;
    background: transparent;
}

.profile-section .btn {
    padding: 10px 20px;
    background: #ffd700;
    color: #121212;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}

.profile-section .btn:hover {
    background: #f5c800;
}

.profile-section .btn-danger {
    background: #ff4444;
    color: white;
}

.profile-section .btn-danger:hover {
    background: #cc0000;
}

.profile-section .btn-block {
    width: 100%;
}

/* ============================================
   ADMIN PAGE
   ============================================ */
.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.user-item:last-child {
    border-bottom: none;
}

.user-item .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-item .user-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.user-item .user-info .name {
    color: #fff;
    font-weight: 500;
}

.user-item .user-info .username {
    color: #666;
    font-size: 12px;
}

.user-item .user-role-select {
    padding: 5px 10px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.user-item .user-role-select:focus {
    outline: none;
    border-color: #ffd700;
}

/* ============================================
   ENTERTAINMENT
   ============================================ */
.entertainment-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.entertainment-container .coming-soon {
    font-size: 64px;
    margin: 30px 0 20px;
}

.entertainment-container h2 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 24px;
}

.entertainment-container .description {
    color: #888;
    line-height: 1.8;
    font-size: 14px;
}

.entertainment-container .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.entertainment-container .feature-item {
    background: #1e1e1e;
    padding: 20px 15px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s, border-color 0.3s;
}

.entertainment-container .feature-item:hover {
    transform: translateY(-2px);
    border-color: #ffd700;
}

.entertainment-container .feature-item .icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.entertainment-container .feature-item .label {
    font-size: 12px;
    color: #888;
}

.entertainment-container .feature-item .status {
    font-size: 10px;
    color: #666;
    margin-top: 3px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .post-images {
        grid-template-columns: 1fr;
    }
    
    .post-images img {
        height: 250px;
    }
    
    .message-item {
        max-width: 90%;
    }
    
    .message-wrapper {
        max-width: 95%;
    }
    
    .auth-box {
        padding: 20px;
    }
    
    .chat-input-area {
        padding: 8px 10px;
    }
    
    .chat-input-area input[type="text"] {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .chat-input-area button {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .bottom-nav {
        padding: 4px 0;
    }
    
    .nav-item i {
        font-size: 20px;
    }
    
    .nav-item span {
        font-size: 9px;
    }
    
    .header {
        padding: 8px 12px;
    }
    
    .avatar-small {
        width: 35px;
        height: 35px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .entertainment-container .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-large {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .post-form .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .post-form .form-actions .file-input-wrapper {
        width: 100%;
    }
    
    .post-form .form-actions .file-input-wrapper label {
        width: 100%;
        text-align: center;
    }
    
    .message-item {
        max-width: 95%;
    }
    
    .message-wrapper {
        max-width: 100%;
    }
    
    .msg-avatar {
        width: 28px;
        height: 28px;
    }
    
    .entertainment-container .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .header-left-section h2 {
        font-size: 15px;
    }
    
    .header-left-section #onlineCount {
        font-size: 10px;
    }
    
    .notification-item .notif-content {
        padding-right: 50px;
        font-size: 13px;
    }
}

@media (min-width: 601px) {
    body {
        border-left: 1px solid #333;
        border-right: 1px solid #333;
        min-height: 100vh;
    }
    
    .header {
        border-left: 1px solid #333;
        border-right: 1px solid #333;
    }
    
    .bottom-nav {
        border-left: 1px solid #333;
        border-right: 1px solid #333;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-muted {
    color: #888;
}

.text-gold {
    color: #ffd700;
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    padding: 12px 20px;
    border-radius: 10px;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 99999;
    animation: slideUp 0.3s ease;
    border: 1px solid #333;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-success {
    background: #2e7d32;
    border-color: #4CAF50;
}

.toast-error {
    background: #c62828;
    border-color: #ff4444;
}

.toast-info {
    background: #1a237e;
    border-color: #ffd700;
}
/* ============================================
   CHAT MESSAGE WITH DELETE BUTTON
   ============================================ */
.msg-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3px;
    gap: 8px;
}

.msg-delete-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #666;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    transition: all 0.3s;
    opacity: 0;
}

.chat-message:hover .msg-delete-btn {
    opacity: 1;
}

.msg-delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.bubble-mine .msg-delete-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #cc0000;
}

/* Chat message animation */
.chat-message {
    animation: slideIn 0.3s ease;
    transition: opacity 0.3s;
}

.chat-message.deleting {
    opacity: 0.3;
    pointer-events: none;
}

/* Avatar fallback */
.msg-avatar[src=""] {
    display: none;
}

/* ============================================
   NOTIFICATION ITEMS
   ============================================ */
.notification-item {
    background: linear-gradient(135deg, #1a1a2e, #1e1e3f);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    animation: slideIn 0.4s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.notification-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.notification-item .notification-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.notification-item .notification-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-item .notification-text {
    font-size: 14px;
    line-height: 1.6;
    color: #e8e8e8;
    word-break: break-word;
    flex: 1;
}

.notification-item .notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 28px;
    flex-wrap: wrap;
    gap: 5px;
}

.notification-item .notification-time {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-item .notification-actions {
    display: flex;
    gap: 4px;
}

.notification-item .notification-actions .notif-btn {
    background: rgba(255,255,255,0.05);
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 12px;
}

.notification-item .notification-actions .notif-btn:hover {
    background: rgba(255,255,255,0.1);
}

.notification-item .notification-actions .notif-btn.edit:hover {
    color: #ffd700;
}

.notification-item .notification-actions .notif-btn.delete:hover {
    color: #ff4444;
}

/* Toast animation */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    padding: 12px 24px;
    border-radius: 10px;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 99999;
    animation: slideUp 0.3s ease;
    border: 1px solid #333;
    font-weight: 500;
}

.toast-success {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    border-color: #4CAF50;
}

.toast-error {
    background: linear-gradient(135deg, #b71c1c, #c62828);
    border-color: #ff4444;
}

.toast-info {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    border-color: #2196F3;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}