/* User Profile Styles */

/* Color definitions - Matching Dashboard */
:root {
    --accent-blue: #60a5fa;  /* Light blue for accents */
    --accent-gold: #fbbf24;  /* Gold for highlights */
    --accent-purple: #a78bfa;  /* Light purple */
    --cyber-blue: #00d4ff;  /* Cyan blue for cyber theme */
    --cyber-purple: #7b2cbf;  /* Purple for gradients */
    --color-buff: var(--cyber-blue);  /* Use cyan instead of green */
    --color-nerf: #ef4444;  /* Red for danger */
}

body {
    height: 100vh;
    overflow: hidden !important;  /* Prevent scrolling */
    display: flex;
    flex-direction: column;
    position: fixed;
    width: 100%;
}

.profile-container {
    height: 100vh;
    position: relative;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden !important;  /* Prevent scrolling */
}

/* Override for archive section only */
.profile-container:has(#archive-section.active) .profile-main {
    overflow-y: auto !important;
}

/* Profile Header */
.profile-header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-left {
    flex-shrink: 0;
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.header-nav-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.7rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.header-nav-item:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.1);
}

.header-nav-item.active {
    color: var(--cyber-blue);
    background: rgba(0, 212, 255, 0.15);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.header-nav-item i {
    font-size: 0.8rem;
}

.header-nav-item .count-badge {
    background: var(--cyber-blue);
    color: #000;
    border-radius: 10px;
    font-size: 0.6rem;
    padding: 0.05rem 0.3rem;
    min-width: 16px;
    text-align: center;
    font-weight: 700;
}

.back-link {
    color: var(--cyber-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.back-link:hover {
    color: #ffffff;
    transform: translateX(-5px);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Removed old profile navigation - now integrated in header */

/* Main Content */
.profile-main {
    padding-top: 100px;  /* Use padding-top instead of margin-top */
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;  /* Prevent scrolling */
    position: relative;
}

.profile-section {
    display: none;
    height: 100%;
    overflow: visible;  /* Changed from hidden to allow expanded content */
}

.profile-section.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease;
    overflow: visible;  /* Ensure expanded content is visible */
}

/* Special case for archive section - allow scrolling */
#archive-section {
    overflow-y: auto !important;
    height: 100% !important;
}

#archive-section .section-content {
    flex: 1;
    overflow-y: visible !important;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: auto !important;
}

/* Section content wrapper */
.section-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Icon - Match Dashboard */
.card-icon {
    width: 65px;  /* Increased from 50px */
    height: 65px;  /* Increased from 50px */
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(123, 44, 191, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;  /* Increased slightly */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;  /* Increased from 0.75rem */
    backdrop-filter: blur(3px);
}

.card-icon i {
    font-size: 2rem;  /* Increased from 1.5rem */
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-card h3,
.profile-card h3 {
    font-size: 1.3rem;  /* Increased from 1.1rem */
    margin-bottom: 0.75rem;  /* Increased from 0.5rem */
    color: var(--text-primary);
    font-weight: 600;
}

.dashboard-card p {
    color: var(--text-secondary);
    line-height: 1.6;  /* Increased from 1.4 */
    margin-bottom: 1.25rem;  /* Increased from 0.75rem */
    font-size: 0.95rem;  /* Increased from 0.85rem */
}

/* Special styling for Profile Info card to match others */
.dashboard-card:has(.profile-name) p {
    margin-bottom: 0;
}

.dashboard-card:has(.profile-name) .card-action {
    margin-top: 1.25rem;  /* Add spacing before action */
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--cyber-blue);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;  /* Increased from 0.25rem */
    margin: -0.25rem;
    border-radius: 8px;  /* Increased slightly */
    transition: all 0.3s ease;
    font-size: 0.95rem;  /* Increased from 0.85rem */
    margin-top: auto;  /* Push to bottom of card */
}

.card-action:hover {
    background: rgba(0, 212, 255, 0.1);
}

.card-action i {
    transition: transform 0.3s ease;
}

.dashboard-card:hover .card-action i {
    transform: translateX(5px);
}

/* Welcome Section - Match Dashboard */
.welcome-section {
    text-align: center;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.welcome-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;  /* Even larger for archive section */
    margin-bottom: 0.75rem;
    color: var(--cyber-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.welcome-subtitle {
    font-size: 1.2rem;  /* Larger subtitle */
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2rem;  /* More space below */
}

/* Dashboard Grid - Compact Version */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;  /* Increased from 1rem */
    margin-bottom: 1.5rem;
    align-items: start; /* Keep cards at top when one expands */
    grid-auto-rows: min-content; /* Allow natural height */
    position: relative;  /* Make this the positioning context for expanded content */
    z-index: 1;  /* Ensure proper stacking context */
    isolation: isolate;  /* Prevent blending issues */
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;  /* Reduce gap on mobile */
    }

    .dashboard-card,
    .profile-card {
        padding: 1.25rem;  /* Slightly reduce padding on mobile */
        min-height: 160px;  /* Reduce min height on mobile */
    }
}

/* Dashboard Card Style - Compact Version */
.dashboard-card,
.profile-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.75rem;  /* Increased from 1rem */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;  /* Hide animation overflow */
    min-height: 200px;  /* Added minimum height */
    z-index: 1;  /* Base z-index */
}

.dashboard-card::before,
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-purple));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 2;  /* Ensure it stays on top of card content */
    pointer-events: none;  /* Don't interfere with clicks */
    border-radius: 16px 16px 0 0;  /* Match card border radius */
}

.dashboard-card:hover,
.profile-card:hover {
    transform: translateY(-8px) scale(1.02);  /* Added scale for more dramatic effect */
    border-color: var(--cyber-blue);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.3);  /* Increased shadow */
}

.dashboard-card:hover::before,
.profile-card:hover::before {
    transform: translateX(0);
}

.profile-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--accent-blue);
    object-fit: cover;
}

.avatar-change-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--cyber-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-change-btn:hover {
    background: var(--cyber-purple);
    transform: scale(1.1);
}

.dashboard-card .profile-name {
    font-family: inherit;  /* Use same font as other cards */
    font-size: 0.95rem;  /* Match other card text */
    margin: 0;
    padding: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.dashboard-card .profile-email {
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
    font-size: 0.95rem;  /* Match other card text */
    line-height: 1.6;
}

.member-since {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.profile-stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

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

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.quick-stats {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-stats:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.quick-stats:hover::before {
    opacity: 1;
}

.quick-stats h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--cyber-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.activity-chart {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    min-height: 200px;
    transition: all 0.3s ease;
}

.activity-chart:hover {
    border-color: var(--cyber-blue);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.recent-activity {
    margin-top: 1rem;  /* Small gap between sections */
    width: 100%;
    text-align: center;
}

.recent-activity h4 {
    font-size: 1rem;  /* Slightly smaller for compact view */
    margin-bottom: 0.5rem;  /* Reduced margin */
    color: var(--text-secondary);
}

.activity-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;  /* Center activity items */
    width: 100%;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: center;  /* Center content */
    gap: 0.75rem;
    padding: 0.75rem 1rem;  /* More padding */
    background: rgba(0, 212, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    min-width: 200px;  /* Minimum width */
    text-align: center;
    color: white !important;  /* Force white text */
}

.activity-item:hover {
    transform: translateX(5px);
    border-color: var(--cyber-blue);
}

.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(126, 200, 227, 0.2);
    color: var(--accent-blue);
}

.activity-time {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tier-benefits {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    grid-column: 1 / -1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tier-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tier-benefits:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.tier-benefits:hover::before {
    opacity: 1;
}

.tier-benefits h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--cyber-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    border-color: var(--cyber-blue);
}

.benefit-item i {
    color: var(--color-buff);
    font-size: 1.2rem;
}

.usage-meters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.usage-meter {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.usage-meter:hover {
    border-color: var(--cyber-blue);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.usage-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.usage-bar {
    background: rgba(0, 0, 0, 0.3);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.usage-fill {
    background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-purple));
    height: 100%;
    transition: width 0.5s ease;
}

.usage-text {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Achievement Cards */
.achievement-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: default !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-purple));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: none !important;
}

/* Achievement Icon Container */
.achievement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(123, 44, 191, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(3px);
}

/* Ensure achievement icons have gradient effect */
.achievement-icon i {
    font-size: 2.5rem !important;
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.achievement-name {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.achievement-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.achievement-card .card-action {
    display: none !important;
}

.achievement-status {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.achievement-progress {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--cyber-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.achievement-card.completed {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(245, 158, 11, 0.05));
}

.achievement-card.completed .card-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
}

.achievement-card.completed .achievement-progress {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Archive Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.archive-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;  /* Increased gap */
    flex-wrap: wrap;
    margin-bottom: 2rem;  /* Add spacing below */
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1.2rem;  /* Adjust for bigger padding */
    color: var(--text-secondary);
    font-size: 1.1rem;  /* Larger icon */
}

.search-box input {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;  /* More rounded */
    padding: 0.8rem 1.2rem 0.8rem 3.5rem;  /* Bigger padding */
    color: var(--text-primary);
    width: 350px;  /* Wider search box */
    font-size: 1rem;  /* Larger text */
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.view-toggle {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;  /* More rounded */
    overflow: hidden;
    height: 45px;  /* Fixed height for bigger buttons */
}

.view-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.8rem 1.2rem;  /* Bigger padding */
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;  /* Larger icons/text */
}

.view-btn.active {
    background: var(--accent-blue);
    color: white;
}

.sort-select,
.filter-select {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;  /* More rounded */
    padding: 0.8rem 1.5rem;  /* Bigger padding */
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;  /* Larger text */
    min-width: 150px;  /* Minimum width */
}

.sort-select:hover,
.filter-select:hover {
    border-color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    min-height: 200px;
    position: relative;
}

.build-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.build-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.build-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.build-card:hover::before {
    opacity: 1;
}

.build-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.build-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.build-visibility {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.build-visibility i {
    margin-right: 0.3rem;
}

.build-content {
    padding: 1.5rem;
}

.build-ship {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ship-icon {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cyber-blue);
    transition: all 0.3s ease;
}

.build-card:hover .ship-icon {
    border-color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.ship-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.ship-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.build-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 1rem;
}

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

.build-stat-value {
    display: block;
    font-weight: 700;
    color: var(--accent-gold);
}

.build-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 5rem;
    color: var(--glass-border);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(126, 200, 227, 0.3);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.achievement-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.achievement-card:hover::before {
    opacity: 1;
}

.achievement-card.unlocked {
    border-color: var(--accent-gold);
}

.achievement-card.locked {
    opacity: 0.6;
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    border-color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.achievement-card.unlocked .achievement-icon {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: white;
}

.achievement-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.achievement-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.achievement-progress {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.achievement-progress:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.achievement-progress:hover::before {
    opacity: 1;
}

.achievement-progress h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--cyber-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.progress-item:hover {
    border-color: var(--cyber-blue);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.progress-name {
    font-weight: 600;
}

.progress-value {
    color: var(--accent-gold);
    font-weight: 700;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.3);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-purple));
    height: 100%;
    transition: width 0.5s ease;
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--cyber-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.stat-card canvas {
    max-height: 300px;
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.perf-stat {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.perf-stat:hover {
    transform: translateY(-3px);
    border-color: var(--cyber-blue);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.perf-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.perf-stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-gold);
}

/* Subscription Section */
.subscription-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.current-plan,
.billing-info,
.upgrade-options {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.current-plan::before,
.billing-info::before,
.upgrade-options::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.current-plan:hover,
.billing-info:hover,
.upgrade-options:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.current-plan:hover::before,
.billing-info:hover::before,
.upgrade-options:hover::before {
    opacity: 1;
}

.current-plan h3,
.billing-info h3,
.upgrade-options h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--cyber-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.plan-card {
    background: rgba(0, 212, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: var(--cyber-blue);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.08);
}

.plan-tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.plan-price {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.plan-features li::before {
    content: '✓ ';
    color: var(--color-buff);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Beautiful subscription plan card layout - Glass morphism style */
#current-plan-card.profile-info-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    min-height: auto;
    transition: all 0.3s ease;
}

#current-plan-card.profile-info-bar:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

#billing-info-card.profile-info-bar:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

/* Left side - Plan header with tier name and price */
.plan-header-section {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

#current-plan-card .plan-tier-name {
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    text-align: center;
}

#current-plan-card .plan-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#current-plan-card .plan-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

#current-plan-card .plan-status .active {
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Billing notice styling */
#current-plan-card .billing-notice,
#current-plan-card .trial-notice {
    border-radius: 8px;
    padding: 0.75rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    width: 100%;
}

/* Right side - Features section */
.plan-features-section {
    flex: 1;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
}

/* Features list with better spacing */
#current-plan-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

#current-plan-card .plan-features li {
    padding: 0.3rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

#current-plan-card .plan-features li:hover {
    background: rgba(0, 212, 255, 0.1);
    border-left-color: var(--cyber-blue);
    padding-left: 1rem;
}

#current-plan-card .plan-features li::before {
    content: '✓';
    color: var(--cyber-blue);
    font-weight: bold;
    font-size: 1rem;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
}

/* Action buttons */
#current-plan-card button {
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: flex-end;
}

#current-plan-card .btn-secondary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

#current-plan-card .btn-secondary:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
}

/* Billing information card styling */
#billing-info-card.profile-info-bar {
    flex-direction: column;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

#billing-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--cyber-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

#billing-info-card .billing-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#billing-info-card .info-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

#billing-info-card .info-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

#billing-info-card .info-item i {
    color: var(--cyber-blue);
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

#billing-info-card .info-item strong {
    color: rgba(255, 255, 255, 0.7);
}

#billing-info-card button {
    margin-top: 2rem;
    width: 100%;
}

/* General profile card styling for all sections */
.profile-info-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: calc(100vh - 300px);
    overflow: hidden;
}

.profile-info-bar:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

/* Card titles styling */
.profile-info-bar h3.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyber-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    margin-bottom: 0.75rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form styling in cards - more compact */
.profile-info-bar .form-group {
    margin-bottom: 0.75rem;
}

.profile-info-bar .form-group label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info-bar .form-group input,
.profile-info-bar .form-group textarea,
.profile-info-bar .form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.profile-info-bar .form-group textarea {
    min-height: 60px;
    max-height: 80px;
    resize: none;
}

.profile-info-bar .form-group input:focus,
.profile-info-bar .form-group textarea:focus,
.profile-info-bar .form-group select:focus {
    outline: none;
    border-color: var(--cyber-blue);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* Toggle settings styling - more compact */
.profile-info-bar .toggle-setting {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.profile-info-bar .toggle-setting:hover {
    background: rgba(0, 212, 255, 0.05);
}

.profile-info-bar .toggle-setting p {
    margin: 0;
    font-size: 0.8rem;
}

/* Security info styling - more compact */
.security-info {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.security-info i {
    color: var(--cyber-blue);
    font-size: 1.2rem;
}

/* Privacy settings card */
.privacy-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Danger zone styling */
.profile-info-bar.danger-zone {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.profile-info-bar.danger-zone:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2);
}

/* Button styling improvements - more compact */
.profile-info-bar .btn-primary,
.profile-info-bar .btn-secondary,
.profile-info-bar .btn-danger {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.profile-info-bar .btn-primary {
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
    border: none;
    color: white;
}

.profile-info-bar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.profile-info-bar .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.profile-info-bar .btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--cyber-blue);
}

/* Special styling for overview profile bar with avatar */
.profile-info-bar:has(.profile-avatar-section) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Overview containers styling */
#overview-section .profile-info-bar h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--cyber-blue);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    padding-bottom: 0.75rem;
}

/* Quick actions container */
.profile-info-bar:has(.btn-primary[href="/my-archive"]) {
    text-align: center;
}

.profile-info-bar:has(.btn-primary[href="/my-archive"]) a,
.profile-info-bar:has(.btn-primary[href="/my-archive"]) button {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

/* Activity summary stats */
#overview-section .profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

#overview-section .stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

#overview-section .stat-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive layout for subscription cards */
@media (max-width: 1200px) {
    #current-plan-card.profile-info-bar {
        flex-direction: column;
    }

    .plan-header-section {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
        width: 100%;
        flex: unset;
    }

    .plan-features-section {
        padding-left: 0;
        width: 100%;
    }
}

.billing-details {
    background: rgba(0, 212, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.billing-details:hover {
    border-color: var(--cyber-blue);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.08);
}

.billing-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.billing-label {
    color: var(--text-secondary);
}

.billing-value {
    font-weight: 600;
}

.billing-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary i {
    margin-right: 0.5rem;
}

/* Settings Section */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.settings-group {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.settings-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.settings-group:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.settings-group:hover::before {
    opacity: 1;
}

.settings-group h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--cyber-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.form-group input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(126, 200, 227, 0.3);
}

.toggle-setting {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
}

.toggle-setting label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-setting input[type="checkbox"] {
    width: auto;
    margin-right: 0.8rem;
    cursor: pointer;
}

.danger-zone {
    border-color: var(--color-nerf);
}

.danger-zone h3 {
    color: var(--color-nerf);
}

.btn-danger {
    padding: 0.8rem 1.5rem;
    background: rgba(248, 113, 113, 0.2);
    border: 1px solid var(--color-nerf);
    border-radius: 8px;
    color: var(--color-nerf);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.3);
}

/* Build Modal */
.build-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.build-modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--color-nerf);
    border-color: var(--color-nerf);
}

#build-modal-body {
    padding: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .profile-nav {
        padding: 0;
    }

    .profile-nav-item {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .archive-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        width: 100%;
    }

    .builds-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-grid,
    .subscription-info {
        grid-template-columns: 1fr;
    }

    .billing-actions {
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-main {
        padding: 1rem;
    }

    .profile-stats-mini {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .performance-stats {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
.profile-nav::-webkit-scrollbar {
    height: 6px;
}

.profile-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.profile-nav::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.profile-nav::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Print Styles */
@media print {
    .profile-header,
    .profile-nav,
    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .modal-close {
        display: none;
    }

    .profile-section {
        display: block !important;
        page-break-after: always;
    }
}

/* Tier Badge Styles */
.tier-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--cyber-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

.tier-badge:hover {
    border-color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Tier-specific colors */
.tier-badge.tier-sailor {
    border-color: #6b7280;
    color: #9ca3af;
}

.tier-badge.tier-tactical {
    border-color: #3b82f6;
    color: #60a5fa;
}

.tier-badge.tier-commander {
    border-color: #8b5cf6;
    color: #a78bfa;
}

.tier-badge.tier-fleet_admiral {
    border-color: #f59e0b;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic Content System - Beautiful Expansion */
.dashboard-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    transform-origin: top center;
    overflow: hidden;  /* Contain animations */
}

.dashboard-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 212, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    pointer-events: none;
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(0, 212, 255, 0.1);
}

.dashboard-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.dashboard-card:hover .card-icon i {
    color: var(--cyber-blue);
}

/* Expanded State */
.dashboard-card.expanded {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 20, 40, 0.8));
    border: 2px solid var(--cyber-blue);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3),
                inset 0 0 30px rgba(0, 212, 255, 0.1);
    z-index: 1000;  /* High z-index for expanded card */
    margin-bottom: 2rem;
    grid-column: span 1 !important; /* Keep original size */
    min-height: auto;
    height: auto;
    overflow: visible !important;  /* Allow expanded content to show */
    isolation: isolate;  /* Create new stacking context */
}

.dashboard-card.expanded::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
    /* Removed shimmer animation */
    border-radius: 16px 16px 0 0;  /* Match card border radius */
}

/* Removed shimmer animation
@keyframes shimmer {
    0%, 100% { opacity: 0.3; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
} */

/* Smooth Content Expansion - Compact Under Card */
.card-content-expanded {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;  /* Full width of the parent card */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.95);  /* Dark background */
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                0 0 50px rgba(0, 212, 255, 0.1);
    z-index: 1001;  /* Highest z-index to ensure it's above everything */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 212, 255, 0.5);  /* Blue border */
    margin-top: 1rem;
    transform: translateZ(0);  /* Force GPU acceleration */
}

/* Ensure all content inside expanded area is visible */
.card-content-expanded * {
    opacity: 1 !important;
    color: white;  /* Default white text */
}

/* Icons can have their own colors */
.card-content-expanded .feature-list li i {
    color: var(--cyber-blue);
}

.card-content-expanded .info-value.highlight {
    color: var(--accent-gold);
    font-weight: 700;
}

.dashboard-card.expanded .card-content-expanded {
    opacity: 1;
    height: 240px;  /* Reduced height */
    max-height: 240px;
    padding: 1rem;  /* Reduced padding */
    overflow: hidden;  /* No scrolling allowed */
    display: flex;
    flex-direction: column;
    align-items: center;  /* Center all content */
    text-align: center;  /* Center text */
}

/* Make content fit within fixed height */
.card-content-expanded .content-grid {
    display: flex;
    gap: 1rem;  /* Reduced gap */
    flex-wrap: wrap;
    overflow: hidden;  /* No scrolling */
    width: 100%;
    margin-bottom: 0.75rem;  /* Reduced margin */
    justify-content: center;  /* Center the grid items */
}

.card-content-expanded .info-item {
    padding: 0.5rem;  /* Reduced padding */
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    height: 100%;  /* Fill available height */
}

.card-content-expanded .info-label {
    font-size: 0.75rem;  /* Increased from 0.65rem */
    margin-bottom: 0.3rem;  /* Increased from 0.2rem */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);  /* Semi-transparent white */
    opacity: 1;
}

.card-content-expanded .info-value {
    font-size: 1rem;  /* Increased from 0.85rem */
    font-weight: 600;
    color: white;  /* White text */
}

.card-content-expanded h4 {
    font-size: 1rem;  /* Slightly smaller */
    margin: 0.5rem 0;  /* Reduced margins */
    flex-shrink: 0;
    text-align: center;  /* Center headings */
    color: white;  /* White text */
    font-weight: 700;
}

.card-content-expanded .feature-list {
    display: flex;
    gap: 1rem;
    overflow: hidden;  /* No scrolling */
    flex-wrap: wrap;
    flex: 1;
    align-content: center;  /* Center vertically */
    justify-content: center;  /* Center horizontally */
    width: 100%;
}

.card-content-expanded .feature-list li {
    flex: 0 1 calc(25% - 0.75rem);  /* 4 items per row with gap */
    min-width: 160px;  /* Smaller min-width to fit more */
    padding: 0.5rem 0.75rem;  /* Reduced padding */
    margin: 0;
    font-size: 0.85rem;  /* Slightly smaller text */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;  /* Smaller gap */
    background: rgba(255, 255, 255, 0.05);  /* Dark glass background */
    border: 1px solid rgba(255, 255, 255, 0.1);  /* Subtle border */
    border-radius: 8px;
    color: white;  /* White text */
}

/* Position expanded content to center under all cards based on card position */
.dashboard-grid .dashboard-card:nth-child(1).expanded .card-content-expanded {
    left: 0;
    width: calc(400% + 4.5rem);  /* Span all 4 cards */
}

.dashboard-grid .dashboard-card:nth-child(2).expanded .card-content-expanded {
    left: calc(-100% - 1.5rem);
    width: calc(400% + 4.5rem);
}

.dashboard-grid .dashboard-card:nth-child(3).expanded .card-content-expanded {
    left: calc(-200% - 3rem);
    width: calc(400% + 4.5rem);
}

.dashboard-grid .dashboard-card:nth-child(4).expanded .card-content-expanded {
    left: calc(-300% - 4.5rem);
    width: calc(400% + 4.5rem);
}

/* Responsive adjustments for 3-column grid */
@media (max-width: 1400px) {
    .dashboard-grid .dashboard-card:nth-child(1).expanded .card-content-expanded {
        width: calc(300% + 3rem);
    }
    .dashboard-grid .dashboard-card:nth-child(2).expanded .card-content-expanded {
        width: calc(300% + 3rem);
    }
    .dashboard-grid .dashboard-card:nth-child(3).expanded .card-content-expanded {
        left: calc(-200% - 3rem);
        width: calc(300% + 3rem);
    }
}

/* Responsive adjustments for 2-column grid */
@media (max-width: 1100px) {
    .dashboard-grid .dashboard-card:nth-child(1).expanded .card-content-expanded,
    .dashboard-grid .dashboard-card:nth-child(3).expanded .card-content-expanded {
        left: 0;
        width: calc(200% + 1.5rem);
    }
    .dashboard-grid .dashboard-card:nth-child(2).expanded .card-content-expanded,
    .dashboard-grid .dashboard-card:nth-child(4).expanded .card-content-expanded {
        left: calc(-100% - 1.5rem);
        width: calc(200% + 1.5rem);
    }
}

/* Single column on mobile */
@media (max-width: 768px) {
    .dashboard-grid .dashboard-card.expanded .card-content-expanded {
        left: 0;
        width: 100%;
    }
}

/* Ensure action buttons fit within height */
.card-content-expanded .action-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    align-self: center;  /* Center buttons */
    background: #1e293b;  /* Dark button on white background */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-content-expanded .action-btn:hover {
    background: #334155;
    transform: translateY(-2px);
}

/* Remove all scrollbar styles since no scrolling allowed */

@keyframes expandContent {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Removed problematic animations that were hiding content */
.dashboard-card.expanded .info-item {
    opacity: 1 !important;
}

.dashboard-card.expanded .feature-list li {
    opacity: 1 !important;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hide original content when expanded */
.dashboard-card.expanded .card-action {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.dashboard-card.expanded h3 {
    color: var(--cyber-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.dashboard-card.expanded .card-icon {
    /* Keep original styling - no bright gradient */
    background: var(--card-icon-bg);
    /* Removed pulse animation */
}

/* Removed pulse animation
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
} */

.dashboard-card.expanded .card-icon i {
    /* Keep original icon color */
    /* Removed rotate animation */
}

/* Removed rotate animation
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
} */

/* Close button for expanded cards */
.card-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.dashboard-card.expanded .card-close-btn {
    display: flex;
    animation: fadeInRotate 0.5s ease;
}

@keyframes fadeInRotate {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.card-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* No scrollbars needed - content fits within fixed height */

/* Feature list already styled above - removed duplicate */

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card.expanded {
        grid-column: span 1;
    }
}

/* Info Items for expanded content */
.info-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 212, 255, 0.02));
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Removed shimmerRotate animation */
}

/* Removed shimmerRotate animation
@keyframes shimmerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} */

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
    border-color: var(--cyber-blue);
}

.info-item:hover::before {
    opacity: 1;
}

.info-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-size: 1.25rem;
    color: white;
    font-weight: 600;
}

.info-value.highlight {
    color: var(--cyber-blue);
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--cyber-blue), transparent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-list li:hover {
    background: rgba(0, 212, 255, 0.08);
    transform: translateX(5px);
    box-shadow: 0 3px 15px rgba(0, 212, 255, 0.2);
}

.feature-list li:hover::before {
    transform: scaleY(1);
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list i {
    color: var(--cyber-blue);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 3px rgba(0, 212, 255, 0.5));
}

/* Action Buttons */
.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid transparent;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4),
                0 0 50px rgba(0, 212, 255, 0.2);
}

.action-btn.primary i {
    transition: transform 0.3s ease;
}

.action-btn.primary:hover i {
    transform: translateX(3px);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

/* Form Elements in expanded cards */
.expanded-form input[type="text"],
.expanded-form input[type="email"],
.expanded-form textarea,
.expanded-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.expanded-form input[type="text"]:focus,
.expanded-form input[type="email"]:focus,
.expanded-form textarea:focus,
.expanded-form select:focus {
    outline: none;
    border-color: var(--cyber-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* CRITICAL FIX: Ensure all cards and content use dark backgrounds */
.dashboard-card,
.profile-card,
.achievement-card,
.build-card,
.stat-card,
.performance-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
}

/* Fix any white background elements in performance section */
.performance-item,
.stat-item,
.info-item {
    background: transparent !important;
}

/* Ensure expanded card content has proper dark background */
.dashboard-card.expanded {
    background: var(--glass-bg) !important;
}

.card-content-expanded {
    background: rgba(20, 25, 43, 0.98) !important;
}

/* Override any white backgrounds in dynamic content */
[style*="background: white"],
[style*="background-color: white"],
[style*="background:#fff"],
[style*="background-color:#fff"],
[style*="background: #f8fafc"] {
    background: var(--glass-bg) !important;
}

/* Force dark theme on all stat displays */
.content-grid,
.info-grid,
.stats-grid {
    background: transparent !important;
}

.content-grid > *,
.info-grid > *,
.stats-grid > * {
    background: transparent !important;
}

/* Responsive */
@media (max-width: 768px) {
    .card-modal {
        padding: 1rem;
    }

    .card-modal-content {
        max-width: 100%;
        max-height: 90vh;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}