/* =========================================

   STUDYAGORA PREMIUM - MASTER STYLES

   /premium/premium.css

========================================= */



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



:root {

    --bg: #05010b;

    --bg-soft: #0b0712;

    --card: #120d1d;

    --card-2: #181022;



    --text: #ffffff;

    --muted: #a8a3bd;



    --purple: #7b3fe4;

    --pink: #ff4fd8;

    --orange: #ff7b00;



    --border: rgba(255, 255, 255, .08);



    --gradient: linear-gradient(

        135deg,

        #7b3fe4,

        #d63384,

        #ff6a00

    );

    --sidebar-width: 260px;

}



/* =========================================

   BODY & BASE

========================================= */



html, body {

    min-height: 100vh;

    width: 100%;

}



body {

    background:

        radial-gradient(

            circle at top left,

            rgba(123, 63, 228, .16),

            transparent 35%

        ),

        radial-gradient(

            circle at bottom right,

            rgba(255, 106, 0, .10),

            transparent 35%

        ),

        #05010b;



    color: var(--text);

    font-family: 'Inter', system-ui, -apple-system, sans-serif;

    overflow-x: hidden;

}



a {

    color: inherit;

    text-decoration: none;

}



/* =========================================

   LOADING SCREEN (FIXED)

========================================= */



.loading-screen {

    position: fixed;

    top: 0;

    left: 0;

    width: 100vw;

    height: 100vh;

    background: #05010b;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    z-index: 9999;

    transition: opacity 0.25s ease, visibility 0.25s ease;

}



.loader-logo {

    width: 64px;

    height: 64px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 16px;

}



.loader-logo img {

    max-width: 100%;

    max-height: 100%;

    width: 56px;

    height: 56px;

    object-fit: contain;

}



.loader-text {

    color: var(--muted);

    font-size: 14px;

    font-weight: 500;

}



/* =========================================

   APP LAYOUT

========================================= */



.app, .app-shell {

    min-height: 100vh;

    width: 100vw;

    display: flex;

    position: relative;

}



/* =========================================

   SIDEBAR

========================================= */



.sidebar {

    width: var(--sidebar-width);

    min-width: var(--sidebar-width);

    min-height: 100vh;

    height: 100vh;



    position: fixed;

    top: 0;

    left: 0;



    padding: 26px 18px;

    background: rgba(8, 5, 14, .96);

    backdrop-filter: blur(18px);

    border-right: 1px solid var(--border);



    z-index: 100;

    display: flex;

    flex-direction: column;

}



.sidebar-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 8px 24px;

}



.sidebar-logo {

    width: 40px;

    height: 40px;

    border-radius: 12px;

    object-fit: cover;

    border: 1px solid var(--border);

}



.sidebar-title {

    font-size: 18px;

    font-weight: 900;

    background: var(--gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    display: flex;

    flex-direction: column;

}



.sidebar-title span {

    font-size: 10px;

    font-weight: 800;

    color: var(--purple);

    letter-spacing: 1px;

}



.nav, .sidebar-nav {

    display: flex;

    flex-direction: column;

    gap: 7px;

    flex: 1;

}



.nav-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 15px;

    border-radius: 14px;

    color: #aaa5c0;

    font-size: 14px;

    font-weight: 600;

    transition: .25s;

}



.nav-item:hover {

    background: rgba(255, 255, 255, .04);

    color: #ffffff;

}



.nav-item.active {

    background: linear-gradient(

        135deg,

        rgba(123, 63, 228, .22),

        rgba(214, 51, 132, .14)

    );

    color: #ffffff;

    border: 1px solid rgba(214, 51, 132, .18);

}



.nav-icon {

    width: 20px;

    text-align: center;

    font-size: 17px;

}



.sidebar-bottom {

    margin-top: auto;

    padding-top: 16px;

    border-top: 1px solid var(--border);

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.student-mini {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 4px 6px;

}



.student-avatar {

    width: 36px;

    height: 36px;

    border-radius: 50%;

    background: var(--gradient);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

    font-size: 14px;

}



.student-mini-info {

    display: flex;

    flex-direction: column;

    overflow: hidden;

}



.student-mini-info strong {

    font-size: 13px;

    color: var(--text);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.student-mini-info span {

    font-size: 11px;

    color: var(--muted);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.logout-btn {

    width: 100%;

    padding: 12px;

    border: none;

    border-radius: 12px;

    background: rgba(255, 255, 255, .04);

    color: #ff9ebf;

    cursor: pointer;

    font-weight: 700;

    transition: .25s;

}



.logout-btn:hover {

    background: rgba(255, 77, 109, .10);

}



/* =========================================

   MAIN CONTENT AREA

========================================= */



.main, .main-content {

    width: calc(100vw - var(--sidebar-width));

    margin-left: var(--sidebar-width);

    min-height: 100vh;

    padding: 32px;

    flex: 1;

}



/* =========================================

   TOP BAR

========================================= */



.topbar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 36px;

}



.page-title {

    font-size: 28px;

    font-weight: 900;

}



.page-subtitle {

    margin-top: 7px;

    color: var(--muted);

    font-size: 14px;

}



.user-box {

    display: flex;

    align-items: center;

    gap: 12px;

}



.user-avatar {

    width: 44px;

    height: 44px;

    border-radius: 50%;

    background: var(--gradient);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

}



.user-name {

    font-size: 14px;

    font-weight: 700;

}



.user-plan {

    font-size: 12px;

    color: var(--muted);

}



/* =========================================

   DASHBOARD HERO

========================================= */



.dashboard-hero {

    position: relative;

    padding: 32px;

    border-radius: 26px;

    background: linear-gradient(

        135deg,

        rgba(123, 63, 228, .18),

        rgba(214, 51, 132, .10),

        rgba(255, 106, 0, .08)

    );

    border: 1px solid rgba(255, 255, 255, .08);

    overflow: hidden;

    margin-bottom: 28px;

}



.dashboard-hero::after {

    content: "";

    position: absolute;

    width: 350px;

    height: 350px;

    border-radius: 50%;

    background: radial-gradient(

        circle,

        rgba(255, 79, 216, .18),

        transparent 70%

    );

    right: -120px;

    top: -170px;

}



.dashboard-hero h1 {

    position: relative;

    z-index: 1;

    font-size: 30px;

    font-weight: 900;

}



.dashboard-hero h1 span {

    background: var(--gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}



.dashboard-hero p {

    position: relative;

    z-index: 1;

    margin-top: 10px;

    max-width: 600px;

    color: #c6c1d7;

    line-height: 1.7;

}



/* =========================================

   SUBSCRIPTION PAGE SPECIFIC STYLES

========================================= */



.subscription-hero {

    margin-bottom: 32px;

    max-width: 760px;

}



.subscription-hero .eyebrow {

    font-size: 11px;

    font-weight: 800;

    color: var(--purple);

    letter-spacing: 1.5px;

    margin-bottom: 8px;

}



.subscription-hero h1 {

    font-size: 34px;

    font-weight: 900;

    margin-bottom: 12px;

}



.subscription-hero h1 span {

    background: var(--gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}



.subscription-intro {

    font-size: 15px;

    color: var(--muted);

    line-height: 1.6;

}



.current-plan-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 32px;

    max-width: 760px;

}



.current-plan-label {

    font-size: 11px;

    font-weight: 800;

    color: var(--muted);

    letter-spacing: 1px;

    margin-bottom: 6px;

}



.current-plan-badge {

    padding: 6px 16px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 800;

    border: 1px solid var(--border);

}



.plans-section {

    max-width: 760px;

    margin-bottom: 36px;

}



.plan-card {

    background: linear-gradient(135deg, rgba(123, 63, 228, 0.15), rgba(214, 51, 132, 0.08));

    border: 1px solid rgba(214, 51, 132, 0.3);

    border-radius: 26px;

    padding: 36px;

}



.popular-tag {

    display: inline-block;

    padding: 6px 12px;

    background: rgba(255, 255, 255, 0.08);

    border-radius: 999px;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;

    margin-bottom: 12px;

}



.price-box {

    display: flex;

    align-items: flex-end;

    gap: 4px;

    margin: 20px 0 8px;

}



.price-box .currency {

    font-size: 24px;

    font-weight: 800;

    margin-bottom: 8px;

}



.price-box .price {

    font-size: 52px;

    font-weight: 900;

    line-height: 1;

}



.price-box .price-period {

    color: var(--muted);

    font-size: 14px;

    margin-bottom: 6px;

}



.billing-note {

    font-size: 12px;

    color: var(--muted);

    margin-bottom: 24px;

}



.plan-features {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px 24px;

    margin-bottom: 32px;

}



.plan-feature {

    font-size: 13px;

    color: #d7daf0;

    display: flex;

    align-items: center;

    gap: 8px;

}



.plan-feature span {

    color: var(--pink);

    font-weight: 900;

}



.subscribe-btn {

    width: 100%;

    min-height: 52px;

    border-radius: 14px;

    background: var(--gradient);

    border: none;

    color: white;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    transition: transform 0.2s ease;

}



.subscribe-btn:hover {

    transform: translateY(-2px);

}



.payment-message {

    margin-top: 16px;

    font-size: 13px;

    text-align: center;

    display: none;

}



.subscription-note {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 24px;

    max-width: 760px;

}



.subscription-note h3 {

    font-size: 15px;

    margin-bottom: 12px;

}



.subscription-note p {

    font-size: 12px;

    color: var(--muted);

    line-height: 1.6;

    margin-bottom: 10px;

}



.subscription-note p:last-child {

    margin-bottom: 0;

}



/* =========================================

   GRID & CARDS

========================================= */



.dashboard-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 28px;

}



.card {

    background: linear-gradient(

        145deg,

        rgba(24, 16, 34, .92),

        rgba(10, 7, 16, .92)

    );

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 24px;

    transition: .25s;

}



.card:hover {

    transform: translateY(-3px);

    border-color: rgba(255, 79, 216, .25);

}



.stat-label {

    color: var(--muted);

    font-size: 13px;

    font-weight: 600;

}



.stat-value {

    margin-top: 12px;

    font-size: 30px;

    font-weight: 900;

}



.stat-note {

    margin-top: 8px;

    font-size: 12px;

    color: #8e88a6;

}



/* =========================================

   SECTION & TOOLS GRID

========================================= */



.section {

    margin-top: 34px;

}



.section-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;

}



.section-title {

    font-size: 20px;

    font-weight: 800;

}



.section-link {

    color: #ff7adf;

    font-size: 13px;

    font-weight: 700;

}



.tools-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

}



.tool-card {

    min-height: 180px;

    padding: 24px;

    border-radius: 22px;

    background: rgba(255, 255, 255, .025);

    border: 1px solid var(--border);

    transition: .25s;

    cursor: pointer;

}



.tool-card:hover {

    transform: translateY(-4px);

    border-color: rgba(255, 79, 216, .3);

    box-shadow: 0 15px 40px rgba(0,0,0,.25);

}



.tool-icon {

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background: linear-gradient(

        135deg,

        rgba(123, 63, 228, .35),

        rgba(255, 79, 216, .22)

    );

    font-size: 23px;

}



.tool-card h3 {

    margin-top: 18px;

    font-size: 17px;

}



.tool-card p {

    margin-top: 8px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;

}



/* =========================================

   BUTTONS & BADGES

========================================= */



.primary-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 20px;

    border: none;

    border-radius: 14px;

    background: var(--gradient);

    color: white;

    font-weight: 800;

    cursor: pointer;

    transition: .25s;

}



.primary-btn:hover {

    transform: translateY(-2px);

}



.secondary-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 18px;

    border-radius: 14px;

    background: rgba(255, 255, 255, .04);

    border: 1px solid var(--border);

    color: white;

    font-weight: 700;

    cursor: pointer;

}



.badge {

    display: inline-flex;

    align-items: center;

    padding: 7px 11px;

    border-radius: 50px;

    font-size: 11px;

    font-weight: 800;

}



.badge-free {

    background: rgba(255, 255, 255, .06);

    color: #b9b4c8;

}



.badge-active {

    background: rgba(60, 220, 130, .12);

    color: #72e6a6;

    border: 1px solid rgba(60, 220, 130, .2);

}



.badge-inactive {

    background: rgba(255, 123, 0, .10);

    color: #ffb16b;

    border: 1px solid rgba(255, 123, 0, .18);

}



.mobile-menu {

    display: none;

    width: 42px;

    height: 42px;

    border-radius: 12px;

    border: 1px solid var(--border);

    background: rgba(255, 255, 255, .04);

    color: white;

    font-size: 19px;

    cursor: pointer;

}



/* =========================================

   RESPONSIVE

========================================= */



@media(max-width: 1100px) {

    .dashboard-grid, .tools-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}



@media(max-width: 800px) {

    .app, .app-shell {

        flex-direction: column;

    }



    .sidebar {

        width: 100vw;

        min-width: 100vw;

        height: auto;

        transform: translateX(-100%);

        transition: .3s;

    }



    .sidebar.open {

        transform: translateX(0);

    }



    .main, .main-content {

        width: 100vw;

        margin-left: 0;

        padding: 20px;

    }



    .mobile-menu {

        display: flex;

        align-items: center;

        justify-content: center;

    }



    .plan-features {

        grid-template-columns: 1fr;

    }

}



@media(max-width: 600px) {

    .main, .main-content {

        padding: 16px;

    }



    .topbar {

        align-items: flex-start;

        gap: 14px;

        margin-bottom: 26px;

    }



    .page-title {

        font-size: 23px;

    }



    .user-box {

        display: none;

    }



    .dashboard-hero {

        padding: 24px 20px;

        border-radius: 22px;

    }



    .dashboard-hero h1 {

        font-size: 24px;

    }



    .dashboard-grid, .tools-grid {

        grid-template-columns: 1fr;

    }



    .card, .tool-card {

        padding: 20px;

    }

}

/* =========================================

   IMAGE SAFETY

========================================= */



img {

    max-width: 100%;

    height: auto;

}





/* =========================================

   LOADING SCREEN

========================================= */



.loading-screen {

    position: fixed;

    inset: 0;

    z-index: 9999;



    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;



    background: #09070f;



    transition: opacity 0.25s ease;

}





.loader-logo {

    width: 110px;

    height: 110px;



    display: flex;

    align-items: center;

    justify-content: center;



    overflow: hidden;

}





.loader-logo img {

    width: 100%;

    max-width: 110px;

    height: auto;



    display: block;

    object-fit: contain;

}





/* =========================================

   SIDEBAR LOGO

========================================= */



.sidebar-brand {

    display: flex;

    align-items: center;

    gap: 10px;



    text-decoration: none;

}





.sidebar-logo {

    width: 46px !important;

    height: 46px !important;



    max-width: 46px !important;



    object-fit: contain;



    flex-shrink: 0;

}





/* =========================================

   SUBSCRIPTION PAGE

========================================= */



.subscription-page {

    min-width: 0;

    overflow-x: hidden;

}





.subscription-hero {

    max-width: 850px;

}





.subscription-hero h1 {

    max-width: 850px;

}





.app-shell {

    min-height: 100vh;

    overflow-x: hidden;

}

/* =========================================

   LOADING SCREEN FIX

========================================= */



.loading-screen {

    position: fixed;

    inset: 0;

    z-index: 99999;



    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;



    background: #090611;



    opacity: 1;

    visibility: visible;



    transition:

        opacity 0.25s ease,

        visibility 0.25s ease;

}





.loading-screen.loading-hidden {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

}





/* =========================================

   PREVENT APP OVERFLOW

========================================= */



html,

body {

    margin: 0;

    padding: 0;

    min-height: 100%;

}





body {

    overflow-x: hidden;

}





.app-shell {

    min-height: 100vh;

    width: 100%;

}





/* =========================================

   LOADER LOGO

========================================= */



.loader-logo {

    width: 90px;

    height: 90px;



    display: flex;

    align-items: center;

    justify-content: center;

}





.loader-logo img {

    width: 100%;

    height: 100%;



    object-fit: contain;



    display: block;

}





.loader-text {

    margin-top: 20px;



    color: #ffffff;



    font-size: 15px;



    font-weight: 600;

}





/* =========================================

   SIDEBAR IMAGE FIX



   Prevents logo stretching/blinking.

========================================= */



.sidebar-brand img,

.sidebar-logo {

    width: 48px !important;

    height: 48px !important;



    min-width: 48px;



    object-fit: contain;



    display: block;



    flex-shrink: 0;

} 

