/* ================================================================
   StarPay Deposit — Modern UI
   ================================================================ */

.spd-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 8px 0 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Card ── */
.spd-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 48, 135, 0.10);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 48, 135, 0.07);
}

.spd-card__header {
    background: linear-gradient(135deg, #003087 0%, #0055c8 100%);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.spd-card__icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spd-card__icon svg {
    width: 28px;
    height: 28px;
    color: #FFD700;
}

.spd-card__title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
}

.spd-card__subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    margin: 0;
}

.spd-card__body {
    padding: 32px;
}

/* ── Fields ── */
.spd-field {
    margin-bottom: 24px;
}

.spd-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.spd-currency,
.spd-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #6b7280;
    font-size: 12px;
    margin-left: 4px;
}

.spd-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.spd-input-wrap:focus-within {
    border-color: #003087;
    box-shadow: 0 0 0 4px rgba(0, 48, 135, 0.10);
    background: #fff;
}

.spd-input-prefix {
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    border-right: 2px solid #e5e7eb;
    background: #f3f4f6;
    height: 54px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.spd-input {
    flex: 1;
    height: 54px;
    padding: 0 18px;
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    -moz-appearance: textfield;
}

.spd-input::-webkit-outer-spin-button,
.spd-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.spd-field-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 0;
}

/* ── Quick amount buttons ── */
.spd-quick-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.spd-quick-btn {
    padding: 6px 16px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}

.spd-quick-btn:hover,
.spd-quick-btn.active {
    border-color: #003087;
    background: #003087;
    color: #FFD700;
}

/* ── Submit button ── */
.spd-btn {
    width: 100%;
    height: 58px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #003087 0%, #0055c8 100%);
    color: #FFD700;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(0, 48, 135, 0.30);
}

.spd-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.spd-btn:active {
    transform: translateY(0);
}

.spd-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.spd-btn__spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spd-btn__spinner svg {
    width: 20px;
    height: 20px;
    animation: spd-spin 0.8s linear infinite;
}

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

/* ── Secure note ── */
.spd-secure-note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin: 16px 0 0;
}

/* ── Alerts ── */
.spd-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.spd-alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.spd-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.spd-alert--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ── History card ── */
.spd-history-card {
    padding: 0;
}

.spd-history-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    padding: 22px 28px 18px;
    border-bottom: 1px solid #f3f4f6;
}

/* ── Table ── */
.spd-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.spd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spd-table thead th {
    background: #f9fafb;
    padding: 12px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}

.spd-table tbody tr {
    border-bottom: 1px solid #f9fafb;
    transition: background 0.15s;
}

.spd-table tbody tr:hover {
    background: #f9fafb;
}

.spd-table tbody tr:last-child {
    border-bottom: none;
}

.spd-table td {
    padding: 14px 20px;
    color: #374151;
    vertical-align: middle;
}

.spd-amount {
    font-weight: 700;
    color: #003087;
}

.spd-ref {
    font-family: monospace;
    font-size: 12px;
    color: #9ca3af;
}

/* ── Status badges ── */
.spd-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.spd-badge--paid {
    background: #d1fae5;
    color: #065f46;
}

.spd-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.spd-badge--failed {
    background: #fee2e2;
    color: #991b1b;
}

.spd-badge--unknown {
    background: #f3f4f6;
    color: #6b7280;
}

/* ── Empty state ── */
.spd-empty {
    padding: 40px 28px;
    text-align: center;
    color: #9ca3af;
}

.spd-empty__icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.spd-empty p {
    margin: 0;
    font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .spd-card__header {
        padding: 22px 20px;
        gap: 14px;
    }

    .spd-card__body {
        padding: 22px 18px;
    }

    .spd-card__title {
        font-size: 18px;
    }

    .spd-quick-amounts {
        gap: 6px;
    }

    .spd-quick-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .spd-table thead th,
    .spd-table td {
        padding: 10px 14px;
    }

    .spd-history-title {
        padding: 18px 18px 14px;
    }
}
