/* ===== DOMUS.CSS ===== */
/* General Styles */
:root {
    /* Maintaining the color palette as specified */
    --primary-color: #ffcc00;    /* Yellow */
    --secondary-color: #ffcc00;  /* Yellow */
    --tertiary-color: #555;      /* Light Grey */
    --dark-color: #222;          /* Dark Grey */
    --light-color: white;        /* White */
    --accent-color: #555;        /* Light Grey */
    --text-dark: #333;           /* Grey */
    --text-light: white;         /* White */
    --border-color: #1a1a1a;     /* Border color */
    --background-color: #000000; /* Background color */
    
    /* Layout variables */
    --sidebar-width: 280px;
    --header-height: 70px;
    --card-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
    
    /* Additional variables for enhanced styling */
    --gradient-primary: linear-gradient(135deg, #ffcc00, #e6b800);
    --gradient-dark: linear-gradient(135deg, #333, #222);
    --border-radius: 12px;
    --card-border-radius: 16px;
    --hover-brightness: 1.05;
}

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Cinzel:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
}

/* Improved scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #e6b800;
}

body {
    background-color: #111;
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--transition-speed);
}

/* Layout Container */
.domus-container {
    display: flex;
    min-height: 100vh;
    background-color: #1a1a1a;
}

/* Sidebar Styles - Enhanced */
.domus-sidebar {
    width: var(--sidebar-width);
    background: var(--background-color);
    color: var(--text-light);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: all var(--transition-speed);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-right: 1px solid #333;
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(26, 26, 26, 0.5);
}

.sidebar-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    letter-spacing: 4px;
    margin-bottom: 8px;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.latin-subtitle {
    font-style: italic;
    font-size: 14px;
    color: #aaa;
    letter-spacing: 1px;
}

.user-brief {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.user-avatar {
    margin-right: 15px;
}

.user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.user-quick-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--light-color);
}

.user-quick-info p {
    font-size: 12px;
    color: var(--primary-color);
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.sidebar-nav ul li {
    padding: 12px 20px;
    margin: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all var(--transition-speed);
}

.sidebar-nav ul li:hover {
    background: rgba(255, 255, 255, 0.07);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-nav ul li.active {
    background: rgba(255, 204, 0, 0.1);
    border-left-color: var(--primary-color);
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    color: #ddd;
    font-weight: 400;
}

.sidebar-nav ul li.active a {
    color: var(--primary-color);
}

.sidebar-nav ul li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-footer a {
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-speed);
    padding: 10px;
    border-radius: 8px;
}

.sidebar-footer a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-footer a i {
    margin-right: 8px;
}

/* Main Content Styles - Enhanced */
.domus-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    background: #1a1a1a;
    color: var(--light-color);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-title h1 {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.header-title p {
    color: #aaa;
    font-size: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Notification Panel Styles */
.notifications-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notifications-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.notifications-header h3 {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 18px;
    margin: 0;
}

.notifications-header h3 i {
    margin-right: 10px;
}

.close-notifications {
    background: transparent;
    color: #aaa;
    font-size: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.close-notifications:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.notifications-list {
    overflow-y: auto;
    max-height: 400px;
    padding: 10px 0;
}

.notification-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed);
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background: rgba(255, 204, 0, 0.05);
    border-left: 3px solid var(--primary-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: var(--light-color);
}

.notification-content p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #aaa;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: #777;
    font-style: italic;
}

.notifications-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.btn-mark-all-read {
    background: rgba(255, 204, 0, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 12px;
    transition: all var(--transition-speed);
}

.btn-mark-all-read:hover {
    background: rgba(255, 204, 0, 0.2);
    transform: translateY(-2px);
}

.view-all-link {
    color: #aaa;
    font-size: 12px;
    transition: all var(--transition-speed);
}

.view-all-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Toast notification styles for "Mark all as read" feedback */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    color: var(--light-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.toast.active {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 18px;
}

.toast.toast-success .toast-icon {
    color: #4CAF50;
}

.toast.toast-error .toast-icon {
    color: #F44336;
}

.btn-notifications {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    position: relative;
    margin-right: 20px;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.btn-notifications:hover {
    background: rgba(255, 204, 0, 0.1);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gradient-primary);
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.search-box {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
}

.search-box:focus-within {
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.3);
}

.search-box input {
    padding: 12px 20px;
    border: none;
    outline: none;
    background: transparent;
    width: 220px;
    color: var(--light-color);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-box button {
    background: var(--gradient-primary);
    color: #000;
    font-weight: 700;
    padding: 12px 20px;
}

.search-box button:hover {
    filter: brightness(var(--hover-brightness));
}

/* Dashboard Overview Cards - Enhanced */
.dashboard-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    display: flex;
    align-items: center;
    transition: all var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1), transparent);
    opacity: 0;
    transition: all var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    background: var(--gradient-primary);
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-right: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stat-info h3 {
    font-size: 15px;
    color: #aaa;
    margin-bottom: 8px;
    font-weight: 400;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* Collection Charts - Enhanced */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.collection-summary {
    margin-bottom: 40px;
}

.collection-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed);
}

.chart-container:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.chart-container h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--light-color);
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chart {
    height: 300px;
    position: relative;
}

.chart-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-style: italic;
}

/* Recent Acquisitions Table - Enhanced */
.recent-acquisitions {
    margin-bottom: 40px;
}

.acquisition-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.acquisitions-table {
    width: 100%;
    border-collapse: collapse;
}

.acquisitions-table th,
.acquisitions-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.acquisitions-table th {
    background-color: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.acquisitions-table tr {
    transition: all var(--transition-speed);
}

.acquisitions-table tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.acquisitions-table tr:last-child td {
    border-bottom: none;
}

.coin-preview {
    display: flex;
    align-items: center;
}

.coin-preview img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid rgba(255, 204, 0, 0.3);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.coin-preview span {
    font-weight: 600;
    color: var(--light-color);
}

.view-more {
    text-align: center;
    margin-top: 25px;
}

.btn-view-more {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: #000;
    font-weight: 700;
    border-radius: 30px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.btn-view-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    filter: brightness(var(--hover-brightness));
}

/* Member Profile Styles - Enhanced */
.member-profile {
    margin-bottom: 40px;
}

.profile-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-header {
    display: flex;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.profile-avatar {
    position: relative;
    margin-right: 35px;
}

.profile-avatar img {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.btn-change-avatar {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.btn-change-avatar:hover {
    transform: scale(1.1);
}

.profile-details {
    flex: 1;
}

.profile-details h3 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.profile-title {
    font-size: 18px;
    color: var(--light-color);
    margin-bottom: 10px;
    font-weight: 300;
}

.profile-join-date {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
    font-style: italic;
}

.profile-badges {
    display: flex;
    gap: 12px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    color: var(--light-color);
    border: 1px solid rgba(255, 204, 0, 0.2);
    transition: all var(--transition-speed);
}

.badge:hover {
    background: rgba(255, 204, 0, 0.1);
    transform: translateY(-2px);
}

.badge i {
    margin-right: 6px;
    color: var(--primary-color);
}

.profile-actions {
    min-width: 150px;
    text-align: right;
}

.btn-edit-profile {
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: #000;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.btn-edit-profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.profile-info-card {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed);
}

.profile-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.25);
}

.profile-info-card h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-info-card h4 i {
    margin-right: 10px;
}

.info-group {
    margin-bottom: 15px;
}

.info-group label {
    font-size: 13px;
    color: #999;
    display: block;
    margin-bottom: 5px;
    font-weight: 300;
}

.info-group p {
    font-size: 16px;
    color: var(--light-color);
}

.completion-bar {
    height: 22px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.completion-progress {
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 12px;
    font-weight: 700;
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed);
}

.achievement-item:hover:not(.locked) {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    background: rgba(255, 204, 0, 0.05);
}

.achievement-item.locked {
    opacity: 0.6;
}

.achievement-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.achievement-info h5 {
    font-size: 14px;
    margin-bottom: 3px;
    color: var(--light-color);
}

.achievement-info p {
    font-size: 12px;
    color: #999;
}

/* Footer */
footer {
    background: var(--background); 
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 2px solid #444;
    font-family: 'Inter', sans-serif;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 20px;
}

footer p {
    margin: 10px 0;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.footer-links li {
    display: inline;
}

.footer-links li a {
    color: var(--yellow);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #ffffff;
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card, .chart-container, .acquisition-list, .profile-container {
    animation: fadeIn 0.5s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Glass Morphism effect for cards */
.stat-card, .chart-container, .acquisition-list, .profile-container, .profile-info-card {
    backdrop-filter: blur(5px);
}
/* Responsive Styles - Optimized */
/* Utility classes for responsive design */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block;
}

/* Large screens (1400px and down) */
@media screen and (max-width: 1400px) {
    .dashboard-overview {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .collection-charts {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .chart {
        height: 300px;
    }
}

/* Medium desktop screens (1200px and down) */
@media screen and (max-width: 1200px) {
    :root {
        --sidebar-width: 250px;
    }
    
    .header-title h1 {
        font-size: 32px;
    }
    
    .profile-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .chart {
        height: 250px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 26px;
    }
}

/* Small desktop / Large tablet (992px and down) */
@media screen and (max-width: 992px) {
    :root {
        --sidebar-width: 220px;
    }
    
    .domus-content {
        margin-left: var(--sidebar-width);
        padding: 20px;
    }
    
    .sidebar-header h2 {
        font-size: 28px;
    }
    
    .sidebar-nav ul li {
        padding: 10px 15px;
        margin: 6px 8px;
    }
    
    .collection-charts {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .header-title h1 {
        font-size: 28px;
    }
    
    .header-title p {
        font-size: 14px;
    }
}

/* Tablet (768px and down) */
@media screen and (max-width: 768px) {
    :root {
        --sidebar-width: 0;
        --header-height: 60px;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    body {
        position: relative;
        overflow-x: hidden;
    }
    
    .domus-container {
        flex-direction: column;
    }
    
    .domus-sidebar {
        width: 280px;
        transform: translateX(-100%);
        z-index: 1000;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease-in-out;
    }
    
    .domus-sidebar.mobile-active {
        transform: translateX(0);
    }
    
    .domus-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .header-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        width: 100%;
        margin-top: 10px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .dashboard-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .acquisitions-table {
        min-width: 650px;
    }
    
    .acquisition-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Touch-friendly adjustments */
    .sidebar-nav ul li, 
    .btn-notifications, 
    .search-box button, 
    .btn-view-more {
        min-height: 44px;
    }
    
    /* Mobile menu toggle */
    .mobile-toggle {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--gradient-primary);
        color: #000;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
        z-index: 1001;
    }
    
    /* Modal adjustments */
    .notifications-panel {
        width: 90%;
        max-width: 350px;
    }
}

/* Large mobile (640px and down) */
@media screen and (max-width: 640px) {
    .dashboard-overview {
        grid-template-columns: 1fr;
    }
    
    .profile-details-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart {
        height: 220px;
    }
    
    .profile-container {
        padding: 20px;
    }
}

/* Mobile portrait (576px and down) */
@media screen and (max-width: 576px) {
    .section-title {
        font-size: 22px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin-right: 15px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .profile-container {
        padding: 15px;
    }
    
    .profile-avatar img {
        width: 100px;
        height: 100px;
        border-radius: 15px;
    }
    
    .profile-details h3 {
        font-size: 24px;
    }
    
    .profile-title {
        font-size: 16px;
    }
    
    .notifications-panel {
        width: 100%;
        max-width: none;
        right: 0;
        left: 0;
        border-radius: 0;
        top: 0;
        height: 100vh;
    }
    
    .btn-view-more {
        width: 100%;
        padding: 14px 20px;
    }
    
    .coin-preview img {
        width: 35px;
        height: 35px;
    }
    
    .header-title h1 {
        font-size: 24px;
    }
}

/* Small mobile (420px and down) */
@media screen and (max-width: 420px) {
    .content-header {
        margin-bottom: 20px;
    }
    
    .profile-badges {
        flex-wrap: wrap;
    }
    
    .badge {
        margin-bottom: 5px;
    }
    
    .sidebar-header h2 {
        font-size: 24px;
    }
    
    .latin-subtitle {
        font-size: 12px;
    }
    
    .profile-info-card {
        padding: 15px;
    }
}

/* Performance optimizations for mobile */
@media screen and (max-width: 768px) {
    .stat-card::before,
    .chart-container, 
    .acquisition-list, 
    .profile-container, 
    .profile-info-card {
        backdrop-filter: none;
    }
    
    /* Simplify animations for better performance */
    .stat-card, 
    .chart-container, 
    .acquisition-list, 
    .profile-container {
        animation: none;
    }
    
    /* Optimize shadows for better performance */
    .domus-sidebar,
    .stat-card,
    .chart-container,
    .acquisition-list,
    .profile-container {
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Accessibility and Print */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .domus-sidebar, 
    .header-actions, 
    .mobile-toggle,
    .btn-view-more,
    .sidebar-footer {
        display: none !important;
    }
    
    .domus-content {
        margin-left: 0;
        padding: 10px;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .stat-card, 
    .chart-container, 
    .acquisition-list,
    .profile-container {
        border: 1px solid #ddd;
        box-shadow: none;
        break-inside: avoid;
        background: white;
    }
    
    .section-title {
        color: black;
        border-bottom-color: #ccc;
    }
}
