/* =========================================================
   THE ENGLISH PK
   STUDENT DASHBOARD
   PREMIUM APPLE-STYLE BLUE UI
========================================================= */

.tep-dashboard {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 45px 35px 80px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    color: #102a43;
}

/* =========================
   HEADER
========================= */

.tep-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.tep-dashboard-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #1677e8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tep-dashboard-header h1 {
    margin: 0 0 8px;
    color: #0a2540;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -1px;
}

.tep-dashboard-header p {
    margin: 0;
    color: #71839a;
    font-size: 15px;
}

.tep-dashboard-header p strong {
    color: #173c60;
}

/* =========================
   ACCOUNT STATUS
========================= */

.tep-dashboard-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    border: 1px solid #dce8f5;
    border-radius: 50px;
    background: rgba(255,255,255,.9);
    color: #385670;
    font-size: 13px;
    font-weight: 650;
    box-shadow: 0 8px 25px rgba(18,75,135,.07);
}

.tep-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #21ad70;
    box-shadow: 0 0 0 5px rgba(33,173,112,.12);
}

/* =========================
   STATISTICS
========================= */

.tep-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.tep-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 23px;
    border: 1px solid #e0eaf5;
    border-radius: 22px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 12px 35px rgba(20,73,130,.07);
    transition: .25s ease;
}

.tep-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(20,73,130,.12);
}

.tep-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 16px;
    background: linear-gradient(135deg,#eaf4ff,#dcecff);
    font-size: 23px;
}

.tep-stat-card span {
    display: block;
    margin-bottom: 6px;
    color: #7c8da1;
    font-size: 12px;
    font-weight: 600;
}

.tep-stat-card strong {
    display: block;
    color: #0757d5;
    font-size: 25px;
    line-height: 1;
    font-weight: 750;
}

/* =========================
   CARDS
========================= */

.tep-dashboard-card {
    margin-bottom: 22px;
    padding: 28px;
    border: 1px solid #e1ebf6;
    border-radius: 24px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 12px 38px rgba(20,73,130,.065);
}

.tep-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.tep-small-label {
    display: block;
    margin-bottom: 6px;
    color: #3980ed;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.5px;
}

.tep-card-heading h2 {
    margin: 0;
    color: #102f50;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 720;
}

.tep-dashboard-card > p {
    color: #72849a;
    font-size: 14px;
}

/* =========================
   REFERRAL CARD
========================= */

.tep-referral-card {
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(67,143,255,.14),
            transparent 35%
        ),
        linear-gradient(135deg,#ffffff,#f6faff);
}

.tep-referral-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #eaf3ff;
    font-size: 21px;
}

.tep-referral-box {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tep-referral-box input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px !important;
    border: 1px solid #d7e4f2 !important;
    border-radius: 12px !important;
    background: #f8fbff !important;
    color: #35516e !important;
    font-size: 13px !important;
    outline: none;
}

.tep-referral-box button {
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,#0875ed,#0757d5);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: .2s ease;
}

.tep-referral-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(7,87,213,.25);
}

.tep-copy-message {
    margin-top: 10px;
    color: #15905c;
    font-size: 13px;
    font-weight: 600;
}

/* =========================
   COURSES
========================= */

.tep-course-list {
    display: grid;
    gap: 12px;
}

.tep-course-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px;
    border: 1px solid #e4edf6;
    border-radius: 17px;
    background: #fbfdff;
}

.tep-course-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #eaf3ff;
    font-size: 20px;
}

.tep-course-info {
    flex: 1;
}

.tep-course-info h3 {
    margin: 0 0 5px;
    color: #153858;
    font-size: 16px;
}

.tep-course-info p {
    margin: 0 0 10px;
    color: #8292a5;
    font-size: 12px;
}

.tep-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 20px;
    background: #e8f0f8;
}

.tep-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#1682f5,#0757d5);
}

.tep-course-percent {
    color: #0757d5;
    font-size: 14px;
    font-weight: 750;
}

.tep-card-link {
    color: #1264e8 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 650;
}

.tep-card-link:hover {
    text-decoration: underline !important;
}

/* =========================
   EMPTY STATE
========================= */

.tep-empty-state {
    padding: 35px 20px;
    border: 1px dashed #d6e4f2;
    border-radius: 18px;
    background: #fbfdff;
    text-align: center;
}

.tep-empty-icon {
    margin-bottom: 10px;
    font-size: 34px;
}

.tep-empty-state h3 {
    margin: 0 0 6px;
    color: #24435f;
}

.tep-empty-state p {
    margin: 0;
    color: #8798aa;
    font-size: 13px;
}

/* =========================
   NETWORK
========================= */

.tep-network-levels {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}

.tep-network-level {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1px solid #e3edf7;
    border-radius: 17px;
    background: #fbfdff;
}

.tep-level-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 13px;
    background: #eaf3ff;
    color: #1264e8;
    font-size: 12px;
    font-weight: 800;
}

.tep-network-level div {
    flex: 1;
}

.tep-network-level strong {
    display: block;
    margin-bottom: 4px;
    color: #183b5b;
    font-size: 14px;
}

.tep-network-level p {
    margin: 0;
    color: #8798aa;
    font-size: 11px;
}

.tep-network-level b {
    color: #0757d5;
    font-size: 20px;
}

/* =========================
   COMMISSION
========================= */

.tep-commission-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}

.tep-commission-grid > div {
    padding: 20px;
    border: 1px solid #e3edf7;
    border-radius: 17px;
    background: #fbfdff;
}

.tep-commission-grid span {
    display: block;
    margin-bottom: 8px;
    color: #75879b;
    font-size: 12px;
    font-weight: 650;
}

.tep-commission-grid strong {
    display: block;
    margin-bottom: 5px;
    color: #0757d5;
    font-size: 24px;
}

.tep-commission-grid small {
    color: #94a3b4;
}

/* =========================
   PROFILE
========================= */

.tep-profile-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}

.tep-profile-grid > div {
    padding: 18px;
    border: 1px solid #e3edf7;
    border-radius: 16px;
    background: #f8fbff;
}

.tep-profile-grid span {
    display: block;
    margin-bottom: 6px;
    color: #7c8ea2;
    font-size: 11px;
}

.tep-profile-grid strong {
    display: block;
    color: #193b5b;
    font-size: 13px;
    word-break: break-word;
}

/* =========================
   LOGIN MESSAGE
========================= */

.tep-dashboard-message {
    max-width: 600px;
    margin: 70px auto;
    padding: 40px;
    border: 1px solid #e3edf7;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(20,73,130,.08);
    text-align: center;
}

.tep-dashboard-message a {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    background: #0757d5;
    color: #fff;
    text-decoration: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .tep-dashboard-stats {
        grid-template-columns: repeat(2,1fr);
    }

    .tep-network-levels,
    .tep-commission-grid,
    .tep-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .tep-dashboard {
        padding: 25px 15px 55px;
    }

    .tep-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tep-dashboard-header h1 {
        font-size: 30px;
    }

    .tep-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .tep-dashboard-card {
        padding: 20px;
        border-radius: 19px;
    }

    .tep-referral-box {
        flex-direction: column;
    }

    .tep-referral-box button {
        width: 100%;
    }

    .tep-course-item {
        align-items: flex-start;
    }

    .tep-course-percent {
        display: none;
    }
}
/* =========================================================
   START COURSE BUTTON
   ========================================================= */

.tep-course-action {
    display: block !important;
    width: 100%;
    margin-top: 14px;
    text-align: right;
}

.tep-start-course {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    min-height: 42px;
    border-radius: 12px;
    background: #0866ff !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tep-start-course:hover {
    background: #0055d4 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}
/* =========================================================
   FINAL COURSE CARD LAYOUT FIX
   ========================================================= */

.tep-course-item {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 18px !important;
}

.tep-course-icon {
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
}

.tep-course-info {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.tep-course-info h3 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 6px 0 !important;
}

.tep-course-info p {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 12px 0 !important;
}

.tep-course-info .tep-progress {
    width: 100% !important;
    max-width: none !important;
}

.tep-course-percent {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 40px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.tep-course-action {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

.tep-start-course {
    display: inline-flex !important;
    white-space: nowrap !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .tep-course-item {
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    .tep-course-icon {
        flex: 0 0 52px !important;
        width: 52px !important;
        min-width: 52px !important;
    }

    .tep-course-info {
        flex: 1 1 calc(100% - 70px) !important;
        width: calc(100% - 70px) !important;
    }

    .tep-course-percent {
        margin-left: 70px !important;
    }

    .tep-course-action {
        margin-left: 70px !important;
    }

}
/* =========================================================
   TEP COURSE CARD - FINAL LAYOUT
   ========================================================= */

.tep-course-list {
    width: 100% !important;
}

.tep-course-item {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    column-gap: 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tep-course-icon {
    width: 64px !important;
    min-width: 64px !important;
    grid-column: 1 !important;
}

.tep-course-info {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.tep-course-info h3 {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 6px !important;
}

.tep-course-info p {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 12px !important;
}

.tep-course-info .tep-progress {
    display: block !important;
    width: 100% !important;
}

.tep-course-percent {
    grid-column: 3 !important;
    width: auto !important;
    min-width: 40px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.tep-course-action {
    grid-column: 4 !important;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

.tep-start-course {
    display: inline-flex !important;
    width: auto !important;
    min-width: 135px !important;
    justify-content: center !important;
    white-space: nowrap !important;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .tep-course-item {
        grid-template-columns: 52px minmax(0, 1fr) !important;
        row-gap: 12px !important;
    }

    .tep-course-icon {
        width: 52px !important;
        min-width: 52px !important;
    }

    .tep-course-info {
        grid-column: 2 !important;
    }

    .tep-course-percent {
        grid-column: 2 !important;
        text-align: left !important;
    }

    .tep-course-action {
        grid-column: 2 !important;
        text-align: left !important;
    }

}
/* =========================================================
   TEP - FORCE COURSE INFO WIDTH
   ========================================================= */

.tep-dashboard .tep-course-list .tep-course-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.tep-dashboard .tep-course-list .tep-course-icon {
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
}

.tep-dashboard .tep-course-list .tep-course-info {
    flex: 1 1 0% !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

.tep-dashboard .tep-course-list .tep-course-info h3,
.tep-dashboard .tep-course-list .tep-course-info p,
.tep-dashboard .tep-course-list .tep-course-info .tep-progress {
    width: 100% !important;
    max-width: none !important;
}

.tep-dashboard .tep-course-list .tep-course-percent {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 40px !important;
}

.tep-dashboard .tep-course-list .tep-course-action {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
}
/* FINAL COURSE CARD FIX */

.tep-dashboard .tep-course-list .tep-course-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 18px !important;
}

.tep-dashboard .tep-course-list .tep-course-icon {
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
}

.tep-dashboard .tep-course-list .tep-course-info {
    flex: 1 1 0% !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

.tep-dashboard .tep-course-list .tep-course-info h3 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 6px !important;
}

.tep-dashboard .tep-course-list .tep-course-info p {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 12px !important;
}

.tep-dashboard .tep-course-list .tep-course-info .tep-progress {
    width: 100% !important;
    max-width: none !important;
}

.tep-dashboard .tep-course-list .tep-course-percent {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 40px !important;
    white-space: nowrap !important;
}

.tep-dashboard .tep-course-list .tep-course-action {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
}
/* =========================================================
   TEP ACCOUNT SETTINGS — PREMIUM BLUE STYLE
   ========================================================= */

.tep-account-settings {
    max-width: 900px !important;
    margin: 40px auto !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #153858;
}

/* Header */
.tep-account-header {
    margin-bottom: 28px !important;
}

.tep-account-label,
.tep-account-small-label {
    display: block;
    color: #1672e8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    margin-bottom: 8px !important;
}

.tep-account-header h1 {
    margin: 0 0 10px !important;
    font-size: 38px !important;
    line-height: 1.15 !important;
    font-weight: 750 !important;
    color: #102f50 !important;
}

.tep-account-header p {
    margin: 0 !important;
    color: #6b829c !important;
    font-size: 15px !important;
}

/* Main Card */
.tep-account-card {
    background: #ffffff !important;
    border: 1px solid #dbe8f7 !important;
    border-radius: 24px !important;
    padding: 32px !important;
    box-shadow: 0 12px 35px rgba(22, 114, 232, 0.08) !important;
}

/* Card Header */
.tep-account-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin-bottom: 25px !important;
}

.tep-account-card-header h2 {
    margin: 4px 0 0 !important;
    color: #153858 !important;
    font-size: 25px !important;
    font-weight: 750 !important;
}

/* Status */
.tep-account-status {
    background: #edf8f2 !important;
    color: #149447 !important;
    border: 1px solid #cceedd !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/* Form fields */
.tep-account-field {
    margin-bottom: 20px !important;
}

.tep-account-field label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #294c70 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.tep-account-field input {
    width: 100% !important;
    height: 50px !important;
    padding: 0 15px !important;
    border: 1px solid #d5e2f0 !important;
    border-radius: 12px !important;
    background: #f8fbff !important;
    color: #153858 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

/* Focus */
.tep-account-field input:focus {
    border-color: #1672e8 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(22, 114, 232, 0.10) !important;
}

/* Readonly fields */
.tep-account-field input[readonly] {
    background: #eef5fd !important;
    color: #66809d !important;
    cursor: not-allowed !important;
}

/* Small help text */
.tep-account-field small {
    display: block !important;
    margin-top: 7px !important;
    color: #7a91aa !important;
    font-size: 11px !important;
}

/* Divider */
.tep-account-divider {
    height: 1px !important;
    background: #e2ebf5 !important;
    margin: 30px 0 !important;
}

/* Save button */
.tep-account-save {
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #1672e8, #075bd5) !important;
    color: #ffffff !important;
    padding: 14px 25px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 20px rgba(22, 114, 232, 0.22) !important;
    transition: all 0.2s ease !important;
}

.tep-account-save:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 25px rgba(22, 114, 232, 0.30) !important;
}

/* Success message */
.tep-account-message.success {
    background: #edf9f2 !important;
    color: #148447 !important;
    border: 1px solid #c9edd8 !important;
    border-radius: 12px !important;
    padding: 13px 16px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
}

/* Error message */
.tep-account-message.error {
    background: #fff2f2 !important;
    color: #c52b2b !important;
    border: 1px solid #f3cccc !important;
    border-radius: 12px !important;
    padding: 13px 16px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
}

/* Mobile */
@media (max-width: 700px) {

    .tep-account-settings {
        margin: 20px 15px !important;
    }

    .tep-account-card {
        padding: 20px !important;
        border-radius: 18px !important;
    }

    .tep-account-header h1 {
        font-size: 30px !important;
    }

    .tep-account-card-header {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .tep-account-status {
        align-self: flex-start !important;
    }

    .tep-account-field input {
        height: 48px !important;
    }

    .tep-account-save {
        width: 100% !important;
    }
}