.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-danger {
    min-height: 46px;
    border: 1px solid #d9534f;
    border-radius: 14px;
    background: #d9534f;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.btn-danger:hover {
    background: #c9302c;
    border-color: #c9302c;
}

.btn-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.alert-error {
    background: #fff2f2;
    color: #b33939;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #f0fff4;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-group {
    display: grid;
    gap: 10px;
}

.form-group label {
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input {
    min-height: 48px;
    padding: 0 16px;
}

.form-group select {
    min-height: 52px;
    padding: 0 44px 0 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #7f8c8d 50%),
        linear-gradient(135deg, #7f8c8d 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.form-group textarea {
    min-height: 180px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.65;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(68, 189, 50, 0.10);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #c8d0d8;
}

.form-help {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

.auth-divider {
    position: relative;
    margin: 26px 0;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
    transform: translateY(-50%);
}

.auth-divider span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 12px;
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.security-placeholder {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #fafbfc;
    color: var(--muted);
    font-size: 14px;
}

.success-placeholder {
    margin-top: 16px;
    border-style: solid;
    border-color: #c8e6c9;
    background: #f0fff4;
    color: #2e7d32;
}

.account-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}

.account-type-badge.is-wallet {
    background: #eefbf0;
    color: #2f9e2a;
    border: 1px solid #cfeecf;
}

.account-type-badge.is-email {
    background: #f3f6fb;
    color: #4a5a6a;
    border: 1px solid #d8e0ea;
}

.wallet-address-line {
    display: grid;
    gap: 6px;
}

.wallet-address-value {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text);
    word-break: break-all;
    font-size: 14px;
}

.account-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.account-list li + li {
    margin-top: 8px;
}

.hidden-file-input {
    display: none;
}

.custom-upload {
    display: grid;
    gap: 6px;
    align-items: center;
    justify-items: center;
    padding: 22px 18px;
    border: 2px dashed #cfd8dc;
    border-radius: 18px;
    background: #fafcfd;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    text-align: center;
}

.custom-upload:hover {
    border-color: var(--accent);
    background: #f7fff5;
}

.custom-upload-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eefbf0;
    color: var(--accent);
    font-size: 24px;
    font-weight: 700;
}

.custom-upload-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.custom-upload-note {
    font-size: 13px;
    color: var(--muted);
}

.selected-files {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.selected-file-item {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
}

.primary-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(68, 189, 50, 0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
/* V3.1.22: user timezone + input guard helpers */
.listing-timezone-notice {
    margin: 14px 0 12px;
}

.listing-workflow-summary-card small,
.schedule-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.js-input-guard-error {
    display: block;
}
