/* ========================================================================
   SUPERGIRL MyPage V5.7
   Scope: login / order history detail / point history / pro-member page.
   All selectors are body-scoped so no other storefront page is affected.
   ======================================================================== */

body.sg-mypage-page {
    --sg-my-bg: #000;
    --sg-my-panel: #111;
    --sg-my-panel-soft: #181818;
    --sg-my-panel-hover: #202020;
    --sg-my-text: #fff;
    --sg-my-muted: #a6a6a6;
    --sg-my-border: rgba(255, 255, 255, .14);
    --sg-my-accent: #ef6440;
    --sg-my-accent-dark: #d94f2d;
    --sg-my-yellow: #fecd00;
    --sg-my-success: #4ecb83;
    --sg-my-warning: #f1b94b;
    --sg-my-danger: #ff6c6c;
    margin: 0;
    overflow-x: hidden;
    background: var(--sg-my-bg) !important;
    color: var(--sg-my-text);
    font-family: Inter, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

body.sg-mypage-page .ec-layoutRole,
body.sg-mypage-page .ec-layoutRole__contents,
body.sg-mypage-page .ec-layoutRole__main,
body.sg-mypage-page .ec-layoutRole__mainWithColumn,
body.sg-mypage-page .ec-layoutRole__mainBetweenColumn,
body.sg-mypage-page .ec-layoutRole__mainTop,
body.sg-mypage-page .ec-layoutRole__mainBottom,
body.sg-mypage-page .ec-layoutRole__contentBottom {
    background: var(--sg-my-bg) !important;
    color: var(--sg-my-text);
}

body.sg-mypage-page .ec-layoutRole__contents {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-page .ec-layoutRole__left,
body.sg-mypage-page .ec-layoutRole__right {
    display: none !important;
}

body.sg-mypage-page .ec-layoutRole__main,
body.sg-mypage-page .ec-layoutRole__mainWithColumn,
body.sg-mypage-page .ec-layoutRole__mainBetweenColumn {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.sg-mypage-page .sg-mypage-shell {
    width: min(90%, 1260px) !important;
    max-width: 1260px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: clamp(44px, 5vw, 76px) 0 clamp(72px, 7vw, 110px) !important;
    background: transparent !important;
    color: var(--sg-my-text);
}

body.sg-mypage-login-page .sg-mypage-shell {
    width: min(90%, 660px) !important;
    max-width: 660px !important;
}

body.sg-mypage-page *,
body.sg-mypage-page *::before,
body.sg-mypage-page *::after {
    box-sizing: border-box;
}

body.sg-mypage-page img {
    max-width: 100%;
    height: auto;
}

body.sg-mypage-page .sg-mypage-shell a {
    color: var(--sg-my-accent);
    text-decoration: none;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .25s ease;
}

body.sg-mypage-page .sg-mypage-shell a:hover {
    color: #ff8566;
    text-decoration: none;
}

/* ---------- Page heading ---------- */
body.sg-mypage-page .ec-mypageRole,
body.sg-mypage-page .ec-pageHeader {
    width: 100%;
    max-width: none;
}

body.sg-mypage-page .ec-pageHeader {
    margin: 0 0 26px !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
}

body.sg-mypage-page .ec-pageHeader h1 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--sg-my-text) !important;
    font-family: "Maven Pro", Inter, "Noto Sans JP", sans-serif;
    font-size: clamp(30px, 3.1vw, 50px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -.025em;
    text-align: left !important;
}

body.sg-mypage-page .ec-pageHeader h1::before {
    content: "MY PAGE";
    display: block;
    margin-bottom: 9px;
    color: var(--sg-my-accent);
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .14em;
}

body.sg-mypage-login-page .ec-pageHeader h1::before {
    content: "ACCOUNT";
}

/* ---------- Shared mypage navigation ---------- */
body.sg-mypage-page .ec-navlistRole {
    width: 100%;
    margin: 0 0 28px !important;
    padding: 0 !important;
    overflow: visible;
    border: 0 !important;
}

body.sg-mypage-page .ec-navlistRole__navlist,
body.sg-mypage-page .ec-navlistRole ul {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none;
}

body.sg-mypage-page .ec-navlistRole__item,
body.sg-mypage-page .ec-navlistRole li {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    list-style: none;
}

body.sg-mypage-page .ec-navlistRole__item > a,
body.sg-mypage-page .ec-navlistRole li > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 17px !important;
    border: 1px solid var(--sg-my-border) !important;
    border-radius: 999px;
    background: var(--sg-my-panel) !important;
    color: #dedede !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

body.sg-mypage-page .ec-navlistRole__item > a:hover,
body.sg-mypage-page .ec-navlistRole li > a:hover,
body.sg-mypage-page .ec-navlistRole__item.active > a,
body.sg-mypage-page .ec-navlistRole__item--active > a,
body.sg-mypage-page .ec-navlistRole li.active > a {
    border-color: var(--sg-my-accent) !important;
    background: var(--sg-my-accent) !important;
    color: #fff !important;
}

body.sg-mypage-page .ec-welcomeMsg {
    margin: 0 0 34px !important;
    padding: 17px 20px !important;
    border: 1px solid var(--sg-my-border);
    border-left: 4px solid var(--sg-my-accent);
    border-radius: 8px;
    background: var(--sg-my-panel);
    color: #e5e5e5;
    font-size: 14px;
    line-height: 1.7;
}

body.sg-mypage-page .ec-welcomeMsg p {
    margin: 0 !important;
    color: inherit !important;
}

/* ---------- Shared dark cards / controls ---------- */
body.sg-mypage-page .ec-rectHeading {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.sg-mypage-page .ec-rectHeading h2 {
    position: relative;
    margin: 0 !important;
    padding: 0 0 13px !important;
    border-bottom: 1px solid var(--sg-my-border);
    color: var(--sg-my-text) !important;
    font-family: "Maven Pro", Inter, "Noto Sans JP", sans-serif;
    font-size: clamp(20px, 1.7vw, 27px) !important;
    font-weight: 650 !important;
    line-height: 1.35;
}

body.sg-mypage-page .ec-rectHeading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 52px;
    height: 2px;
    background: var(--sg-my-accent);
}

body.sg-mypage-page input[type="text"],
body.sg-mypage-page input[type="email"],
body.sg-mypage-page input[type="password"],
body.sg-mypage-page input[type="tel"],
body.sg-mypage-page input[type="number"],
body.sg-mypage-page select,
body.sg-mypage-page textarea {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid #404040 !important;
    border-radius: 6px !important;
    background: #090909 !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none;
}

body.sg-mypage-page input:focus,
body.sg-mypage-page select:focus,
body.sg-mypage-page textarea:focus {
    border-color: var(--sg-my-accent) !important;
    box-shadow: 0 0 0 3px rgba(239, 100, 64, .14) !important;
}

body.sg-mypage-page input::placeholder,
body.sg-mypage-page textarea::placeholder {
    color: #777;
}

body.sg-mypage-page .ec-errorMessage,
body.sg-mypage-page .ec-color-accent {
    color: #ff8a70 !important;
}

body.sg-mypage-page .ec-inlineBtn,
body.sg-mypage-page .ec-blockBtn--action,
body.sg-mypage-page .ec-blockBtn--cancel,
body.sg-mypage-page .sg-mypage-primary-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 24px !important;
    border: 1px solid var(--sg-my-accent) !important;
    border-radius: 5px !important;
    background: var(--sg-my-accent) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

body.sg-mypage-page .ec-inlineBtn:hover,
body.sg-mypage-page .ec-blockBtn--action:hover,
body.sg-mypage-page .ec-blockBtn--cancel:hover,
body.sg-mypage-page .sg-mypage-primary-link:hover {
    border-color: var(--sg-my-accent-dark) !important;
    background: var(--sg-my-accent-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ========================================================================
   Login
   ======================================================================== */
body.sg-mypage-login-page .ec-off2Grid,
body.sg-mypage-login-page .ec-off2Grid__cell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-login-page .ec-login {
    width: 100%;
    margin: 0;
    padding: clamp(28px, 4.2vw, 48px) !important;
    border: 1px solid var(--sg-my-border);
    border-radius: 10px;
    background: linear-gradient(145deg, #161616 0%, #0d0d0d 100%) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

body.sg-mypage-login-page .ec-login__icon {
    margin: 0 0 24px !important;
    text-align: center;
}

body.sg-mypage-login-page .ec-login__icon .ec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 19px;
    border-radius: 50%;
    background: var(--sg-my-accent);
}

body.sg-mypage-login-page .ec-login__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

body.sg-mypage-login-page .ec-login__input,
body.sg-mypage-login-page .ec-login__input .ec-input {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-login-page .ec-login__input input + input {
    margin-top: 12px;
}

body.sg-mypage-login-page .ec-checkbox {
    margin: 17px 0 0 !important;
    color: #cacaca;
    font-size: 13px;
}

body.sg-mypage-login-page .ec-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

body.sg-mypage-login-page .ec-checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--sg-my-accent);
}

body.sg-mypage-login-page .ec-login > .ec-grid2 {
    display: grid !important;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 20px;
    align-items: center;
    margin-top: 28px !important;
}

body.sg-mypage-login-page .ec-login > .ec-grid2 > .ec-grid2__cell {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-login-page .ec-login__actions,
body.sg-mypage-login-page .ec-login__actions button {
    width: 100%;
}

body.sg-mypage-login-page .ec-login__link {
    margin: 0 !important;
    padding: 4px 0 !important;
    text-align: left !important;
}

body.sg-mypage-login-page .ec-login__link a {
    color: #d4d4d4 !important;
    font-size: 13px;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

body.sg-mypage-login-page .ec-login__link a:hover {
    color: var(--sg-my-accent) !important;
}

/* ========================================================================
   Order history detail
   ======================================================================== */
body.sg-mypage-history-page .ec-orderRole {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    gap: 28px;
    align-items: start;
    width: 100% !important;
    margin: 34px 0 0 !important;
    padding: 0 !important;
}

body.sg-mypage-history-page .ec-orderRole__detail,
body.sg-mypage-history-page .ec-orderRole__summary {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-history-page .ec-orderOrder,
body.sg-mypage-history-page .ec-orderDelivery,
body.sg-mypage-history-page .ec-orderPayment,
body.sg-mypage-history-page .ec-orderConfirm,
body.sg-mypage-history-page .ec-orderMails,
body.sg-mypage-history-page .ec-totalBox {
    margin: 0 0 22px !important;
    padding: clamp(20px, 2.2vw, 28px) !important;
    border: 1px solid var(--sg-my-border) !important;
    border-radius: 8px;
    background: var(--sg-my-panel) !important;
    color: #e8e8e8;
}

body.sg-mypage-history-page .ec-orderOrder {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
}

body.sg-mypage-history-page .ec-definitions,
body.sg-mypage-history-page .ec-definitions--soft {
    display: grid !important;
    grid-template-columns: minmax(110px, .42fr) minmax(0, .58fr);
    gap: 12px;
    align-items: start;
    width: 100%;
    margin: 0 !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

body.sg-mypage-history-page .ec-orderOrder .ec-definitions:nth-last-child(-n+2) {
    border-bottom-color: rgba(255, 255, 255, .08);
}

body.sg-mypage-history-page .ec-definitions dt,
body.sg-mypage-history-page .ec-definitions--soft dt {
    margin: 0 !important;
    color: var(--sg-my-muted) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.65;
}

body.sg-mypage-history-page .ec-definitions dd,
body.sg-mypage-history-page .ec-definitions--soft dd {
    min-width: 0;
    margin: 0 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

body.sg-mypage-history-page .ec-orderDelivery__title {
    margin: 22px 0 12px !important;
    color: var(--sg-my-accent) !important;
    font-size: 15px;
    font-weight: 700;
}

body.sg-mypage-history-page .ec-orderDelivery__item {
    margin: 0 0 12px !important;
    padding: 15px !important;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px;
    background: var(--sg-my-panel-soft) !important;
}

body.sg-mypage-history-page .ec-imageGrid {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    width: 100%;
}

body.sg-mypage-history-page .ec-imageGrid__img {
    width: 92px !important;
    max-width: 92px !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 5px;
    background: #f2f2f2;
}

body.sg-mypage-history-page .ec-imageGrid__img img {
    display: block;
    width: 100% !important;
    height: 112px !important;
    object-fit: contain;
}

body.sg-mypage-history-page .ec-imageGrid__content {
    min-width: 0;
    padding: 0 !important;
    color: #d5d5d5 !important;
    font-size: 13px;
    line-height: 1.7;
}

body.sg-mypage-history-page .ec-imageGrid__content p {
    margin: 0 0 6px !important;
    color: inherit !important;
}

body.sg-mypage-history-page .ec-imageGrid__content a {
    color: #fff !important;
    font-weight: 650;
}

body.sg-mypage-history-page .ec-imageGrid__content a:hover {
    color: var(--sg-my-accent) !important;
}

body.sg-mypage-history-page .ec-orderDelivery__address {
    margin: 15px 0 !important;
    padding: 15px 17px !important;
    border-left: 3px solid var(--sg-my-accent);
    border-radius: 4px;
    background: #0c0c0c;
}

body.sg-mypage-history-page .ec-orderDelivery__address p,
body.sg-mypage-history-page .ec-orderPayment p,
body.sg-mypage-history-page .ec-orderConfirm p,
body.sg-mypage-history-page .ec-reportDescription {
    margin: 0 0 5px !important;
    color: #d8d8d8 !important;
    font-size: 14px;
    line-height: 1.75;
}

body.sg-mypage-history-page .ec-orderPayment .ec-inlineBtn {
    min-height: 40px;
    margin: 10px 8px 0 0 !important;
    padding: 8px 17px !important;
    background: transparent !important;
    color: #fff !important;
}

body.sg-mypage-history-page .ec-orderPayment .ec-inlineBtn:hover {
    background: var(--sg-my-accent) !important;
}

body.sg-mypage-history-page .ec-orderMail {
    margin: 0 !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

body.sg-mypage-history-page .ec-orderMail:last-child {
    border-bottom: 0;
}

body.sg-mypage-history-page .ec-orderMail__time {
    margin-bottom: 5px;
    color: var(--sg-my-muted) !important;
    font-size: 12px;
}

body.sg-mypage-history-page .ec-orderMail__link a {
    color: #fff !important;
    font-weight: 650;
    cursor: pointer;
}

body.sg-mypage-history-page .ec-orderMail__body {
    margin-top: 12px;
    padding: 15px;
    border-radius: 5px;
    background: #080808 !important;
    color: #cfcfcf !important;
    font-size: 13px;
    line-height: 1.75;
}

body.sg-mypage-history-page .ec-totalBox {
    position: sticky;
    top: 22px;
    margin-bottom: 14px !important;
}

body.sg-mypage-history-page .ec-totalBox__spec,
body.sg-mypage-history-page .ec-totalBox__taxRate {
    display: flex !important;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin: 0 !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

body.sg-mypage-history-page .ec-totalBox dt,
body.sg-mypage-history-page .ec-totalBox dd {
    margin: 0 !important;
    color: #ccc !important;
    font-size: 13px;
}

body.sg-mypage-history-page .ec-totalBox dd {
    color: #fff !important;
    font-weight: 650;
    text-align: right;
}

body.sg-mypage-history-page .ec-totalBox__total,
body.sg-mypage-history-page .ec-totalBox__paymentTotal {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 7px;
    margin: 10px 0 0 !important;
    padding: 16px 0 7px !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
}

body.sg-mypage-history-page .ec-totalBox__price {
    margin-left: auto;
    color: var(--sg-my-accent) !important;
    font-size: 24px !important;
    font-weight: 750 !important;
}

body.sg-mypage-history-page .ec-totalBox__taxLabel {
    color: var(--sg-my-muted) !important;
    font-size: 11px;
}

body.sg-mypage-history-page .ec-totalBox .ec-blockBtn--action {
    width: 100%;
    margin-top: 18px !important;
}

body.sg-mypage-history-page .sg-mypage-history > .ec-role:last-child {
    margin-top: 8px;
    text-align: center;
}

body.sg-mypage-history-page .sg-mypage-history > .ec-role:last-child .ec-inlineBtn {
    min-width: 150px;
    background: transparent !important;
    color: #fff !important;
}

body.sg-mypage-history-page .sg-mypage-history > .ec-role:last-child .ec-inlineBtn:hover {
    background: var(--sg-my-accent) !important;
}

/* ========================================================================
   Point history
   ======================================================================== */
body.sg-mypage-point-page .sg-mypage-point-table {
    width: 100% !important;
    margin: 34px 0 28px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    border: 1px solid var(--sg-my-border) !important;
    border-radius: 8px;
    background: var(--sg-my-panel) !important;
    color: #fff;
}

body.sg-mypage-point-page .sg-mypage-point-table thead th {
    padding: 15px 17px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, .09) !important;
    background: var(--sg-my-accent) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

body.sg-mypage-point-page .sg-mypage-point-table thead th:last-child {
    border-right: 0 !important;
}

body.sg-mypage-point-page .sg-mypage-point-table tbody tr {
    background: var(--sg-my-panel) !important;
    transition: background .22s ease;
}

body.sg-mypage-point-page .sg-mypage-point-table tbody tr:hover {
    background: var(--sg-my-panel-hover) !important;
}

body.sg-mypage-point-page .sg-mypage-point-table tbody td {
    padding: 17px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, .08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    background: transparent !important;
    color: #dedede !important;
    font-size: 14px;
    line-height: 1.55;
    vertical-align: middle;
    text-align: center;
}

body.sg-mypage-point-page .sg-mypage-point-table tbody td:last-child {
    border-right: 0 !important;
    color: var(--sg-my-accent) !important;
    font-size: 16px;
    font-weight: 750;
}

body.sg-mypage-point-page .sg-mypage-point-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.sg-mypage-page .ec-pager,
body.sg-mypage-page .ec-pagerRole ul {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

body.sg-mypage-page .ec-pager__item,
body.sg-mypage-page .ec-pagerRole li {
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-page .ec-pager__item a,
body.sg-mypage-page .ec-pager__item--active,
body.sg-mypage-page .ec-pagerRole li a,
body.sg-mypage-page .ec-pagerRole li.active {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px !important;
    border: 1px solid var(--sg-my-border) !important;
    border-radius: 50%;
    background: var(--sg-my-panel) !important;
    color: #fff !important;
}

body.sg-mypage-page .ec-pager__item--active,
body.sg-mypage-page .ec-pagerRole li.active,
body.sg-mypage-page .ec-pagerRole li.active a {
    border-color: var(--sg-my-accent) !important;
    background: var(--sg-my-accent) !important;
}

/* ========================================================================
   Pro-member application / status
   ======================================================================== */
body.sg-mypage-shop-page .sg-mypage-shop-card {
    margin: 34px 0 0 !important;
    padding: clamp(20px, 2.6vw, 32px) !important;
    border: 1px solid var(--sg-my-border);
    border-radius: 9px;
    background: var(--sg-my-panel) !important;
    color: #e4e4e4;
}

body.sg-mypage-shop-page .ec-borderedDefs {
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.sg-mypage-shop-page .ec-borderedDefs dl {
    display: grid !important;
    grid-template-columns: minmax(210px, 29%) minmax(0, 71%);
    align-items: stretch;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
}

body.sg-mypage-shop-page .ec-borderedDefs dl:last-child {
    border-bottom: 0 !important;
}

body.sg-mypage-shop-page .ec-borderedDefs dt,
body.sg-mypage-shop-page .ec-borderedDefs dd {
    margin: 0 !important;
    padding: 17px 18px !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    overflow-wrap: anywhere;
}

body.sg-mypage-shop-page .ec-borderedDefs dt {
    border-right: 1px solid rgba(255, 255, 255, .09) !important;
    color: var(--sg-my-muted) !important;
    font-size: 13px;
    font-weight: 550;
}

body.sg-mypage-shop-page .ec-borderedDefs dd {
    font-size: 14px;
    line-height: 1.65;
}

body.sg-mypage-shop-page .ec-label {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

body.sg-mypage-shop-page .sg-mypage-status {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 4px 11px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}

body.sg-mypage-shop-page .sg-mypage-status--approved { color: var(--sg-my-success); }
body.sg-mypage-shop-page .sg-mypage-status--pending { color: var(--sg-my-warning); }
body.sg-mypage-shop-page .sg-mypage-status--rejected { color: var(--sg-my-danger); }

body.sg-mypage-shop-page .sg-mypage-edit-link {
    display: inline-flex;
    margin-left: 14px;
    font-size: 13px;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

body.sg-mypage-shop-page .sg-mypage-file-preview {
    width: min(200px, 100%);
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sg-my-border);
    border-radius: 6px;
    background: #f4f4f4;
}

body.sg-mypage-shop-page .sg-mypage-file-preview img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

body.sg-mypage-shop-page .sg-mypage-primary-link {
    width: min(100%, 340px);
    margin: 4px auto !important;
}

body.sg-mypage-shop-page .member-page-box {
    margin: 30px 0 0;
    padding: clamp(22px, 3vw, 36px) !important;
    border: 1px solid var(--sg-my-border);
    border-radius: 9px;
    background: var(--sg-my-panel) !important;
    color: #d7d7d7;
    font-size: 14px;
    line-height: 1.9;
}

body.sg-mypage-shop-page .member-page-box h2,
body.sg-mypage-shop-page .member-page-box h3 {
    margin: 0 0 20px !important;
    color: #fff !important;
    font-family: "Maven Pro", Inter, "Noto Sans JP", sans-serif;
    font-size: clamp(23px, 2.2vw, 34px) !important;
    font-weight: 700 !important;
    line-height: 1.35;
    text-align: left !important;
}

body.sg-mypage-shop-page .member-page-box h3::before {
    content: "PRO MEMBER";
    display: block;
    margin-bottom: 7px;
    color: var(--sg-my-accent);
    font-size: 12px;
    letter-spacing: .13em;
}

body.sg-mypage-shop-page .member-page-box hr {
    margin: 0 0 24px;
    border: 0;
    border-top: 1px solid var(--sg-my-border);
}

body.sg-mypage-shop-page .member-page-box p {
    margin: 0 0 19px !important;
    color: #d7d7d7 !important;
    font-size: 14px !important;
    line-height: 1.9 !important;
}

body.sg-mypage-shop-page .member-page-box .attention-text {
    margin: 32px 0 13px !important;
    padding: 11px 14px;
    border-left: 3px solid var(--sg-my-accent);
    background: #0b0b0b;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 750 !important;
}

body.sg-mypage-shop-page .member-page-box .text-small {
    font-size: 13px !important;
    line-height: 1.95 !important;
}

body.sg-mypage-shop-page .member-page-box .text-small strong {
    color: var(--sg-my-accent);
    font-size: 14px;
}

body.sg-mypage-shop-page .member-table-wrap {
    width: 100%;
    margin: 20px 0 8px;
    overflow-x: auto;
    border: 1px solid var(--sg-my-border);
    border-radius: 7px;
    -webkit-overflow-scrolling: touch;
}

body.sg-mypage-shop-page .member-page-box table {
    width: 100%;
    min-width: 780px;
    margin: 0 !important;
    border-collapse: collapse !important;
    background: #0c0c0c;
}

body.sg-mypage-shop-page .member-page-box table th,
body.sg-mypage-shop-page .member-page-box table td {
    padding: 15px 13px !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

body.sg-mypage-shop-page .member-page-box table tbody th {
    background: #1a1a1a !important;
    color: #fff !important;
    text-align: left;
}

body.sg-mypage-shop-page .member-page-box table tbody td {
    background: #101010 !important;
}

body.sg-mypage-shop-page .display-sm {
    display: none;
    margin-top: 8px;
    color: var(--sg-my-muted);
    font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    body.sg-mypage-history-page .ec-orderRole {
        grid-template-columns: 1fr;
    }

    body.sg-mypage-history-page .ec-totalBox {
        position: static;
    }

    body.sg-mypage-shop-page .ec-borderedDefs dl {
        grid-template-columns: minmax(160px, 34%) minmax(0, 66%);
    }
}

@media (max-width: 700px) {
    body.sg-mypage-page .sg-mypage-shell {
        width: calc(100% - 28px) !important;
        padding-top: 34px !important;
        padding-bottom: 70px !important;
    }

    body.sg-mypage-page .ec-pageHeader {
        margin-bottom: 20px !important;
    }

    body.sg-mypage-page .ec-pageHeader h1 {
        font-size: 29px !important;
        overflow-wrap: anywhere;
    }

    body.sg-mypage-page .ec-navlistRole {
        margin-bottom: 21px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.sg-mypage-page .ec-navlistRole::-webkit-scrollbar {
        display: none;
    }

    body.sg-mypage-page .ec-navlistRole__navlist,
    body.sg-mypage-page .ec-navlistRole ul {
        flex-wrap: nowrap !important;
        width: max-content;
        min-width: 100%;
        padding-bottom: 3px !important;
    }

    body.sg-mypage-page .ec-navlistRole__item > a,
    body.sg-mypage-page .ec-navlistRole li > a {
        min-height: 39px;
        padding: 8px 14px !important;
        font-size: 12px;
    }

    body.sg-mypage-login-page .ec-login {
        padding: 25px 19px !important;
    }

    body.sg-mypage-login-page .ec-login > .ec-grid2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body.sg-mypage-login-page .ec-login__link {
        text-align: center !important;
    }

    body.sg-mypage-history-page .ec-orderRole {
        margin-top: 25px !important;
        gap: 8px;
    }

    body.sg-mypage-history-page .ec-orderOrder {
        grid-template-columns: 1fr;
    }

    body.sg-mypage-history-page .ec-orderOrder,
    body.sg-mypage-history-page .ec-orderDelivery,
    body.sg-mypage-history-page .ec-orderPayment,
    body.sg-mypage-history-page .ec-orderConfirm,
    body.sg-mypage-history-page .ec-orderMails,
    body.sg-mypage-history-page .ec-totalBox {
        padding: 19px 16px !important;
    }

    body.sg-mypage-history-page .ec-definitions,
    body.sg-mypage-history-page .ec-definitions--soft {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    body.sg-mypage-history-page .ec-imageGrid {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
    }

    body.sg-mypage-history-page .ec-imageGrid__img {
        width: 76px !important;
        max-width: 76px !important;
    }

    body.sg-mypage-history-page .ec-imageGrid__img img {
        height: 94px !important;
    }

    body.sg-mypage-point-page .sg-mypage-point-table {
        display: block !important;
        margin-top: 25px !important;
        overflow: visible;
        border: 0 !important;
        border-radius: 0;
        background: transparent !important;
    }

    body.sg-mypage-point-page .sg-mypage-point-table thead {
        display: none !important;
    }

    body.sg-mypage-point-page .sg-mypage-point-table tbody,
    body.sg-mypage-point-page .sg-mypage-point-table tr,
    body.sg-mypage-point-page .sg-mypage-point-table td {
        display: block !important;
        width: 100% !important;
    }

    body.sg-mypage-point-page .sg-mypage-point-table tbody tr {
        margin-bottom: 13px;
        padding: 7px 15px;
        overflow: hidden;
        border: 1px solid var(--sg-my-border);
        border-radius: 7px;
        background: var(--sg-my-panel) !important;
    }

    body.sg-mypage-point-page .sg-mypage-point-table tbody td {
        display: grid !important;
        grid-template-columns: minmax(100px, 40%) minmax(0, 60%);
        gap: 12px;
        align-items: start;
        padding: 11px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
        text-align: right !important;
        overflow-wrap: anywhere;
    }

    body.sg-mypage-point-page .sg-mypage-point-table tbody td:last-child {
        border-bottom: 0 !important;
    }

    body.sg-mypage-point-page .sg-mypage-point-table tbody td::before {
        content: attr(data-title);
        color: var(--sg-my-muted);
        font-size: 12px;
        font-weight: 550;
        text-align: left;
    }

    body.sg-mypage-point-page .sg-mypage-point-table tbody td[colspan] {
        display: block !important;
        padding: 18px 0 !important;
        text-align: center !important;
    }

    body.sg-mypage-point-page .sg-mypage-point-table tbody td[colspan]::before {
        display: none;
    }

    body.sg-mypage-shop-page .sg-mypage-shop-card {
        margin-top: 25px !important;
        padding: 18px 15px !important;
    }

    body.sg-mypage-shop-page .ec-borderedDefs dl {
        display: block !important;
        padding: 14px 0 !important;
    }

    body.sg-mypage-shop-page .ec-borderedDefs dt,
    body.sg-mypage-shop-page .ec-borderedDefs dd {
        padding: 0 !important;
        border: 0 !important;
    }

    body.sg-mypage-shop-page .ec-borderedDefs dt {
        margin-bottom: 7px !important;
    }

    body.sg-mypage-shop-page .sg-mypage-edit-link {
        margin: 9px 0 0 0;
    }

    body.sg-mypage-shop-page .member-page-box {
        padding: 21px 16px !important;
        font-size: 13px;
        line-height: 1.85;
    }

    body.sg-mypage-shop-page .member-page-box p {
        font-size: 13px !important;
        line-height: 1.85 !important;
    }

    body.sg-mypage-shop-page .display-sm {
        display: block;
    }
}

@media (max-width: 420px) {
    body.sg-mypage-page .sg-mypage-shell {
        width: calc(100% - 22px) !important;
    }

    body.sg-mypage-history-page .ec-imageGrid {
        grid-template-columns: 66px minmax(0, 1fr);
    }

    body.sg-mypage-history-page .ec-imageGrid__img {
        width: 66px !important;
        max-width: 66px !important;
    }

    body.sg-mypage-history-page .ec-imageGrid__img img {
        height: 82px !important;
    }
}

/* ========================================================================
   SUPERGIRL MyPage V5.11
   Additional pages: member edit / edit complete / delivery list & edit /
   favorites / custom designs / shared navigation refinements.
   All selectors remain body-scoped to MyPage only.
   ======================================================================== */

body.sg-mypage-page .sg-mypage-welcome .custom_level {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    color: var(--sg-my-muted);
    font-size: 13px;
    line-height: 1.75;
}

/* ---------- Member information edit / delivery address edit ---------- */
body.sg-mypage-change-page .ec-editRole,
body.sg-mypage-delivery-edit-page .ec-editRole {
    width: 100%;
    margin: 34px 0 0 !important;
    padding: 0 !important;
}

body.sg-mypage-change-page .ec-off1Grid,
body.sg-mypage-change-page .ec-off1Grid__cell,
body.sg-mypage-delivery-edit-page .ec-off1Grid,
body.sg-mypage-delivery-edit-page .ec-off1Grid__cell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-change-page .ec-borderedDefs,
body.sg-mypage-delivery-edit-page .ec-borderedDefs {
    width: 100%;
    margin: 0 !important;
    padding: clamp(18px, 2.5vw, 30px) !important;
    overflow: hidden;
    border: 1px solid var(--sg-my-border) !important;
    border-radius: 9px;
    background: var(--sg-my-panel) !important;
}

body.sg-mypage-change-page .ec-borderedDefs dl,
body.sg-mypage-delivery-edit-page .ec-borderedDefs dl {
    display: grid !important;
    grid-template-columns: minmax(190px, 28%) minmax(0, 72%);
    align-items: start;
    width: 100%;
    margin: 0 !important;
    padding: 20px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
}

body.sg-mypage-change-page .ec-borderedDefs dl:first-child,
body.sg-mypage-delivery-edit-page .ec-borderedDefs dl:first-child {
    padding-top: 0 !important;
}

body.sg-mypage-change-page .ec-borderedDefs dl:last-child,
body.sg-mypage-delivery-edit-page .ec-borderedDefs dl:last-child {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

body.sg-mypage-change-page .ec-borderedDefs dt,
body.sg-mypage-delivery-edit-page .ec-borderedDefs dt {
    width: auto !important;
    margin: 0 !important;
    padding: 13px 26px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #f1f1f1 !important;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
}

body.sg-mypage-change-page .ec-borderedDefs dd,
body.sg-mypage-delivery-edit-page .ec-borderedDefs dd {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #ddd !important;
}

body.sg-mypage-change-page .ec-halfInput,
body.sg-mypage-delivery-edit-page .ec-halfInput {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

body.sg-mypage-change-page .ec-halfInput > input:only-of-type,
body.sg-mypage-delivery-edit-page .ec-halfInput > input:only-of-type {
    grid-column: 1 / -1;
}

body.sg-mypage-change-page .ec-input,
body.sg-mypage-change-page .ec-select,
body.sg-mypage-change-page .ec-telInput,
body.sg-mypage-change-page .ec-zipInput,
body.sg-mypage-delivery-edit-page .ec-input,
body.sg-mypage-delivery-edit-page .ec-select,
body.sg-mypage-delivery-edit-page .ec-telInput,
body.sg-mypage-delivery-edit-page .ec-zipInput {
    width: 100%;
    margin: 0 0 10px !important;
}

body.sg-mypage-change-page .ec-zipInput,
body.sg-mypage-delivery-edit-page .ec-zipInput {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

body.sg-mypage-change-page .ec-zipInput > input,
body.sg-mypage-delivery-edit-page .ec-zipInput > input {
    width: min(230px, 100%) !important;
}

body.sg-mypage-change-page .ec-zipInputHelp,
body.sg-mypage-delivery-edit-page .ec-zipInputHelp {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    margin: 0 !important;
    color: var(--sg-my-muted);
    font-size: 12px;
}

body.sg-mypage-change-page .ec-zipInputHelp__icon,
body.sg-mypage-delivery-edit-page .ec-zipInputHelp__icon {
    display: none !important;
}

body.sg-mypage-change-page .ec-birth,
body.sg-mypage-delivery-edit-page .ec-birth {
    display: grid !important;
    grid-template-columns: minmax(90px, 1.4fr) auto minmax(72px, 1fr) auto minmax(72px, 1fr);
    gap: 8px;
    align-items: center;
    max-width: 520px;
}

body.sg-mypage-change-page .ec-radio ul,
body.sg-mypage-change-page .ec-radio > div,
body.sg-mypage-delivery-edit-page .ec-radio ul,
body.sg-mypage-delivery-edit-page .ec-radio > div {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

body.sg-mypage-change-page .ec-radio label,
body.sg-mypage-delivery-edit-page .ec-radio label {
    color: #ddd !important;
}

body.sg-mypage-change-page input[type="radio"],
body.sg-mypage-change-page input[type="checkbox"],
body.sg-mypage-delivery-edit-page input[type="radio"],
body.sg-mypage-delivery-edit-page input[type="checkbox"] {
    accent-color: var(--sg-my-accent);
}

body.sg-mypage-change-page .ec-RegisterRole__actions,
body.sg-mypage-delivery-edit-page .ec-RegisterRole__actions {
    margin: 25px 0 0 !important;
    text-align: center;
}

body.sg-mypage-change-page .ec-RegisterRole__actions .ec-off4Grid,
body.sg-mypage-change-page .ec-RegisterRole__actions .ec-off4Grid__cell,
body.sg-mypage-delivery-edit-page .ec-RegisterRole__actions .ec-off4Grid,
body.sg-mypage-delivery-edit-page .ec-RegisterRole__actions .ec-off4Grid__cell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-change-page .ec-RegisterRole__actions button,
body.sg-mypage-delivery-edit-page .ec-RegisterRole__actions button {
    min-width: min(100%, 300px);
}

/* ---------- Member information edit complete ---------- */
body.sg-mypage-change-complete-page .ec-registerCompleteRole {
    margin: 34px 0 0 !important;
}

body.sg-mypage-change-complete-page .ec-off2Grid,
body.sg-mypage-change-complete-page .ec-off2Grid__cell,
body.sg-mypage-change-complete-page .ec-off4Grid,
body.sg-mypage-change-complete-page .ec-off4Grid__cell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-change-complete-page .ec-off2Grid__cell {
    position: relative;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: clamp(34px, 5vw, 62px) clamp(20px, 4vw, 48px) !important;
    border: 1px solid var(--sg-my-border);
    border-radius: 10px;
    background: linear-gradient(145deg, #171717 0%, #0c0c0c 100%) !important;
    text-align: center;
}

body.sg-mypage-change-complete-page .ec-off2Grid__cell::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--sg-my-accent);
    color: #fff;
    font-size: 34px;
    font-weight: 800;
}

body.sg-mypage-change-complete-page .ec-reportHeading h2 {
    margin: 0 0 15px !important;
    color: #fff !important;
    font-size: clamp(21px, 2vw, 30px) !important;
    font-weight: 700;
    line-height: 1.5;
}

body.sg-mypage-change-complete-page .ec-reportDescription {
    margin: 0 0 27px !important;
    color: #c9c9c9 !important;
    font-size: 14px;
    line-height: 1.8;
}

body.sg-mypage-change-complete-page .ec-blockBtn--cancel {
    min-width: min(100%, 260px);
}

/* ---------- Delivery address list ---------- */
body.sg-mypage-delivery-page .ec-para-normal {
    margin: 30px 0 16px !important;
    color: var(--sg-my-muted) !important;
    font-size: 14px;
}

body.sg-mypage-delivery-page .ec-off1Grid,
body.sg-mypage-delivery-page .ec-off1Grid__cell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-delivery-page .ec-addressRole {
    margin: 0 0 20px !important;
    padding: 0 !important;
}

body.sg-mypage-delivery-page .ec-addressRole__actions {
    display: flex;
    justify-content: flex-end;
    margin: 0 !important;
}

body.sg-mypage-delivery-page .ec-addressRole__actions .ec-inlineBtn {
    min-width: 230px;
}

body.sg-mypage-delivery-page .ec-addressList {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-delivery-page .ec-addressList__item {
    position: relative;
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    min-height: 210px;
    margin: 0 !important;
    padding: 24px 24px 20px !important;
    border: 1px solid var(--sg-my-border) !important;
    border-radius: 8px;
    background: var(--sg-my-panel) !important;
    color: #ddd;
}

body.sg-mypage-delivery-page .ec-addressList__remove {
    position: absolute !important;
    top: 13px;
    right: 13px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    background: #080808;
}

body.sg-mypage-delivery-page .ec-addressList__remove img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

body.sg-mypage-delivery-page .ec-addressList__address {
    min-width: 0;
    padding: 6px 40px 20px 0 !important;
    color: #ddd !important;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

body.sg-mypage-delivery-page .ec-addressList__address > div:first-child {
    margin-bottom: 10px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

body.sg-mypage-delivery-page .ec-addressList__action {
    margin-top: auto !important;
    text-align: right;
}

body.sg-mypage-delivery-page .ec-addressList__action .ec-inlineBtn {
    min-width: 110px;
    min-height: 40px;
    padding: 8px 17px !important;
    background: transparent !important;
}

body.sg-mypage-delivery-page .ec-addressList__action .ec-inlineBtn:hover {
    background: var(--sg-my-accent) !important;
}

/* ---------- Favorite products ---------- */
body.sg-mypage-favorite-page .ec-favoriteRole {
    width: 100%;
    margin: 30px 0 0 !important;
}

body.sg-mypage-favorite-page .ec-favoriteRole__header {
    margin: 0 0 20px !important;
    color: var(--sg-my-muted) !important;
    font-size: 14px;
}

body.sg-mypage-favorite-page .ec-favoriteRole__header p {
    margin: 0 !important;
    color: inherit !important;
}

body.sg-mypage-favorite-page .ec-favoriteRole__itemList {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

body.sg-mypage-favorite-page .ec-favoriteRole__item {
    position: relative;
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    margin: 0 !important;
    padding: 12px 12px 18px !important;
    overflow: hidden;
    border: 1px solid var(--sg-my-border) !important;
    border-radius: 7px;
    background: var(--sg-my-panel) !important;
    transition: border-color .25s ease, transform .25s ease;
}

body.sg-mypage-favorite-page .ec-favoriteRole__item:hover {
    border-color: rgba(239, 100, 64, .7) !important;
    transform: translateY(-2px);
}

body.sg-mypage-favorite-page .ec-closeBtn--circle {
    position: absolute !important;
    z-index: 3;
    top: 19px;
    right: 19px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(0, 0, 0, .78) !important;
}

body.sg-mypage-favorite-page .ec-closeBtn--circle img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.sg-mypage-favorite-page .ec-favoriteRole__itemThumb,
body.sg-mypage-favorite-page .ec-favoriteRole__item-image {
    display: block;
    width: 100%;
    margin: 0 !important;
}

body.sg-mypage-favorite-page .ec-favoriteRole__item-image {
    aspect-ratio: 1 / 1.12;
    overflow: hidden;
    border-radius: 5px;
    background: #f1f1f1;
}

body.sg-mypage-favorite-page .ec-favoriteRole__item-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

body.sg-mypage-favorite-page .ec-favoriteRole__itemTitle {
    display: -webkit-box;
    min-height: 45px;
    margin: 15px 3px 8px !important;
    overflow: hidden;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.sg-mypage-favorite-page .ec-favoriteRole__itemPrice {
    margin: auto 3px 0 !important;
    color: var(--sg-my-accent) !important;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
}

body.sg-mypage-favorite-page .ec-pagerRole {
    margin-top: 34px !important;
}

/* ---------- Custom designs ---------- */
body.sg-mypage-customize-page .sg-mypage-customize > h2 {
    margin: 0 0 30px !important;
    color: #fff !important;
    font-family: "Maven Pro", Inter, "Noto Sans JP", sans-serif;
    font-size: clamp(30px, 3.1vw, 50px) !important;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}

body.sg-mypage-customize-page .sg-mypage-customize > h2::before {
    content: "CUSTOM DESIGN";
    display: block;
    margin-bottom: 9px;
    color: var(--sg-my-accent);
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
}

body.sg-mypage-customize-page .design {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
    margin: 0 0 20px;
    padding: clamp(17px, 2vw, 24px);
    border: 1px solid var(--sg-my-border);
    border-radius: 8px;
    background: var(--sg-my-panel);
}

body.sg-mypage-customize-page .design h3 {
    grid-column: 1 / -1;
    margin: 0 0 4px !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
}

body.sg-mypage-customize-page .design img {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 6px;
    background: #f1f1f1;
}

body.sg-mypage-customize-page .design button {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 46px;
    margin-top: 5px;
    padding: 10px 24px;
    border: 1px solid var(--sg-my-accent);
    border-radius: 5px;
    background: var(--sg-my-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

body.sg-mypage-customize-page .design button:hover {
    border-color: var(--sg-my-accent-dark);
    background: var(--sg-my-accent-dark);
    transform: translateY(-1px);
}

/* ---------- Responsive additions ---------- */
@media (max-width: 960px) {
    body.sg-mypage-favorite-page .ec-favoriteRole__itemList {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    body.sg-mypage-change-page .ec-borderedDefs,
    body.sg-mypage-delivery-edit-page .ec-borderedDefs {
        padding: 17px 15px !important;
    }

    body.sg-mypage-change-page .ec-borderedDefs dl,
    body.sg-mypage-delivery-edit-page .ec-borderedDefs dl {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 17px 0 !important;
    }

    body.sg-mypage-change-page .ec-borderedDefs dt,
    body.sg-mypage-delivery-edit-page .ec-borderedDefs dt {
        padding: 0 !important;
    }

    body.sg-mypage-change-page .ec-halfInput,
    body.sg-mypage-delivery-edit-page .ec-halfInput {
        grid-template-columns: 1fr;
    }

    body.sg-mypage-change-page .ec-birth,
    body.sg-mypage-delivery-edit-page .ec-birth {
        grid-template-columns: 1fr auto 1fr auto 1fr;
        gap: 5px;
    }

    body.sg-mypage-delivery-page .ec-addressRole__actions {
        justify-content: stretch;
    }

    body.sg-mypage-delivery-page .ec-addressRole__actions .ec-inlineBtn {
        width: 100%;
        min-width: 0;
    }

    body.sg-mypage-delivery-page .ec-addressList {
        grid-template-columns: 1fr;
    }

    body.sg-mypage-delivery-page .ec-addressList__item {
        min-height: 0;
        padding: 20px 18px 17px !important;
    }

    body.sg-mypage-favorite-page .ec-favoriteRole__itemList {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 9px;
    }

    body.sg-mypage-favorite-page .ec-favoriteRole__item {
        padding: 8px 8px 13px !important;
    }

    body.sg-mypage-favorite-page .ec-closeBtn--circle {
        top: 13px;
        right: 13px;
        width: 29px;
        height: 29px;
        padding: 8px;
    }

    body.sg-mypage-favorite-page .ec-favoriteRole__itemTitle {
        min-height: 42px;
        margin: 12px 2px 6px !important;
        font-size: 12px;
    }

    body.sg-mypage-favorite-page .ec-favoriteRole__itemPrice {
        margin-left: 2px !important;
        font-size: 15px;
    }

    body.sg-mypage-customize-page .design {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body.sg-mypage-customize-page .design h3,
    body.sg-mypage-customize-page .design button {
        grid-column: 1;
    }

    body.sg-mypage-customize-page .design button {
        width: 100%;
        justify-self: stretch;
    }
}

/* ========================================================================
   SUPERGIRL MyPage V5.12
   Additional pages: order history list / compact pro-member status /
   withdrawal start, confirmation and completion.
   All selectors remain scoped to body.sg-mypage-page.
   ======================================================================== */

/* ---------- Order history list ---------- */
body.sg-mypage-index-page .ec-para-normal {
    margin: 30px 0 18px !important;
    color: var(--sg-my-muted) !important;
    font-size: 14px;
    line-height: 1.7;
}

body.sg-mypage-index-page .ec-historyRole {
    width: 100%;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

body.sg-mypage-index-page .ec-historyRole__contents {
    overflow: hidden;
    border: 1px solid var(--sg-my-border) !important;
    border-radius: 9px;
    background: var(--sg-my-panel) !important;
    color: #ddd;
    transition: border-color .25s ease, transform .25s ease;
}

body.sg-mypage-index-page .ec-historyRole__contents:hover {
    border-color: rgba(239, 100, 64, .58) !important;
    transform: translateY(-1px);
}

body.sg-mypage-index-page .ec-historyRole__header {
    margin: 0 !important;
    padding: 19px clamp(18px, 2.4vw, 28px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
    background: #0c0c0c !important;
}

body.sg-mypage-index-page .ec-historyListHeader {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-index-page .ec-historyListHeader__date {
    flex: 1 1 190px;
    margin: 0 !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

body.sg-mypage-index-page .ec-historyListHeader .ec-definitions {
    display: inline-flex !important;
    flex: 0 1 auto;
    align-items: center;
    gap: 7px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.sg-mypage-index-page .ec-historyListHeader .ec-definitions dt,
body.sg-mypage-index-page .ec-historyListHeader .ec-definitions dd {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 12px;
    line-height: 1.5;
}

body.sg-mypage-index-page .ec-historyListHeader .ec-definitions dt {
    color: var(--sg-my-muted) !important;
    font-weight: 500;
}

body.sg-mypage-index-page .ec-historyListHeader .ec-definitions dd {
    color: #fff !important;
    font-weight: 650;
}

body.sg-mypage-index-page .ec-historyListHeader__action {
    margin: 0 !important;
}

body.sg-mypage-index-page .ec-historyListHeader__action .ec-inlineBtn,
body.sg-mypage-index-page .ec-historyListHeader > p .ec-inlineBtn {
    min-height: 38px;
    padding: 7px 14px !important;
    background: transparent !important;
    font-size: 12px;
}

body.sg-mypage-index-page .ec-historyListHeader__action .ec-inlineBtn:hover,
body.sg-mypage-index-page .ec-historyListHeader > p .ec-inlineBtn:hover {
    background: var(--sg-my-accent) !important;
}

body.sg-mypage-index-page .ec-historyRole__detail {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0 clamp(18px, 2.4vw, 28px) !important;
}

body.sg-mypage-index-page .ec-historyRole__detail .ec-imageGrid {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
    margin: 0 !important;
    padding: 18px 16px 18px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

body.sg-mypage-index-page .ec-historyRole__detail .ec-imageGrid:nth-child(odd) {
    padding-right: 22px !important;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

body.sg-mypage-index-page .ec-historyRole__detail .ec-imageGrid:nth-child(even) {
    padding-left: 22px !important;
}

body.sg-mypage-index-page .ec-historyRole__detail .ec-imageGrid__img {
    width: 84px !important;
    max-width: 84px !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 5px;
    background: #f2f2f2;
}

body.sg-mypage-index-page .ec-historyRole__detail .ec-imageGrid__img img {
    display: block;
    width: 100% !important;
    height: 100px !important;
    object-fit: contain;
}

body.sg-mypage-index-page .ec-historyRole__detail .ec-imageGrid__content {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    color: #bdbdbd !important;
    font-size: 12px;
    line-height: 1.65;
}

body.sg-mypage-index-page .ec-historyRole__detailTitle {
    display: -webkit-box;
    margin: 0 0 7px !important;
    overflow: hidden;
    color: #fff !important;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.sg-mypage-index-page .ec-historyRole__detailPrice {
    margin: 8px 0 0 !important;
    color: var(--sg-my-accent) !important;
    font-size: 14px;
    font-weight: 700;
}

/* ---------- Compact pro-member page ---------- */
body.sg-mypage-shop-page .sg-mypage-shop-card {
    width: 100%;
    margin: 32px 0 0 !important;
}

body.sg-mypage-shop-page .sg-mypage-shop-card > form {
    width: 100%;
}

body.sg-mypage-shop-page .sg-mypage-shop-card .ec-borderedDefs {
    margin: 0 !important;
}

body.sg-mypage-shop-page .sg-mypage-shop-card .ec-borderedDefs dl:first-child dd {
    color: var(--sg-my-accent) !important;
    font-weight: 750;
}

body.sg-mypage-shop-page .sg-mypage-edit-link {
    display: inline-flex;
    margin-left: 14px;
    padding: 5px 11px !important;
    border: 1px solid var(--sg-my-accent);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
}

body.sg-mypage-shop-page .sg-mypage-file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 240px) !important;
    min-height: 180px;
    margin: 0 !important;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 7px;
    background: #080808;
}

body.sg-mypage-shop-page .sg-mypage-file-preview img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

body.sg-mypage-shop-page .sg-mypage-primary-link {
    width: min(100%, 320px);
    margin: 32px auto 0 !important;
}

/* ---------- Withdrawal pages ---------- */
body.sg-mypage-withdraw-page .sg-mypage-withdraw-card,
body.sg-mypage-withdraw-confirm-page .sg-mypage-withdraw-card,
body.sg-mypage-withdraw-complete-page .sg-mypage-withdraw-complete-card {
    width: min(100%, 760px);
    margin: 34px auto 0 !important;
    padding: clamp(28px, 4vw, 50px) !important;
    border: 1px solid var(--sg-my-border);
    border-radius: 10px;
    background: linear-gradient(145deg, #171717 0%, #0c0c0c 100%) !important;
    color: #ddd;
    text-align: center;
}

body.sg-mypage-withdraw-page .ec-off3Grid,
body.sg-mypage-withdraw-page .ec-off3Grid__cell,
body.sg-mypage-withdraw-page .ec-off4Grid,
body.sg-mypage-withdraw-page .ec-off4Grid__cell,
body.sg-mypage-withdraw-confirm-page .ec-off3Grid,
body.sg-mypage-withdraw-confirm-page .ec-off3Grid__cell,
body.sg-mypage-withdraw-confirm-page .ec-off4Grid,
body.sg-mypage-withdraw-confirm-page .ec-off4Grid__cell,
body.sg-mypage-withdraw-complete-page .ec-off4Grid,
body.sg-mypage-withdraw-complete-page .ec-off4Grid__cell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-mypage-withdraw-page .sg-mypage-withdraw-icon,
body.sg-mypage-withdraw-confirm-page .sg-mypage-withdraw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 24px;
    padding: 23px;
    border: 1px solid rgba(255, 108, 108, .55);
    border-radius: 50%;
    background: rgba(255, 108, 108, .1);
}

body.sg-mypage-withdraw-page .sg-mypage-withdraw-icon img,
body.sg-mypage-withdraw-confirm-page .sg-mypage-withdraw-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(62%) sepia(74%) saturate(1780%) hue-rotate(316deg) brightness(103%);
}

body.sg-mypage-withdraw-page .ec-withdrawRole__title,
body.sg-mypage-withdraw-confirm-page .ec-withdrawConfirmRole__title {
    margin: 0 0 16px !important;
    color: #fff !important;
    font-size: clamp(21px, 2.1vw, 30px) !important;
    font-weight: 750;
    line-height: 1.5;
}

body.sg-mypage-withdraw-page .ec-withdrawRole__description,
body.sg-mypage-withdraw-confirm-page .ec-withdrawConfirmRole__description {
    max-width: 620px;
    margin: 0 auto 28px !important;
    color: #bdbdbd !important;
    font-size: 14px;
    line-height: 1.85;
}

body.sg-mypage-withdraw-page .ec-blockBtn--cancel {
    min-width: min(100%, 280px);
    border-color: #ff785f !important;
    background: transparent !important;
    color: #ff8b74 !important;
}

body.sg-mypage-withdraw-page .ec-blockBtn--cancel:hover {
    background: var(--sg-my-accent) !important;
    color: #fff !important;
}

body.sg-mypage-withdraw-confirm-page .ec-withdrawConfirmRole__cancel,
body.sg-mypage-withdraw-confirm-page .ec-blockBtn {
    width: min(100%, 290px);
    min-height: 50px;
    margin: 6px !important;
    padding: 11px 22px !important;
    border-radius: 5px !important;
    font-size: 14px;
    font-weight: 700;
}

body.sg-mypage-withdraw-confirm-page .ec-withdrawConfirmRole__cancel {
    border: 1px solid var(--sg-my-accent) !important;
    background: var(--sg-my-accent) !important;
    color: #fff !important;
}

body.sg-mypage-withdraw-confirm-page .ec-blockBtn {
    border: 1px solid var(--sg-my-danger) !important;
    background: transparent !important;
    color: var(--sg-my-danger) !important;
}

body.sg-mypage-withdraw-confirm-page .ec-blockBtn:hover {
    background: var(--sg-my-danger) !important;
    color: #fff !important;
}

body.sg-mypage-withdraw-complete-page .sg-mypage-withdraw-complete-card::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--sg-my-accent);
    color: #fff;
    font-size: 34px;
    font-weight: 800;
}

body.sg-mypage-withdraw-complete-page .ec-reportHeading h2 {
    margin: 0 0 16px !important;
    color: #fff !important;
    font-size: clamp(22px, 2.2vw, 31px) !important;
    font-weight: 750;
    line-height: 1.5;
}

body.sg-mypage-withdraw-complete-page .ec-reportDescription {
    margin: 0 0 28px !important;
    color: #c2c2c2 !important;
    font-size: 14px;
    line-height: 1.85;
}

body.sg-mypage-withdraw-complete-page .ec-blockBtn--cancel {
    min-width: min(100%, 280px);
}

@media (max-width: 820px) {
    body.sg-mypage-index-page .ec-historyRole__detail {
        grid-template-columns: 1fr;
    }

    body.sg-mypage-index-page .ec-historyRole__detail .ec-imageGrid:nth-child(odd),
    body.sg-mypage-index-page .ec-historyRole__detail .ec-imageGrid:nth-child(even) {
        padding: 16px 0 !important;
        border-right: 0;
    }
}

@media (max-width: 640px) {
    body.sg-mypage-index-page .ec-historyListHeader {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    body.sg-mypage-index-page .ec-historyListHeader__date {
        grid-column: 1 / -1;
    }

    body.sg-mypage-index-page .ec-historyListHeader__action,
    body.sg-mypage-index-page .ec-historyListHeader > p {
        width: 100%;
    }

    body.sg-mypage-index-page .ec-historyListHeader__action .ec-inlineBtn,
    body.sg-mypage-index-page .ec-historyListHeader > p .ec-inlineBtn {
        width: 100%;
    }

    body.sg-mypage-index-page .ec-historyRole__detail .ec-imageGrid {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    body.sg-mypage-index-page .ec-historyRole__detail .ec-imageGrid__img {
        width: 72px !important;
        max-width: 72px !important;
    }

    body.sg-mypage-index-page .ec-historyRole__detail .ec-imageGrid__img img {
        height: 86px !important;
    }

    body.sg-mypage-shop-page .sg-mypage-edit-link {
        display: flex;
        width: fit-content;
        margin: 10px 0 0;
    }

    body.sg-mypage-shop-page .sg-mypage-file-preview {
        width: 100% !important;
        min-height: 150px;
    }

    body.sg-mypage-withdraw-page .sg-mypage-withdraw-card,
    body.sg-mypage-withdraw-confirm-page .sg-mypage-withdraw-card,
    body.sg-mypage-withdraw-complete-page .sg-mypage-withdraw-complete-card {
        padding: 28px 18px !important;
    }

    body.sg-mypage-withdraw-confirm-page .ec-withdrawConfirmRole__cancel,
    body.sg-mypage-withdraw-confirm-page .ec-blockBtn {
        width: 100%;
        margin: 5px 0 !important;
    }
}
