:root {
    --bg: #F5F7FA;
    --surface: #FFFFFF;
    --surface2: #F4FAF7;

    --primary: #00B14F;
    --primary-strong: #008C3A;
    --accent: #007AFF;
    --accent-soft: #EAF4FF;
    --warning: #FFB800;
    --danger: #E53935;

    --text: #0F172A;
    --muted: #667085;
    --border: #E4E7EC;
}


/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}


body {

    background:
        linear-gradient(
            180deg,
            #EFFFF5 0%,
            #F5F7FA 45%
        );

    color: var(--text);
    min-height: 100vh;
}


.app {

    max-width: 430px;
    margin: auto;
    padding-bottom: 90px;

}



/* MATERIAL ICONS */

.material-symbols-rounded {

    font-size: 24px;

    font-variation-settings:
        'FILL' 1,
        'wght' 500,
        'GRAD' 0,
        'opsz' 24;

    vertical-align: middle;

}



/* HEADER */

.header {

    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px;

}


.logo {

    font-size:22px;
    font-weight:900;
    letter-spacing:-0.5px;

}


.logo span {

    color:var(--primary);

}


.subtitle {

    font-size:12px;
    color:var(--muted);
    margin-top:5px;

}



.profile {

    width:45px;
    height:45px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:
        linear-gradient(
            135deg,
            var(--maya-green),
            var(--primary)
        );

    color:white;

    font-weight:800;

}



/* CARDS */

.card {
    
    margin:15px;
    
    padding:20px;
    
    border-radius:24px;
    
    background:var(--surface);
    
    border:1px solid var(--border);
    
    box-shadow:
        0 10px 30px rgba(16,24,40,.08);
    
    overflow:hidden;
    
}



/* WALLET BALANCE CARD */

.portfolio {

    background:
        linear-gradient(
            135deg,
            #00D16A,
            #00A94F
        );

    color:white;

}



.portfolio .label {

    color:
    rgba(255,255,255,.75);

}



.label {

    font-size:13px;
    color:var(--muted);

}



.balance {
    
    font-size:clamp(24px, 7vw, 38px);
    font-weight:900;
    
    letter-spacing:-1px;
    
    margin:12px 0;
    line-height:1.1;
    overflow-wrap:anywhere;
    word-break:break-word;
    
}



.gain {

    color:#D8FFE6;

    font-weight:700;

}



/* STAT GRID */

.grid {

    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:10px;

}



.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.section-heading h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 177, 79, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-list .row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.admin-list .row:last-child {
    border-bottom: none;
}

.admin-list .row strong {
    display: block;
    font-size: 0.95rem;
}

.admin-list .row small {
    color: var(--muted);
    font-size: 0.82rem;
}

.stat {

    background:#F8FAFC;

    border-radius:18px;

    padding:15px;

}



.stat strong {
    
    display:block;
    
    font-size:clamp(14px, 3.8vw, 18px);
    
    font-weight:800;
    overflow-wrap:anywhere;
    word-break:break-word;
    
}



.stat small {

    color:var(--muted);

    font-size:11px;

}



/* AI / WALLET STATUS */

.ai-header {
  
    display:flex;
  
    justify-content:space-between;
  
    align-items:center;
  
}

.home-shell {
   display: flex;
   flex-direction: column;
   gap: 8px;
}

.home-header {
   padding-bottom: 4px;
}

.home-header .logo {
   font-size: 1.3rem;
}

.welcome-line {
   color: var(--text);
   font-weight: 600;
}

.home-hero {
   background: linear-gradient(135deg, #159A54 0%, #0E753E 50%, #0B5E34 100%);
   color: #fff;
   padding: 22px;
}

.home-hero-content {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 12px;
}

.home-status-pill {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 8px 12px;
   border-radius: 999px;
   background: rgba(255,255,255,.18);
   color: #fff;
   font-size: 0.75rem;
   font-weight: 800;
   letter-spacing: 0.04em;
   text-transform: uppercase;
}

.home-hero-footer {
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 12px;
   flex-wrap: wrap;
   margin-top: 10px;
}

.home-hero-caption {
   font-size: 0.82rem;
   color: rgba(255,255,255,.8);
}

.home-snapshot-card {
   padding: 18px 20px;
}

.home-section-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 10px;
}

.home-section-header h3 {
   font-size: 1rem;
   margin-bottom: 2px;
}

.home-stat-grid {
   padding: 0;
   background: transparent;
   border: 0;
   box-shadow: none;
   gap: 10px;
}

.home-stat-grid .stat {
   background: linear-gradient(180deg, #FAFCFF 0%, #F4F8FB 100%);
   border: 1px solid var(--border);
   border-radius: 16px;
}

.home-stat-grid .stat strong {
   font-size: 1.1rem;
}

.ai-engine-card {
   cursor: pointer;
   border: 1px solid rgba(0, 177, 79, 0.18);
   box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.ai-engine-card:hover {
   transform: translateY(-1px);
}

.home-card-caption {
   margin-top: 10px;
   font-size: 0.84rem;
   color: var(--muted);
}

.home-quick-actions {
   padding: 18px 20px;
}

.home-actions {
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 12px;
   padding: 0;
}

.home-action {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   min-height: 112px;
   padding: 16px;
   border-radius: 18px;
   background: linear-gradient(180deg, #FFFFFF 0%, #F7FBFF 100%);
   border: 1px solid var(--border);
   box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
   transition: transform .2s ease, box-shadow .2s ease;
}

.home-action:hover {
   transform: translateY(-2px);
   box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

.home-action .material-symbols-rounded {
   font-size: 28px;
   color: var(--primary);
}

.home-action div {
   margin-top: 8px;
   font-size: 0.9rem;
   font-weight: 700;
   color: var(--text);
   text-align: center;
}

.ai-status {

    background:
        rgba(0,177,79,.12);

    color:var(--primary);

    padding:7px 12px;

    border-radius:20px;

    font-size:12px;

    font-weight:700;

}



/* PROGRESS */

.progress {
   height: 10px;
   background: #EAECF0;
   border-radius: 20px;
   overflow: hidden;
   margin: 15px 0;
   position: relative;
}

.progress::before {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.45), rgba(255,255,255,.0));
   transform: translateX(-100%);
   animation: progressShimmer 1.8s infinite;
   pointer-events: none;
}

.progress div {
   height: 100%;
   width: 96%;
   background: linear-gradient(90deg, var(--primary), #3AD97A, var(--primary));
   background-size: 200% 100%;
   border-radius: inherit;
   animation: progressPulse 1.8s ease-in-out infinite;
   position: relative;
}

@keyframes progressPulse {
   0% { transform: scaleX(0.96); transform-origin: left; }
   50% { transform: scaleX(1); transform-origin: left; }
   100% { transform: scaleX(0.96); transform-origin: left; }
}

@keyframes progressShimmer {
   0% { transform: translateX(-100%); }
   100% { transform: translateX(100%); }
}


/* ACTION MENU */

.actions {

    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:10px;

    padding:15px;

}



.action {

    background:white;

    border:1px solid var(--border);

    border-radius:20px;

    padding:14px 5px;

    text-align:center;

    font-size:12px;

    font-weight:600;

    color:#344054;

    cursor:pointer;

    transition:.2s;

}



.action:hover {

    border-color:var(--primary);

    transform:translateY(-2px);

}



.action .material-symbols-rounded {

    color:var(--primary);

    display:block;

    margin-bottom:5px;

}



/* TRADE PAGE */

.trade-shell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trade-header {
    padding-bottom: 4px;
}

.trade-hero {
    background: linear-gradient(135deg, #0F9D59 0%, #0A7A43 55%, #055D33 100%);
    color: #fff;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 16px 36px rgba(7, 72, 41, 0.2);
}

.trade-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.trade-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trade-hero-foot {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trade-hero-caption {
    font-size: 0.82rem;
    color: rgba(255,255,255,.86);
}

.trade-form-card {
    padding: 18px 20px;
}

.trade-input-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.trade-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 8px;
}

.trade-metric {
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #FAFCFF 0%, #F4F8FB 100%);
    border: 1px solid var(--border);
}

.trade-metric strong {
    display: block;
    font-size: 1.01rem;
    color: var(--text);
    margin-top: 4px;
}

.trade-metric span {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--muted);
}

.trade-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 10px 0 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #F7FBF9;
    border: 1px solid var(--border);
}

.trade-toggle-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text);
}

.trade-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 28px;
}

.trade-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.trade-toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #D0D5DD;
    transition: background 0.2s ease;
}

.leadership-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 8px;
}

.leadership-detail-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #FAFCFF 0%, #F4F8FB 100%);
    border: 1px solid var(--border);
}

.leadership-detail-item span {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.leadership-detail-item strong {
    display: block;
    font-size: 1rem;
}

.leadership-status {
    font-size: 0.9rem;
    color: var(--text);
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
}

.trade-toggle-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease;
}

.trade-toggle input:checked + .trade-toggle-slider {
    background: var(--primary);
}

.trade-toggle input:checked + .trade-toggle-slider::before {
    transform: translateX(18px);
}

.trade-note {
    margin: 4px 0 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* MAIN BUTTON */

.btn {

    width:100%;

    padding:15px;

    border:none;

    border-radius:18px;

    background:

        linear-gradient(
            90deg,
            #00D16A,
            #00A94F
        );

    color:white;

    font-weight:800;

    font-size:15px;

    cursor:pointer;

    box-shadow:

        0 8px 20px rgba(0,177,79,.25);

}



/* ROW */

.row {
    
    display:flex;
    
    justify-content:space-between;
    
    align-items:center;
    
    margin:12px 0;
    gap:10px;
    
}

.row > * {
    overflow-wrap:anywhere;
    word-break:break-word;
}



/* INPUT */

input,
select {

    width:100%;

    padding:15px;

    margin:10px 0;

    background:#FFFFFF;

    border:

        1px solid var(--border);

    border-radius:15px;

    color:var(--text);

    font-size:15px;

    outline:none;

}



input:focus,
select:focus {

    border-color:var(--primary);

}



/* PAGE */

.page {

    display:none;

}



.page.active {

    display:block;

}



/* BOTTOM NAV */

.bottom-nav {

    position:fixed;

    bottom:0;

    left:50%;

    transform:translateX(-50%);

    width:100%;

    max-width:430px;

    height:75px;


    background:white;

    border-top:

        1px solid var(--border);


    display:flex;

    justify-content:space-around;

    align-items:center;


    z-index:99;


    box-shadow:

        0 -8px 25px rgba(0,0,0,.08);

}



.nav {

    text-align:center;

    font-size:11px;

    color:#98A2B3;

    cursor:pointer;

}



.nav .material-symbols-rounded {

    font-size:25px;

    font-variation-settings:

        'FILL' 0,
        'wght' 500;

}



.nav.active {

    color:var(--primary);

}



.nav.active .material-symbols-rounded {

    font-variation-settings:

        'FILL' 1,
        'wght' 700;

}
/* START AI INVESTMENT BUTTON */

#startAI {

    width:100%;

    padding:15px;

    border:none;

    border-radius:18px;

    background:#000000;

    color:white;

    font-weight:800;

    font-size:15px;

    cursor:pointer;

    margin-top:12px;

    box-shadow:
        0 8px 20px rgba(0,0,0,.25);

    transition:.3s ease;

}


#startAI:hover {

    background:#1A1A1A;

    transform:translateY(-2px);

}
/* ===============================
   MOBILE FRIENDLY TOAST
================================ */

.toast {

    position: fixed;

    top: 20px;

    left: 50%;

    transform:
        translate(-50%, -30px)
        scale(.95);

    width: calc(100% - 40px);

    max-width: 390px;

    padding: 16px 20px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: white;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: .2px;

    opacity: 0;

    pointer-events: none;

    z-index: 9999;

    backdrop-filter: blur(10px);

    box-shadow:
        0 12px 30px rgba(0,0,0,.18);

    transition:
        all .35s cubic-bezier(.4,0,.2,1);

}


/* SHOW ANIMATION */

.toast.show {

    opacity: 1;

    transform:
        translate(-50%, 0)
        scale(1);

}



/* SUCCESS TOAST */

.toast.success {

    background:
        linear-gradient(
            135deg,
            #00D16A,
            #008F45
        );

}



/* ERROR TOAST */

.toast.error {

    background:
        linear-gradient(
            135deg,
            #FF4D4F,
            #C62828
        );

}



/* OPTIONAL ICON STYLE */

.toast::before {

    font-family:
        "Material Symbols Rounded";

    font-size:22px;

    margin-right:10px;

}



/* SUCCESS ICON */

.toast.success::before {

    content:"check_circle";

}



/* ERROR ICON */

.toast.error::before {

    content:"error";

}



.team-hero {
    position: relative;
    overflow: hidden;
}

.team-hero::after {
    content: "";
    position: absolute;
    inset: auto -20px -30px auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
}

.team-hero-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.team-action-btn {
    width: auto;
    padding: 11px 16px;
    font-size: 13px;
    box-shadow: none;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.section-heading h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
}

.section-pill {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 700;
    background: rgba(0,177,79,.1);
    border-radius: 999px;
    padding: 5px 8px;
}

.team-level-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-level-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #FAFCFF 0%, #F7F9FD 100%);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.team-level-item:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.team-level-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.team-level-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    background: rgba(0,177,79,.12);
    flex-shrink: 0;
}

.team-level-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.team-level-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
}

.team-level-value {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
}

.leadership-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FCFF 100%);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.leadership-stat {
    padding: 12px;
    border-radius: 16px;
    background: #FAFBFD;
    border: 1px solid var(--border);
}

.leadership-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
    color: var(--text);
}

.leadership-breakdown {
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #F8FAFC;
    border: 1px solid var(--border);
}

.leadership-breakdown-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.leadership-rank-list {
    display: grid;
    gap: 8px;
}

.leadership-rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
}

.leadership-rank-item strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text);
}

.leadership-rank-item span {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--muted);
}

.leadership-rank-item em {
    font-style: normal;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.leadership-qualification {
    margin-top: 10px;
}

.leadership-qualification ul {
    margin: 0;
    padding-left: 16px;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.84rem;
}

.withdraw-mode-card {
    padding: 12px;
    border-radius: 16px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    margin: 10px 0 12px;
}

.withdraw-info-grid {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.withdraw-info-grid input,
.withdraw-info-grid select {
    margin: 6px 0 0;
}

.ai-hero {
    position: relative;
    overflow: hidden;
}

.ai-hero::after {
    content: "";
    position: absolute;
    inset: auto -18px -30px auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
}

.ai-panel {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FCFF 100%);
}

.ai-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.ai-metric-card {
    padding: 12px;
    border-radius: 16px;
    background: #FAFBFD;
    border: 1px solid var(--border);
}

.ai-metric-card strong {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--text);
}

.ai-trend-value {
    color: var(--primary) !important;
}

.ai-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0F9D59 0%, #1E8E53 40%, #0B6D3A 100%);
    color: #fff;
    padding-bottom: 26px;
}

.ai-hero::before {
    content: "";
    position: absolute;
    inset: auto -18px -20px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    pointer-events: none;
}

.ai-hero::after {
    content: "";
    position: absolute;
    inset: -20px auto auto -25px;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.16);
    pointer-events: none;
}

.ai-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.ai-hero-copy {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.ai-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ai-status-pill--active {
    background: rgba(255,255,255,.18);
    color: #fff;
}

.ai-status-pill--standby {
    background: rgba(255,255,255,.12);
    color: #e9fff1;
}

.ai-signal-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #f8fff9;
    font-size: 0.82rem;
    font-weight: 700;
}

.ai-progress-block {
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.ai-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: rgba(255,255,255,.88);
    margin-bottom: 8px;
}

.ai-progress-shell {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    overflow: hidden;
}

.ai-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #FFFFFF 0%, #D7FFE4 55%, #6DFF9C 100%);
    transition: width 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: aiProgressSweep 1.2s linear infinite;
}

@keyframes aiProgressSweep {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.ai-panel {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FCFF 100%);
}

.ai-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.ai-metric-card {
    padding: 12px;
    border-radius: 16px;
    background: #FAFBFD;
    border: 1px solid var(--border);
}

.ai-metric-card strong {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--text);
}

.ai-trend-value {
    color: var(--primary) !important;
}

.ai-step-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.ai-step-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: #F9FCFF;
    border: 1px solid var(--border);
}

.ai-step-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 177, 79, 0.16);
    flex-shrink: 0;
}

.ai-step-item strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
}

.ai-step-item p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

/* SMALL DEVICES */

@media(max-width:360px){

    .toast {

        width:
            calc(100% - 30px);

        font-size:13px;

        padding:14px 16px;

        border-radius:16px;

    }

}

#profile {
    max-width:420px;
    margin: 10px auto 0;
    padding: 0 10px 20px;
}

#profile .card {
    padding: 20px;
    border: 1px solid rgba(0,177,79,.14);
}

#profile .portfolio {
    background: linear-gradient(135deg, #f0fff6 0%, #f9fffc 100%);
    color: var(--text);
    box-shadow: 0 10px 25px rgba(0,177,79,.08);
}

#profile .portfolio h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

#profile .portfolio .subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-top: 0;
}

#profile .ai-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,177,79,.12);
    color: var(--primary);
    border: 1px solid rgba(0,177,79,.18);
}

#profile .row {
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

#profile .row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#profile .row > span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

#profile .row .material-symbols-rounded {
    font-size: 20px;
    color: var(--primary);
}

#profile .row strong {
    color: var(--muted);
    font-size: 18px;
}

#signin{
    max-width:420px;
    margin: 20px auto 0;
    padding: 0 10px 20px;
}

.login-card{
    text-align:center;
    padding: 24px 20px;
}

.login-card h2{
    color:var(--text);
}

.login-card .subtitle{
    color:var(--muted);
}

.login-icon{
    width:80px;
    height:80px;
    margin:0 auto 20px;
    border-radius:50%;
    background:rgba(0,177,79,.12);
    display:flex;
    justify-content:center;
    align-items:center;
}

.login-icon .material-symbols-rounded{
    font-size:42px;
    color:var(--primary);
}

.input-group{
    display:flex;
    align-items:center;
    gap:10px;
    background:#FFFFFF;
    border:1px solid var(--border);
    border-radius:15px;
    padding:12px 15px;
    margin:15px 0;
}

.input-group input{
    width:100%;
    background:none;
    border:none;
    outline:none;
    color:var(--text);
    font-size:15px;
    margin:0;
    padding:5px;
}

.input-group input::placeholder{
    color:var(--muted);
}

.input-group .material-symbols-rounded{
    color:var(--primary);
}

.remember{
    margin:18px 0;
    font-size:14px;
    color:var(--text);
}

.remember label{
    display:flex;
    align-items:center;
    gap:6px;
}

.remember a{
    color:var(--primary);
    text-decoration:none;
}

.divider{
    margin:18px 0;
    color:var(--muted);
    position:relative;
}

.divider:before,
.divider:after{
    content:"";
    position:absolute;
    top:50%;
    width:35%;
    height:1px;
    background:var(--border);
}

.divider:before{
    left:0;
}

.divider:after{
    right:0;
}

.btn-outline{
    background:transparent;
    border:1px solid var(--primary);
    color:var(--primary);
}

.btn-outline:hover{
    background:var(--primary);
    color:white;
}