/* --- ROOT VARIABLES --- */
:root {
    --accent: #9f7aea;
    --accent-light: #d6bcfa;
    --bg-dark: #0f0f12;
    --bg-light: #1a1a1f;
    --text-primary: #e8e8ed;
    --text-secondary: #b0b0b8;
    --text-white: #ffffff;
    --text-muted: rgb(180, 180, 180);
    --status-info: #00d4ff;
    
    /* Transparent variations */
    --accent-transparent: rgba(159, 122, 234, 0.15);
    --accent-hover: rgba(159, 122, 234, 0.08);
    --accent-shadow: rgba(159, 122, 234, 0.3);
    --accent-shadow-light: rgba(159, 122, 234, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.04);
}

/* --- COMMON STYLES --- */
@font-face {
    src: url("/assets/jetbrains-mono.ttf");
    font-family: "Jetbrains Mono";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-gutter: stable both-edges;
    user-select: none;
    scroll-behavior: smooth;
}

*:not(a, button, input, a > strong) {
    cursor: default !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-light) inset !important;
    -webkit-text-fill-color: var(--text-secondary) !important;
    caret-color: var(--text-white) !important;
}

a[href] {
    color: var(--accent);
}

body {
    font-family: "JetBrains Mono", monospace;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    overflow-x: hidden;
}

.nav {
    background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-subtle);
    top: 0;
    left: 0;
    z-index: 100;
    position: fixed;
    display: flex;
    justify-content: center;
    padding: 1.3rem 0px;
    gap: 2rem;
    backdrop-filter: blur(16px);
    width: 100%;
    outline: 1px solid var(--bg-dark);
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--accent-light);
}

.container {
    padding: 6rem 2rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 500;
    color: var(--accent);
    white-space: nowrap;
    min-height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.button-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

button {
    background-color: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-family: "JetBrains Mono", monospace;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--accent-shadow-light);
}

button:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--accent-shadow);
}

button:active {
    transform: translateY(0);
}

/* --- HOME PAGE (index.html) --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.typing {
    display: inline;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--accent);
    margin-left: 0.1em;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
}

/* --- SHARED COMPONENTS (Contact, FAQ, DMCA, 404) --- */
.header {
    text-align: center;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 3rem;
}

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

.accordion {
    background-color: var(--bg-light);
    border: none;
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: left;
}

.accordion:hover {
    background-color: var(--accent-hover);
    transform: translateX(4px);
}

.accordion .header {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.accordion .content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}

.accordion.open .content {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
}

.accordion .header::after {
    content: "▼";
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.accordion.open .header::after {
    transform: rotate(180deg);
}

/* --- DMCA PAGE --- */
.dmca-container {
    text-align: left !important;
}

.dmca-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--text-muted);
}

/* --- DIRECTORY PAGE (directory.ejs) --- */
.dir {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.entry {
    display: grid;
    grid-template-columns: 1fr 120px 150px;
    padding: 0.7rem 1rem;
    background: var(--bg-light);
    border: none;
    border-left: 3px solid var(--accent);
    border-radius: 0.3rem;
    transition: all 0.2s ease;
    word-break: break-word;
}

.entry:hover {
    background: var(--accent-hover);
}

.entry a {
    text-decoration: none;
    color: var(--accent);
    text-align: left;
}

.entry span {
    color: var(--text-secondary);
    text-align: right;
}

.breadcrumbs {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: center;
}

.breadcrumbs a {
    color: var(--text-primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.search_dir {
    color: var(--text-white);
    margin-bottom: 10px;
    font-family: "Jetbrains Mono", monospace;
}

.search_dir:focus {
    outline: none !important;
}

.search_back {
    margin-bottom: 10px;
}

.pagination {
    margin-top: 20px;
}

/* --- ROM PAGE --- */
.rom-container {
    max-width: 900px !important;
}

.rom-name {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.rom-path {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    word-break: break-word;
    text-align: left;
}

.rom-downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.rom-downloads a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    background-color: var(--accent);
    color: var(--bg-dark);
    transition: all 0.15s ease;
}

.rom-downloads a:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--accent-shadow);
}

.rom-downloads a.disabled {
    background-color: var(--bg-light);
    color: var(--text-secondary);
    cursor: not-allowed;
    pointer-events: none;
}

.metadata {
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    overflow: clip;
}

.metadata table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
    text-align: left;
}

.metadata th {
    background: var(--accent-transparent);
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.65rem 1rem;
}

.metadata td {
    user-select: text !important;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    word-break: break-all;
    font-size: 0.9rem;
}

.metadata tr:last-child td {
    border-bottom: none;
}

.metadata td.label {
    color: var(--text-secondary);
    width: 8rem;
    word-break: normal;
}

/* --- SEARCH PAGE --- */
.search-body {
    justify-content: flex-start !important;
}

.search-body * {
    user-select: auto !important;
}

.search-header {
    margin-top: 7.5rem;
}

.search-subtitle {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0.75rem;
}

.search-input {
    user-select: auto !important;
    border: 1px solid var(--border-subtle) !important;
    border-left: 3px solid var(--accent) !important;
    color: var(--text-white);
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 0;
    background-color: var(--bg-light);
    width: 100%;
    padding: 0.85rem 3.5rem 0.85rem 1.25rem;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 12px var(--accent-shadow);
}

.search-input:hover {
    transform: none;
}

.search-sub {
    margin-top: 10px;
    color: var(--text-secondary);
}

#toggle-filters-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

#toggle-filters-btn:hover {
    background-color: var(--accent-hover) !important;
}

#toggle-filters-btn .gear-icon {
    display: inline-block;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

#toggle-filters-btn.active {
    background-color: var(--accent-transparent) !important;
}

#toggle-filters-btn.active .gear-icon {
    transform: rotate(180deg);
}

.filters {
    max-height: 0px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    padding: 0 1.25rem;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 650px;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    opacity: 0;
    overflow: hidden;
}

.filters.open {
    max-height: 2000px;
    opacity: 1;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    overflow: visible !important;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.filters-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

.filter-group:focus-within,
.filter-group:hover {
    z-index: 50;
}

.filter-group label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent);
    border-radius: 0.375rem;
    color: var(--text-white);
    padding: 0.6rem 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    min-height: 44px;
    transition: border-color 0.2s ease;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus,
.filter-group input[type="number"]:focus {
    border-color: var(--accent);
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-light);
    border: 1px solid var(--accent);
    border-radius: 0.375rem;
    max-height: 220px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.filter-dropdown.open {
    display: block;
}

.filter-dropdown-item {
    padding: 0.6rem 0.85rem;
    color: var(--text-primary);
    font-size: 0.88rem;
    cursor: pointer !important;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s ease;
}

.filter-dropdown-item:last-child {
    border-bottom: none;
}

.filter-dropdown-item:hover,
.filter-dropdown-item.selected {
    background: var(--accent-transparent);
    color: var(--text-white);
}

.filter-dropdown-item.clear-option {
    color: var(--accent-light);
    font-weight: 600;
}

.filter-checkbox-col {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    padding-top: 0.25rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-primary);
    min-height: 44px;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.filter-row label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: 120px;
    flex: 0 0 auto;
}

.filter-row input,
.filter-row select {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 0.375rem;
    border-left: 3px solid var(--accent);
    flex: 1;
    color: var(--text-white);
    padding: 0.55rem 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    min-height: 44px;
    transition: border-color 0.2s ease;
}

.filter-row select:focus,
.filter-row input:focus {
    border-color: var(--accent);
}

.filter-row input[type="checkbox"] {
    accent-color: var(--accent);
    width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.results {
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    width: 100%;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.75rem;
    text-align: left;
}

.result {
    display: block;
    text-decoration: none;
    color: var(--text-primary) !important;
    margin-bottom: 0.6rem;
    padding: 0.85rem 1rem;
    background-color: var(--bg-dark);
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent);
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal !important;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.result:last-child {
    margin-bottom: 0;
}

.result:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.result:active {
    transform: scale(0.99);
}

.result h3 {
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .nav {
        top: 0;
        gap: 1rem;
    }

    .nav a {
        font-size: 0.8rem;
    }

    .container {
        padding: 5rem 1rem 1rem;
    }

    .title {
        font-size: clamp(2rem, 7vw, 3rem);
        white-space: normal;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .breadcrumbs {
        font-size: 0.75rem;
        gap: 0.15rem;
        justify-content: center;
        margin-bottom: 0.75rem;
    }

    .dir {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .entry {
        grid-template-columns: 1fr 100px 1rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .entry span {
        font-size: 0.8rem;
    }

    button {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    .rom-downloads {
        grid-template-columns: 1fr;
    }

    .metadata td.label {
        width: 6rem;
    }
}

/* --- ACCOUNT DASHBOARD --- */
.account-body {
    justify-content: flex-start !important;
    padding-top: 6rem;
}

.account-container.account-top-banner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px !important;
    margin: 4rem auto;
    gap: 1.5rem;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Top Profile Banner */
.account-top-profile {
    background: var(--bg-light);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-sizing: border-box;
}

.profile-meta .avatar {
    width: 56px;
    height: 56px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background-color: var(--accent-transparent);
    flex-shrink: 0;
}

.profile-meta .user-name {
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 0.15rem;
}

.profile-meta .user-rank {
    font-size: 0.75rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.user-submeta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.user-joined {
    color: var(--text-secondary);
}

.meta-dot {
    color: var(--text-muted);
}

/* Center Metrics Container */
.profile-middle-metrics {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    flex: 1;
    max-width: 440px;
    margin: 0 1rem;
    box-sizing: border-box;
}

.rank-progress-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rank-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.rank-progress-percent {
    font-weight: 700;
    color: var(--accent-light);
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.active-torrents-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 90px;
}

.active-torrents-badge .badge-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.active-torrents-badge .badge-value {
    font-size: 0.95rem;
    font-weight: 700;
}

.network-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    box-sizing: border-box;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.summary-item .label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.summary-item .value {
    font-size: 1.25rem;
    font-weight: 700;
}

.summary-divider {
    width: 1px;
    height: 28px;
    background: var(--border-subtle);
}

/* Stat Cards 2x2 Grid */
.stats-row-4col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.stat-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-bottom: 3px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    background-color: var(--accent-hover);
}

.stat-card .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.stat-card .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
}

.stat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Full Width Connection Details Box */
.account-details-full {
    width: 100%;
}

.account-details-full .details-card {
    background: var(--bg-light);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.75rem 2rem;
}

.account-details-full .details-card h3 {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.announce-url-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.announce-url-section label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.url-box {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.url-box code {
    color: var(--accent-light);
    word-break: break-all;
    font-family: monospace;
    font-size: 0.9rem;
}

.hint {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.text-lime { color: #b9f27c; }

/* --- LOGIN SCREEN STYLES --- */
.login-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 1.5rem 3rem 1.5rem;
}

.login-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-card {
    background-color: var(--bg-light);
    border-left: 3px solid var(--accent);
    border-radius: 0.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.login-header {
    margin-bottom: 2rem;
}

.login-header .logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--accent-transparent);
    border: 2px solid var(--accent);
    padding: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.login-header h1 {
    font-size: 1.75rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-form label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hash-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.hash-input-wrapper input {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent);
    border-radius: 0.375rem;
    color: var(--text-white);
    padding: 0.75rem 2.75rem 0.75rem 0.85rem;
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hash-input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-transparent);
}

.btn-login {
    background-color: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background-color: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.discord-notice-card {
    background: var(--bg-light);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.discord-notice-card .content h3 {
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.discord-notice-card .content p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.discord-notice-card code {
    background: var(--bg-dark);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    color: var(--accent-light);
    font-family: monospace;
    font-size: 0.8rem;
}

/* Media Queries for Mobile Stacking */
@media (max-width: 1100px) {
    .account-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .account-sidebar {
        flex: none;
    }
    
    .stats-row {
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1 1 45%;
    }
}

@media (max-width: 600px) {
    .stat-card {
        flex: 1 1 100%;
    }
}
