@font-face {
    font-family: 'Abcgintodiscordnord';
    src: url('/assets/fonts/DiscordNordBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abcgintodiscord';
    src: url('/assets/fonts/DiscordMedium.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Abcgintodiscord', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: #121212;
    min-height: 100vh;
    overflow-x: hidden;
}

body[data-i18n-ready="0"] {
    visibility: hidden;
}

body[data-i18n-ready="1"] {
    visibility: visible;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--blurple), var(--purple-dark));
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 1;
    background: linear-gradient(180deg, var(--purple-light), var(--blurple));
}

::-webkit-scrollbar-corner {
    background: transparent;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(88, 101, 242, 0.7) transparent;
}

html,
body {
    overflow-x: hidden !important;
    max-width: 100%;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.header {
    background-color: #121212;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 0 2rem;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 68px;
    position: relative;
    z-index: 1;
}

.logo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    width: 400px;
    height: 70px;
    position: relative;
    overflow: visible;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    border-radius: 8px;
    pointer-events: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: block;
    padding: 0.5rem 0;
    font-family: 'Abcgintodiscord', sans-serif;
}

.nav-link:hover {
    color: var(--blurple);
}

.nav-link.current-page {
    color: var(--blurple);
    font-weight: 600;
}

.page-home .nav-link-home {
    color: var(--blurple);
    font-weight: 600;
}

.page-panel .nav-link-panel {
    color: var(--blurple);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    margin-left: 1rem;
}

.header-auth-action {
    display: none;
}

.header[data-auth-state="guest"] #headerPanelItem {
    display: none !important;
}

.header[data-auth-state="guest"] #headerLoginBtn {
    display: inline-block !important;
}

.header[data-auth-state="guest"] #logoutBtn {
    display: none !important;
}

.header[data-auth-state="auth"] #headerPanelItem {
    display: flex !important;
}

.header[data-auth-state="auth"] #headerLoginBtn {
    display: none !important;
}

.header[data-auth-state="auth"] #logoutBtn {
    display: inline-block !important;
}

/* Exact copy from old/hero.css */
.main-button {
    display: inline-block;
    background: var(--blurple);
    color: white !important;
    padding: .9rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all .3s cubic-bezier(.25, .8, .25, 1);
    box-shadow: 0 2px 8px rgba(88, 101, 242, .2);
    line-height: 1.3;
    font-family: 'Abcgintodiscord', sans-serif;
    border: 0;
    cursor: pointer;
}

.main-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(88, 101, 242, .3);
    background: #4c5de6;
}

.main-button.is-loading {
    color: transparent !important;
    position: relative;
    pointer-events: none;
}

.main-button.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    margin-left: -9px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: button-spin 0.8s linear infinite;
}

.upload-submit-wrap {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    width: fit-content;
}

.upload-progress-wrap {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.upload-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #ffffff;
    transition: width 120ms linear;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

.nav-button {
    display: inline-block;
    background: var(--blurple);
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 12px rgba(88, 101, 242, 0.25);
    line-height: 1.4;
    font-family: 'Abcgintodiscord', sans-serif;
}

.nav-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
    background: #4c5de6;
}

.nav-button-danger {
    background: var(--red);
    box-shadow: 0 2px 12px rgba(237, 66, 69, 0.25);
}

.nav-button-danger:hover {
    background: #c73639;
    box-shadow: 0 4px 16px rgba(237, 66, 69, 0.35);
}

/* ===== Menu Hamburger ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-content {
    flex: 1;
    padding: 0;
    padding-top: 70px;
}

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

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding: 2rem 0;
    text-align: left;
}

.content-wrapper {
    max-width: 100%;
    margin: 0;
    position: relative !important;
    transform: none !important;
    will-change: auto !important;
    transition: none !important;
    animation: none !important;
}

.hero-image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
}

.main-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: .8rem;
    font-weight: 500;
    font-family: 'Abcgintodiscord', sans-serif;
}

.main-title {
    font-family: 'Abcgintodiscordnord', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--blurple);
    line-height: 1.1;
    position: relative !important;
    transform: none !important;
    will-change: auto !important;
    transition: none !important;
}

.main-description {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: 0;
    margin-right: auto;
    font-family: 'Abcgintodiscord', sans-serif;
}

.main-title,
.main-title * {
    position: relative !important;
    transform: none !important;
    will-change: auto !important;
    transition: none !important;
    animation: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Auth + Panel + Transfer */
.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 2rem 2rem;
}

.auth-card,
.panel-card,
.panel-head {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #0f0f0f;
    padding: 22px;
}

.auth-card {
    max-width: 560px;
    margin: 0 auto;
}

.auth-card h1,
.panel-head h1,
.panel-card h2 {
    font-family: 'Abcgintodiscordnord', sans-serif;
    color: var(--blurple);
    line-height: 1.1;
}

.auth-card h1,
.panel-head h1 {
    font-size: clamp(2rem, 4.6vw, 3rem);
}

.muted {
    color: var(--secondary-color);
}

.stack {
    display: grid;
    gap: 14px;
}

label span {
    display: block;
    margin-bottom: 7px;
}

input,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #181818;
    color: var(--primary-color);
    font: inherit;
}

input:focus,
select:focus {
    outline: 2px solid rgba(88, 101, 242, 0.45);
    border-color: var(--blurple);
}

.auth-hint {
    color: var(--secondary-color);
}

.auth-hint a {
    color: var(--blurple);
}

.panel-shell {
    display: grid;
    gap: 16px;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dropzone {
    border: 1.5px dashed var(--border-color);
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    background: #131313;
}

.dropzone:hover {
    border-color: var(--blurple);
}

.dropzone input[type="file"] {
    display: none;
}

.drop-title {
    font-family: 'Abcgintodiscordnord', sans-serif;
}

.selected-files-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.selected-files-meta {
    font-size: 0.9rem;
    margin-top: 4px;
}

.selected-files-tools {
    display: flex;
    gap: 8px;
    align-items: center;
}

.selected-files-tools input[type="search"] {
    min-width: 220px;
    max-width: 280px;
    padding: 9px 12px;
}

.security-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.password-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.toggle-switch {
    width: 48px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #454a5b;
    background: #1d2029;
    position: relative;
}

.toggle-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #c8cde0;
    transition: transform 180ms ease;
}

.password-toggle input[type="checkbox"]:checked + .toggle-switch {
    background: #45da82;
    border-color: #45da82;
}

.password-toggle input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(20px);
}

.file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.file-list li {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #141414;
}

.file-list-selected {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.file-list-selected li {
    padding: 10px 12px;
}

.selected-file-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.selected-file-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.selected-file-name span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-file-index {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 2px 8px;
    color: var(--secondary-color);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.no-files-row {
    text-align: center;
    color: var(--secondary-color);
}

.file-meta {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.file-remove-btn {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--primary-color);
    padding: 8px 10px;
    cursor: pointer;
    font: inherit;
}

.file-remove-btn:hover {
    border-color: #ff8f8f;
    color: #ff8f8f;
}

.account-transfer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-secondary {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--primary-color);
    padding: 8px 12px;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--blurple);
    color: var(--blurple);
}

.prompt-error {
    color: #ff9b9b;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .logo-link {
        width: 280px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        flex-direction: column;
        justify-content: flex-start;
        background-color: #121212;
        padding: 2rem;
        gap: 0;
        align-items: stretch;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow: hidden;
        border-top: 1px solid var(--border-color);
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item:last-child {
        border-bottom: none;
        margin-top: auto;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: auto;
        padding-bottom: 2rem;
        display: flex;
        justify-content: center;
    }

    .nav-button {
        display: block;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .hero-layout {
        text-align: center;
    }

    .content-wrapper {
        margin: 0 auto;
    }

    .main-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        display: none;
    }

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

    .page-shell {
        padding: 88px 1rem 1.25rem;
    }

    .auth-card,
    .panel-card,
    .panel-head {
        padding: 16px;
    }

    .file-list li {
        align-items: flex-start;
    }

    .account-transfer-actions {
        width: 100%;
    }

    .account-transfer-actions .btn-secondary,
    .account-transfer-actions .file-remove-btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .selected-files-head {
        flex-direction: column;
        align-items: stretch;
    }

    .selected-files-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .selected-files-tools input[type="search"] {
        min-width: 0;
        max-width: none;
    }

    .upload-submit-wrap {
        width: 100%;
    }

    .upload-submit-wrap .main-button {
        width: 100%;
    }
}

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

    .logo-link {
        width: 220px;
    }

    .nav-menu {
        padding: 1.5rem;
    }

    .nav-cta {
        padding-bottom: 1.5rem;
        display: flex;
        justify-content: center;
    }

    .main-title {
        font-size: 1.9rem;
    }

    .main-description {
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .hero-layout {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: left;
        padding: 3rem 0;
    }

    .main-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1025px) {
    .main-title {
        font-size: 4rem;
    }

    .hero-layout {
        gap: 4rem;
    }
}
