/* IDAROOT PAY — Theme: Dark Professional
   Colors: #793e6e (Primary), #032557 (Secondary), #000000 (Base) */

:root {
    --primary-color: #793e6e;
    --primary-color-hover: #632d59;
    --secondary-color: #032557;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --text-gray-dim: #7a7a7a;
    --bg-dark: #000000;
    --bg-dark-2: #0a0a0a;
    --bg-dark-3: #151515;
    --border-color: rgba(121, 62, 110, 0.25);
    --success-color: #2e9e6d;
    --error-color: #c0392b;
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40vh;
    background-image: url('../img/bg-tech.jpg');
    background-size: cover;
    background-position: center bottom;
    opacity: 0.18;
    -webkit-mask-image: linear-gradient(to top, black, transparent);
    mask-image: linear-gradient(to top, black, transparent);
    pointer-events: none;
    z-index: 0;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color-hover);
}

/* === HEADER === */
.site-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-dark-2);
}

.site-header .header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header .logo {
    height: 36px;
    width: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.site-header .brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.site-header .brand span {
    color: var(--primary-color);
}

/* === MAIN === */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.panel {
    width: 100%;
    max-width: 420px;
    background: var(--bg-dark-3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px 32px;
}

.panel h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.panel .subtitle {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* === FORM === */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 6px;
    font-weight: 500;
}

.optional-tag {
    color: var(--text-gray-dim);
    font-weight: 400;
    font-size: 0.78rem;
}

.field input {
    width: 100%;
    background: var(--bg-dark-2);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(121, 62, 110, 0.2);
}

.field .prefix-wrap {
    position: relative;
}

.field .prefix-wrap .prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray-dim);
    font-size: 0.95rem;
    pointer-events: none;
}

.field .prefix-wrap input {
    padding-left: 40px;
}

.field .currency-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray-dim);
    font-size: 0.85rem;
}

/* === BUTTON === */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--primary-color-hover);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--text-light);
    border-radius: 50%;
    flex-shrink: 0;
    animation: btn-spin 0.7s linear infinite;
}

.btn.is-loading .btn-spinner {
    display: inline-block;
}

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

/* === NOTICE === */
.notice {
    border: 1px solid var(--border-color);
    background: var(--bg-dark-2);
    color: var(--text-gray);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.8rem;
    margin-bottom: 24px;
}

/* === STATUS === */
.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.success { background: var(--success-color); }
.status-dot.error { background: var(--error-color); }
.status-dot.pending { background: #b8860b; }

.status-label {
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: capitalize;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.detail-table tr {
    border-bottom: 1px solid var(--border-color);
}

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

.detail-table td {
    padding: 10px 0;
    font-size: 0.88rem;
}

.detail-table td:first-child {
    color: var(--text-gray-dim);
}

.detail-table td:last-child {
    text-align: right;
    font-weight: 500;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--text-gray);
}

.back-link a {
    color: var(--primary-color);
    font-weight: 600;
}

details.raw {
    margin-top: 20px;
}

details.raw summary {
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--text-gray-dim);
}

details.raw pre {
    margin-top: 10px;
    background: var(--bg-dark-2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    font-size: 0.72rem;
    color: var(--text-gray);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* === PAYMENT METHODS === */
.payment-methods {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.payment-methods-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-gray-dim);
    margin-bottom: 12px;
}

.method-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.method-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-dark-2);
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

.method-chip::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--chip-color, var(--primary-color));
    flex-shrink: 0;
}

.method-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 34px;
    width: 56px;
    padding: 5px 8px;
}

.method-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* === VERIFIED BADGE === */
.verified-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--text-gray-dim);
    font-size: 0.78rem;
}

.verified-badge svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* === FOOTER === */
.site-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-gray-dim);
    font-size: 0.78rem;
    border-top: 1px solid var(--border-color);
}
