* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #050712;
    --text: rgba(255,255,255,.94);
    --muted: rgba(255,255,255,.62);
    --soft: rgba(255,255,255,.10);
    --soft-2: rgba(255,255,255,.16);
    --border: rgba(255,255,255,.18);
    --shadow: 0 28px 90px rgba(0,0,0,.45);
    --radius: 30px;
    --danger: #ff4d6d;
    --success: #7cffc4;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: ui-rounded, "SF Pro Display", "SF Pro Text", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 8%, rgba(124,92,255,.45), transparent 30%),
        radial-gradient(circle at 80% 12%, rgba(0,213,255,.30), transparent 28%),
        radial-gradient(circle at 55% 90%, rgba(255,78,205,.23), transparent 34%),
        linear-gradient(135deg, #03040b 0%, #080d1f 52%, #02030a 100%);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0 64px;
}

.glass-panel {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.055)),
        rgba(255,255,255,.035);
    box-shadow: var(--shadow);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    overflow: hidden;
}

.glass-panel::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius) - 1px);
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.22), transparent 28%, rgba(255,255,255,.08));
    mask-image: linear-gradient(#000, transparent 58%);
}

.hero {
    padding: clamp(24px, 5vw, 54px);
}

.hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -190px;
    top: -250px;
    background: radial-gradient(circle, rgba(117,95,255,.55), transparent 66%);
    filter: blur(12px);
}

.hero-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.eyebrow {
    margin: 0 0 12px;
    color: rgba(255,255,255,.56);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(48px, 10vw, 104px);
    line-height: .88;
    letter-spacing: -.08em;
    background: linear-gradient(120deg, #fff, #cfd7ff 42%, #86f6ff 72%, #fff);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 18px 80px rgba(122,132,255,.26);
}

.hero-text {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 0;
}

.limit-card {
    min-width: 220px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.limit-card span,
.limit-card small {
    display: block;
    color: var(--muted);
}

.limit-card strong {
    display: block;
    margin: 8px 0 4px;
    font-size: 28px;
    letter-spacing: -.04em;
}

.usage {
    position: relative;
    z-index: 1;
    margin-top: 34px;
}

.usage-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    margin-bottom: 10px;
}

.usage-bar {
    height: 14px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.13);
}

.usage-bar div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(112,244,255,.95), rgba(152,111,255,.95), rgba(255,106,213,.95));
    box-shadow: 0 0 26px rgba(123, 144, 255, .55);
}

.toast {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(18px);
}

.toast.success {
    border-color: rgba(124,255,196,.4);
    color: var(--success);
}

.toast.error {
    border-color: rgba(255,77,109,.45);
    color: #ff9aad;
}

.upload-card {
    margin-top: 20px;
    padding: 18px;
}

.upload-progress {
    margin-top: 16px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.upload-progress-head,
.upload-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.upload-progress-head strong {
    letter-spacing: -.02em;
}

.upload-progress-head span {
    color: rgba(255,255,255,.82);
    font-weight: 900;
}

.upload-progress-bar {
    height: 14px;
    margin: 12px 0 10px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
    overflow: hidden;
}

.upload-progress-bar div {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(112,244,255,.95), rgba(152,111,255,.95), rgba(255,106,213,.95));
    box-shadow: 0 0 26px rgba(123, 144, 255, .55);
    transition: width .18s ease;
}

.upload-progress-meta {
    color: var(--muted);
    font-size: 14px;
}

.upload-progress p {
    margin: 10px 0 0;
    color: var(--muted);
}

.upload-progress.success {
    border-color: rgba(124,255,196,.38);
}

.upload-progress.success .upload-progress-head strong,
.upload-progress.success p {
    color: var(--success);
}

.upload-progress.error {
    border-color: rgba(255,77,109,.42);
}

.upload-progress.error .upload-progress-head strong,
.upload-progress.error p {
    color: #ff9aad;
}

.primary-button:disabled {
    opacity: .58;
    cursor: not-allowed;
    transform: none;
}

.upload-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: stretch;
}

.drop-zone {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 180px;
    padding: 28px;
    text-align: center;
    border: 1px dashed rgba(255,255,255,.28);
    border-radius: 24px;
    background: rgba(255,255,255,.055);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.drop-zone:hover,
.drop-zone.drag-over {
    transform: translateY(-2px);
    border-color: rgba(145,240,255,.72);
    background: rgba(255,255,255,.09);
}

.drop-zone input {
    display: none;
}

.drop-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    font-size: 30px;
    line-height: 1;
}

.drop-zone strong {
    font-size: 20px;
}

.drop-zone small,
.drop-zone em {
    color: var(--muted);
    font-style: normal;
}

.turbo-upload-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.82);
    font-size: 14px;
    font-weight: 800;
}

.turbo-upload-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #a7f8ff;
}

.primary-button,
.secondary-button,
.turbo-button,
.danger-button,
.copy-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 800;
    transition: transform .18s ease, opacity .18s ease, background .18s ease;
    white-space: nowrap;
}

.primary-button {
    min-width: 180px;
    padding: 0 28px;
    color: #07101c;
    background: linear-gradient(135deg, #ffffff, #94f4ff 45%, #d7c9ff);
    box-shadow: 0 18px 44px rgba(116,213,255,.20);
}

.primary-button:hover,
.secondary-button:hover,
.turbo-button:hover,
.danger-button:hover,
.copy-button:hover {
    transform: translateY(-1px);
}

.primary-button b {
    font-size: 22px;
}

.files-section {
    margin-top: 34px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -.04em;
}

.file-count {
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.empty {
    padding: 34px;
    text-align: center;
}

.empty p {
    color: var(--muted);
    margin-bottom: 0;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.file-card {
    padding: 18px;
}

.file-main {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.file-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 20px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.84);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    overflow: hidden;
    padding: 6px;
}

.file-info {
    min-width: 0;
}

.file-info h3 {
    margin-bottom: 6px;
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-info p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.link-box {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    margin-top: 16px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.10);
}

.link-box input {
    min-width: 0;
    color: rgba(255,255,255,.78);
    background: transparent;
    border: 0;
    outline: 0;
    padding: 0 8px;
}

.copy-button,
.secondary-button {
    padding: 10px 14px;
    color: var(--text);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.turbo-button {
    padding: 10px 14px;
    color: #07101c;
    background: linear-gradient(135deg, #ffffff, #a7f8ff 45%, #d7c9ff);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 12px 28px rgba(116,213,255,.16);
}

.actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.delete-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.delete-form input {
    min-width: 0;
    padding: 10px 12px;
    color: var(--text);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    outline: 0;
}

.delete-form input:focus {
    border-color: rgba(145,240,255,.6);
}

.danger-button {
    padding: 10px 14px;
    color: #fff;
    background: rgba(255,77,109,.20);
    border: 1px solid rgba(255,77,109,.42);
}

@media (max-width: 860px) {
    .hero-top,
    .upload-form,
    .actions,
    .delete-form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .limit-card {
        min-width: 0;
    }

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

    .primary-button {
        min-height: 58px;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(100% - 18px, 1180px);
        padding-top: 14px;
    }

    .hero,
    .upload-card,
    .file-card,
    .empty {
        border-radius: 24px;
    }

    .usage-row,
    .section-head,
    .upload-progress-head,
    .upload-progress-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .link-box {
        grid-template-columns: 1fr;
    }

    .link-box .copy-button {
        width: 100%;
    }
}


.aria-copy {
    color: #07101c;
    background: linear-gradient(135deg, #ffffff, #a7f8ff 45%, #d7c9ff);
}
