/* ===== Clean fix for Inspire / Real Life / Profile / Favorites ===== */

.premium-page{
    display:flex;
    flex-direction:column;
    gap:24px;
    max-width:1280px;
    margin:0 auto;
}

.premium-page-header{
    background:
        radial-gradient(circle at top right, rgba(96,165,250,.16), transparent 24%),
        radial-gradient(circle at top left, rgba(139,92,246,.14), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,255,.95));
    border:1px solid rgba(226,232,240,.92);
    border-radius:30px;
    padding:28px 24px;
    box-shadow:0 18px 36px rgba(31,51,104,.08);
}

.premium-page-header .eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    min-height:36px;
    border-radius:999px;
    background:#eef4ff;
    color:#2f5bff;
    border:1px solid #dbe6ff;
    font-size:12px;
    font-weight:800;
    margin-bottom:12px;
}

.premium-page-header h1{
    margin:0 0 10px;
    font-size:clamp(2.2rem, 5vw, 3.2rem);
    line-height:.98;
    letter-spacing:-.04em;
    font-weight:900;
    color:#16203b;
}

.premium-page-header p{
    margin:0;
    color:#66708a;
    line-height:1.75;
    font-size:15px;
    max-width:760px;
}

.premium-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
}

.premium-grid.two{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.category-tile,
.life-card,
.profile-link,
.favorite-item{
    color:inherit;
    text-decoration:none;
}

.category-tile{
    display:grid;
    grid-template-columns:72px minmax(0,1fr) 48px;
    gap:14px;
    align-items:center;
    padding:18px;
    border-radius:24px;
    border:1px solid rgba(226,232,240,.92);
    background:
        radial-gradient(circle at top right, rgba(47,91,255,.06), transparent 22%),
        linear-gradient(180deg,#ffffff,#fbfcff);
    box-shadow:0 14px 28px rgba(31,51,104,.07);
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.category-tile:hover{
    transform:translateY(-4px);
    box-shadow:0 22px 38px rgba(31,51,104,.12);
    border-color:rgba(47,91,255,.18);
}
.category-icon{
    width:72px;
    height:72px;
    border-radius:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#9a66ff,#6d3dff);
    color:#fff;
    font-size:28px;
    font-weight:900;
    box-shadow:0 14px 24px rgba(109,61,255,.18);
}
.category-go,
.life-go,
.profile-link-go{
    width:48px;
    height:48px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#2f8fff,#2f5bff);
    color:#fff;
    font-size:24px;
    font-weight:800;
    box-shadow:0 12px 22px rgba(47,91,255,.18);
}
.category-title,
.life-title,
.profile-link-title{
    margin:0 0 6px;
    font-size:24px;
    line-height:1.05;
    font-weight:900;
    color:#1a2550;
}
.category-text,
.life-text,
.profile-link-text,
.favorite-text{
    margin:0;
    color:#66708a;
    font-size:14px;
    line-height:1.7;
}

.life-card{
    display:grid;
    grid-template-columns:84px minmax(0,1fr) 48px;
    gap:16px;
    align-items:center;
    padding:20px;
    border-radius:28px;
    border:1px solid rgba(226,232,240,.92);
    background:
        radial-gradient(circle at top right, rgba(12,163,159,.08), transparent 24%),
        linear-gradient(180deg,#ffffff,#fbfcff);
    box-shadow:0 16px 30px rgba(31,51,104,.08);
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.life-card:hover{
    transform:translateY(-4px);
    box-shadow:0 22px 40px rgba(31,51,104,.13);
    border-color:rgba(12,163,159,.18);
}
.life-visual{
    width:84px;
    height:84px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#1cd6cf,#0ca39f);
    color:#fff;
    font-size:30px;
    font-weight:900;
    box-shadow:0 14px 24px rgba(12,163,159,.18);
}

.quote-card,
.featured-reflection,
.premium-panel,
.profile-hero,
.stat-card,
.favorite-item{
    background:
        radial-gradient(circle at top right, rgba(139,92,246,.06), transparent 22%),
        linear-gradient(180deg,#ffffff,#fbfcff);
    border:1px solid rgba(226,232,240,.92);
    border-radius:28px;
    box-shadow:0 16px 30px rgba(31,51,104,.08);
}

.quote-card,
.featured-reflection,
.premium-panel{
    padding:22px;
}

.quote-mark{
    font-size:52px;
    line-height:1;
    font-weight:900;
    color:#c7d2fe;
    margin-bottom:6px;
}
.quote-copy{
    font-size:22px;
    line-height:1.7;
    font-weight:800;
    color:#1a2550;
    letter-spacing:-.02em;
    margin-bottom:14px;
}
.quote-meta{
    color:#66708a;
    font-size:14px;
    line-height:1.7;
}
.quote-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    margin-top:18px;
    flex-wrap:wrap;
}

.reflection-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:36px;
    padding:8px 12px;
    border-radius:999px;
    background:#ecfdfa;
    color:#0f8d89;
    border:1px solid #c8f4ef;
    font-size:12px;
    font-weight:800;
    margin-bottom:12px;
}
.featured-reflection h3,
.premium-panel h3,
.premium-panel h4{
    margin:0 0 12px;
    font-size:24px;
    font-weight:900;
    color:#1a2550;
    letter-spacing:-.03em;
}
.reflection-copy,
.lesson-content{
    color:#1f2a4f;
    font-size:15px;
    line-height:1.9;
}

.profile-shell{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:20px;
    align-items:start;
}
.profile-hero{
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    gap:18px;
    align-items:center;
    padding:24px;
}
.profile-avatar-xl{
    width:96px;
    height:96px;
    border-radius:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#2f8fff,#6d3dff);
    color:#fff;
    font-size:34px;
    font-weight:900;
    box-shadow:0 16px 28px rgba(47,91,255,.18);
}
.profile-name{
    margin:0 0 6px;
    font-size:clamp(2rem, 5vw, 2.8rem);
    line-height:1;
    letter-spacing:-.04em;
    font-weight:900;
    color:#16203b;
}
.profile-sub{
    margin:0;
    color:#66708a;
    line-height:1.75;
    font-size:15px;
}
.profile-stats{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}
.stat-card{
    padding:18px;
}
.stat-label{
    color:#66708a;
    font-size:13px;
    font-weight:700;
    margin-bottom:8px;
}
.stat-value{
    color:#16203b;
    font-size:32px;
    line-height:1;
    font-weight:900;
    letter-spacing:-.04em;
}
.profile-menu{
    display:grid;
    gap:14px;
}
.profile-link{
    display:grid;
    grid-template-columns:64px minmax(0,1fr) 44px;
    gap:14px;
    align-items:center;
    padding:16px 18px;
    border-radius:24px;
    border:1px solid rgba(226,232,240,.92);
    background:linear-gradient(180deg,#ffffff,#fbfcff);
    box-shadow:0 14px 28px rgba(31,51,104,.07);
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.profile-link:hover{
    transform:translateY(-3px);
    box-shadow:0 20px 36px rgba(31,51,104,.12);
    border-color:rgba(47,91,255,.18);
}
.profile-link-icon{
    width:64px;
    height:64px;
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#2f8fff,#2f5bff);
    color:#fff;
    font-size:24px;
    font-weight:900;
    box-shadow:0 14px 24px rgba(47,91,255,.18);
}
.profile-link-icon.purple{ background:linear-gradient(135deg,#9a66ff,#6d3dff); }
.profile-link-icon.teal{ background:linear-gradient(135deg,#1cd6cf,#0ca39f); }

.favorite-item{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:16px;
    align-items:start;
    padding:18px;
}
.favorite-kicker{
    color:#66708a;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-bottom:8px;
}
.favorite-title{
    color:#1a2550;
    font-size:20px;
    line-height:1.2;
    font-weight:900;
    margin-bottom:6px;
}

@media (max-width: 991px){
    .premium-grid.two{ grid-template-columns:1fr; }
    .profile-shell{ grid-template-columns:1fr; }
}

@media (max-width: 640px){
    .premium-page-header,
    .quote-card,
    .featured-reflection,
    .premium-panel{
        padding:18px;
    }
    .category-tile,
    .life-card,
    .profile-link{
        grid-template-columns:1fr;
        padding:16px;
    }
    .profile-hero{
        grid-template-columns:1fr;
        padding:18px;
    }
    .profile-stats{
        grid-template-columns:1fr;
    }
    .favorite-item{
        grid-template-columns:1fr;
    }
    .quote-copy{
        font-size:19px;
    }
}
/* ===== Remove large header area on Inspire & Profile ===== */
.inspire-page .premium-page-header,
.profile-page .premium-page-header{
    display:none !important;
}

/* tighten page spacing once header is removed */
.inspire-page,
.profile-page{
    gap:20px;
}

/* first row cards on Inspire */
.inspire-page .premium-grid.two:first-of-type{
    margin-top:0;
}

.inspire-page .premium-grid.two:first-of-type .category-tile{
    min-height:136px;
    align-items:center;
}

/* featured cards below on Inspire */
.inspire-page .quote-card,
.inspire-page .featured-reflection{
    min-height:196px;
}

/* profile top layout */
.profile-page .profile-shell{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:22px;
    align-items:start;
    margin-top:0;
}

/* make first visible cards look fuller */
.profile-page .profile-hero{
    min-height:160px;
    display:grid;
    align-items:center;
}

.profile-page .profile-link{
    min-height:122px;
    display:grid;
    align-items:center;
}

/* stat cards */
.profile-page .profile-stats{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:16px;
}

.profile-page .stat-card{
    min-height:106px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

/* mobile */
@media (max-width: 991px){
    .profile-page .profile-shell{
        grid-template-columns:1fr;
    }
}

@media (max-width: 640px){
    .inspire-page .premium-grid.two:first-of-type .category-tile,
    .inspire-page .quote-card,
    .inspire-page .featured-reflection,
    .profile-page .profile-hero,
    .profile-page .profile-link{
        min-height:auto;
    }

    .profile-page .profile-stats{
        grid-template-columns:1fr;
    }
}
/* ===== Academic sub-category tabs ===== */

.academic-subnav-wrap{
    padding:14px !important;
}

.academic-subnav{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.academic-subnav-btn{
    border:none;
    min-height:44px;
    padding:10px 16px;
    border-radius:999px;
    background:#f3f7ff;
    color:#3257d9;
    border:1px solid #dfe8ff;
    font-size:13px;
    font-weight:800;
    box-shadow:0 6px 14px rgba(31,51,104,.05);
    transition:all .2s ease;
}

.academic-subnav-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 18px rgba(31,51,104,.08);
}

.academic-subnav-btn.active{
    background:linear-gradient(135deg,#2f8fff,#2f5bff);
    color:#fff;
    border-color:transparent;
    box-shadow:0 12px 20px rgba(47,91,255,.18);
}

.academic-tab-panel{
    display:none;
}

.academic-tab-panel.active{
    display:block;
}

/* ===== Premium Admin Layout ===== */

.admin-shell{
    display:grid;
    grid-template-columns:280px minmax(0,1fr);
    gap:22px;
    align-items:start;
}

.admin-sidebar{
    position:sticky;
    top:12px;
    max-height:calc(100vh - 24px);
    overflow-y:auto;
    padding:18px;
    border-radius:28px;
    border:1px solid rgba(226,232,240,.92);
    background:
        radial-gradient(circle at top right, rgba(47,91,255,.08), transparent 24%),
        linear-gradient(180deg,#ffffff,#fbfcff);
    box-shadow:0 18px 34px rgba(31,51,104,.08);
}

.admin-sidebar::-webkit-scrollbar{
    width:8px;
}

.admin-sidebar::-webkit-scrollbar-thumb{
    background:#d9e3f7;
    border-radius:999px;
}

.admin-sidebar-title{
    margin:0 0 6px;
    font-size:24px;
    line-height:1.05;
    font-weight:900;
    color:#1a2550;
    letter-spacing:-.03em;
}

.admin-sidebar-sub{
    margin:0 0 16px;
    color:#66708a;
    font-size:13px;
    line-height:1.7;
}

.admin-menu{
    display:grid;
    gap:10px;
}

.admin-menu-group{
    display:grid;
    gap:8px;
}

.admin-menu-label{
    padding:4px 6px;
    color:#7b86a1;
    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.admin-menu a{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:48px;
    padding:12px 14px;
    border-radius:18px;
    text-decoration:none;
    color:#334155;
    background:#fff;
    border:1px solid #edf2fb;
    box-shadow:0 8px 18px rgba(31,51,104,.04);
    transition:all .2s ease;
}

.admin-menu a:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 20px rgba(31,51,104,.08);
    border-color:#dbe6ff;
    color:#1a2550;
}

.admin-menu a.active{
    background:linear-gradient(135deg,#2f8fff,#2f5bff);
    color:#fff;
    border-color:transparent;
    box-shadow:0 14px 24px rgba(47,91,255,.18);
}

.admin-menu-icon{
    width:32px;
    height:32px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eef4ff;
    color:#2f5bff;
    font-weight:900;
    flex-shrink:0;
}

.admin-menu a.active .admin-menu-icon{
    background:rgba(255,255,255,.18);
    color:#fff;
}

.admin-content{
    min-width:0;
    display:grid;
    gap:20px;
}

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

.admin-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0 10px;
}

.admin-table thead th{
    padding:0 14px 10px;
    color:#7b86a1;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
    border:none;
}

.admin-table tbody tr{
    background:#fff;
    box-shadow:0 12px 24px rgba(31,51,104,.05);
}

.admin-table tbody td{
    padding:16px 14px;
    border-top:1px solid #edf2fb;
    border-bottom:1px solid #edf2fb;
    vertical-align:middle;
}

.admin-table tbody td:first-child{
    border-left:1px solid #edf2fb;
    border-top-left-radius:16px;
    border-bottom-left-radius:16px;
}

.admin-table tbody td:last-child{
    border-right:1px solid #edf2fb;
    border-top-right-radius:16px;
    border-bottom-right-radius:16px;
}

.admin-form-grid{
    display:grid;
    gap:16px;
}

.admin-form-grid .form-control,
.admin-form-grid textarea,
.admin-form-grid select{
    min-height:48px;
    border-radius:16px;
    border:1px solid #dfe7f5;
    box-shadow:none;
    padding:12px 14px;
}

.admin-form-grid textarea{
    min-height:110px;
}

.admin-form-grid .form-control:focus,
.admin-form-grid textarea:focus,
.admin-form-grid select:focus{
    border-color:#8fb5ff;
    box-shadow:0 0 0 4px rgba(47,91,255,.08);
}

.admin-actions-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

@media (max-width: 991px){
    .admin-shell{
        grid-template-columns:1fr;
    }

    .admin-sidebar{
        position:relative;
        top:0;
        max-height:none;
    }
}
