* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0A0E27;
    --bg-secondary: #1A1F3A;
    --text: #FAFAFA;
    --text-secondary: #B0B8D4;
    --primary: #5B9EFF;
    --primary-dark: #4A8FEE;
    --accent: #FF6B6B;
    --success: #51CF66;
    --warning: #FFA94D;
    --danger: #FF6B6B;
    --card-bg: rgba(91, 158, 255, 0.08);
    --card-border: rgba(91, 158, 255, 0.15);
    --divider: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(14, 14, 14, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    gap: 2rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: 0.3s;
}

/* hamburger open state (animated cross) */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* User Menu Button */
.user-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #4a7fd4 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    text-transform: uppercase;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}
.user-menu-btn.visible {
    display: flex;
}
.user-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(91, 158, 255, 0.4);
}
.user-menu-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* User Dropdown Panel */
.user-dropdown {
    position: fixed;
    top: 70px;
    right: 1rem;
    width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.user-dropdown-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #4a7fd4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
}
.user-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-dropdown-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
}
.user-dropdown-menu {
    padding: 0.5rem 0;
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.user-dropdown-item:hover {
    background: rgba(91, 158, 255, 0.1);
}
.user-dropdown-item.danger {
    color: #e74c3c;
}
.user-dropdown-item.danger:hover {
    background: rgba(231, 76, 60, 0.1);
}
.user-dropdown-item .icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}
.user-dropdown-divider {
    height: 1px;
    background: var(--card-border);
    margin: 0.5rem 0;
}

/* Main Content */
main {
    padding-top: 80px;
    min-height: calc(100vh - 60px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Glass Cards */
.card {
    background: linear-gradient(135deg, rgba(91, 158, 255, 0.08) 0%, rgba(91, 158, 255, 0.04) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 158, 255, 0.3);
    box-shadow: 0 12px 48px rgba(91, 158, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(91, 158, 255, 0.3);
    box-shadow: 0 4px 12px rgba(91, 158, 255, 0.2);
    border: 1px solid rgba(91, 158, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 158, 255, 0.4);
    border-color: rgba(91, 158, 255, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Form Elements - IMPROVED */
input, textarea, select {
    width: 100%;
    padding: 0.85rem;
    border: 1.5px solid rgba(91, 158, 255, 0.2);
    border-radius: 8px;
    background: rgba(26, 31, 58, 0.6);
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(26, 31, 58, 0.9);
    box-shadow: 0 0 0 3px rgba(91, 158, 255, 0.15);
}

input::placeholder, textarea::placeholder {
    color: rgba(176, 184, 212, 0.5);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Fix select dropdown - dark background with white text */
select {
    background-color: #1A1F3A;
    color: var(--text);
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235B9EFF'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

/* Mobile touch-friendly select */
@media (max-width: 768px) {
    select, input, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 44px; /* Better touch target */
    }
    
    button, .btn {
        min-height: 44px;
        touch-action: manipulation;
    }
}

select option {
    background-color: #1a1a1a;
    color: var(--text);
    padding: 0.5rem;
}

select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Inline select (in tables/lists) */
.user-item select {
    width: auto;
    min-width: 120px;
    padding: 0.4rem 0.75rem;
    margin: 0;
    background-color: #1a1a1a;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem 3rem;
    background: linear-gradient(180deg, rgba(91, 158, 255, 0.1) 0%, transparent 100%);
    border-radius: 16px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #5B9EFF 0%, #9D7EFF 50%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--card-border);
    opacity: 0.7;
}

/* Chat Bubble */
.chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(62, 142, 250, 0.4);
    z-index: 1001;
    transition: transform 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(62, 142, 250, 0.3);
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-bubble svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: var(--primary);
    padding: 1rem;
    font-weight: bold;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 300px;
}

.chat-message {
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    max-width: 80%;
}

.chat-message.user {
    background: var(--primary);
    margin-left: auto;
}

.chat-message.support {
    background: var(--card-bg);
}

.chat-input {
    display: flex;
    padding: 1rem;
    gap: 0.5rem;
    border-top: 1px solid var(--card-border);
}

.chat-input input {
    margin-bottom: 0;
    flex: 1;
}

.chat-input button {
    padding: 0.75rem 1rem;
}

/* Forum Styles */
.post-card {
    margin-bottom: 2rem;
    border-radius: 14px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.post-header h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.3;
}

.post-header small {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
}

.post-category {
    background: linear-gradient(135deg, rgba(91, 158, 255, 0.2), rgba(91, 158, 255, 0.1));
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(91, 158, 255, 0.2);
    white-space: nowrap;
    font-weight: 600;
    color: #5B9EFF;
}

.post-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.post-actions button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.75;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
    font-weight: 500;
}

.post-actions button:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateX(2px);
}

/* Filters */
.filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    background: rgba(91, 158, 255, 0.1);
    border: 1.5px solid rgba(91, 158, 255, 0.2);
    border-radius: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: rgba(91, 158, 255, 0.5);
    background: rgba(91, 158, 255, 0.15);
    color: var(--primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(91, 158, 255, 0.2);
}

/* User List */
.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-role {
    font-size: 0.85rem;
    opacity: 0.7;
}

.user-role.admin {
    color: var(--primary);
}

/* Search */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box input {
    padding-left: 3rem;
    margin-bottom: 0;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

/* Admin Panel */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
}

.admin-tab:hover, .admin-tab.active {
    opacity: 1;
    color: var(--primary);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Team Cards */
.team-card {
    text-align: center;
}

.team-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.team-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Contact Form Styles */
.contact-social a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-social a:hover {
    opacity: 0.8;
}

/* Stats Cards */
.stats-card {
    text-align: center;
    padding: 1.5rem;
}

.stats-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stats-card .label {
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Admin Bar */
.admin-bar {
    background: rgba(62, 142, 250, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Improved User Item for admin actions */
.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .user-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-item > div:last-child {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-item .btn {
        width: 100%;
        text-align: center;
    }

    /* Mobile Post Actions Fix - Ensure buttons don't wrap off-screen */
    .post-actions {
        display: flex !important;
        gap: 0.75rem !important;
        margin-top: 1rem !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }

    .post-actions button {
        flex: 1;
        min-width: 80px;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        touch-action: manipulation;
    }

    /* Ensure media doesn't overflow container */
    .post-image, .post-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
    }

    .post-media-grid {
        grid-template-columns: 1fr !important;
    }

    /* Better spacing for mobile cards */
    .post-card {
        padding: 1rem !important;
    }
}

/* Contact Card Styles */
.contact-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(62, 142, 250, 0.15);
}

/* Success/Error Messages */
.message-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.message-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Admin Tabs Responsive */
@media (max-width: 768px) {
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .admin-tab {
        flex: 1 1 auto;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(14, 14, 14, 0.98);
        flex-direction: column;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        display: none;
        z-index: 9999; /* ensure menu overlays content */
        max-height: calc(100vh - 64px); /* fit below navbar with scrolling */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        display: flex;
    }

    /* mobile tap targets + button-fitted layout */
    .nav-links a { display: block; padding: 0.7rem 0.5rem; border-radius: 8px; }
    .nav-links a.btn { width: 100%; display: inline-block; text-align: center; }

    .hero h1 {
        font-size: 2rem;
    }

    .chat-window {
        width: calc(100% - 40px);
        right: 20px;
    }

    /* Support Panel Mobile */
    .chat-panel {
        height: 400px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .navbar { padding: 0.6rem 1rem; }
    main { padding-top: 96px; }
    .hamburger span { width: 20px; height: 2.5px; }
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.role-badge.yonetici { background: #9b59b6; color: white; }
.role-badge.admin { background: var(--primary); color: white; }
.role-badge.mod { background: #27ae60; color: white; }
.role-badge.user { background: #7f8c8d; color: white; }

/* Navbar User Display */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .navbar-user {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(14, 14, 14, 0.95);
        padding: 1rem;
        border-radius: 0 0 8px 8px;
    }
}

/* Login Button in Navbar */
.nav-links .btn {
    background: var(--primary);
    color: white !important;
    border-radius: 20px;
}

.nav-links .btn:hover {
    background: #2d7be8;
    color: white !important;
}

/* Notifications */
.notification {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus states */
input:focus, textarea:focus, select:focus, button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn.loading::after {
    content: '...';
    animation: dots 1s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Better card hover on mobile */
@media (hover: none) {
    .card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .navbar, .chat-bubble, .chat-window, footer {
        display: none !important;
    }
    main {
        padding-top: 0;
    }
}

/* Better scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d7be8;
}

/* Disabled state */
.btn:disabled, button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toast/Alert animations */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Better link styles */
a {
    transition: color 0.3s, opacity 0.3s;
}

/* Card no-hover variant */
.card.no-hover:hover {
    transform: none;
    box-shadow: none;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--card-bg) 25%, rgba(255,255,255,0.1) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Password input toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    opacity: 0.7;
    padding: 0.25rem;
}

.password-toggle:hover {
    opacity: 1;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    pointer-events: auto;
    word-wrap: break-word;
}

.toast.success {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.15);
}

.toast.success .toast-icon {
    color: #2ecc71;
}

.toast.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast.warning {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.15);
}

.toast.warning .toast-icon {
    color: #f39c12;
}

.toast.info {
    border-color: var(--primary);
    background: rgba(62, 142, 250, 0.15);
}

.toast.info .toast-icon {
    color: var(--primary);
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease forwards;
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
    
    /* Mobile modal improvements */
    .modal-content {
        max-height: 85vh;
        overflow-y: auto;
        padding: 1.5rem;
    }
    
    #mediaPreviewList {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 0.5rem !important;
    }
    
    #mediaPreviewList > div video,
    #mediaPreviewList > div img {
        max-height: 120px;
    }
}

.password-toggle:hover {
    opacity: 1;
}
