:root {
    /* Colors */
    --bg-color: rgba(30, 5, 37, 0.9);
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary-color: #ff3b30;
    /* Red accent */
    --secondary-color: #7d3490;
    --glass-bg: rgba(30, 5, 37, 0.7);
    --glass-border: rgba(125, 52, 144, 0.3);
    --hover-bg: rgba(255, 59, 48, 0.1);

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../images/background.webp') no-repeat center center fixed;
    background-size: cover;
    filter: blur(2.5px);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: #e0352b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #9b4eb0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(125, 52, 144, 0.3);
}

.clickable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(206, 13, 13, 0.322);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.clickable-header:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.btn-ghost:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.nav-item:hover {
    color: white;
}

.nav-item.active {
    background-color: #ff004c;
    /* Bright pink/red from image */
    color: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(255, 0, 76, 0.4);
}

/* Main Content */
.main-content {
    margin-left: 0;
    flex: 1;
    padding: var(--spacing-lg);
    padding-bottom: 80px;
    /* Space for bottom nav */
    max-width: 800px;
    min-width: 0;
    width: 100%;
    margin: 0 auto;
}

/* Header (Mobile mostly, or top bar) */
/* Navigation & Top Bar */
.top-bar .logo img,
.top-bar .avatar {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.top-bar .logo img:hover,
.top-bar .avatar:hover {
    transform: scale(1.1);
}

.top-bar {
    display: flex;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
    align-items: center;
    justify-content: space-between;
}

/* Login Page Specific */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(255, 59, 48, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(40, 40, 50, 0.4), transparent 40%);
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.login-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

/* Feed / Home */
.feed-container {
    max-width: 600px;
    margin: 0 auto;
}

.post-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-card img:not(.avatar):not(.profile-avatar-large),
.post-content img:not(.avatar) {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
}

.post-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px; /* ensures consistent text height */
    margin-bottom: 10px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-md);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    object-fit: cover;
}

.user-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-content {
    margin-bottom: var(--spacing-md);
}

.post-actions {
    display: flex;
    gap: var(--spacing-lg);
    border-top: 1px solid var(--glass-border);
    padding-top: var(--spacing-md);
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

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

/* Profile */
.profile-header {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.cover-photo {
    position: relative;
    height: 200px;
    background: linear-gradient(to right, #ff3b30, #ff9f0a);
    border-radius: var(--radius-md);
    margin-bottom: -50px;
    overflow: hidden;
}

.profile-info {
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.profile-avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    overflow: hidden;
    flex-shrink: 0;
    z-index: 1;
}

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

.profile-details {
    margin-top: 60px;
    padding: 0 var(--spacing-lg);
}

.stats-bar {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-md);
}

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

.stat-value {
    font-weight: 700;
    font-size: 1.2rem;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Messages */
.messages-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-md);
    flex: 1;
    min-height: 0;
    /* height: calc(100vh - 180px); Removed to rely on flex parent */
    overflow: hidden;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    min-height: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

.contact-item:hover,
.contact-item.active {
    background: rgba(255, 255, 255, 0.05);
}

.chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    min-height: 0;
    background: rgba(30, 5, 37, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.chat-area.active {
    display: flex !important;
}

.chat-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    padding: var(--spacing-md);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.message {
    max-width: 70%;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
}

.message.sent {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received {
    align-self: flex-start;
    background-color: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
}

/* System Messages */
.message.system {
    align-self: center;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-area {
    padding: var(--spacing-md);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: var(--spacing-sm);
}

/* Sidebars */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 280px;
    background: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    border-right: 1px solid var(--glass-border);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.sidebar-drawer.left {
    left: 0;
    transform: translateX(-100%);
    border-right: 1px solid var(--glass-border);
    border-left: none;
}

.sidebar-drawer.right {
    right: 0;
    transform: translateX(100%);
    border-left: 1px solid var(--glass-border);
    border-right: none;
}

.sidebar-drawer.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-close:hover {
    color: var(--text-color);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: var(--text-color);
    border-radius: var(--radius-md);
    transition: background 0.2s;
    margin-bottom: 5px;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link i {
    width: 24px;
    text-align: center;
    color: var(--primary-color);
}

/* Admin Panel Styles */
.admin-tabs {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    margin-bottom: 20px;
    gap: 10px;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab-btn:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.admin-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Action Button */
.btn-fab {
    position: fixed;
    bottom: 80px;
    /* Above bottom nav */
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    /* Above nav */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}


/* Profile Sections */
.profile-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.profile-section h4 {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.photos-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.2s;
}

.photos-grid img:hover {
    transform: scale(1.05);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.links-list a {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--glass-border);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255, 59, 48, 0.05);
}

.upload-area i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.upload-area span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.edit-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.edit-gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
}

.edit-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.edit-gallery-item .remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Edit Tags */
.edit-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: default;
}

.edit-tag i {
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0.7;
}

.edit-tag i:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.2s ease;
    cursor: grab;
}

.lightbox-content:active {
    cursor: grabbing;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Support Identity Selection Button */
.support-id-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* Status Timeline Styles */
.status-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.status-step.active {
    opacity: 1;
}

.status-step.completed {
    opacity: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.status-step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.5);
    animation: pulse 2s infinite;
}

.status-step.completed .step-circle {
    background: rgba(52, 199, 89, 0.2);
    border-color: #34c759;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 59, 48, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 59, 48, 0.7);
    }
}

.step-line {
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.status-step:last-child .step-line {
    display: none;
}

.status-step.completed .step-line {
    background: linear-gradient(to right, #34c759, rgba(255, 255, 255, 0.1));
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 5px;
}

.status-step.active .step-label {
    color: var(--text-color);
    font-weight: 600;
}

.status-dropdown {
    transition: all 0.3s;
}

.status-dropdown:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.status-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.status-dropdown option {
    background: #1e0525;
    color: var(--text-color);
}

.status-dropdown option:disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Skeleton Loading */
.skeleton {
    color: transparent !important;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%) !important;
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    user-select: none;
    pointer-events: none;
    display: inline-block;
    /* width: 100%; Removed to adapt to content */
    height: 1em;
    /* Adapt to font-size */
    vertical-align: middle;
    overflow: hidden !important;
    resize: none !important;
}

.skeleton::placeholder {
    color: transparent !important;
}

.skeleton img {
    opacity: 0 !important;
}

/* Paragraph skeleton - simulates lines */
.skeleton-paragraph {
    display: block;
    height: auto;
    background: none;
    animation: none;
    color: transparent !important;
    user-select: none;
    pointer-events: none;
}

.skeleton-paragraph::before,
.skeleton-paragraph::after {
    content: '';
    display: block;
    height: 1em;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

.skeleton-paragraph::after {
    width: 70%;
    /* Last line shorter */
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 59, 48, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 59, 48, 0.6);
}

/* Unread Indicator */
.unread-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-left: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(255, 59, 48, 0.5);
}

/* Toast Notification System */
#toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-notification {
    pointer-events: auto;
    background: rgba(18, 18, 24, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.success {
    border-left-color: #00c853;
}

.toast-notification.error {
    border-left-color: #ff3b30;
}

.toast-notification.warning {
    border-left-color: #ffcc00;
}

.toast-notification.info {
    border-left-color: #2b95ff;
}

.toast-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-notification.success .toast-icon {
    color: #00c853;
}

.toast-notification.error .toast-icon {
    color: #ff3b30;
}

.toast-notification.warning .toast-icon {
    color: #ffcc00;
}

.toast-notification.info .toast-icon {
    color: #2b95ff;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: #fff;
}

.toast-message {
    color: #a0a0a0;
    font-size: 0.85rem;
}

.toast-close {
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
    padding: 2px;
}

.toast-close:hover {
    color: #fff;
}

/* Custom Modal System (Confirm & Prompt) */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-box {
    background: rgba(30, 5, 37, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 420px;
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-modal-overlay.active .custom-modal-box {
    transform: scale(1) translateY(0);
}

.custom-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.custom-modal-message {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.custom-modal-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 24px;
    transition: all 0.2s;
}

.custom-modal-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.custom-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.custom-modal-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.custom-modal-btn.cancel {
    background: transparent;
    color: #aaa;
}

.custom-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.custom-modal-btn.confirm {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.custom-modal-btn.confirm:hover {
    background: #e0352b;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 59, 48, 0.4);
}

/* Role Selection Styles */
.role-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.role-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.role-card:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.role-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.role-card h3 {
    font-size: 1.1rem;
    margin: 0;
}

.role-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Wizard Transition */
.wizard-step {
    animation: fadeIn 0.3s ease-in-out;
}

/* Image Carousel Styles */
.image-carousel {
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    display: flex;
}

.carousel-container {
    display: flex;
    width: max-content;
    height: 100%;
    animation: scroll 30s linear infinite;
    gap: 10px;
}

.carousel-container:hover {
    animation-play-state: paused;
}

.carousel-image {
    width: 280px;
    height: 300px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.carousel-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@keyframes scroll {
    /* (280px width + 10px gap) * 11 imágenes originales = -3190px */
    0% { transform: translateX(0); }
    100% { transform: translateX(-3190px); }
}

/* =========================================
   NEW SPLIT LOGIN LAYOUT STYLES
   ========================================= */

body.login-page-body::before {
    background: url('../images/background_Login.webp') no-repeat center center fixed;
    background-size: cover;
    filter: none; /* No blur on login screen */
    opacity: 1;
}

/* Splash Screen Overlay */
.login-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color); /* solid theme background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease-in-out;
}

.login-splash-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-align: center;
    animation: pulseSplash 2s infinite ease-in-out;
}

@keyframes pulseSplash {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Main Split Layout Container */
.login-split-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .login-split-layout {
        flex-direction: column;
        justify-content: center;
        padding-top: 50px;
    }
}

/* Left Side: Floating Logo */
.login-logo-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.floating-logo {
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.5));
    animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
    0% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
    100% { transform: translateY(0); }
}

@media (max-width: 768px) {
    .floating-logo {
        max-width: 60%;
        margin-bottom: 20px;
    }
}

/* Right Side: Login Form Panel */
.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card-panel {
    background-color: #2b0b30; /* Dark purple base from reference */
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0px 10px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glad-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
}

.glad-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.glad-label {
    display: block;
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 8px;
    margin-left: 5px;
}

.glad-input {
    width: 100%;
    padding: 12px 15px;
    background-color: #e6e6e6; /* Lighter grey/white input */
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.glad-input:focus {
    box-shadow: 0 0 0 2px rgba(90, 150, 220, 0.6);
}

.glad-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 12px;
    transition: transform 0.2s, background-color 0.2s;
    color: white;
}

.glad-btn:hover {
    transform: translateY(-2px);
}

.glad-btn-blue {
    background-color: #466c9a; /* Muted blue */
}
.glad-btn-blue:hover { background-color: #3a5b82; }

.glad-btn-red {
    background-color: #d14936; /* Red/Orange Google button */
}
.glad-btn-red:hover { background-color: #b53e2d; }

.glad-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glad-link-muted {
    color: #b3a5c1;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.glad-link-muted:hover {
    color: #ffffff;
}

.glad-link-accent {
    color: #6a9ede;
    text-decoration: none;
}
.glad-link-accent:hover {
    text-decoration: underline;
}

/* Feed Carousel Styles */
.feed-carousel:hover .btn-prev,
.feed-carousel:hover .btn-next {
    opacity: 1 !important;
}

.feed-carousel .btn-prev,
.feed-carousel .btn-next {
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.carousel-dot {
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.edit-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.edit-tag i {
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.edit-tag i:hover {
    opacity: 1;
}