:root {
    --bg-dark: #0d2b23;
    --bg-dark-2: #0a221c;
    --card-dark-from: #16473a;
    --card-dark-to: #0d2b23;
    --accent: #2fe6a0;
    --accent-hover: #24cf8e;
    --accent-ink: #06231b;
    --text-light: #ffffff;
    --text-muted-light: rgba(255, 255, 255, 0.68);
    --border-light: rgba(255, 255, 255, 0.12);
    --bg-page: #0d2b23;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-pill: 999px;
    --font: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-page);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(47, 230, 160, 0.08), transparent 45%),
        radial-gradient(circle at 100% 20%, rgba(47, 230, 160, 0.06), transparent 40%);
    color: var(--text-light);
    font-family: var(--font);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    color: var(--text-light);
}

.brand-dot {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #1fae7a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent-ink);
    font-size: 15px;
}

.header-link {
    font-size: 13px;
    color: var(--text-muted-light);
    text-decoration: none;
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: border-color .15s ease, color .15s ease;
}

.header-link:hover {
    border-color: var(--accent);
    color: var(--text-light);
}

main {
    flex: 1;
    padding-bottom: 60px;
}

.hero {
    text-align: center;
    padding: 28px 0 8px;
}

.hero h1 {
    font-size: clamp(26px, 5vw, 36px);
    line-height: 1.15;
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hero p {
    color: var(--text-muted-light);
    max-width: 520px;
    margin: 0 auto;
    font-size: 15.5px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(47, 230, 160, 0.12);
    color: var(--accent);
    border: 1px solid rgba(47, 230, 160, 0.35);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 18px;
}

.card {
    background: linear-gradient(155deg, var(--card-dark-from), var(--card-dark-to));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 26px;
    box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.6);
}

.dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--accent);
    background: rgba(47, 230, 160, 0.06);
}

.dropzone-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: rgba(47, 230, 160, 0.14);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzone strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15.5px;
}

.dropzone span {
    color: var(--text-muted-light);
    font-size: 13px;
}

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

.file-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.file-item .file-info {
    flex: 1;
    min-width: 0;
}

.file-item .file-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item .file-meta {
    font-size: 12px;
    color: var(--text-muted-light);
    margin-top: 2px;
}

.file-item .remove-btn {
    background: none;
    border: none;
    color: var(--text-muted-light);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px 6px;
}

.file-item .remove-btn:hover {
    color: #ff8a8a;
}

.progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 999px;
    transition: width .2s ease;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}

@media (max-width: 560px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

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

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 12.5px;
    color: var(--text-muted-light);
}

.field input[type=text],
.field input[type=email],
.field textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 11px 13px;
    color: var(--text-light);
    font-family: var(--font);
    font-size: 14px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.field.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    padding: 13px 26px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform .1s ease, background .15s ease, opacity .15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    width: 100%;
    margin-top: 22px;
}

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

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 13px;
}

.alert {
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 13.5px;
    margin-top: 16px;
}

.alert-error {
    background: rgba(255, 90, 90, 0.12);
    border: 1px solid rgba(255, 90, 90, 0.35);
    color: #ffb3b3;
}

.alert-success {
    background: rgba(47, 230, 160, 0.12);
    border: 1px solid rgba(47, 230, 160, 0.35);
    color: var(--accent);
}

.result-box {
    text-align: center;
    padding: 10px 0 4px;
}

.result-box .check {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(47, 230, 160, 0.14);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 8px 8px 8px 18px;
    margin-top: 18px;
}

.share-link input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    font-family: var(--font);
    min-width: 0;
}

.share-link input:focus {
    outline: none;
}

.expiry-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted-light);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 6px;
}

.sender-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--text-muted-light);
    margin-bottom: 18px;
}

.sender-box strong {
    color: var(--text-light);
}

.download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.download-item .file-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(47, 230, 160, 0.14);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-item .file-info {
    flex: 1;
    min-width: 0;
}

.download-item .file-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-item .file-meta {
    font-size: 12px;
    color: var(--text-muted-light);
}

.state-page {
    text-align: center;
    padding: 60px 0;
}

.state-page .state-icon {
    font-size: 40px;
    margin-bottom: 14px;
}

.state-page h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

.state-page p {
    color: var(--text-muted-light);
}

.site-footer {
    text-align: center;
    padding: 24px 0 34px;
    font-size: 12.5px;
    color: var(--text-muted-light);
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(6, 35, 27, 0.35);
    border-top-color: var(--accent-ink);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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