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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 0;
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #0f0c29);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.upload-area {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-area.dragover {
    border-color: rgba(124, 131, 255, 0.6);
    background: rgba(124, 131, 255, 0.1);
    transform: scale(1.02);
    box-shadow:
        0 8px 32px rgba(124, 131, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.upload-btn {
    background: linear-gradient(135deg, #7c83ff, #a855f7);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(124, 131, 255, 0.35);
    letter-spacing: 0.3px;
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 131, 255, 0.5);
    background: linear-gradient(135deg, #8b90ff, #b866ff);
}

.upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(124, 131, 255, 0.3);
}

.upload-icon {
    width: 22px;
    height: 22px;
}

.hint {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    line-height: 1.5;
}

.file-list {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.file-list:empty {
    display: none;
}

.file-list::-webkit-scrollbar {
    width: 6px;
}

.file-list::-webkit-scrollbar-track {
    background: transparent;
}

.file-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    transition: background 0.2s ease;
    flex-wrap: wrap;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.file-item + .file-item {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.file-name {
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    margin-right: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.file-size {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    font-weight: 500;
}

.file-status {
    margin-left: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-success {
    color: #34d399;
}

.status-error {
    color: #f87171;
}

.status-uploading {
    color: #fbbf24;
}

.progress-container {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    position: relative;
}

.progress-bar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #7c83ff, #a855f7);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(124, 131, 255, 0.4);
    margin-bottom: 8px;
}

.progress-text {
    position: absolute;
    top: 14px;
    right: 18px;
    color: #a5b4fc;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.progress-info {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
}

.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(13, 233, 93, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(13, 233, 93, 0.2);
    color: rgb(13 233 93 / 40%);
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.admin-link:hover {
    background: rgba(13, 233, 93, 0.15);
    color: rgb(13 233 93 / 70%);
    border-color: rgba(13, 233, 93, 0.35);
}

.my-link {
    position: fixed;
    bottom: 20px;
    right: 100px;
    background: rgba(13, 233, 93, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(13, 233, 93, 0.2);
    color: rgb(13 233 93 / 40%);
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.my-link:hover {
    background: rgba(13, 233, 93, 0.15);
    color: rgb(13 233 93 / 70%);
    border-color: rgba(13, 233, 93, 0.35);
}

.home-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(13, 233, 93, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(13, 233, 93, 0.2);
    color: rgb(13 233 93 / 40%);
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.home-link:hover {
    background: rgba(13, 233, 93, 0.15);
    color: rgb(13 233 93 / 70%);
    border-color: rgba(13, 233, 93, 0.35);
}

.contact-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 24px auto 0;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-toggle:hover {
    background: rgba(124, 131, 255, 0.15);
    border-color: rgba(124, 131, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(124, 131, 255, 0.25);
}

.contact-area {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-area.contact-open {
    max-height: 700px;
    opacity: 1;
    transform: translateY(0) scale(1);
    padding: 28px;
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.contact-close:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
}

.contact-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-hint {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.contact-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    resize: vertical;
}

.contact-input:focus {
    border-color: rgba(124, 131, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 131, 255, 0.1);
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-textarea {
    min-height: 80px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.captcha-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.captcha-input {
    width: 70px;
    margin-bottom: 0;
    text-align: center;
    flex-shrink: 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    border: none;
    padding: 0;
}

.contact-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.contact-result {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-success {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.contact-error {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.share-result {
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 10px;
    width: 100%;
}

.share-url-box {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.share-url-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 8px;
    color: #34d399;
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    outline: none;
    min-width: 0;
}

.share-copy-btn {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.share-copy-btn:hover {
    background: rgba(52, 211, 153, 0.25);
}

.share-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

.share-actions {
    margin-top: 8px;
    width: 100%;
}

.share-link-btn {
    background: rgba(124, 131, 255, 0.15);
    color: #7c83ff;
    border: 1px solid rgba(124, 131, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.share-link-btn:hover:not(:disabled) {
    background: rgba(124, 131, 255, 0.25);
}

.share-link-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.share-info {
    margin-top: 6px;
}

.my-files-banner {
    text-align: center;
    margin-bottom: 16px;
}

.my-files-link {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(124, 131, 255, 0.15);
    color: #7c83ff;
    border: 1px solid rgba(124, 131, 255, 0.3);
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.my-files-link:hover {
    background: rgba(124, 131, 255, 0.25);
    transform: scale(1.02);
}

.cabinet-creds-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cabinet-creds-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 8px;
}

.cabinet-creds-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.cabinet-creds-value {
    color: rgb(13 233 93);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: monospace;
}

.cabinet-creds-link {
    display: inline-block;
    margin-top: 8px;
    color: #7c83ff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.cabinet-creds-link:hover {
    text-decoration: underline;
}

.my-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.my-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: background 0.2s;
}

.my-file-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.my-file-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

.my-file-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.my-file-meta {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    margin-top: 3px;
}

.my-file-dl-btn {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    margin-left: 12px;
}

.my-file-dl-btn:hover {
    background: rgba(52, 211, 153, 0.25);
}
