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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: radial-gradient(circle at top, #1a1030 0%, #0b0714 60%, #050308 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8e6f0;
    padding: 20px;
}

.card {
    background: rgba(24, 18, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.card h1 {
    font-size: 22px;
    margin-bottom: 6px;
    color: #fff;
}

.card .sub {
    font-size: 13px;
    color: #9b95b5;
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 13px;
    color: #b6b0cc;
    margin-bottom: 6px;
    margin-top: 16px;
}

input, select {
    width: 100%;
    padding: 12px 14px;
    background: #14101f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    border-color: #7c5cff;
}

input[type="password"], input[type="text"][name="pin"] {
    letter-spacing: 6px;
    text-align: center;
    font-size: 20px;
}

.amount-box {
    display: flex;
    align-items: center;
    background: #14101f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 6px;
}

.amount-box input {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 18px;
}

.amount-box input:focus { border: none; }

.amount-box .cur-tag {
    color: #7c5cff;
    font-weight: 600;
    font-size: 13px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.1);
    margin-left: 10px;
}

button {
    width: 100%;
    padding: 13px;
    margin-top: 26px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c5cff, #5a3fd6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:hover { opacity: 0.9; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.error {
    background: rgba(255, 70, 70, 0.12);
    border: 1px solid rgba(255, 70, 70, 0.35);
    color: #ff8080;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}

.result {
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
    word-break: break-all;
}

.result.success {
    background: rgba(60, 220, 140, 0.1);
    border: 1px solid rgba(60, 220, 140, 0.35);
    color: #7ef0b8;
}

.result.fail {
    background: rgba(255, 70, 70, 0.12);
    border: 1px solid rgba(255, 70, 70, 0.35);
    color: #ff8080;
}

.result div { margin-bottom: 4px; }

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logout-link {
    font-size: 12px;
    color: #9b95b5;
    text-decoration: none;
}

.logout-link:hover { color: #fff; }

.success-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(60, 220, 140, 0.15);
    border: 1px solid rgba(60, 220, 140, 0.4);
    color: #3cdc8c;
    font-size: 28px;
    font-weight: 700;
}

.receipt {
    margin-top: 22px;
    text-align: left;
    background: #14101f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
}

.receipt div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.receipt div:last-child { border-bottom: none; }

.receipt span { color: #9b95b5; }
.receipt strong { color: #fff; font-weight: 600; word-break: break-all; text-align: right; }
