:root {
    --primary-color: #0a8edc;
    --primary-hover: #087bbd;
    --bg-dark: #050a14;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-nav: rgba(5, 10, 20, 0.8);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --success: #10b981;
    --error: #f43f5e;
    --warning: #f59e0b;
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Rank Colors */
    --rank-owner: #aa0000;
    --rank-admin: #ff5555;
    --rank-developer: #55ffff;
    --rank-moderator: #55ff55;
    --rank-supporter: #ffff55;
    --rank-tsupporter: #ffff55;
    --rank-creator: #aa00aa;
    --rank-builder: #5555ff;
    --rank-content: #ff55ff;
    --rank-funity: #ffaa00;
    --rank-platin: #33ccff;
    --rank-titan: #0000aa;
    --rank-elite: #00aa00;
    --rank-saphir: #0000ff;
    --rank-rubin: #880000;
    --rank-premium: #ffaa00;
    --rank-spieler: #aaaaaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(10, 142, 220, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(10, 142, 220, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header / Logo */
.site-header {
    width: 100%;
    padding: 3rem 0 0;
    text-align: center;
    position: relative;
    z-index: 1001;
    background: #050a14; /* Identical to nav/body for seamless transition */
}

.main-logo {
    max-width: 260px;
    width: 75%;
    filter: drop-shadow(0 0 40px rgba(10, 142, 220, 0.4));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 0; /* Adjusted for seamless look */
}

.main-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 50px rgba(10, 142, 220, 0.5));
}

/* Navigation - ORIGINAL DESKTOP STYLE */
nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem 0.75rem 1.2rem;
    background: #050a14; /* Solid background for seamless merge */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

nav a.active {
    color: var(--primary-color);
    background: rgba(10, 142, 220, 0.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 60vh;
}

/* Cards - Modern & Clean */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1.25rem;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(10, 142, 220, 0.3);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn {
    padding: 0.9rem 1.8rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(10, 142, 220, 0.5);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -8px rgba(10, 142, 220, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(10, 142, 220, 0.05);
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.streak-card {
    background: linear-gradient(135deg, rgba(10, 142, 220, 0.1) 0%, transparent 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Ranks */
.rank {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 1.75rem; }
    .container { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    .card { padding: 1.25rem; }
    .btn { padding: 0.8rem 1.2rem; font-size: 0.9rem; }
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.shop-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.shop-item img,
.shop-item-img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: none;
}

.shop-item:hover {
    transform: translateY(-5px);
}

.shop-item h3 {
    margin-bottom: 0.5rem;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem 3rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

footer p {
    margin-bottom: 1rem;
}

/* CUSTOM NOTIFICATIONS */
.notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    width: 90%;
}

.notification {
    background: var(--bg-dark);
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease-out;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--error);
}

.notification.info {
    border-left-color: var(--primary-color);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.notification-close:hover {
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .notification-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}
