:root {
    --header-height: 70px;
    --footer-height: 55px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0d1117;
    color: #e6edf3;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
}

/* HEADER */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 9999;
    background: #0d1117;
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    box-sizing: border-box;
}

.logo {
    color: #e75b20;
    font-weight: bold;
}

.header a {
    color: #8b949e;
    margin-left: 20px;
    text-decoration: none;
}

.header a:hover {
    color: #e6edf3;
}

/* LOGIN */

.login-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.login-form input {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #30363d;
    background: #161b22;
    color: #e6edf3;
    font-size: 0.85em;
    width: 140px;
}

.login-form button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #238636;
    color: white;
    cursor: pointer;
    font-size: 0.85em;
}

.login-form button:hover {
    opacity: 0.9;
}

.user-info {
    color: #8b949e;
    font-size: 0.85em;
}

#user_addr {
    color: #34dde9;
}

/* MAIN */

.main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px 70px 20px;
}

.container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: #e75b20;
}

h1 {
    font-size: 2.2em;
    margin: 25px 0;
    text-align: center;
    color: #1f6feb;
}

p {
    color: #8b949e;
    margin-bottom: 40px;
}

.title {
    font-weight: bold;
    color: #f68d30;
    text-align: center;
    margin-bottom: 20px;
}

.subtitle {
    text-align: center;
    color: #8b949e;
    margin-bottom: 40px;
}

.step {
    font-weight: bold;
    margin-bottom: 10px;
    color: #f68d30;
    text-align: center;
}

.text {
    color: #c9d1d9;
    line-height: 1.5em;
    text-align: center;
}

.card {
    background: #161b22;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #30363d;
}

.action {
    margin-top: 30px;
    text-align: center;
}

/* BUTTONS */

.buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn {
    padding: 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: block;
}

.btn-1 { background: #34dde9; color: black; }
.btn-2 { background: #1f6feb; color: white; }
.btn-3 { background: #e273f3; color: black; }
.btn-4 { background: #4ae82e; color: black; }

.btn:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.lastbtn {
    padding: 15px 30px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    background: #238636;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.lastbtn:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* FORMS */

label {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #f68d30;
    font-weight: bold;
    text-align: left;
}

input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #e6edf3;
}

.amount-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.amt-btn {
    flex: 1;
    padding: 12px;
    background: #21262d;
    color: #e6edf3;
    border: 1px solid #30363d;
    border-radius: 8px;
    cursor: pointer;
}

.amt-btn:hover {
    background: #30363d;
}

.amt-btn.active {
    background: #1f6feb;
}

.error {
    color: #ff7b72;
    margin-top: 15px;
    text-align: center;
    min-height: 22px;
}

/* TABLES / ACCOUNT */

.balance {
    text-align: center;
    color: #4ae82e;
    font-size: 2em;
    font-weight: bold;
}

#btc_address {
    color: #34dde9;
    word-break: break-all;
    text-align: center;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #c9d1d9;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #30363d;
}

th {
    color: #f68d30;
    text-align: left;
}

/* CONTACT */

.item {
    margin-bottom: 25px;
    text-align: center;
}

.label {
    color: #f68d30;
    margin-bottom: 8px;
}

.value {
    color: #34dde9;
    word-break: break-all;
}

/* FOOTER */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    z-index: 9999;
    background: #0d1117;
    border-top: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    box-sizing: border-box;
    color: #8b949e;
    font-size: 0.9em;
}

.footer a {
    color: #8b949e;
    margin-left: 15px;
    text-decoration: none;
}

.footer a:hover {
    color: #e6edf3;
}