/* ================================================================
   Bitwave Withdrawal License — Frontend Styles
================================================================ */

.bwl-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: 'DM Sans', 'Inter', sans-serif;
    color: #e6edf3;
    box-sizing: border-box;
}

/* ---- Login notice ---- */
.bwl-login-notice {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: #8b949e;
}
.bwl-login-notice a { color: #58a6ff; }

/* ---- Current license banner ---- */
.bwl-current-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 10px;
    margin-bottom: 28px;
    border-left: 4px solid;
}
.bwl-current-silver  { background: rgba(120,120,120,.15); border-color: #9e9e9e; }
.bwl-current-gold    { background: rgba(245,158,11,.12);  border-color: #f59e0b; }
.bwl-current-diamond { background: rgba(6,182,212,.12);   border-color: #06b6d4; }

.bwl-current-label  { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #8b949e; margin-bottom: 3px; }
.bwl-current-name   { font-size: 22px; font-weight: 700; color: #e6edf3; }
.bwl-current-expiry { font-size: 13px; color: #8b949e; }

/* ---- No-license notice ---- */
.bwl-no-license-notice {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 28px;
    color: #8b949e;
    font-size: 14px;
}

/* ---- License cards grid ---- */
.bwl-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 820px) {
    .bwl-cards { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

.bwl-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 28px 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.bwl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.bwl-card-silver  { border-top: 3px solid #9e9e9e; }
.bwl-card-gold    { border-top: 3px solid #f59e0b; }
.bwl-card-diamond { border-top: 3px solid #06b6d4; }

.bwl-card-current {
    border-color: #3fb950 !important;
    box-shadow: 0 0 0 1px #3fb950;
}

.bwl-current-badge {
    position: absolute;
    top: -1px;
    right: 18px;
    background: #3fb950;
    color: #0d1117;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 0 0 6px 6px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.bwl-card-header { margin-bottom: 20px; }

.bwl-card-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}
.bwl-card-silver  .bwl-card-name { color: #bdbdbd; }
.bwl-card-gold    .bwl-card-name { color: #f59e0b; }
.bwl-card-diamond .bwl-card-name { color: #06b6d4; }

.bwl-card-price {
    font-size: 30px;
    font-weight: 800;
    color: #e6edf3;
    line-height: 1;
}
.bwl-card-period {
    font-size: 14px;
    font-weight: 400;
    color: #8b949e;
}

.bwl-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}
.bwl-card-features li {
    padding: 7px 0 7px 16px;
    border-bottom: 1px solid #21262d;
    font-size: 13px;
    color: #c9d1d9;
    position: relative;
}
.bwl-card-features li:last-child { border-bottom: none; }
.bwl-card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #30363d;
}
.bwl-card-silver  .bwl-card-features li::before { background: #9e9e9e; }
.bwl-card-gold    .bwl-card-features li::before { background: #f59e0b; }
.bwl-card-diamond .bwl-card-features li::before { background: #06b6d4; }

.bwl-card-footer { margin-top: auto; }

.bwl-buy-btn {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    letter-spacing: .2px;
}
.bwl-buy-btn:hover  { opacity: .85; }
.bwl-buy-btn:active { transform: scale(.98); }

.bwl-card-silver  .bwl-buy-btn { background: #9e9e9e; color: #0d1117; }
.bwl-card-gold    .bwl-buy-btn { background: #f59e0b; color: #0d1117; }
.bwl-card-diamond .bwl-buy-btn { background: #06b6d4; color: #0d1117; }

.bwl-active-indicator {
    width: 100%;
    padding: 12px;
    background: rgba(63,185,80,.08);
    border: 1px solid #3fb950;
    border-radius: 8px;
    color: #3fb950;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    box-sizing: border-box;
}

/* ================================================================
   MODAL
================================================================ */
.bwl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.78);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bwl-modal-box {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 32px 28px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.bwl-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: #8b949e;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}
.bwl-modal-close:hover { color: #e6edf3; background: #21262d; }

.bwl-modal-title {
    font-size: 19px;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 8px;
    padding-right: 30px;
}

.bwl-modal-sub {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.55;
    margin: 0 0 20px;
}

/* Timer */
.bwl-timer-bar {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 9px 14px;
    font-size: 13px;
    color: #8b949e;
    text-align: center;
    margin-bottom: 16px;
}
.bwl-timer-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #f59e0b;
    font-size: 15px;
}
.bwl-timer-expired { color: #f85149 !important; }

/* Amount display */
.bwl-amount-box {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bwl-amount-label { font-size: 12px; color: #8b949e; }
.bwl-amount-value {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: 800;
    color: #3fb950;
}

/* Network buttons */
.bwl-network-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.bwl-net-btn,
.bwl-net-btn-v {
    flex: 1;
    padding: 10px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #8b949e;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s, border-color .15s, color .15s;
}
.bwl-net-btn.active,
.bwl-net-btn-v.active,
.bwl-net-btn:hover,
.bwl-net-btn-v:hover {
    background: #1f6feb;
    border-color: #1f6feb;
    color: #fff;
}

/* Address block */
.bwl-addr-block {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 14px 14px;
    margin-bottom: 16px;
}
.bwl-addr-label {
    font-size: 11px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.bwl-addr-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.bwl-wallet-addr {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #e6edf3;
    word-break: break-all;
    line-height: 1.45;
    background: none;
}
.bwl-copy-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s;
}
.bwl-copy-btn:hover { background: #30363d; }
.bwl-copy-ok {
    margin-top: 6px;
    font-size: 12px;
    color: #3fb950;
}

.bwl-note {
    font-size: 12px;
    color: #8b949e;
    line-height: 1.5;
    margin: 0 0 14px;
}

/* Buttons */
.bwl-btn-primary {
    width: 100%;
    padding: 13px 18px;
    background: #238636;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    box-sizing: border-box;
}
.bwl-btn-primary:hover     { background: #2ea043; }
.bwl-btn-primary:disabled  { background: #21262d; color: #484f58; cursor: not-allowed; }
.bwl-btn-flex { flex: 1; width: auto; }

.bwl-btn-secondary {
    padding: 12px 18px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #c9d1d9;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.bwl-btn-secondary:hover { background: #30363d; }

.bwl-step2-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.bwl-btn-done { margin-top: 16px; }

/* Form */
.bwl-form-group { margin-bottom: 14px; }
.bwl-form-group label {
    display: block;
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 6px;
}
.bwl-input {
    width: 100%;
    padding: 10px 14px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}
.bwl-input:focus       { border-color: #1f6feb; }
.bwl-input::placeholder { color: #484f58; }

/* Result states */
.bwl-result-loading {
    text-align: center;
    padding: 32px 20px;
}
.bwl-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid #30363d;
    border-top-color: #1f6feb;
    border-radius: 50%;
    animation: bwl-spin .75s linear infinite;
    margin: 0 auto 16px;
}
@keyframes bwl-spin { to { transform: rotate(360deg); } }
.bwl-result-loading p { color: #8b949e; font-size: 14px; margin: 0; }

.bwl-result-success,
.bwl-result-error {
    text-align: center;
    padding: 24px 16px;
}
.bwl-result-icon {
    font-size: 50px;
    line-height: 1;
    margin-bottom: 12px;
}
.bwl-result-success .bwl-result-icon { color: #3fb950; }
.bwl-result-error   .bwl-result-icon { color: #f85149; }

.bwl-result-success h3 { font-size: 18px; color: #3fb950; margin: 0 0 8px; }
.bwl-result-error   h3 { font-size: 17px; color: #f85149; margin: 0 0 8px; }

.bwl-result-success p,
.bwl-result-error   p {
    color: #8b949e;
    font-size: 14px;
    margin: 0 0 6px;
    line-height: 1.5;
}
