* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f6fb;
    color: #111827;
    font-family: Arial, sans-serif;
}

.site-header {
    height: 72px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-size: 24px;
    font-weight: 800;
    color: #5b2cff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.nav-links a:hover {
    color: #5b2cff;
}

.login-link {
    background: #5b2cff;
    color: white !important;
    padding: 10px 16px;
    border-radius: 12px;
}

.page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px;
}

.dashboard-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 22px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0;
    font-size: 22px;
}

.section-title p {
    margin: 6px 0 0;
    color: #6b7280;
}

button {
    background: #5b2cff;
    color: white;
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.simple-grid {
    display: grid;
    gap: 14px;
}

.four {
    grid-template-columns: repeat(4, 1fr);
}

.simple-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    min-height: 112px;
}

.simple-card span {
    color: #6b7280;
    font-size: 14px;
}

.simple-card strong {
    display: block;
    margin-top: 10px;
    font-size: 24px;
}

.hardware-tools {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

input,
select {
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    background: white;
    color: #111827;
    font-size: 14px;
}

.hardware-tools input {
    flex: 1;
}

.hardware-count {
    color: #6b7280;
    margin: 8px 0 14px;
}


.hardware-list {
    height: 420px;
    max-height: 420px;
    overflow-x: auto;
    overflow-y: auto;
    display: block !important;
    border: 1px solid rgba(124,58,237,.28);
    border-radius: 14px;
}


.hardware-card {
    display: grid;
    grid-template-columns: 90px 1.3fr .7fr .7fr .7fr .7fr .7fr;
    align-items: center;
    gap: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
}

.miner-image {
    width: 90px;
    height: 62px;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.hardware-card b {
    font-size: 16px;
}

.hardware-card span,
.hardware-card p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
}

.hardware-card strong {
    color: #111827;
}

.profit-good {
    color: #059669 !important;
}

.profit-bad {
    color: #dc2626 !important;
}

.fleet-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.fleet-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .65);
    display: grid;
    place-items: center;
}

.hidden {
    display: none;
}

.modal-card {
    width: 340px;
    background: white;
    border-radius: 18px;
    padding: 22px;
}

.modal-card label {
    display: block;
    margin-top: 14px;
    color: #374151;
    font-weight: 700;
}

.modal-card input,
.modal-card select {
    width: 100%;
    margin-top: 8px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .four {
        grid-template-columns: repeat(2, 1fr);
    }

    .hardware-card {
        grid-template-columns: 80px 1fr;
    }

    .hardware-card p,
    .hardware-card span {
        font-size: 13px;
    }

    .site-header {
        height: auto;
        padding: 18px;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .page {
        padding: 16px;
    }

    .four {
        grid-template-columns: 1fr;
    }

    .hardware-tools {
        flex-direction: column;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }
}


.site-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:34px 40px 14px 40px;
    background:#080513;
    border-bottom:1px solid rgba(124,58,237,.25);
    min-height:125px;
}

.brand{
    margin-top:35px;
    font-size:56px;
    font-weight:800;
    color:#7c3aed;
}

.nav-links{
    margin-top:55px;
    
    padding-bottom:0;
    display:flex;
    align-items:center;
    gap:32px;
}

.nav-links a{
    text-decoration:none;
    color:white;
    font-weight:600;
    font-size:15px;
}

.nav-links a:hover{
    color:#a78bfa;
}

.login-link{
    background:none !important;
    padding:0 !important;
    color:white !important;
}

body{
    background:#080513 !important;
    color:white;
}

.dashboard-section{
    background:#120a27 !important;
    border:1px solid rgba(124,58,237,.25) !important;
}

.simple-card{
    background:#1a1035 !important;
    border:1px solid rgba(124,58,237,.20) !important;
    color:white;
}

.simple-card span{
    color:#c4b5fd !important;
}

.simple-card strong{
    color:white !important;
}


.brand-a{
    font-size:80px;
    font-weight:900;
    line-height:0.8;
    color:#8b5cf6;
}

.brand{
    margin-top:35px;
    font-weight:800;
    letter-spacing:-1px;
}

.hardware-tools {
    justify-content: flex-end;
}

.hardware-tools select {
    width: 180px;
}

.hardware-list::before {
    content: "Image  Miner  Hashrate  Power  Electric/Day  Profit/Day  Price";
    display: grid;
    grid-template-columns: 90px 1.3fr .7fr .7fr .8fr .8fr .8fr;
    gap: 14px;
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 700;
    padding: 0 14px 8px;
}

.hardware-card {
    grid-template-columns: 90px 1.3fr .7fr .7fr .8fr .8fr .8fr !important;
}

.hardware-card div span {
    display: block;
    color: #c4b5fd;
    margin-top: 4px;
}

.hardware-tools {
    justify-content: flex-end !important;
}

.hardware-tools input {
    display: none !important;
}

.hardware-tools select {
    width: 190px;
}

.hardware-list {
    display: grid;
    gap: 14px;
}

.hardware-list::before {
    content: none !important;
}

.miner-row {
    background: #1a1035;
    border: 1px solid rgba(124,58,237,.28);
    border-radius: 18px;
    padding: 18px;
}

.miner-main {
    display: grid;
    grid-template-columns: 1.5fr .8fr .7fr .9fr .8fr .9fr;
    gap: 16px;
    align-items: center;
}

.miner-main h3 {
    margin: 0;
    font-size: 20px;
    color: white;
}

.miner-main p {
    margin: 6px 0 0;
    color: #c4b5fd;
    font-size: 13px;
}

.miner-main span {
    display: block;
    color: #c4b5fd;
    font-size: 12px;
    margin-bottom: 6px;
}

.miner-main strong {
    color: white;
    font-size: 16px;
}

.miner-profit-line {
    margin-top: 16px;
    border-top: 1px solid rgba(124,58,237,.24);
    padding-top: 14px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    color: #c4b5fd;
}

.miner-profit-line b {
    display: block;
    color: white;
    margin-top: 5px;
}

.miner-image {
    display: none !important;
}

.hardware-card {
    display: none !important;
}

@media (max-width: 900px) {
    .miner-main {
        grid-template-columns: 1fr 1fr;
    }

    .miner-profit-line {
        grid-template-columns: 1fr 1fr;
    }
}

.dashboard-section:nth-of-type(3) {
    padding: 16px !important;
}

.dashboard-section:nth-of-type(3) .section-title {
    margin-bottom: 10px !important;
}

.hardware-tools {
    margin-bottom: 8px !important;
}

.hardware-tools select {
    width: 160px !important;
    height: 38px !important;
    background: linear-gradient(135deg, #7c3aed, #4c1d95) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    font-weight: 700;
}

.miner-profit-line {
    display: none !important;
}

.hidden-profit {
    display: none;
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(124,58,237,.3);
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.miner-row.open .hidden-profit {
    display: grid;
}

.details-btn {
    background: rgba(124,58,237,.22);
    color: white;
    border: 1px solid rgba(167,139,250,.4);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
}

.miner-main {
    grid-template-columns: 1.5fr .8fr .7fr .9fr .8fr .8fr .7fr !important;
}

@media (max-width: 900px) {
    .hidden-profit {
        grid-template-columns: 1fr 1fr;
    }
}

/* Clean mining hardware table */
.hardware-list {
    max-height: 1200px;
    overflow-y: auto;
    display: block !important;
    border: 1px solid rgba(124,58,237,.28);
    border-radius: 14px;
}

.miner-table-head,
.miner-table-row {
    display: grid;
    grid-template-columns: 2fr .7fr 1fr 1fr 1fr 1fr 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
}

.miner-table-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #120a27;
    color: #c4b5fd;
    font-weight: 800;
    border-bottom: 1px solid rgba(124,58,237,.35);
}

.miner-table-row {
    background: #1a1035;
    border-bottom: 1px solid rgba(124,58,237,.20);
}

.miner-table-row span {
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.miner-table-row:hover {
    background: #24124a;
}

.miner-row,
.miner-main,
.miner-profit-line,
.hidden-profit,
.hardware-card,
.miner-image,
.details-btn {
    display: none !important;
}

.dashboard-section:nth-of-type(3) {
    padding: 16px !important;
}

.hardware-count {
    margin: 8px 0 12px !important;
}

@media (max-width: 900px) {
    .hardware-list {
        overflow-x: auto;
    }

    .miner-table-head,
    .miner-table-row {
        min-width: 850px;
    }
}

/* Tight hardware section */

.hardware-count {
    display: none !important;
}

.section h2 {
    margin-bottom: 4px !important;
}

#coinFilter {
    margin-top: -8px !important;
}

.hardware-section,
.section {
    padding-top: 10px !important;
}

.miner-table-head {
    margin-top: 4px !important;
}


.five {
    grid-template-columns: repeat(5, 1fr);
}

.simple-card small {
    display: block;
    color: #c4b5fd;
    margin-top: 8px;
    font-size: 13px;
}

@media (max-width: 1000px) {
    .five {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wallet-form {
    display: grid;
    grid-template-columns: 160px 1fr 180px;
    gap: 12px;
}

#walletSaveMessage {
    color: #c4b5fd;
    margin-top: 12px;
}

@media (max-width: 700px) {
    .wallet-form {
        grid-template-columns: 1fr;
    }
}

.three {
    grid-template-columns: repeat(3, 1fr);
}

.wallet-form-clean {
    display: grid;
    gap: 12px;
    max-width: 620px;
}

.wallet-form-clean label {
    color: #c4b5fd;
    font-weight: 700;
}

.wallet-form-clean input,
.wallet-form-clean select {
    width: 100%;
}

.saved-wallets {
    display: grid;
    gap: 12px;
}

.saved-wallets .simple-card strong {
    font-size: 16px;
    word-break: break-all;
}

@media (max-width: 800px) {
    .three {
        grid-template-columns: 1fr;
    }
}

.wallet-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

@media (max-width: 900px) {
    .wallet-two-column {
        grid-template-columns: 1fr;
    }
}

.login-panel {
    max-width: 520px;
    margin: 40px auto;
}

.login-panel a {
    color: #a78bfa;
}

.visitor-hero {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 70px 0;
}

.visitor-hero h1 {
    font-size: clamp(54px, 9vw, 120px);
    line-height: 0.95;
    margin: 0;
    letter-spacing: -5px;
}

.visitor-subtitle {
    margin-top: 18px;
    color: #c4b5fd;
    font-size: 24px;
    font-weight: 700;
}

.visitor-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.visitor-actions a,
.visitor-footer a {
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.35);
    border: 1px solid rgba(196, 181, 253, 0.35);
    font-weight: 700;
}

.visitor-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 24px 50px;
    display: flex;
    gap: 14px;
    align-items: center;
    color: #c4b5fd;
}

@media (max-width: 700px) {
    .visitor-hero {
        min-height: 360px;
        padding: 42px 0;
    }

    .visitor-hero h1 {
        letter-spacing: -3px;
    }

    .visitor-actions,
    .visitor-footer {
        flex-wrap: wrap;
    }
}

.visitor-top {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 28px 0;
}

.visitor-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px 70px;
}

.visitor-hero-clean {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.visitor-hero-clean h1 {
    margin: 0;
    font-size: clamp(72px, 11vw, 150px);
    line-height: 0.9;
    letter-spacing: -7px;
    color: #ffffff;
}

.visitor-hero-clean p {
    margin: 22px 0 0;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    color: #c4b5fd;
}

.visitor-center-actions {
    display: flex;
    gap: 14px;
    margin-top: 34px;
}

.visitor-center-actions a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5b2cff, #8b5cf6);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 12px 30px rgba(91,44,255,0.3);
}

.visitor-section {
    margin-top: 34px;
    padding: 26px;
    border-radius: 26px;
    background: rgba(43, 19, 105, 0.58);
    border: 1px solid rgba(139, 92, 246, 0.55);
}

.visitor-section h2 {
    margin: 0 0 20px;
    font-size: 24px;
}

.visitor-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.visitor-card {
    min-height: 118px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(95, 40, 210, 0.8), rgba(58, 24, 140, 0.75));
    border: 1px solid rgba(167, 139, 250, 0.45);
}

.visitor-card span {
    display: block;
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}

.visitor-card strong {
    color: white;
    font-size: 20px;
    line-height: 1.15;
}

.coin-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.coin-pill {
    padding: 22px 10px;
    text-align: center;
    border-radius: 18px;
    font-size: 24px;
    font-weight: 900;
    background: rgba(91, 44, 255, 0.34);
    border: 1px solid rgba(167,139,250,0.42);
}

.coin-pill.live::after {
    content: " Live";
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #86efac;
}

.steps-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.steps-row div {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(91,44,255,0.32);
    border: 1px solid rgba(167,139,250,0.42);
    font-weight: 900;
}

.steps-row span {
    color: #c4b5fd;
    font-size: 24px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .visitor-card-grid,
    .coin-row {
        grid-template-columns: 1fr;
    }

    .visitor-hero-clean {
        min-height: 420px;
    }

    .visitor-hero-clean h1 {
        letter-spacing: -4px;
    }
}

.visitor-top-clean {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 28px 0;
    display: flex;
    justify-content: flex-end;
}

.visitor-nav-only {
    display: flex;
    gap: 12px;
}

.visitor-nav-only a {
    color: white;
    text-decoration: none;
    font-weight: 800;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
}

.visitor-hero-clean h1 {
    background: linear-gradient(135deg, #ffffff, #a78bfa, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.visitor-section {
    background: transparent !important;
    border: none !important;
    padding: 12px 0 24px !important;
}

.visitor-section h2 {
    font-size: 26px;
    margin-left: 4px;
}

.visitor-card,
.coin-pill,
.steps-row div {
    background: linear-gradient(135deg, rgba(124,58,237,0.28), rgba(59,29,120,0.22)) !important;
    border: 1px solid rgba(196,181,253,0.22) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.visitor-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.10);
    margin-bottom: 14px;
    font-size: 22px;
}

.coin-pill span {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
    color: #c4b5fd;
}

.steps-row div {
    min-width: 140px;
    text-align: center;
}

.auth-brand-title {
    text-align: center;
    font-size: clamp(58px, 8vw, 110px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -5px;
    margin: 38px auto 28px;
    background: linear-gradient(135deg, #ffffff 0%, #d8c7ff 38%, #8b5cf6 68%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* AevroHash brand gradient */
.logo,
.brand,
.nav .logo,
.sidebar-logo,
.dashboard-logo {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #d8c7ff 35%,
        #a855f7 65%,
        #6d28d9 100%
    ) !important;

    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;

    font-weight: 900 !important;
    text-shadow: none !important;
}

.coin-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.coin-logo-card {
    padding: 20px 14px;
    border-radius: 22px;
    text-align: center;
    background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(59,29,120,0.18));
    border: 1px solid rgba(196,181,253,0.22);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.coin-logo-card img {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
}

.coin-logo-card strong {
    display: block;
    font-size: 18px;
}

.coin-logo-card span {
    display: block;
    margin-top: 6px;
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 800;
}

.coin-logo-card.live span {
    color: #86efac;
}

@media (max-width: 900px) {
    .coin-logo-grid {
        grid-template-columns: 1fr;
    }
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.how-card {
    position: relative;
    min-height: 170px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(59,29,120,0.18));
    border: 1px solid rgba(196,181,253,0.22);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.how-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.10);
    color: #c4b5fd;
    font-weight: 900;
    margin-bottom: 18px;
}

.how-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 10px;
}

.how-card span {
    color: #c4b5fd;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .how-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .how-grid {
        grid-template-columns: 1fr;
    }
}

.miner-live-card p {
    margin: 7px 0 0;
    color: #c4b5fd;
    font-size: 14px;
    font-weight: 700;
}

/* Dark form fields + empty fleet area */
input,
select,
textarea {
    background: rgba(24, 12, 56, 0.92) !important;
    color: #ffffff !important;
    border: 1px solid rgba(196, 181, 253, 0.35) !important;
    border-radius: 14px !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.55) !important;
}

select option {
    background: #180c38 !important;
    color: #ffffff !important;
}

#fleetGrid,
.fleet-grid {
    background: transparent !important;
}

#fleetGrid:empty::before {
    content: "No mining hardware added yet.";
    display: block;
    padding: 28px;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(59,29,120,0.18));
    border: 1px solid rgba(196,181,253,0.22);
    font-weight: 800;
}

.wallet-form-clean input,
.wallet-form-clean select {
    background: rgba(24, 12, 56, 0.92) !important;
    color: white !important;
}

.settings-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.settings-card-link {
    display: block;
    text-decoration: none;
    padding: 28px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(124,58,237,0.28), rgba(59,29,120,0.22));
    border: 1px solid rgba(196,181,253,0.25);
    color: white;
}

.settings-card-link span {
    display: block;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
}

.settings-card-link strong {
    color: #c4b5fd;
    font-size: 15px;
    line-height: 1.35;
}

.assistant-box {
    display: grid;
    gap: 14px;
}

.assistant-chat {
    min-height: 260px;
    padding: 22px;
    border-radius: 20px;
    background: rgba(24, 12, 56, 0.92);
    border: 1px solid rgba(196,181,253,0.25);
    color: #c4b5fd;
    font-weight: 800;
}

@media (max-width: 800px) {
    .settings-card-grid {
        grid-template-columns: 1fr;
    }
}

.profile-shell {
    padding: 28px !important;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.profile-header h2 {
    margin: 0;
    font-size: 32px;
}

.profile-header p,
.profile-note,
.profile-message {
    color: #c4b5fd;
    font-weight: 700;
}

.profile-status-pill {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(134, 239, 172, 0.35);
    color: #86efac;
    font-weight: 900;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.profile-card {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(124,58,237,0.28), rgba(59,29,120,0.22));
    border: 1px solid rgba(196,181,253,0.25);
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.profile-card h3 {
    margin-top: 0;
    font-size: 22px;
}

.profile-card label {
    display: block;
    margin-top: 14px;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 900;
}

.profile-card input,
.profile-card select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(24, 12, 56, 0.92) !important;
    color: #ffffff !important;
    border: 1px solid rgba(196,181,253,0.35) !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
}

.profile-card button,
.profile-save {
    width: 100%;
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.profile-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.status-badge {
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-row {
        grid-template-columns: 1fr;
    }
}

.profile-page-clean {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 42px;
}

.profile-back {
    display: inline-block;
    margin-bottom: 18px;
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 900;
}

.profile-clean-card {
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(38, 18, 86, 0.94), rgba(76, 29, 149, 0.62));
    border: 1px solid rgba(196, 181, 253, 0.28);
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}

.profile-clean-header h2 {
    margin: 0;
    font-size: 34px;
}

.profile-clean-header p {
    margin-top: 8px;
    color: #c4b5fd;
    font-weight: 700;
}

.profile-info-list {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.profile-info-row {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: 20px;
    background: rgba(15, 8, 40, 0.55);
    border: 1px solid rgba(196, 181, 253, 0.16);
}

.profile-info-row span {
    color: #c4b5fd;
    font-weight: 900;
}

.profile-info-row strong {
    color: white;
    font-size: 16px;
}

.verified-pill,
.warning-pill {
    padding: 8px 12px;
    border-radius: 999px;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.verified-pill {
    color: #86efac;
    background: rgba(34,197,94,0.14);
    border: 1px solid rgba(134,239,172,0.32);
}

.warning-pill {
    color: #fbbf24;
    background: rgba(251,191,36,0.14);
    border: 1px solid rgba(251,191,36,0.32);
}

.profile-actions-clean {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(196, 181, 253, 0.18);
}

.profile-actions-clean h3 {
    margin-top: 0;
}

.profile-actions-clean button {
    width: 100%;
    margin-top: 12px;
    padding: 14px 16px;
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    cursor: pointer;
}

@media (max-width: 700px) {
    .profile-info-row {
        grid-template-columns: 1fr;
    }
}

/* Profile page dashboard-style polish */
.profile-page-clean {
    max-width: 980px !important;
    padding-top: 28px !important;
}

.profile-clean-card {
    background: rgba(42, 18, 105, 0.72) !important;
    border: 1px solid rgba(124, 58, 237, 0.75) !important;
    box-shadow: none !important;
}

.profile-info-row {
    background: rgba(65, 28, 150, 0.55) !important;
    border: 1px solid rgba(124, 58, 237, 0.65) !important;
    border-radius: 16px !important;
}

.profile-actions-clean {
    border-top: none !important;
}

.profile-actions-clean button {
    background: linear-gradient(135deg, #6d28d9, #4c1d95) !important;
    border: 1px solid rgba(196,181,253,0.25) !important;
    height: 44px;
}

.profile-back {
    margin-left: 6px;
}

/* FINAL Profile theme match with dashboard */
.profile-page-clean {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding-top: 24px !important;
}

.profile-back {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    opacity: .95;
}

.profile-clean-card {
    background: rgba(42, 18, 105, 0.72) !important;
    border: 1px solid rgba(124, 58, 237, 0.75) !important;
    box-shadow: none !important;
    border-radius: 18px !important;
    padding: 22px !important;
}

.profile-clean-header h2 {
    font-size: 28px !important;
}

.profile-clean-header p {
    color: rgba(255,255,255,.82) !important;
}

.profile-info-list {
    gap: 12px !important;
}

.profile-info-row {
    background: rgba(42, 18, 105, 0.72) !important;
    border: 1px solid rgba(124, 58, 237, 0.75) !important;
    border-radius: 14px !important;
    padding: 16px !important;
}

.profile-info-row span {
    color: rgba(255,255,255,.88) !important;
}

.profile-info-row strong {
    color: #ffffff !important;
}

.profile-actions-clean {
    border-top: 1px solid rgba(124,58,237,.24) !important;
}

.profile-actions-clean button {
    background: rgba(65, 28, 150, 0.55) !important;
    border: 1px solid rgba(124, 58, 237, 0.75) !important;
    border-radius: 14px !important;
    height: 46px !important;
}

/* PROFILE MATCH USER DASHBOARD */

.profile-clean-card{
    background: rgba(38,18,86,0.94) !important;
    border: 1px solid rgba(196,181,253,0.28) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,0.35) !important;
}

.profile-info-row{
    background: rgba(24,12,56,0.92) !important;
    border: 1px solid rgba(196,181,253,0.25) !important;
}

.profile-actions-clean button{
    background: rgba(24,12,56,0.92) !important;
    border: 1px solid rgba(196,181,253,0.25) !important;
}

.profile-clean-header p{
    color: rgba(255,255,255,0.75) !important;
}

.profile-back{
    color:#ffffff !important;
    opacity:.9 !important;
}


.wallet-coin-row {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    margin-top: 12px;
    border-radius: 16px;
    background: rgba(24,12,56,0.92);
    border: 1px solid rgba(196,181,253,0.25);
}

.wallet-coin-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 900;
    background: rgba(124,58,237,.35);
    border: 1px solid rgba(167,139,250,.4);
}

.wallet-coin-title {
    font-weight: 900;
    color: white;
}

.wallet-coin-address {
    margin-top: 5px;
    color: rgba(255,255,255,.75);
    word-break: break-all;
}

.wallet-selected {
    border: 2px solid rgba(34,197,94,0.85) !important;
    box-shadow: 0 0 0 1px rgba(34,197,94,0.25) !important;
}

.wallet-coin-row {
    cursor: pointer;
}

.wallet-coin-row:hover {
    transform: translateY(-1px);
}

#fleetGrid {
    background: transparent !important;
}

#fleetGrid.mining-fleet-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 14px !important;
}

#fleetGrid .miner-live-card {
    background: rgba(24,12,56,0.96) !important;
    border: 1px solid rgba(196,181,253,.30) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    color: white !important;
}

#fleetGrid .miner-live-card p {
    display: flex !important;
    justify-content: space-between !important;
    margin: 7px 0 !important;
}

#fleetGrid .miner-live-card span {
    opacity: .8 !important;
}

.assistant-clean-box {
    margin-top: 22px;
}

.assistant-clean-chat {
    min-height: 260px;
    max-height: 1200px;
    overflow-y: auto;
    border: 1px solid rgba(196,181,253,.32);
    border-radius: 18px;
    padding: 18px;
    background: rgba(15,8,40,.52);
}

.assistant-message {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 12px;
    line-height: 1.45;
    font-size: 14px;
}

.assistant-message-ai {
    background: rgba(255,255,255,.09);
    color: white;
    border: 1px solid rgba(196,181,253,.22);
}

.assistant-message-user {
    margin-left: auto;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: white;
}

.assistant-clean-actions {
    display: flex;
    gap: 10px;
    margin: 14px 0;
    flex-wrap: wrap;
}

.assistant-clean-actions button,
.assistant-clean-input button,
.assistant-support-box button {
    border: none;
    border-radius: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.assistant-clean-input {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 10px;
}

.assistant-clean-input input {
    border: 1px solid rgba(196,181,253,.32);
    border-radius: 14px;
    padding: 14px;
    background: rgba(15,8,40,.55);
    color: white;
    outline: none;
    font-weight: 700;
}

.assistant-support-box {
    margin-top: 16px;
    border: 1px solid rgba(196,181,253,.32);
    border-radius: 16px;
    padding: 16px;
    background: rgba(15,8,40,.52);
}

.assistant-support-box h3 {
    margin: 0 0 8px;
    color: white;
}

.assistant-support-box p {
    color: rgba(255,255,255,.75);
    margin-bottom: 12px;
}

.hidden {
    display: none !important;
}

@media(max-width:700px) {
    .assistant-clean-input {
        grid-template-columns: 1fr;
    }
}

/* Hardware profitability wide table */
#hardwareGrid {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
}

#hardwareGrid #hardwareGrid .miner-table-head,
#hardwareGrid .miner-table-row {
    display:grid;
    grid-template-columns:
        2.2fr
        1fr
        1.2fr
        1fr
        1.2fr
        1.2fr
        1.2fr;
    width:100%;
    min-width:100%;
    align-items:center;
}

#hardwareGrid span {
    white-space: nowrap;
}


#hardwareGrid {
    scroll-behavior: smooth;
}



/* Hardware profitability table */
#hardwareGrid{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:auto;
    max-height:420px;
    display:block;
}

#hardwareGrid .miner-table-head,
#hardwareGrid .miner-table-row{
    width:100%;
    min-width:100%;
}

.hardware-list{
    overflow:hidden !important;
}


/* Fixed-height scrollable miner table */
.hardware-list{
    display:block !important;
    height:360px !important;
    max-height:360px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    border:1px solid rgba(124,58,237,.28);
    border-radius:14px;
}

.miner-table-head{
    position:sticky;
    top:0;
    z-index:5;
}
