* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0a0a0a 100%);
    overflow: hidden;
}

.container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #4a4a4a;
    text-align: center;
    margin-top: 24px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0a0a0a;
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 15px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 32px;
}

.wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.button {
    padding: 14px 48px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #333333 0%, #4a4a4a 100%);
}

.button:active {
    transform: translateY(0);
}

.info {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.info-item {
    font-size: 13px;
    color: #6b7280;
}

code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "SF Mono", Monaco, monospace;
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 500;
}

/* File Upload Plugin */
.kwt-file {
    width: 100%;
}

.kwt-file__drop-area {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fafafa;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.kwt-file__drop-area:hover,
.kwt-file__drop-area.is-active {
    background: #f5f5f5;
    border-color: #1a1a1a;
}

.kwt-file__choose-file {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    border-radius: 10px;
    margin-right: 16px;
    color: #fff;
}

.kwt-file__choose-file svg {
    width: 20px;
    height: 20px;
}

.kwt-file__msg {
    font-size: 14px;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kwt-file__input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.kwt-file__delete {
    display: none;
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.kwt-file__delete:hover {
    opacity: 1;
}

.kwt-file__delete:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%231a1a1a' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

/* Popup */
.popup {
    position: fixed;
    padding: 24px 32px;
    max-width: 400px;
    border-radius: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    z-index: 100;
    visibility: visible;
    opacity: 0;
    transition: opacity 0.3s;
}

.popup h2 {
    font-size: 18px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 12px;
}

.popup p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.popup .close {
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 24px;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.popup .close:hover {
    color: #1a1a1a;
}

.close-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 99;
}

.popup:target + .close-popup {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 540px) {
    .card {
        padding: 32px 24px;
    }

    h1 {
        font-size: 24px;
    }

    .info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}
