* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0f141a;
    color: #fff;
}

/* LAYOUT */
.layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: #111820;
    padding: 20px 0;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #1f2d3d;
    flex-shrink: 0;
}
.sidebar-logo {
    font-size: 18px;
    font-weight: bold;
    padding: 0 20px 24px;
    color: #ffffff;
    border-bottom: 1px solid #1f2d3d;
    margin-bottom: 16px;
}
.sidebar-section-label {
    font-size: 10px;
    color: #3a4a5a;
    padding: 12px 20px 6px;
    letter-spacing: 1px;
    font-weight: bold;
}
.sidebar-link {
    display: block;
    padding: 10px 20px;
    color: #7a8a9a;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.sidebar-link:hover {
    background: #1b2430;
    color: #ffffff;
    border-left-color: #4a9eff;
}
.sidebar-link.active {
    background: #1b2430;
    color: #ffffff;
    border-left-color: #1f6feb;
}
.logout-link { color: #cc4444 !important; margin-top: 20px; }
.logout-link:hover { background: #2a1a1a !important; border-left-color: #cc4444 !important; }

/* MAIN */
.main {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111820;
    padding: 14px 24px;
    border-bottom: 1px solid #1f2d3d;
    position: sticky;
    top: 0;
    z-index: 99;
    width: 100%;

}
.topbar-title { font-size: 18px; font-weight: bold; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-email { font-size: 13px; color: #7a8a9a; }
.topbar-profile {
    background: #1b2430;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #2a3a4a;
}
.topbar-profile:hover { background: #263445; }

/* CONTENT */
.content { padding: 24px; }

/* WELCOME BANNER */
.welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1b2430, #1f3b5c);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    border-left: 4px solid #1f6feb;
}
.welcome-text h2 { font-size: 22px; margin-bottom: 6px; }
.welcome-text p  { color: #7a8a9a; font-size: 14px; margin-bottom: 12px; }
.welcome-icon { font-size: 56px; }

/* STAT CARDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #1b2430;
    border-radius: 10px;
    padding: 20px;
    border-top: 3px solid #2a3a4a;
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card.green  { border-top-color: #3cff9b; }
.stat-card.red    { border-top-color: #ff6b6b; }
.stat-card.blue   { border-top-color: #4a9eff; }
.stat-card.yellow { border-top-color: #ffd86b; }
.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.stat-icon { font-size: 22px; }
.stat-change {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: bold;
}
.stat-change.up      { background: #123a24; color: #3cff9b; }
.stat-change.down    { background: #3a1a1a; color: #ff6b6b; }
.stat-change.warn    { background: #3a3212; color: #ffd86b; }
.stat-change.neutral { background: #1f2d3d; color: #4a9eff; }
.stat-value { font-size: 26px; font-weight: bold; color: #ffffff; }
.stat-label { font-size: 12px; color: #7a8a9a; margin-top: 4px; }

/* CARDS */
.card {
    background: #1b2430;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.card-header {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #263445;
    color: #ffffff;
}

/* INFO GRID */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.info-item { display: flex; flex-direction: column; gap: 6px; }
.info-label { font-size: 11px; color: #7a8a9a; text-transform: uppercase; letter-spacing: 0.5px; }
.info-value { font-size: 14px; color: #ffffff; }
.license-key-display {
    font-family: monospace;
    font-size: 12px;
    color: #a0b0c0;
    word-break: break-all;
}

/* UPLOAD AREA */
.upload-area {
    border: 2px dashed #2a3a4a;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: #7a8a9a;
    font-size: 14px;
}
.upload-icon { font-size: 32px; margin-bottom: 8px; }

/* BUTTON */
.btn-primary {
    padding: 10px 24px;
    background: #1f6feb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}
.btn-primary:hover { background: #2f80ff; }

/* SECURITY LIST */
.security-list { display: flex; flex-direction: column; gap: 16px; }
.security-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: #0f141a;
    border-radius: 8px;
}
.security-check {
    color: #3cff9b;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}
.security-title { font-size: 14px; font-weight: bold; margin-bottom: 4px; }
.security-desc  { font-size: 12px; color: #7a8a9a; }

/* STEPS */
.steps-list { display: flex; flex-direction: column; gap: 16px; }
.step-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: #0f141a;
    border-radius: 8px;
}
.step-num {
    width: 36px; height: 36px;
    background: #1f6feb;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 16px;
    flex-shrink: 0;
}
.step-text { font-size: 14px; color: #a0b0c0; }

/* BADGES */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}
.active  { background: #123a24; color: #3cff9b; }
.expired { background: #3a1a1a; color: #ff6b6b; }
.revoked { background: #3a1a1a; color: #ff6b6b; }
.pending { background: #3a3212; color: #ffd86b; }

/* IMAGE */
img.thumb {
    width: 120px;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
}

/* FOOTER */
.dashboard-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #3a4a5a;
    border-top: 1px solid #1b2430;
    margin-top: auto;
}
.dashboard-footer span { color: #4a9eff; font-weight: bold; }

/* SECTION CONTENT */
.section-content { display: block; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .sidebar {
        width: 60px;
        overflow: hidden;
    }
    .sidebar-logo,
    .sidebar-section-label {
        display: none;
    }
    .sidebar-link {
        text-align: center;
        font-size: 20px;
        padding: 14px 0;
    }
    .main { margin-left: 60px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .welcome-icon { display: none; }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .info-grid  { grid-template-columns: 1fr; }
    .content    { padding: 12px; }
    .welcome-banner { padding: 20px; }
}

@media (max-width: 400px) {
    .sidebar { display: none; }
    .main    { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* PAYMENT TABS */
.payment-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.pay-tab {
    padding: 9px 20px;
    background: #0f141a;
    border: 1px solid #2a3a4a;
    border-radius: 6px;
    color: #7a8a9a;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.pay-tab:hover { background: #1b2430; color: #fff; }
.pay-tab.active { background: #1f6feb; color: #fff; border-color: #1f6feb; }

.pay-content { display: none; }
.pay-content.active { display: block; }

/* PAYMENT INFO BOX */
.payment-info-box {
    background: #0f141a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #1f6feb;
}
.payment-info-box.btc { border-left-color: #ffd86b; }
.payment-info-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #ffffff;
}
.payment-info-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* COPY TEXT */
.copy-text {
    cursor: pointer;
    color: #4a9eff;
}
.copy-text:hover { text-decoration: underline; }
.copy-hint { font-size: 11px; color: #3a4a5a; margin-left: 6px; }

/* BTC BUTTON */
.btc-btn { background: #b8860b !important; }
.btc-btn:hover { background: #d4a017 !important; }

/* CUSTOMER AUTH */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f141a;
}
.auth-card {
    background: #1b2430;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
}
.auth-logo { font-size: 48px; margin-bottom: 12px; }
.auth-title { font-size: 22px; font-weight: bold; margin: 0 0 6px; color: #fff; }
.auth-subtitle { font-size: 14px; color: #7a8a9a; margin-bottom: 28px; }

.form-group { text-align: left; margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: #a0b0c0; margin-bottom: 6px; }
.form-group input {
    width: 100%;
    padding: 10px 14px;
    background: #0f141a;
    border: 1px solid #2a3a4a;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}
.form-group input:focus { border-color: #1f6feb; }

.auth-links {
    margin-top: 20px;
    font-size: 13px;
    color: #7a8a9a;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.auth-links a { color: #4a9eff; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

.auth-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #3a4a5a;
    position: fixed;
    bottom: 0;
    width: 100%;
}
.auth-footer span { color: #4a9eff; font-weight: bold; }

/* ALERTS */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
}
.alert.error { background: #3a1a1a; color: #ff6b6b; border: 1px solid #5c2a2a; }
.alert.success { background: #123a24; color: #3cff9b; border: 1px solid #1a5c36; }
/* SUCCESS POPUP */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.popup-box {
    background: #1b2430;
    border-radius: 14px;
    padding: 40px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    border-top: 4px solid #3cff9b;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s ease;
}

.popup-icon {
    font-size: 52px;
    margin-bottom: 16px;
}

.popup-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

.popup-box p {
    font-size: 14px;
    color: #7a8a9a;
    margin-bottom: 24px;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
    
}
/* PROFILE PAGE */
/* PROFILE HEADER */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #1b2430;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    border-left: 4px solid #1f6feb;
}

@media (max-width: 600px) {
    .profile-header  { flex-direction: column; text-align: center; }
    .customer-meta   { justify-content: center; }
    .settings-grid   { grid-template-columns: 1fr; }

}

.customer-avatar {
    font-size: 52px;
    background: #263445;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.customer-info h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}
.customer-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.meta-item {
    font-size: 13px;
    color: #7a8a9a;
}

/* SETTINGS GRID FOR FORMS */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 12px;
    color: #a0b0c0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group input {
    padding: 10px 14px;
    background: #0f141a;
    border: 1px solid #2a3a4a;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}
.form-group input:focus {
    border-color: #1f6feb;
}

/* ALERTS */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: bold;
}
.alert.success { background: #123a24; color: #3cff9b; border: 1px solid #1a5c36; }
.alert.error   { background: #3a1a1a; color: #ff6b6b; border: 1px solid #5c2a2a; }

@media (max-width: 600px) {
    .settings-grid   { grid-template-columns: 1fr; }
    .customer-header { flex-direction: column; text-align: center; }
    .customer-meta   { justify-content: center; }
}
/* OTP INPUT */
input[style*="letter-spacing"] {
    width: 100%;
    padding: 12px 14px;
    background: #0f141a;
    border: 2px solid #1f6feb;
    border-radius: 6px;
    color: #ffffff;
    font-size: 22px;
    outline: none;
}
/* POPUP */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.hidden {
    display: none !important;
}
