/* Pro Learning — cohesive purple/gold responsive visual system */
:root{--ink:#f7f2ff;
--muted:#bdb1d1;
--purple:#170d2b;
--purple2:#2b1747;
--gold:#e8c66b;
--gold2:#c99b35;
--panel:rgba(42,25,66,.78);
--line:rgba(232,198,107,.22);
--good:#8de0b0;
--bad:#ff9d9d}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  color:var(--ink);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:radial-gradient(ellipse at 75% 15%,#3a215a 0%,transparent 36%),linear-gradient(135deg,#12091f,#211138 58%,#160d29);
  line-height:1.55}
  a{
    color:var(--gold);
  text-decoration:none
    
  }
  a:hover{
    text-decoration:underline
    
  }
  .landing{
    min-height:100vh;
  position:relative;
  overflow:hidden;
  padding:0 7vw}.nav,.topbar{display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:24px 0
    
  }
  .brand{
    display:flex;
    align-items:center;
    gap:9px;
    font-weight:800;
    letter-spacing:.09em;
    font-size:.92rem}.brand small{display:block;
    color:var(--gold);
    font-size:.62rem;
    letter-spacing:.18em
      
    }
    .brand-mark{
      color:var(--gold);
      font-size:1.8rem}.brand-link{color:var(--ink)
        
      }
      .nav-actions,.hero-actions{display:flex;
      gap:12px;
      flex-wrap:wrap}.btn{display:inline-flex;
      justify-content:center;align-items:center;border:1px solid var(--line);
      border-radius:12px;
      padding:10px 16px;
      font-weight:700;
      cursor:pointer;
      color:var(--ink);
      background:transparent;
      font:inherit}.btn:hover{text-decoration:none;
      filter:brightness(1.08)}
      .btn-gold{
        color:#25182c;
        background:linear-gradient(135deg,#f2d989,#d5a83e);border:0;box-shadow:0 7px 22px #d5a83e25}
        .btn-ghost{
          background:#ffffff08
          
        }
        .btn-large{
          padding:14px 20px
          
        }
        .full{
          width:100%;
          margin-top:8px
          
        }
        .hero{
          max-width:760px;
          padding:clamp(60px,12vh,130px) 0 70px;
          position:relative;z-index:1
          
        }
        .eyebrow{
          font-size:.72rem;
          letter-spacing:.2em;
          color:var(--gold);
          font-weight:800
          
        }
        .hero h1,.auth-card h1,.dashboard h1{
          font-size:clamp(2.2rem,6vw,4.5rem);
          line-height:1.08;
          letter-spacing:-.045em;margin:15px 0
          
        }
        .hero h1 span{
          color:var(--gold)
          
        }
        .hero p{
          max-width:620px;
          color:var(--muted);
          font-size:1.08rem;
          margin:22px 0 30px
          
        }
        .feature-row{
          display:flex;
          gap:32px;
          flex-wrap:wrap;
          margin-top:50px
          
        }
        .feature-row div{
          display:grid
          
        }
        .feature-row b{
          color:var(--gold)
          
        }
        .feature-row small{color:var(--muted)
          
        }
        .glow{
          position:absolute;
          border-radius:50%;
          filter:blur(80px);opacity:.2;
          pointer-events:none
          
        }
        .glow-one{
          background:#9b64e7;
          width:280px;
          height:280px;
          right:4%;
          top:30%
          
        }
        .glow-two{
          background:#e8c66b;
          width:180px;
          height:180px;
          right:20%;
          bottom:10%
          
        }
        .auth-shell{
          min-height:100vh;
          display:flex;
          flex-direction:column;
          align-items:center;
          padding:28px 16px
          
        }
        .auth-shell>.brand{
          margin:10px auto 28px
          
        }
        .auth-card,.panel{
          background:var(--panel);border:1px solid var(--line);
          border-radius:22px;
          box-shadow:0 22px 70px #0002;
          backdrop-filter:blur(14px)
          
        }
        .auth-card{
          width:min(100%,480px);
          padding:clamp(22px,5vw,38px)
          
        }
        .auth-card h1{
          font-size:2.2rem
          
        }
        .muted{
          color:var(--muted)
          
        }
        form{
          margin-top:24px}label{display:block;
          font-size:.88rem;
          font-weight:650;margin:15px 0
            
          }
          input,select{
            display:block;
            width:100%;
            margin-top:7px;
            padding:13px 14px;
            border:1px solid #ffffff20;
            border-radius:11px;
            background:#170d28;
            color:var(--ink);
            font:inherit;
            outline:none
            
          }
          input:focus,select:focus{border-color:var(--gold);
          box-shadow:0 0 0 3px #e8c66b20
            
          }
          input::placeholder{
            color:#8e80a3
            
          }
          .message{
            min-height:1.3em;
            font-size:.9rem;
            color:var(--gold);
            overflow-wrap:anywhere
            
          }
          .message.success{
            color:var(--good)
            
          }
          .message.error{
            color:var(--bad)
            
          }
          .auth-foot{
            text-align:center;
            color:var(--muted);
            font-size:.9rem;
            margin-top:20px
            
          }
          .topbar{
            padding:18px 5vw;
            border-bottom:1px solid #ffffff12
            
          }
          .dashboard{
            max-width:1100px;
            margin:0 auto;
            padding:40px 5vw 70px}.dashboard h1{font-size:clamp(2rem,5vw,3.2rem)
              
            }
            .stats{
              display:grid;
              grid-template-columns:repeat(3,minmax(0,1fr));
              gap:15px;
              margin:28px 0
              
            }
            .imagepanel{
              max-width: 100%;
              border-radius: 10px;
            }
            .panel{
              padding:22px;
              margin:18px 0
              
            }
            .panel small{
              color:var(--muted)
              
            }
            .panel h2{
              margin:8px 0;
              color:var(--gold);
              font-size:1.35rem
              
            }
            .tool-grid{
              display:grid;
              grid-template-columns:repeat(3,minmax(0,1fr));
              gap:14px
              
            }
            .tool{
              display: block;
              padding:18px;
              border:1px solid var(--line);
              border-radius:14px;
              background:#ffffff06;
              color:var(--ink)
              
            }
            .tool b,.tool small{
              display:block
              
            }
            .tool b{
              color:var(--gold);margin-bottom:5px
              
            }
            .tool small{
              color:var(--muted)
              
            }
            button:disabled{
              opacity:.6;cursor:wait
              
            }
@media(max-width:650px)
{.landing{
  padding:0 20px
  
}
.nav{
  align-items:flex-start
  
}
.nav-actions{
  gap:7px
  
}
.nav-actions .btn{
  padding:8px 10px;
  font-size:.85rem
  
}
.hero{
  padding-top:65px
  
}
.feature-row{
  gap:18px
  
}
.stats,.tool-grid{
  grid-template-columns:1fr
  
}
.topbar{
  padding:15px 18px
  
}
.dashboard{
  padding:30px 18px
  
}
.auth-card{
  border-radius:18px
  
}
.brand{
  font-size:.8rem
  
}
  
}

/* Device theme baseline for legacy pages. New learning pages use learning.css. */
:root[data-theme="light"]{--ink:#14233d;--muted:#62718a;--purple:#f4f8ff;--purple2:#e8f1ff;--gold:#a9790c;--gold2:#c99b35;--panel:#fff;--line:#d9e4f3;--good:#16794b;--bad:#b42335}
:root[data-theme="dark"]{--ink:#f7f2ff;--muted:#bdb1d1;--purple:#170d2b;--purple2:#2b1747;--gold:#e8c66b;--gold2:#c99b35;--panel:rgba(42,25,66,.78);--line:rgba(232,198,107,.22);--good:#8de0b0;--bad:#ff9d9d}
:root[data-theme="light"] body{background:linear-gradient(135deg,#f5f8ff,#eaf1fc 58%,#f8f5ec)!important;color:var(--ink)}
:root[data-theme="dark"] body{background:radial-gradient(ellipse at 75% 15%,#3a215a 0%,transparent 36%),linear-gradient(135deg,#12091f,#211138 58%,#160d29)!important;color:var(--ink)}
