.hyro-admin-login-page{
    min-height:100vh;
    padding:40px 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(236,72,153,.17),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 16%,
            rgba(192,132,252,.24),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            var(--hyro-soft-background) 100%
        );
}

.hyro-admin-login-card{
    width:min(460px,100%);
    padding:40px;
    border:1px solid var(--hyro-border);
    border-radius:28px;
    background:#ffffff;
    box-shadow:0 30px 90px rgba(139,92,246,.16);
}

.hyro-admin-login-brand{
    margin-bottom:31px;
    text-align:center;
}

.hyro-admin-login-brand strong{
    display:block;
    color:var(--hyro-text);
    font-size:28px;
    letter-spacing:1px;
}

.hyro-admin-login-brand span{
    display:block;
    margin-top:7px;
    color:var(--hyro-primary);
    font-size:11px;
    font-weight:700;
    letter-spacing:1px;
}

.hyro-admin-login-card h1{
    margin:0;
    color:var(--hyro-text);
    font-size:28px;
    text-align:center;
}

.hyro-admin-login-card > p{
    margin:10px 0 28px;
    color:var(--hyro-muted);
    font-size:13px;
    line-height:1.7;
    text-align:center;
}

.hyro-admin-field{
    margin-top:18px;
}

.hyro-admin-field label{
    display:block;
    margin-bottom:8px;
    color:var(--hyro-text);
    font-size:12px;
    font-weight:700;
}

.hyro-admin-field input{
    width:100%;
    min-height:52px;
    padding:12px 14px;
    border:1px solid var(--hyro-border);
    border-radius:12px;
    outline:none;
    color:var(--hyro-text);
    background:#ffffff;
    font-family:var(--hyro-font);
    font-size:14px;
}

.hyro-admin-field input:focus{
    border-color:var(--hyro-primary);
    box-shadow:0 0 0 4px rgba(236,72,153,.10);
}

.hyro-admin-login-error{
    margin-bottom:20px;
    padding:13px 15px;
    border:1px solid #fecaca;
    border-radius:12px;
    color:#991b1b;
    background:#fef2f2;
    font-size:12px;
    line-height:1.6;
}

.hyro-admin-login-actions{
    margin-top:24px;
}

.hyro-admin-login-actions .hyro-button{
    width:100%;
}

.hyro-admin-login-footer{
    margin-top:22px;
    text-align:center;
}

.hyro-admin-login-footer a{
    color:var(--hyro-primary);
    font-size:12px;
    font-weight:700;
    text-decoration:none;
}

@media(max-width:520px){

    .hyro-admin-login-card{
        padding:29px 22px;
        border-radius:22px;
    }

}


/* ==========================================
   HYRO ONE Admin Portal
========================================== */

.hyro-admin-body{
    margin:0;
    background:#f8f7fb;
}

.hyro-admin-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:250px minmax(0,1fr);
    grid-template-rows:76px minmax(0,1fr);
}

.hyro-admin-topbar{
    position:sticky;
    top:0;
    z-index:50;
    grid-column:1 / -1;
    min-height:76px;
    padding:0 28px;
    border-bottom:1px solid var(--hyro-border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(18px);
}

.hyro-admin-topbar-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.hyro-admin-topbar-left strong,
.hyro-admin-topbar-left span{
    display:block;
}

.hyro-admin-topbar-left strong{
    color:var(--hyro-text);
    font-size:20px;
    letter-spacing:.8px;
}

.hyro-admin-topbar-left span{
    margin-top:3px;
    color:var(--hyro-primary);
    font-size:9px;
    font-weight:700;
    letter-spacing:1.2px;
}

.hyro-admin-menu-toggle{
    width:42px;
    height:42px;
    padding:0;
    border:1px solid var(--hyro-border);
    border-radius:12px;
    display:none;
    align-items:center;
    justify-content:center;
    color:var(--hyro-text);
    background:#ffffff;
    font-size:20px;
    cursor:pointer;
}

.hyro-admin-user{
    display:flex;
    align-items:center;
    gap:11px;
}

.hyro-admin-user-avatar{
    width:42px;
    height:42px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ffffff;
    background:var(--hyro-gradient);
    font-size:15px;
    font-weight:700;
}

.hyro-admin-user strong,
.hyro-admin-user span{
    display:block;
}

.hyro-admin-user strong{
    color:var(--hyro-text);
    font-size:12px;
}

.hyro-admin-user span{
    margin-top:3px;
    color:var(--hyro-muted);
    font-size:9px;
}

.hyro-admin-signout{
    margin-left:12px;
    padding:9px 13px;
    border:1px solid var(--hyro-border);
    border-radius:10px;
    color:var(--hyro-text);
    background:#ffffff;
    font-size:11px;
    font-weight:700;
    text-decoration:none;
}

.hyro-admin-sidebar{
    position:sticky;
    top:76px;
    height:calc(100vh - 76px);
    padding:22px 15px;
    border-right:1px solid var(--hyro-border);
    background:#ffffff;
}

.hyro-admin-navigation{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.hyro-admin-navigation a{
    min-height:46px;
    padding:0 14px;
    border-radius:12px;
    display:flex;
    align-items:center;
    gap:11px;
    color:var(--hyro-muted);
    font-size:13px;
    font-weight:700;
    text-decoration:none;
}

.hyro-admin-navigation a > span{
    width:22px;
    color:var(--hyro-primary);
    font-size:17px;
    text-align:center;
}

.hyro-admin-navigation a small{
    margin-left:auto;
    color:var(--hyro-muted);
    font-size:8px;
    font-weight:700;
}

.hyro-admin-navigation a:hover{
    color:var(--hyro-primary);
    background:var(--hyro-soft-background);
}

.hyro-admin-navigation a.active{
    color:#ffffff;
    background:var(--hyro-gradient);
    box-shadow:0 12px 28px rgba(236,72,153,.18);
}

.hyro-admin-navigation a.active > span{
    color:#ffffff;
}

.hyro-admin-navigation-title{
    margin:21px 13px 8px;
    color:#a69eae;
    font-size:9px;
    font-weight:700;
    letter-spacing:1.2px;
    text-transform:uppercase;
}

.hyro-admin-main{
    min-width:0;
    padding:34px;
}

.hyro-admin-page-heading{
    margin-bottom:27px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.hyro-admin-page-heading h1{
    margin:0;
    color:var(--hyro-text);
    font-size:30px;
}

.hyro-admin-page-heading p{
    margin:7px 0 0;
    color:var(--hyro-muted);
    font-size:13px;
}

.hyro-admin-date{
    padding:11px 15px;
    border:1px solid var(--hyro-border);
    border-radius:12px;
    color:var(--hyro-muted);
    background:#ffffff;
    font-size:11px;
    font-weight:700;
}

.hyro-admin-stat-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:16px;
}

.hyro-admin-stat-card{
    padding:21px;
    border:1px solid var(--hyro-border);
    border-radius:18px;
    background:#ffffff;
    box-shadow:0 10px 35px rgba(139,92,246,.05);
}

.hyro-admin-stat-card-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.hyro-admin-stat-icon{
    width:42px;
    height:42px;
    border-radius:13px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--hyro-soft-background);
    font-size:18px;
}

.hyro-admin-stat-card span{
    color:var(--hyro-muted);
    font-size:10px;
    font-weight:700;
}

.hyro-admin-stat-card strong{
    display:block;
    margin-top:14px;
    color:var(--hyro-text);
    font-size:31px;
}

.hyro-admin-panel{
    margin-top:22px;
    border:1px solid var(--hyro-border);
    border-radius:20px;
    background:#ffffff;
    box-shadow:0 12px 38px rgba(139,92,246,.05);
    overflow:hidden;
}

.hyro-admin-panel-header{
    padding:20px 22px;
    border-bottom:1px solid var(--hyro-border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.hyro-admin-panel-header h2{
    margin:0;
    color:var(--hyro-text);
    font-size:18px;
}

.hyro-admin-panel-header a{
    color:var(--hyro-primary);
    font-size:11px;
    font-weight:700;
    text-decoration:none;
}

.hyro-admin-table-wrap{
    overflow-x:auto;
}

.hyro-admin-table{
    width:100%;
    border-collapse:collapse;
}

.hyro-admin-table th,
.hyro-admin-table td{
    padding:15px 18px;
    border-bottom:1px solid var(--hyro-border);
    text-align:left;
    white-space:nowrap;
}

.hyro-admin-table th{
    color:var(--hyro-muted);
    background:#fcfbfe;
    font-size:9px;
    font-weight:700;
    letter-spacing:.6px;
    text-transform:uppercase;
}

.hyro-admin-table td{
    color:var(--hyro-text);
    font-size:12px;
}

.hyro-admin-table tbody tr:hover{
    background:var(--hyro-soft-background);
}

.hyro-admin-table strong{
    display:block;
    font-size:12px;
}

.hyro-admin-table small{
    display:block;
    margin-top:4px;
    color:var(--hyro-muted);
    font-size:9px;
}

.hyro-lead-status{
    display:inline-flex;
    padding:7px 10px;
    border-radius:999px;
    font-size:9px;
    font-weight:700;
    text-transform:uppercase;
}

.hyro-lead-status.new{
    color:#9a3412;
    background:#fff7ed;
}

.hyro-lead-status.contacted{
    color:#1d4ed8;
    background:#eff6ff;
}

.hyro-lead-status.demo_scheduled{
    color:#6d28d9;
    background:#f5f3ff;
}

.hyro-lead-status.trial_started{
    color:#047857;
    background:#ecfdf5;
}

.hyro-lead-status.customer{
    color:#166534;
    background:#f0fdf4;
}

.hyro-admin-empty{
    padding:50px 20px;
    color:var(--hyro-muted);
    font-size:13px;
    text-align:center;
}

@media(max-width:1200px){

    .hyro-admin-stat-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

}

@media(max-width:900px){

    .hyro-admin-shell{
        grid-template-columns:1fr;
    }

    .hyro-admin-menu-toggle{
        display:flex;
    }

    .hyro-admin-sidebar{
        position:fixed;
        top:76px;
        left:0;
        z-index:40;
        width:250px;
        transform:translateX(-105%);
        transition:transform .25s ease;
        box-shadow:20px 0 60px rgba(31,41,55,.13);
    }

    .hyro-admin-sidebar.is-open{
        transform:translateX(0);
    }

    .hyro-admin-main{
        grid-column:1;
    }

}

@media(max-width:650px){

    .hyro-admin-topbar{
        padding:0 16px;
    }

    .hyro-admin-user > div:nth-child(2),
    .hyro-admin-signout{
        display:none;
    }

    .hyro-admin-main{
        padding:22px 16px;
    }

    .hyro-admin-page-heading{
        align-items:flex-start;
        flex-direction:column;
    }

    .hyro-admin-stat-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}

@media(max-width:420px){

    .hyro-admin-stat-grid{
        grid-template-columns:1fr;
    }

}

/* ==========================================
   HYRO ONE Admin Lead Management
========================================== */

.hyro-lead-filter-panel{
    margin-bottom:22px;
    padding:20px;
    border:1px solid var(--hyro-border);
    border-radius:20px;
    background:#ffffff;
    box-shadow:0 12px 38px rgba(139,92,246,.05);
}

.hyro-lead-filter-grid{
    display:grid;
    grid-template-columns:2fr repeat(4,minmax(135px,1fr));
    gap:14px;
}

.hyro-lead-filter-field{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.hyro-lead-filter-field label{
    color:var(--hyro-text);
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.hyro-lead-filter-field input,
.hyro-lead-filter-field select{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border:1px solid var(--hyro-border);
    border-radius:11px;
    outline:none;
    color:var(--hyro-text);
    background:#ffffff;
    font-family:var(--hyro-font);
    font-size:12px;
}

.hyro-lead-filter-field input:focus,
.hyro-lead-filter-field select:focus{
    border-color:var(--hyro-primary);
    box-shadow:0 0 0 4px rgba(236,72,153,.09);
}

.hyro-lead-filter-actions{
    margin-top:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:12px;
}

.hyro-lead-filter-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.hyro-admin-small-button{
    min-height:40px;
    padding:0 15px;
    border:1px solid var(--hyro-border);
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--hyro-text);
    background:#ffffff;
    font-size:11px;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
}

.hyro-admin-small-button.primary{
    border-color:transparent;
    color:#ffffff;
    background:var(--hyro-gradient);
}

.hyro-lead-result-count{
    color:var(--hyro-muted);
    font-size:11px;
    font-weight:700;
}

.hyro-lead-code-link{
    color:var(--hyro-primary);
    font-weight:700;
    text-decoration:none;
}

.hyro-lead-code-link:hover{
    text-decoration:underline;
}

.hyro-admin-view-button{
    padding:8px 11px;
    border:1px solid var(--hyro-border);
    border-radius:9px;
    display:inline-flex;
    align-items:center;
    color:var(--hyro-primary);
    background:#ffffff;
    font-size:10px;
    font-weight:700;
    text-decoration:none;
}

.hyro-admin-view-button:hover{
    color:#ffffff;
    border-color:transparent;
    background:var(--hyro-gradient);
}

.hyro-admin-pagination{
    padding:18px 21px;
    border-top:1px solid var(--hyro-border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:15px;
}

.hyro-admin-pagination-info{
    color:var(--hyro-muted);
    font-size:11px;
}

.hyro-admin-pagination-links{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.hyro-admin-pagination-links a,
.hyro-admin-pagination-links span{
    min-width:34px;
    height:34px;
    padding:0 10px;
    border:1px solid var(--hyro-border);
    border-radius:9px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--hyro-text);
    background:#ffffff;
    font-size:10px;
    font-weight:700;
    text-decoration:none;
}

.hyro-admin-pagination-links span.active{
    color:#ffffff;
    border-color:transparent;
    background:var(--hyro-gradient);
}

.hyro-admin-pagination-links span.disabled{
    color:#b7b0bd;
    background:#fafafa;
}

@media(max-width:1200px){

    .hyro-lead-filter-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .hyro-lead-filter-field:first-child{
        grid-column:1 / -1;
    }

}

@media(max-width:700px){

    .hyro-lead-filter-grid{
        grid-template-columns:1fr;
    }

    .hyro-lead-filter-field:first-child{
        grid-column:auto;
    }

    .hyro-lead-filter-actions{
        align-items:stretch;
        flex-direction:column;
    }

    .hyro-lead-filter-buttons{
        width:100%;
    }

    .hyro-lead-filter-buttons > *{
        flex:1;
    }

}
