:root {
    --customer-brand-accent: #d45d88;
    --customer-brand-accent-soft: #fff1f6;
    --customer-brand-accent-border: #f3d9e4;
    --customer-brand-accent-shadow: rgba(212, 93, 136, 0.18);
    --customer-brand-section-background: rgba(255, 255, 255, 0.94);
    --customer-brand-section-border: rgba(240, 217, 226, 0.95);
    --customer-brand-section-heading: var(--text-primary);
    --customer-brand-section-subtext: var(--text-secondary);
    --customer-brand-section-card-fill: rgba(255, 255, 255, 0.97);
    --customer-brand-section-card-background: linear-gradient(180deg, #ffffff 0%, #fffdfd 100%);
    --customer-brand-section-card-border: rgba(240, 217, 226, 0.95);
    --customer-brand-section-card-shadow: 0 10px 18px rgba(216, 168, 185, 0.1);
    --customer-brand-section-icon-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(212, 93, 136, 0.08) 100%);
    --customer-brand-section-icon-border: rgba(240, 217, 226, 0.72);
    --customer-brand-section-icon-shadow: 0 6px 12px rgba(216, 168, 185, 0.08);
    --customer-brand-section-tab: var(--text-secondary);
    --customer-brand-section-tab-active: var(--customer-brand-accent);
    --customer-brand-section-dot: rgba(216, 168, 185, 0.32);
    --customer-brand-section-dot-active: var(--customer-brand-accent);
    --outer-shell: #f8edf2;
    --page-background: #fff9fb;
    --card-background: #ffffff;
    --border: #f0d9e2;
    --border-soft: #f3e4ea;
    --text-primary: #3e2a34;
    --text-secondary: #8e7881;
    --text-muted: #b69da8;
    --primary: var(--customer-brand-accent);
    --primary-strong: var(--customer-brand-accent);
    --primary-bright: #ff8fa8;
    --primary-soft: #ffeff5;
    --success-background: #f1fbf5;
    --success-text: #2d7e57;
    --warning-background: #fff5ec;
    --warning-text: #b26b2b;
    --neutral-background: #f8f1f4;
    --neutral-text: #8d7a82;
    --shadow-soft: 0 8px 18px rgba(31, 42, 58, 0.05);
    --shadow-shell: 0 0 0 1px rgba(240, 217, 226, 0.9), 0 12px 26px rgba(216, 168, 185, 0.14);
}

html.customer-male-theme {
    color-scheme: dark;
}

html.customer-male-theme body.mobile-shell {
    --customer-brand-accent: #F5C542;
    --customer-brand-accent-soft: rgba(245, 197, 66, 0.16);
    --customer-brand-accent-border: rgba(245, 197, 66, 0.36);
    --customer-brand-accent-shadow: rgba(200, 155, 44, 0.28);
    --customer-brand-section-background: #0A0A0A;
    --customer-brand-section-border: rgba(245, 197, 66, 0.18);
    --customer-brand-section-heading: #FFF7E0;
    --customer-brand-section-subtext: #A69E94;
    --customer-brand-section-card-fill: #11110F;
    --customer-brand-section-card-background: none;
    --customer-brand-section-card-border: rgba(245, 197, 66, 0.18);
    --customer-brand-section-card-shadow: 0 14px 28px rgba(10, 10, 10, 0.42);
    --customer-brand-section-icon-overlay: none;
    --customer-brand-section-icon-border: rgba(245, 197, 66, 0.34);
    --customer-brand-section-icon-shadow: 0 12px 22px rgba(10, 10, 10, 0.34);
    --customer-brand-section-tab: #A69E94;
    --customer-brand-section-tab-active: #F5C542;
    --customer-brand-section-dot: rgba(245, 197, 66, 0.26);
    --customer-brand-section-dot-active: #F5C542;
    --outer-shell: #6F655B;
    --page-background: linear-gradient(180deg, #0A0A0A 0%, #0A0A0A 45%, #2A2622 72%, #6F655B 100%);
    --card-background: #11110F;
    --border: rgba(245, 197, 66, 0.18);
    --border-soft: rgba(245, 197, 66, 0.12);
    --text-primary: #FFF7E0;
    --text-secondary: #AFA79B;
    --text-muted: #8F877E;
    --primary: #F5C542;
    --primary-strong: #C89B2C;
    --primary-bright: #FFE08A;
    --primary-soft: rgba(245, 197, 66, 0.16);
    --success-background: rgba(54, 147, 95, 0.18);
    --success-text: #9FE2BA;
    --warning-background: rgba(245, 197, 66, 0.16);
    --warning-text: #F5C542;
    --neutral-background: #3F3934;
    --neutral-text: #AFA79B;
    --shadow-soft: 0 14px 26px rgba(10, 10, 10, 0.34);
    --shadow-shell: 0 0 0 1px rgba(245, 197, 66, 0.12), 0 28px 52px rgba(10, 10, 10, 0.48);
}

html.customer-male-theme body.mobile-shell,
html.customer-male-theme .mobile-page {
    background: linear-gradient(180deg, #0A0A0A 0%, #0A0A0A 45%, #2A2622 72%, #6F655B 100%) !important;
    color: var(--text-primary);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.mobile-shell {
    margin: 0;
    min-height: 100vh;
    background: var(--outer-shell);
    color: var(--text-primary);
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a,
button,
input,
select,
textarea {
    font: inherit;
}

body.mobile-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
body.mobile-shell select,
body.mobile-shell textarea {
    font-size: 16px;
}

button {
    cursor: pointer;
}

.mobile-page {
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 104px;
    background: var(--page-background);
    box-shadow: var(--shadow-shell);
    overflow-x: hidden;
}

html.customer-male-theme .mobile-page {
    backdrop-filter: blur(16px);
    box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.12), 0 28px 52px rgba(10, 10, 10, 0.48);
}

html.customer-male-theme .mobile-page.customer-home-page {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.mobile-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 14px;
}

.mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card-background);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    flex: 0 0 auto;
}

.mobile-heading {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.35px;
}

.mobile-tabs {
    display: flex;
    gap: 16px;
    padding: 12px 12px 0;
    margin: 0;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: var(--card-background);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-tabs::-webkit-scrollbar {
    display: none;
}

.mobile-tab {
    position: relative;
    padding-bottom: 10px;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-tab.active {
    color: var(--primary);
}

.mobile-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2.5px;
    border-radius: 999px;
    background: var(--primary);
}

.mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: var(--card-background);
}

.mobile-grid.empty {
    grid-template-columns: 1fr;
}

.mobile-grid-card {
    min-height: 92px;
    padding: 7px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: #fffdfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 1px 1px rgba(31, 42, 58, 0.02);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mobile-grid-card.muted {
    color: #d8dde7;
}

.mobile-grid-icon {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary-bright));
}

.mobile-grid-icon > span,
.mobile-grid-icon-image {
    position: relative;
    z-index: 1;
}

.mobile-grid-icon.compact {
    font-size: 25px;
    padding: 0 4px;
}

.mobile-grid-icon.has-image {
    padding: 0;
    background-color: #ffffff;
    border: 0;
    box-shadow: 0 4px 10px rgba(31, 42, 58, 0.08);
}

html.customer-male-theme .mobile-grid-icon.has-image {
    background: rgba(245, 197, 66, 0.12);
    box-shadow: 0 10px 18px rgba(10, 10, 10, 0.34);
}

.mobile-grid-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity .16s ease;
}

.mobile-grid-icon[data-image-preview-ready="true"] .mobile-grid-icon-image[data-image-loading="true"] {
    opacity: 0;
}

.mobile-grid-icon-image[hidden] {
    display: none !important;
}

.mobile-grid-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    letter-spacing: -0.2px;
    padding: 0 2px;
}

.mobile-grid-meta {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.mobile-section-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.mobile-form-card,
.mobile-item-card,
.mobile-link-item {
    background: var(--card-background);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

html.customer-male-theme .mobile-form-card,
html.customer-male-theme .mobile-item-card,
html.customer-male-theme .mobile-link-item {
    background: #3F3934;
    border-color: rgba(245, 197, 66, 0.18);
    box-shadow: 0 16px 28px rgba(10, 10, 10, 0.38);
}

.mobile-form-card,
.mobile-item-card {
    padding: 16px;
}

.mobile-item-card {
    margin-bottom: 10px;
}

.mobile-item-card:last-child {
    margin-bottom: 0;
}

.mobile-fieldset,
.mobile-field,
.mobile-link-list {
    display: grid;
}

.mobile-fieldset {
    gap: 14px;
}

.mobile-field {
    gap: 8px;
}

.mobile-label {
    color: #7d6470;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

html.customer-male-theme .mobile-label {
    color: #AFA79B;
}

.mobile-input,
.mobile-select,
.mobile-textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--text-primary);
    padding: 14px;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    appearance: none;
}

.mobile-input-shell {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    overflow: hidden;
}

.mobile-input-shell .mobile-input,
.mobile-input-shell .mobile-select,
.mobile-input-shell .mobile-textarea {
    border: 0;
    background: transparent;
    box-shadow: none;
}

html.customer-male-theme .mobile-input-shell .mobile-input,
html.customer-male-theme .mobile-input-shell .mobile-select,
html.customer-male-theme .mobile-input-shell .mobile-textarea {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

html.customer-male-theme .mobile-input-shell {
    background: #3F3934;
    border-color: rgba(245, 197, 66, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mobile-input-shell:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(202, 92, 135, 0.12);
}

html.customer-male-theme .mobile-input-shell:focus-within {
    border-color: rgba(245, 197, 66, 0.62);
    box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.18);
}

html.customer-male-theme .mobile-input,
html.customer-male-theme .mobile-select,
html.customer-male-theme .mobile-textarea {
    background: #3F3934;
    border-color: rgba(245, 197, 66, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #FFF7E0;
}

.mobile-input::placeholder,
.mobile-textarea::placeholder {
    color: var(--text-muted);
}

.mobile-input:focus,
.mobile-select:focus,
.mobile-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(202, 92, 135, 0.12);
}

.mobile-input-shell .mobile-input:focus,
.mobile-input-shell .mobile-select:focus,
.mobile-input-shell .mobile-textarea:focus {
    border-color: transparent;
    box-shadow: none;
}

html.customer-male-theme .mobile-input:focus,
html.customer-male-theme .mobile-select:focus,
html.customer-male-theme .mobile-textarea:focus {
    box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.18);
}

html.customer-male-theme .mobile-secondary-button,
html.customer-male-theme .mobile-back {
    background: #11110F;
    border-color: rgba(245, 197, 66, 0.24);
    color: #FFF7E0;
}

.mobile-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

body.mobile-shell.customer-chat-shell .customer-chat-form .mobile-input {
    border-radius: 0;
}

.mobile-helper-text {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.45;
}

.mobile-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #6f5965;
    font-size: 13px;
    font-weight: 600;
}

.mobile-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.mobile-action-row {
    display: grid;
    gap: 8px;
}

.mobile-primary-button,
.mobile-secondary-button {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mobile-primary-button {
    border: 0;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(202, 92, 135, 0.18);
}

.mobile-primary-button:disabled,
.mobile-primary-button.is-disabled {
    background: #d7dce5;
    color: #7b8494;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

html.customer-male-theme .mobile-primary-button {
    color: #0A0A0A;
    box-shadow: 0 12px 24px rgba(200, 155, 44, 0.24);
}

.mobile-secondary-button {
    border: 1px solid var(--border);
    background: #ffffff;
    color: #6a4c5c;
}

.mobile-secondary-button.danger {
    border-color: rgba(212, 93, 136, 0.28);
    background: #fff6f9;
    color: var(--primary);
}

.mobile-primary-button:hover,
.mobile-secondary-button:hover,
.mobile-link-item:hover {
    transform: translateY(-1px);
}

.mobile-primary-button:disabled:hover,
.mobile-primary-button.is-disabled:hover {
    transform: none;
}

.mobile-primary-button:focus-visible,
.mobile-secondary-button:focus-visible,
.mobile-link-item:focus-visible,
.mobile-back:focus-visible,
.mobile-tab:focus-visible {
    outline: 2px solid rgba(202, 92, 135, 0.25);
    outline-offset: 2px;
}

html.customer-male-theme .mobile-primary-button:focus-visible,
html.customer-male-theme .mobile-secondary-button:focus-visible,
html.customer-male-theme .mobile-link-item:focus-visible,
html.customer-male-theme .mobile-back:focus-visible,
html.customer-male-theme .mobile-tab:focus-visible {
    outline-color: rgba(245, 197, 66, 0.54);
}

.mobile-banner {
    margin-bottom: 12px;
    border-radius: 14px;
    padding: 11px 13px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
}

.mobile-banner.success {
    background: var(--success-background);
    color: var(--success-text);
}

.mobile-banner.warning {
    background: var(--warning-background);
    color: var(--warning-text);
}

.mobile-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.mobile-item-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.mobile-item-subtitle {
    /*margin-top: 4px;*/
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.45;
}

.mobile-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
}

.mobile-chip.primary {
    background: var(--primary-soft);
    color: #bc5a83;
}

html.customer-male-theme .mobile-chip.primary {
    background: rgba(245, 197, 66, 0.18);
    color: #F5C542;
}

html.customer-male-theme .mobile-nav {
    background: #211E1A;
    border-top-color: rgba(245, 197, 66, 0.18);
    box-shadow: 0 -10px 24px rgba(10, 10, 10, 0.32);
}

html.customer-male-theme .mobile-nav a {
    color: #AFA79B;
}

.mobile-chip.success {
    background: var(--success-background);
    color: var(--success-text);
}

.mobile-chip.warning {
    background: var(--warning-background);
    color: var(--warning-text);
}

.mobile-chip.neutral {
    background: var(--neutral-background);
    color: var(--neutral-text);
}

.mobile-link-list {
    gap: 8px;
}

.mobile-link-item {
    display: block;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-empty-state {
    padding: 26px 12px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    grid-column: 1 / -1;
}

.mobile-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(430px, 100vw);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 8px 8px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 18px rgba(216, 168, 185, 0.1);
    backdrop-filter: blur(14px);
    z-index: 50;
}

.mobile-nav a {
    padding: 7px 4px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-nav a.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.mobile-description {
    margin: 0;
    font-size: 10px;
    color: #43333b;
}

@media (max-width: 430px) {
    .mobile-page {
        box-shadow: none;
    }

    .mobile-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
