/* ===== Base ===== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
    background: radial-gradient(circle at top, #0f1218 0%, #0b0e14 60%);
    color: #e6e8eb;
}

/* ===== Layout ===== */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    margin: 48px 0 28px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.22em;
    opacity: 0.9;
}

/* ===== Card ===== */
.card {
    width: 460px;
    padding: 28px 30px 32px;
    border-radius: 12px;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.045),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

/* ===== Section labels ===== */
.section-label {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.55;
}

/* ===== Dropzone ===== */
.dropzone {
    height: 140px;
    border-radius: 10px;
    border: 1px dashed rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.35);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover {
    border-color: rgba(255,255,255,0.4);
}

.dropzone.drag {
    border-color: #6ea0ff;
    background: rgba(79,140,255,0.12);
}

.dropzone strong {
    font-size: 15px;
    font-weight: 500;
}

.drop-subtext {
    margin-top: 4px;
    font-size: 13px;
    opacity: 0.6;
}

/* ===== Uniform form controls ===== */
input[type="password"],
input[type="number"],
select {
    width: 100%;
    height: 44px;
    padding: 0 14px;

    font-size: 14px;
    border-radius: 8px;
    border: none;

    background: rgba(255,255,255,0.9);
    color: #111;
    box-sizing: border-box;
}

select {
    appearance: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 40px;
}

.field {
    margin-top: 14px;
}

/* ===== Download controls (checkbox + number grouped) ===== */
.download-controls {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.downloads-input {
    text-align: center;
}

/* ===== Button ===== */
button {
    margin-top: 32px;
    width: 100%;
    height: 44px;

    background: linear-gradient(180deg, #4f86ff, #3b6fe8);
    color: white;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;

    border: none;
    border-radius: 8px;
    cursor: pointer;

    box-shadow: 0 6px 18px rgba(79,134,255,0.35);
}

button:hover {
    background: linear-gradient(180deg, #5b93ff, #4478f0);
}

/* ===== Progress ===== */
.progress {
    margin-top: 18px;
    height: 4px;
    background: rgba(255,255,255,0.18);
    border-radius: 4px;
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4f8cff, #7faeff);
}

/* =========================
   Download page button
========================= */

.download-button {
    display: block;
    width: 100%;
    height: 44px;

    margin-top: 24px;

    text-align: center;
    line-height: 44px;

    background: linear-gradient(180deg, #4f86ff, #3b6fe8);
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;

    border-radius: 8px;
    text-decoration: none;

    box-shadow: 0 6px 18px rgba(79,134,255,0.35);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.download-button:hover {
    background: linear-gradient(180deg, #5b93ff, #4478f0);
    box-shadow: 0 10px 24px rgba(79,134,255,0.45);
}

.delete-button {
    margin-top: 12px;
    background: linear-gradient(180deg, #f75b5b, #d84343);
}

.notice {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: rgba(24, 144, 255, 0.12);
    border: 1px solid rgba(79, 134, 255, 0.2);
    color: #eaf4ff;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.tool-card {
    display: block;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.09);
    transition: transform 0.15s ease, border-color 0.15s ease;
    color: inherit;
    text-decoration: none;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79,140,255,0.35);
}

.tool-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    margin-bottom: 16px;
    font-size: 22px;
}

.tool-icon-large {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    margin-right: 16px;
    font-size: 28px;
}

.tool-card h3 {
    margin: 0 0 10px;
}

.tool-card p {
    margin: 0;
    opacity: 0.8;
    line-height: 1.5;
}

.tool-chip {
    display: inline-flex;
    margin-top: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    font-size: 12px;
    opacity: 0.85;
}

.category-block {
    margin-top: 24px;
}

.category-title {
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 14px;
}

.tool-header {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.tool-header h1 {
    margin: 0 0 10px;
}

.page-card {
    padding: 28px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    opacity: 0.76;
}

.field input[type="text"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #111;
    box-sizing: border-box;
    margin-top: 8px;
}

/* Make download cards feel intentional */
.card h3 {
    margin-bottom: 12px;
}
