/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Beta Badge */
.beta-badge {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.9em;
}

body {
    font-family: 'Inter', 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #36393f;
    min-height: 100vh;
    color: #dcddde;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

/* Navigation Bar */
.navbar {
    background: #2f3136;
    border-bottom: 1px solid #202225;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Hide mobile menu buttons everywhere */
.mobile-menu-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Auth Section Styles */
.auth-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

.signin-btn {
    background: #5865f2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.signin-btn:hover {
    background: #4752c4;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
}

.user-toggle {
    background: #4f545c;
    color: #dcddde;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.user-toggle:hover {
    background: #5865f2;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2f3136;
    border: 1px solid #202225;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 12px 16px;
    border-bottom: 1px solid #202225;
}

.user-email {
    color: #b9bbbe;
    font-size: 12px;
}

.profile-link {
    display: block;
    width: 100%;
    color: #dcddde;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #202225;
}

.profile-link:hover {
    background: #36393f;
    color: #5865f2;
}

.logout-btn {
    width: 100%;
    background: none;
    border: none;
    color: #dcddde;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.logout-btn:hover {
    background: #36393f;
    color: #ed4245;
}

/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    background: #2f3136;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #40444b;
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    border-bottom: 1px solid #40444b;
    margin-bottom: 24px;
}

.auth-modal-header h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.auth-close {
    background: none;
    border: none;
    color: #b9bbbe;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-close:hover {
    background: #40444b;
    color: #dcddde;
}

.auth-modal-body {
    padding: 0 24px 24px;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid #40444b;
}

.auth-tab {
    background: none;
    border: none;
    color: #b9bbbe;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    flex: 1;
}

.auth-tab:hover {
    color: #dcddde;
    background: #40444b;
}

.auth-tab.active {
    color: #5865f2;
    border-bottom-color: #5865f2;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #b9bbbe;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.form-group input {
    background: #40444b;
    border: 1px solid #40444b;
    border-radius: 4px;
    color: #dcddde;
    font-size: 16px;
    padding: 12px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #5865f2;
    box-shadow: 0 0 0 1px #5865f2;
}

.form-group input.error {
    border-color: #ed4245;
    box-shadow: 0 0 0 1px #ed4245;
}

.form-group.has-error .form-error {
    display: block;
}

.form-error {
    color: #ed4245;
    font-size: 12px;
    display: none;
}

.form-hint {
    color: #72767d;
    font-size: 12px;
}

/* Auth Actions */
.auth-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.auth-cancel {
    background: none;
    border: none;
    color: #b9bbbe;
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-cancel:hover {
    background: #40444b;
    color: #dcddde;
}

.auth-submit {
    background: #5865f2;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    min-width: 120px;
}

.auth-submit:hover {
    background: #4752c4;
}

.auth-submit:disabled {
    background: #5865f2;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Auth Notifications */
.auth-notification {
    font-family: 'Inter', 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 640px) {
    .auth-modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 6px;
    }
    
    .auth-modal-header {
        padding: 20px 20px 0;
    }
    
    .auth-modal-body {
        padding: 0 20px 20px;
    }
    
    .auth-actions {
        flex-direction: column;
    }
    
    .auth-actions button {
        width: 100%;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand h1 {
    color: #5865f2;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-main {
    font-size: 2.5rem;
    font-weight: 1000;
    color: #5865f2;
    line-height: 1;
}

.logo-sub {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-line {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5865f2;
    line-height: 1.1;
    text-align: right;
}

.nav-logo {
    height: 48px;
    width: auto;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #b9bbbe;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.nav-link:hover {
    background: #4f545c;
    color: #ffffff;
}

.nav-link.active {
    background: #5865f2;
    color: #ffffff;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2f3136;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
    padding: 8px 0;
    min-width: 220px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    border: 1px solid #202225;
}

/* MEGA MENU STYLES - BREITES RECHECKIGES DROPDOWN */
.mega-menu {
    min-width: 1050px !important;
    width: 1050px !important;
    padding: 25px !important;
    border-radius: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: absolute !important;
    top: 100% !important;
    background: #36393f !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #202225 !important;
    z-index: 1001 !important;
}

.mega-menu-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.mega-menu-column {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-width: 180px !important;
    max-width: 200px !important;
}

.mega-menu-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #40444b !important;
}

.mega-menu-icon {
    width: 20px !important;
    height: 20px !important;
}

.mega-menu-header h3 {
    color: #dcddde !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.mega-menu-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.mega-menu .dropdown-item {
    padding: 8px 12px !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.85rem !important;
    color: #b9bbbe !important;
    text-decoration: none !important;
}

.mega-menu .dropdown-item:hover {
    background-color: #40444b !important;
}

.mega-menu .dropdown-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile-specific dropdown behavior */
@media (max-width: 768px) {
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #b9bbbe;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    gap: 8px;
    white-space: nowrap;
    min-width: max-content;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.dropdown-item:hover {
    background: #4f545c;
    color: #ffffff;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 600;
}

.welcome-container {
    background: #2f3136;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #202225;
}

.welcome-text {
    font-size: 0.95rem;
    color: #dcddde;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left;
}

.welcome-text:last-child {
    margin-bottom: 0;
}

.welcome-text strong {
    color: #5865f2;
    font-weight: 600;
}

/* Tools Grid */
/* Welcome Box */
.welcome-box {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-box h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-box p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.welcome-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.welcome-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.welcome-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-stat .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Welcome Slider Styles */
.welcome-slider {
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    border-radius: 16px;
    overflow: hidden;
}

.slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 1;
}

.slider-wrapper {
    position: relative;
    z-index: 2;
}

.slider-slide {
    display: none;
    padding: 40px;
    text-align: center;
    min-height: 300px;
    align-items: center;
    justify-content: center;
}

.slider-slide.active {
    display: flex;
}

.popular-tool-card {
    max-width: 500px;
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.welcome-content {
    max-width: 500px;
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.popular-tool-card .tool-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: white;
}

.welcome-content .welcome-stats {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin: 5px auto;
}

.welcome-content .welcome-stat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;
    height: 90px;
    justify-content: center;
}

.popular-tool-card .tool-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-content h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 24px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    line-height: 1.2;
}

.popular-tool-card .tool-content p,
.welcome-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.popular-tool-card .tool-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.popular-tool-card .tool-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Category Cards */
.category-card {
    background: #2f3136;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #40444b;
}

.category-card:hover {
    border-color: #5865f2;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.1);
}

.category-card.expanded {
    border-color: #5865f2;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.category-header:hover {
    background: rgba(88, 101, 242, 0.05);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

/* Twitter Icon Background */
[data-category="twitter"] .category-icon {
    background: #000000;
}

/* YouTube Icon Background */
[data-category="youtube"] .category-icon {
    background: #ff0000;
}

/* Universal Icon Background */
[data-category="universal"] .category-icon {
    background: #808080;
}

.category-info {
    flex: 1;
}

.category-info h2 {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.category-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #b9bbbe;
}

.category-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #b9bbbe;
    transition: all 0.3s ease;
}

.category-arrow svg {
    transition: transform 0.3s ease;
}

.tools-grid.collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tools-grid:not(.collapsed) {
    max-height: 2000px;
    transition: max-height 0.3s ease;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px 20px 20px;
    margin-bottom: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Single tool grids should not expand to full width */
.tools-grid.single-tool {
    grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
    justify-content: start;
}

.tool-card {
    background: #2f3136;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    border: 1px solid #202225;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #5865f2;
}

.tool-card:hover {
    background: #36393f;
    border-color: #5865f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: #5865f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
}

.tool-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 600;
}

.tool-content p {
    color: #b9bbbe;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.tool-button {
    display: inline-block;
    background: #5865f2;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.tool-button:hover {
    background: #4752c4;
}

.tool-button.disabled {
    background: #40444b;
    color: #72767d;
    cursor: not-allowed;
    opacity: 0.6;
}

.tool-button.disabled:hover {
    background: #40444b;
    transform: none;
}

.placeholder-card {
    opacity: 0.7;
}

.placeholder-card:hover {
    opacity: 0.8;
}

/* Stats Section */
.stats-section {
    background: #2f3136;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #202225;
}

.stats-section h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #ffffff;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #5865f2;
    margin-bottom: 8px;
}

.stat-label {
    color: #b9bbbe;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: center;
        height: 60px;
        padding: 10px 20px;
        gap: 10px;
    }

    .nav-brand {
        display: none; /* Hide myprofileforge brand name in mobile view */
    }

    /* Hide any mobile menu buttons */
    .mobile-menu-button {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }

    .nav-menu {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #36393f;
        border-radius: 4px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        padding: 8px 0;
        min-width: 320px;
        width: max-content;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        display: none; /* Hide dropdown by default on mobile */
        z-index: 1001;
        border: 1px solid #202225;
    }

    .dropdown-item {
        white-space: nowrap;
        min-width: max-content;
    }

    .nav-dropdown .dropdown-menu.show {
        display: block; /* Show dropdown when .show class is present */
    }

    .dashboard-header h2 {
        font-size: 2rem;
    }

    .dashboard-header p {
        font-size: 1rem;
    }

    .welcome-box {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .welcome-box h1 {
        font-size: 2rem;
    }
    
    .welcome-box p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .welcome-stats {
        gap: 24px;
    }
    
    .welcome-stat .stat-number {
        font-size: 1.5rem;
    }
    
    .category-header {
        padding: 16px;
        gap: 12px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-info h2 {
        font-size: 1.3rem;
    }
    
    .tools-grid {
        padding: 0 16px 16px 16px;
        gap: 20px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-card {
        padding: 20px;
    }

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

@media (max-width: 480px) {
    .nav-container {
        padding: 8px 15px;
        height: 55px;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .container {
        padding: 0 15px;
    }

    .tool-card {
        padding: 15px;
    }

    .tool-icon {
        width: 60px;
        height: 60px;
    }

    .tool-content h3 {
        font-size: 1.3rem;
    }

    .stats-section {
        padding: 30px 20px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.6s ease forwards;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }
.tool-card:nth-child(7) { animation-delay: 0.7s; }

/* Main content area */
main, .main-content, .container {
    flex: 1;
}

/* Footer Styles */
.site-footer {
    background-color: #2f3136;
    border-top: 1px solid #202225;
    margin-top: auto;
    padding: 20px 0;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left p {
    margin: 0;
    color: #dcddde;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    height: 16px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(89%) sepia(6%) saturate(464%) hue-rotate(169deg) brightness(90%) contrast(88%);
    vertical-align: middle;
}

.footer-tagline {
    color: #72767d !important;
    font-size: 12px !important;
    margin-top: 4px !important;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link {
    color: #b9bbbe;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-separator {
    color: #4f545c;
    font-size: 12px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-left p {
        text-align: center;
    }
    
    .site-footer {
        margin-top: 60px;
        padding: 20px 0;
    }
}


/* Legal Pages Styles */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #2f3136;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    margin-bottom: 40px;
}

.legal-page h1 {
    color: #5865f2;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #5865f2;
    padding-bottom: 15px;
}

.legal-page h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #5865f2;
    padding-left: 15px;
}

.legal-page h3 {
    color: #dcddde;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section p {
    color: #b9bbbe;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.legal-section ul {
    color: #b9bbbe;
    line-height: 1.6;
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section a {
    color: #5865f2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: #4752c4;
    text-decoration: underline;
}

.legal-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #40444b;
    text-align: center;
}

.legal-footer small {
    color: #72767d;
    font-size: 0.9rem;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        margin: 20px 10px;
        padding: 20px 15px;
    }
    
    .legal-page h1 {
        font-size: 2rem;
    }
    
    .legal-page h2 {
        font-size: 1.3rem;
    }
    
    .legal-page h3 {
        font-size: 1.1rem;
    }
}

/* Beta Disclaimer */
.beta-disclaimer {
    background: #4f545c;
    border: 1px solid #36393f;
    border-radius: 12px;
    margin: 30px 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.beta-disclaimer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #4f545c, #5865f2, #4f545c);
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.disclaimer-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 5px;
}

.disclaimer-text {
    flex: 1;
    color: white;
}

.disclaimer-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.disclaimer-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.disclaimer-text p:last-of-type {
    margin-bottom: 20px;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5865f2;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.discord-link:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    text-decoration: none;
    color: white;
}

.discord-link:active {
    transform: translateY(0);
}

.discord-link svg {
    flex-shrink: 0;
}

/* Responsive Beta Disclaimer */
@media (max-width: 768px) {
    .disclaimer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .disclaimer-icon {
        align-self: center;
        margin-top: 0;
    }
    
    .disclaimer-text h3 {
        font-size: 1.2rem;
    }
    
    .disclaimer-text p {
        font-size: 0.9rem;
    }
}

/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    background: #2f3136;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: authModalSlideIn 0.3s ease-out;
}

@keyframes authModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    background: #2f3136;
}

.auth-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-close {
    background: none;
    border: none;
    color: #b9bbbe;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-close:hover {
    background: #40444b;
    color: #fff;
}

.auth-modal-body {
    padding: 24px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid #40444b;
}

.auth-tab {
    background: none;
    border: none;
    color: #b9bbbe;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
}

.auth-tab.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

.auth-tab:hover:not(.active) {
    color: #dcddde;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #b9bbbe;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    background: #40444b;
    border: 1px solid #40444b;
    color: #dcddde;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 1px #00d4ff;
}

.form-group input.error {
    border-color: #f04747;
    box-shadow: 0 0 0 1px #f04747;
}

.form-group.has-error .form-error {
    display: block;
}

.form-error {
    color: #f04747;
    font-size: 0.75rem;
    display: none;
}

.form-hint {
    color: #72767d;
    font-size: 0.75rem;
}

.auth-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.auth-cancel {
    background: none;
    border: 1px solid #40444b;
    color: #b9bbbe;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-cancel:hover {
    background: #40444b;
    color: #dcddde;
}

.auth-submit {
    background: #00d4ff;
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-submit:hover:not(:disabled) {
    background: #00b8db;
}

.auth-submit:disabled {
    background: #40444b;
    color: #72767d;
    cursor: not-allowed;
}

/* Responsive Auth Modal */
@media (max-width: 540px) {
    .auth-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .auth-modal-header,
    .auth-modal-body {
        padding: 16px;
    }
    
    .auth-actions {
        flex-direction: column-reverse;
    }
    
    .auth-actions button {
        width: 100%;
    }
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
}

.user-toggle {
    background: #5865f2;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-toggle:hover {
    background: #4752c4;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2f3136;
    border: 1px solid #202225;
    border-radius: 4px;
    margin-top: 8px;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

.user-menu.show {
    display: block;
}

.user-info {
    padding: 12px;
    border-bottom: 1px solid #40444b;
}

.user-email {
    color: #b9bbbe;
    font-size: 0.875rem;
}

.user-menu a,
.user-menu button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    color: #dcddde;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu a:hover,
.user-menu button:hover {
    background: #40444b;
    color: #fff;
}

.profile-link,
.admin-link {
    border-bottom: 1px solid #40444b;
}

.admin-link {
    color: #7b82d4 !important;
    font-size: 14px;
}

.logout-btn {
    color: #ed4245 !important;
}