/* ==========================================================================
   STORE ACCOUNT (WooCommerce my account, separate from the Tutor dashboard)
   ========================================================================== */
.msa .ms-body > .woocommerce{width:100%;float:none}

/* hero */
.msa-hero{padding:30px 0 104px;text-align:start}
.msa-hero .ms-crumbs{margin-bottom:22px}
.msa-hero__row{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.msa-hero__who{display:flex;align-items:center;gap:16px;min-width:0}
.msa-avatar{flex:none;display:grid;place-items:center;width:68px;height:68px;border-radius:22px;background:linear-gradient(140deg,#ffd00d,#f2a900);color:#231a5c;font-size:28px;font-weight:800;box-shadow:0 14px 30px rgba(0,0,0,.18),inset 0 0 0 3px rgba(255,255,255,.35)}
.msa-hero__hi{display:inline-block;margin-bottom:2px;padding:3px 12px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12.5px;font-weight:700;color:rgba(255,255,255,.9)}
.msa-hero h1{margin:0;font-size:30px;line-height:1.35;text-align:start}
.msa-hero__who p{margin:2px 0 0;font-size:14px;color:rgba(255,255,255,.78);text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[dir="ltr"] .msa-hero__who p{text-align:left}

/* account details form */
.msa-edit .edit-account{display:flex;flex-direction:column;gap:6px}
.msa-edit__grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.msa-edit .form-row{margin:0 0 14px}
.msa-edit label{display:block;font-weight:700;font-size:14px;margin-bottom:6px;color:var(--ink)}
.msa-edit .input-text{width:100%;height:48px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit}
.msa-edit .input-text:focus{outline:0;border-color:var(--v);box-shadow:0 0 0 4px var(--v-tint)}
.msa-edit__pass{border:1px dashed var(--line);border-radius:16px;padding:16px 18px 4px;margin:8px 0 18px}
.msa-edit__pass legend{font-weight:800;padding:0 8px;color:var(--ink)}
.msa-edit__pass small{display:block;color:var(--mute);margin:-4px 0 12px}
@media (max-width:640px){.msa-edit__grid{grid-template-columns:1fr}}
.msa-hero__acts{display:flex;gap:10px;flex-wrap:wrap}
.msa-hero__btn{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 18px;border-radius:14px;border:1.5px solid rgba(255,255,255,.35);background:rgba(255,255,255,.1);color:#fff !important;font-size:14.5px;font-weight:800;text-decoration:none;backdrop-filter:blur(6px);transition:background .2s ease,transform .2s ease}
.msa-hero__btn:hover{background:rgba(255,255,255,.2);transform:translateY(-1px)}
.msa-hero__btn--main{border-color:#ffd00d;background:#ffd00d;color:#231a5c !important}
.msa-hero__btn--main:hover{background:#ffdc3d}
.msa-hero__btn--out .ms-ic{transform:scaleX(-1)}
.msa-hero__guest{text-align:center}
.msa-hero__guest h1{margin:16px auto 8px;text-align:center}

/* layout */
.msa-wrap{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}
.msa-content{min-width:0;width:auto !important;float:none !important;display:flex;flex-direction:column;gap:18px}
.msa-content .mc-box + .mc-box{margin-top:0}
.msa-content .ms-notices{margin:0}
.msa-content .ms-notices:empty,.msa-content .ms-notices .woocommerce-notices-wrapper:empty{display:none}

/* menu */
.msa-nav{position:sticky;top:96px;display:flex;flex-direction:column;gap:12px;width:auto !important;float:none !important}
.msa-nav ul{display:flex;flex-direction:column;gap:4px;margin:0 !important;padding:10px !important;border-radius:24px;background:#fff;box-shadow:0 16px 44px rgba(33,40,60,.09);list-style:none}
.msa-nav li{margin:0 !important;list-style:none}
.msa-nav li a{position:relative;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;color:var(--ink);font-weight:700;font-size:15px;text-decoration:none;transition:background .15s ease,color .15s ease}
.msa-nav__ic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--v-tint);color:var(--v);transition:background .15s ease,color .15s ease}
.msa-nav__txt{flex:1;min-width:0}
.msa-nav li a:hover{background:var(--v-tint)}
.msa-nav li a:hover .msa-nav__ic{background:var(--v-soft)}
.msa-nav li.is-active a{background:linear-gradient(120deg,#5b4dbe,#4336a0);color:#fff;box-shadow:0 12px 26px rgba(91,77,190,.28)}
.msa-nav li.is-active .msa-nav__ic{background:rgba(255,255,255,.16);color:#fff}
.msa-nav li.woocommerce-MyAccount-navigation-link--customer-logout{margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
.msa-nav li.woocommerce-MyAccount-navigation-link--customer-logout a{color:#d92d20}
.msa-nav li.woocommerce-MyAccount-navigation-link--customer-logout .msa-nav__ic{background:#fff1f1;color:#d92d20}
.msa-nav li.woocommerce-MyAccount-navigation-link--customer-logout .ms-ic{transform:scaleX(-1)}
.msa-nav__badge{min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#12805c;color:#fff;font-style:normal;font-size:12px;font-weight:800;display:grid;place-items:center}
.msa-nav__badge.is-wait{background:#f2c200;color:var(--ink)}
.msa-nav li.is-active .msa-nav__badge{background:#fff;color:var(--v)}
.msa-help{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:20px;background:linear-gradient(135deg,#e7f8ee,#f3fcf7);color:#0f5f37 !important;text-decoration:none;box-shadow:inset 0 0 0 1px #c9efd9}
.msa-help__ic{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#1aa557;color:#fff}
.msa-help b{display:block;font-size:14.5px}
.msa-help small{color:#3f7a57;font-size:12.5px;font-weight:600}
.msa-help:hover{box-shadow:inset 0 0 0 1px #1aa557}

/* shared */
.msa-head{display:flex;flex-direction:column;gap:4px;padding:20px 24px;border-radius:22px;background:#fff;box-shadow:0 14px 40px rgba(33,40,60,.08);border-inline-start:5px solid var(--v)}
.msa-head h2{margin:0;color:var(--ink);font-size:24px;font-weight:800}
.msa-head p{margin:0;color:var(--mute);font-size:15px;line-height:1.8}
.msa-tag{display:inline-flex;align-items:center;gap:5px;padding:4px 11px;border-radius:999px;font-size:12.5px;font-weight:800;white-space:nowrap}
.msa-tag--ok{background:#e3f9ef;color:#12805c}
.msa-tag--wait{background:#fff6d1;color:#8a6d00}
.msa-tag--bad{background:#ffeef0;color:#d92d20}
.msa-tag--new{background:#12805c;color:#fff;box-shadow:0 6px 14px rgba(18,128,92,.25)}

/* dashboard */
.msa-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.msa-stats a{position:relative;display:flex;flex-direction:column;gap:2px;padding:18px 18px 16px;border-radius:22px;background:#fff;box-shadow:0 14px 40px rgba(33,40,60,.08);color:var(--ink);text-decoration:none;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.msa-stats a::after{content:"";position:absolute;inset-inline-end:-26px;top:-26px;width:90px;height:90px;border-radius:50%;background:var(--c-soft,var(--v-soft));opacity:.7}
.msa-stats a:hover{transform:translateY(-3px);box-shadow:0 20px 48px rgba(33,40,60,.12)}
.msa-stats span{position:relative;z-index:1;display:grid;place-items:center;width:44px;height:44px;margin-bottom:8px;border-radius:14px;background:var(--c,var(--v));color:#fff}
.msa-stats b{position:relative;z-index:1;font-size:30px;font-weight:800;line-height:1.2}
.msa-stats small{position:relative;z-index:1;color:var(--mute);font-size:13px;font-weight:700}
.msa-stats a:nth-child(2){--c:#12805c;--c-soft:#e3f9ef}
.msa-stats a:nth-child(3){--c:#f2c200;--c-soft:#fff6d1}
.msa-stats a:nth-child(3) span{color:var(--ink)}
.msa-stats a:nth-child(4){--c:#21283c;--c-soft:#eef0f4}
.msa-sec__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.msa-sec__head .mc-h{margin:0}
.msa-sec__head a{color:var(--v);font-weight:800;font-size:14px}
.msa-sec--new{box-shadow:0 14px 40px rgba(18,128,92,.1),inset 0 0 0 2px #bdeed6}
.msa-sec--new .mc-h .ms-ic{color:#12805c}
.msa-wait{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.msa-wait:first-of-type{padding-top:0}
.msa-wait:last-child{border-bottom:0;padding-bottom:0}
.msa-wait > div{flex:1;min-width:0}
.msa-wait b{display:block;color:var(--ink);font-size:15.5px;font-weight:800}
.msa-wait small{color:var(--mute);font-size:13px;line-height:1.7}
.msa-wait .ms-btn{flex:none;height:44px;padding:0 18px;font-size:14.5px}
.msa-wait__dot{flex:none;width:12px;height:12px;border-radius:50%;background:#f2c200;box-shadow:0 0 0 5px #fff6d1}
.msa-wait__dot.is-sent{background:var(--v);box-shadow:0 0 0 5px var(--v-soft)}
.msa-wait__dot.is-new{background:#12805c;box-shadow:0 0 0 5px #e3f9ef}
.msa-mini{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.msa-mini a{display:flex;flex-direction:column;gap:8px;color:var(--ink);font-size:14px;font-weight:700;text-decoration:none}
.msa-mini a:hover b{color:var(--v)}
.msa-mini b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.6}
.msa-mini__img{display:grid;place-items:center;aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:var(--v-soft);color:var(--v)}
.msa-mini__img img{width:100%;height:100%;object-fit:cover}
.msa-empty{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:44px 24px !important}
.msa-empty b{color:var(--ink);font-size:18px}
.msa-empty p{margin:0 0 6px;color:var(--mute)}
.msa-empty__ico{display:grid;place-items:center;width:78px;height:78px;margin-bottom:6px;border-radius:24px;background:var(--v-soft);color:var(--v)}
.msa-note{display:flex;align-items:center;gap:10px;padding:13px 16px;border-radius:16px;background:#fff6d1;color:#6b5400;font-weight:700;font-size:14px;line-height:1.7}
.msa-note span{flex:1}
.msa-note a{color:var(--v);font-weight:800;white-space:nowrap}

/* my products */
.msa-list{display:flex;flex-direction:column;gap:16px}
.msa-prod{display:flex;gap:20px;align-items:flex-start;scroll-margin-top:110px}
.msa-prod.is-new{box-shadow:0 14px 40px rgba(18,128,92,.1),inset 0 0 0 2px #bdeed6}
.msa-prod__img{flex:none;display:grid;place-items:center;width:168px;aspect-ratio:4/3;border-radius:18px;overflow:hidden;background:var(--v-soft);color:var(--v)}
.msa-prod__img img{width:100%;height:100%;object-fit:cover}
.msa-prod__body{flex:1;min-width:0}
.msa-prod__top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.msa-prod__top h3{margin:0;font-size:18.5px;font-weight:800;line-height:1.5}
.msa-prod__top h3 a{color:var(--ink)}
.msa-prod__top h3 a:hover{color:var(--v)}
.msa-prod__meta{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px !important}
.msa-prod__meta span{padding:4px 10px;border-radius:9px;background:#f4f5f8;color:var(--mute);font-size:12.5px;font-weight:700}
.msa-prod__meta b{color:var(--ink)}
.msa-prod__meta a{color:var(--v)}
.msa-log{margin:0 0 12px;padding:11px 14px;border-radius:14px;background:#f0fbf6;color:#0f5f45;font-size:14px;line-height:1.85}
.msa-log summary{cursor:pointer;font-weight:800}
.msa-log div{margin-top:6px}
.msa-files{display:flex;flex-direction:column;gap:8px;margin:0 !important;padding:0 !important;list-style:none}
.msa-files li{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 12px;border:1px solid var(--line);border-radius:16px;background:#fcfcfe;list-style:none;transition:border-color .15s ease}
.msa-files li:hover{border-color:#d6d1f5}
.msa-files__ext{flex:none;display:grid;place-items:center;min-width:48px;height:38px;padding:0 6px;border-radius:11px;background:linear-gradient(135deg,#21283c,#3a4363);color:#fff;font-size:11.5px;font-weight:800;letter-spacing:.5px}
.msa-files__name{flex:1;min-width:0;display:flex;flex-direction:column}
.msa-files__name b{color:var(--ink);font-size:14.5px;overflow-wrap:anywhere}
.msa-files__name small{color:var(--mute);font-size:12.5px}
html body .msa-files .msa-files__dl.ms-btn{flex:none;height:42px;padding:0 18px;border-radius:12px !important;font-size:14.5px}

/* orders */
.msa-olist{display:flex;flex-direction:column;gap:12px}
.msa-order{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 20px}
.msa-order__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.msa-order__top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.msa-order__top b{color:var(--ink);font-size:16.5px;font-weight:800}
.msa-order__main small{color:var(--mute);font-size:13.5px;line-height:1.7}
.msa-order__meta{font-weight:700}
.msa-order__acts{display:flex;gap:8px;flex-wrap:wrap}
html body .msa-order__acts .ms-btn{height:44px;padding:0 18px;border-radius:12px !important;font-size:14.5px}
.msa-pager{display:flex;gap:10px;justify-content:center}
.msa-back{margin:0 !important}
.msa-back a{display:inline-flex;align-items:center;gap:6px;color:var(--mute);font-weight:700}
.msa-back a:hover{color:var(--v)}
.msa-view{display:flex;flex-direction:column;gap:18px}
.msa-view .mc-box + .mc-box{margin-top:0}
.msa-view .mc-thanks__grid{gap:18px}
.msa-notes{margin:0 !important;padding:0 !important;list-style:none}
.msa-notes li{padding:10px 0;border-bottom:1px solid var(--line);list-style:none}
.msa-notes li:last-child{border-bottom:0}
.msa-notes small{color:var(--mute)}
.msa-notes p{margin:2px 0 0}

/* account details */
.msa-content .woocommerce-EditAccountForm{padding:26px;border-radius:22px;background:#fff;box-shadow:0 14px 40px rgba(33,40,60,.08);display:flex;flex-wrap:wrap;gap:0 14px}
.msa-content .woocommerce-EditAccountForm > *{flex-basis:100%}
.msa-content .woocommerce-EditAccountForm > .form-row-first,.msa-content .woocommerce-EditAccountForm > .form-row-last{flex-basis:calc(50% - 7px)}
.msa-content .woocommerce-EditAccountForm fieldset{margin:8px 0 18px;padding:18px 18px 4px;border:1px solid var(--line);border-radius:18px;background:#fcfcfe}
.msa-content .woocommerce-EditAccountForm legend{padding:0 8px;color:var(--ink);font-weight:800}
.msa-content .woocommerce-EditAccountForm .clear{display:none}
.msa-content .woocommerce-EditAccountForm em{display:block;margin-top:4px;color:var(--mute);font-size:12.5px;font-style:normal}
.msa-content .woocommerce-EditAccountForm button.button{height:52px;padding:0 30px;border:0;border-radius:14px;background:var(--v);color:#fff;font:800 15.5px "Cairo",sans-serif;cursor:pointer;box-shadow:0 12px 26px rgba(91,77,190,.28)}
.msa-content .woocommerce-EditAccountForm button.button:hover{background:var(--v-dark)}
.msa-content #account_email{direction:ltr;text-align:right}

/* log in / register */
.msa-auth{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;max-width:520px;margin:0 auto}
.msa-auth.has-reg{grid-template-columns:repeat(2,minmax(0,1fr));max-width:980px}
.msa-auth .mc-box{margin:0;padding:28px}
.msa-auth h2 .ms-ic{color:var(--v)}
.msa-auth__lead{margin:-8px 0 18px;color:var(--mute);font-size:14px;line-height:1.8}
.msa-auth__row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 16px}
.msa-auth__row a{color:var(--v);font-weight:700;font-size:14px}
.msa-auth__check{display:flex;align-items:center;gap:6px;font-weight:700;cursor:pointer}
.msa-auth #username,.msa-auth #reg_email,.msa-auth #reg_username{direction:ltr;text-align:right}
.msa-auth .woocommerce-privacy-policy-text{margin:0 0 14px;color:var(--mute);font-size:12.5px;line-height:1.8}

/* tablet & mobile */
@media (max-width:991px){
	.msa-hero{padding:24px 0 96px}
	.msa-wrap{grid-template-columns:minmax(0,1fr);gap:16px}
	.msa-nav{position:static;gap:0}
	.msa-nav ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px !important;border-radius:20px}
	.msa-nav li.woocommerce-MyAccount-navigation-link--customer-logout{display:none}
	.msa-nav li a{flex-direction:column;justify-content:center;gap:6px;padding:10px 4px;border-radius:14px;font-size:13px;text-align:center}
	.msa-nav__ic{width:38px;height:38px}
	.msa-nav__txt{flex:none;font-size:0;line-height:1.3}
	.msa-nav__txt::after{content:attr(data-short);font-size:13px}
	.msa-nav__badge{position:absolute;top:6px;inset-inline-end:calc(50% - 30px);min-width:20px;height:20px;padding:0 5px;font-size:11px;box-shadow:0 0 0 2px #fff}
	.msa-help{display:none}
	.msa-stats,.msa-mini{grid-template-columns:repeat(2,minmax(0,1fr))}
	.msa-auth.has-reg{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
	.msa-hero h1{font-size:23px}
	.msa-avatar{width:56px;height:56px;border-radius:18px;font-size:23px}
	.msa-hero__row{gap:16px}
	.msa-hero__acts{width:100%;display:grid;grid-template-columns:1fr 1fr auto;gap:8px}
	.msa-hero__btn{justify-content:center;height:44px;padding:0 12px;font-size:13.5px}
	.msa-hero__btn--out{width:44px;padding:0}
	.msa-hero__btn--out span{display:none}
	.msa-head{padding:16px 18px;border-radius:18px}
	.msa-head h2{font-size:21px}
	.msa-head p{font-size:14px}
	.msa-stats{gap:10px}
	.msa-stats a{padding:14px;border-radius:18px}
	.msa-stats span{width:38px;height:38px;border-radius:12px}
	.msa-stats b{font-size:25px}
	.msa-stats small{font-size:12px}
	.msa-wait{flex-wrap:wrap;gap:10px 12px}
	html body .msa-wait .ms-btn{width:100%}
	.msa-mini{gap:10px}
	.msa-prod{display:block}
	.msa-prod__img{float:right;width:64px;aspect-ratio:1;margin:0 0 8px 12px;border-radius:14px}
	html[dir="ltr"] .msa-prod__img{float:left;margin:0 12px 8px 0}
	.msa-prod__img .ms-ic{width:24px;height:24px}
	.msa-prod__top h3{font-size:16.5px}
	.msa-prod__meta{margin:6px 0 10px !important}
	.msa-log,.msa-files{clear:both}
	.msa-files li{gap:10px;padding:8px}
	.msa-files__ext{min-width:42px;height:34px;font-size:10.5px}
	.msa-files__name b{font-size:13.5px}
	html body .msa-files .msa-files__dl.ms-btn{height:40px;padding:0 13px;font-size:13.5px}
	.msa-view .mc-status{flex-direction:column;align-items:center;gap:12px;text-align:center}
	.msa-view .mc-status > div{min-width:0}
	.msa-view .mc-status b{font-size:17px}
	.msa-view .mc-status p{font-size:14px}
	.msa-order{padding:16px}
	.msa-order__acts{width:100%}
	html body .msa-order__acts .ms-btn{flex:1}
	.msa-note{flex-wrap:wrap}
	.msa-content .woocommerce-EditAccountForm{padding:18px}
	.msa-content .woocommerce-EditAccountForm > .form-row-first,.msa-content .woocommerce-EditAccountForm > .form-row-last{flex-basis:100%}
	.msa-auth .mc-box{padding:20px}
}
@media (max-width:380px){
	.msa-nav li a{font-size:12px}
	.msa-nav__txt::after{font-size:12px}
	.msa-hero__acts{grid-template-columns:1fr auto}
	.msa-hero__btn--main{grid-column:1 / -1}
}
