:root {
    --primary: #ff4757;
    --primary-dark: #e84118;
    --secondary: #2f3542;
    --bg-dark: #0f0f13;
    --card-bg: #1a1a20;
    --nav-bg: #16161c;
    --input-bg: #25252e;
    --input-focus-bg: #2a2a35;
    --avatar-bg: linear-gradient(135deg, #1a1a2e, #25252e);
    --reject-bg: linear-gradient(135deg, #1e1e2a, #25252e);
    --text-white: #ffffff;
    --text-gray: #a4b0be;
    --error: #ff6b6b;
    --success: #1dd1a1;
    --gradient: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: var(--glass-bg);
    --glass-border: var(--glass-border);
}

[data-theme="light"] {
    --bg-dark: #f8f9fa;
    --card-bg: #ffffff;
    --nav-bg: #ffffff;
    --input-bg: #f1f2f6;
    --input-focus-bg: #e1e2e6;
    --avatar-bg: linear-gradient(135deg, #f1f2f6, #e1e2e6);
    --reject-bg: linear-gradient(135deg, #f1f2f6, #e1e2e6);
    --text-white: #2d3436;
    --text-gray: #636e72;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

/* Auth Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(255, 71, 87, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(47, 53, 66, 0.5), transparent);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-bg);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 3rem;
    margin-bottom: 10px;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--primary));
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--input-bg);
    border: 1.5px solid transparent;
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--input-focus-bg);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--error);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.6s ease-out;
}

/* Simple & Useful Navigation */
.dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--glass-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 0 20px;
}

.nav-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(255, 71, 87, 0.05);
}

.nav-logo-simple {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-simple span {
    color: var(--primary);
}

/* Profile Discovery Cards */
.profile-card-large {
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: cardSlideUp 0.6s cubic-bezier(.23, 1, .32, 1);
    position: relative;
}

.profile-card-large::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 31px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.3), transparent 50%, rgba(255, 71, 87, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-image-container {
    width: 100%;
    height: 500px;
    background: var(--avatar-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    overflow: hidden;
}

.profile-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--card-bg), transparent);
    pointer-events: none;
    z-index: 1;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-card-large:hover .profile-image-container img {
    transform: scale(1.03);
}

.profile-info {
    padding: 25px 30px 30px;
    position: relative;
    z-index: 2;
}

.profile-name-age {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-location {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.btn-action {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(.23, 1, .32, 1), box-shadow 0.3s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-action::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-action:hover::after {
    opacity: 1;
}

.btn-reject {
    background: var(--reject-bg);
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.2);
}

.btn-like {
    background: var(--gradient);
    color: white;
}

.btn-action:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.btn-reject:hover {
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.15);
}

.btn-like:hover {
    box-shadow: 0 12px 35px rgba(255, 71, 87, 0.3);
}

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.match-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s cubic-bezier(.23, 1, .32, 1), box-shadow 0.4s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.match-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
    pointer-events: none;
}

.match-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 71, 87, 0.08);
}

.match-card:hover::before {
    opacity: 1;
}

.match-avatar {
    height: 220px;
    background: var(--avatar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.match-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--card-bg), transparent);
    pointer-events: none;
}

.match-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.match-card:hover .match-avatar img {
    transform: scale(1.08);
}

.match-info {
    padding: 18px;
    text-align: center;
}

.match-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.match-age {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.match-location {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.match-card .match-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* Admin User Cards */
.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.admin-user-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s cubic-bezier(.23, 1, .32, 1), box-shadow 0.4s;
    position: relative;
}

.admin-user-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.admin-card-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.admin-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--avatar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.admin-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-card-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.admin-card-email {
    color: var(--text-gray);
    font-size: 0.8rem;
    word-break: break-all;
}

.admin-card-body {
    padding: 0 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--glass-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-date {
    color: var(--text-gray);
    font-size: 0.75rem;
}

.admin-card-actions {
    display: flex;
    gap: 12px;
}

/* --- Chat Interface Core --- */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.chat-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
}

.header-name h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #1dd1a1;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #1dd1a1;
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 209, 161, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(29, 209, 161, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(29, 209, 161, 0);
    }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.1);
    scroll-behavior: smooth;
}

.message {
    max-width: 80%;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.message.sent .message-content {
    background: var(--gradient);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received .message-content {
    background: #2d2d3a;
    color: white;
    border-bottom-left-radius: 4px;
}

.message-meta {
    margin-top: 4px;
    font-size: 0.7rem;
    color: var(--text-gray);
    display: flex;
    gap: 5px;
}

.message.sent .message-meta {
    justify-content: flex-end;
}

/* Components */
.date-separator {
    text-align: center;
    margin: 25px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-separator::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--glass-bg);
}

.date-label {
    background: #1e1e24;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
    border: 1px solid var(--glass-border);
}

.emoji-picker {
    display: none;
    flex-direction: column;
    background: #1e1e24;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    position: absolute;
    bottom: 85px;
    right: 20px;
    width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: hidden;
}

.emoji-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
}

.emoji-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: 0.3s;
}

.emoji-tab.active {
    opacity: 1;
    background: var(--glass-border);
    border-radius: 8px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 12px;
    max-height: 220px;
    overflow-y: auto;
}

.emoji-item {
    font-size: 1.4rem;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
}

.emoji-item:hover {
    transform: scale(1.3);
}

.chat-input-area {
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--glass-bg);
}

.chat-input-area input {
    flex: 1;
    background: #25252e;
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 30px;
    color: white;
    outline: none;
}

.btn-emoji {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
}

.btn-send {
    background: var(--gradient);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Typing Indicator Animation */
.typing-dots span {
    animation: typing-blink 1.4s infinite both;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 30px;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.4s cubic-bezier(.23, 1, .32, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.modal-header {
    height: 350px;
    position: relative;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--card-bg), transparent);
}

.modal-body {
    padding: 30px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h4 {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-info-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-bg);
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Main Footer Styles */
.main-footer {
    background: #0f0f13;
    border-top: 1px solid var(--glass-bg);
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
    display: block;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    gap: 80px;
}

.footer-links-col h4 {
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links-col a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.2s;
}

/* Dashboard Layout with Sidebar - Optimized Fix */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-areas: "sidebar main";
    gap: 30px;
    align-items: start;
}

.ad-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 80px;
    /* Aligned better with main content */
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 10;
}

.main-content {
    grid-area: main;
    min-width: 0;
    width: 100%;
    position: relative;
    overflow: visible;
}

/* Stable hover hit area for cards to prevent "desfasamento"/jitter */
.ad-card,
.match-card,
.admin-user-card {
    backface-visibility: hidden;
    transform: translateZ(0);
}

.ad-card::after,
.match-card::after,
.admin-user-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
}

.ad-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 71, 87, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}



.ad-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-bg);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.23, 1, .32, 1), border-color 0.3s;
}



.ad-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--glass-bg);
    padding: 3px 8px;
    border-radius: 4px;
}

.ad-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-white);
}

.ad-content {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 20px;
}

.ad-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #1e1e24, #2a2a35);
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--glass-bg);
}

.btn-ad {
    width: 100%;
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-ad:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.premium-ad {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), var(--card-bg));
    border: 1px solid rgba(255, 71, 87, 0.2);
}

@media (max-width: 1100px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .ad-sidebar {
        display: none;
        /* Hide sidebar on smaller screens */
    }
}

.footer-links-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #1dd1a1;
    border-radius: 50%;
    box-shadow: 0 0 10px #1dd1a1;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links-group {
        justify-content: center;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}