:root {
    --primary-color: #e45826;
    --primary-hover: #c34a20;
    --bg-primary: hsl(240, 9%, 98%);
    --bg-white: #ffffff;
    --teal-color: #0aa095;    /* Teal button 10 times */
    --gradient-purple: linear-gradient(90deg, #A855F7, #EC4899); /* 100 times */
    --bg-light: #f8fafc;
    --text-dark: #2e2e2e;
    --text-dark-gray: #2e2e2e;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #2e2e2e;
    --rose-600: #e11d48;
    --red-600: #dc2626;
    --green-600: #16a34a;
    --primary-accent: #ee6027;
    --text-darker: #111;
    --radius-pill: 9999px;
    --radius-sm: 4px;
    --radius-lg: 16px;
    --shadow-header: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* GLOBAL */
body {
    background-color: #ffffff;
    color: var(--text-dark);
    font-family: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 500;
    scroll-behavior: auto !important;
}

.site-background, .site-bg, .tab-content-0, .gacha-cont {
    background-color: var(--bg-light);
}

/* GLOBAL RESET & SAFETY */
* {
    box-sizing: border-box;
}

.h-container,
header, 
.header,
.navbar,
.header-modern-design,
.category-tabs-wrapper,
.main-header,
.tab-btn-nav {
    border: none;
    border-bottom: none;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.gacha-grid-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.gacha-cont {
    width: 100%;
    margin: 0 auto;
}

/* CATEGORY TABS MODERN DESIGN - CLEAN LOOK */
.category-tabs-wrapper {
    position: sticky !important;
    top: 52px !important;
    z-index: 1020;
    background-color: var(--bg-primary);
    border-top: none;
}

.category-tablist {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tablist::-webkit-scrollbar {
    display: none;
}

.category-tab-item {
    flex: 1;
    min-width: fit-content;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-500);
    text-align: center;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-tab-item:hover {
    color: var(--primary-color);
}

.category-tab-item.active {
    color: var(--primary-color);
    font-weight: 800;
    border-bottom-color: var(--primary-color);
}

/* BANNER PIXEL PERFECT (Standard MD width 768px) */
.modern-banner-wrapper {
    width: 100%;
    margin: 8px auto;
    padding: 0 16px;
}

.modern-banner-wrapper .slider-header {
    max-width: 840px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.banner-slide-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/1;
    object-fit: cover;
    border-radius: 8px;
}

.slick-dots {
    display: none;
}

/* HEADER STATS - DESIGN MATCHING */
.header-user-group a.stat-box-new,
.header-user-group a.stat-pill-new {
    background: var(--slate-100);
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    height: 30px;
    margin: 0;
    padding: 0 8px 0 0;
    text-decoration: none;
}

/* CSS-ONLY FLEX STICKY FOOTER */
body.modern-design {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.modern-design > *:has(.footer-modern) {
    margin-top: auto;
    width: 100%;
}

.header-user-group a.stat-box-new {
    border-radius: 6px;
}

.header-user-group a.stat-pill-new {
    border-radius: 20px;
    padding-right: 4px;
}

.header-user-group .stat-value {
    color: var(--slate-800);
    font-weight: 800;
    font-size: 14px;
    margin-left: 4px;
}

.header-user-group .plus-icon-circle {
    background: var(--rose-600); /* Rose-600 */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin-left: 6px;
}

/* HEADER PIXEL PERFECT */
.header-modern-design {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    height: 52px;
    background-color: var(--bg-white);
    z-index: 1050 !important;
}

body.modern-design {
    padding-top: 52px;
}

.header-modern-design .h-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

@media (max-width: 639px) {
    .header-modern-design .h-container {
        padding: 0 12px !important;
    }
}

.auth-buttons-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-signup-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    box-sizing: border-box;
}

.btn-login-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.btn-signup-modern:hover {
    background-color: var(--primary-hover);
}

.btn-login-modern:hover {
    background-color: var(--bg-primary);
}

@media (min-width: 640px) {
    .header-modern-design {
        height: 52px;
    }
}

/* GLOBAL CONTAINER SYSTEM */
.h-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 639px) {
    .h-container {
        padding: 0 12px;
    }
}

.logo-box {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 0;
}

.logo-box img {
    width: 152px;
    height: auto;
    max-width: 100%;
    transition: width 0.2s ease;
}

@media (max-width: 639px) {
    .logo-box img {
        width: 100px;
    }
}

@media (max-width: 380px) {
    .logo-box img {
        width: 100px;
    }
}

.header-user-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 2px;
}

@media (max-width: 400px) {
    .header-user-group {
        gap: 3px;
    }
}

/* Jackpot box */
.stat-box-new {
    background: var(--slate-100);
    height: 20px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    padding-right: 4px;
    text-decoration: none;
    vertical-align: middle;
}

@media (min-width: 640px) {
    .stat-box-new {
        height: 28px;
        padding-right: 10px;
    }
}

.img-overlap-new {
    width: 32px;
    height: 32px;
    margin-left: 0;
}

@media (min-width: 400px) {
    .img-overlap-new {
        width: 40px;
        height: 40px;
        margin-left: -4px;
    }
}

@media (min-width: 640px) {
    .img-overlap-new {
        width: 56px;
        height: 56px;
        margin-left: -6px;
    }
}

/* Coin box */
.stat-pill-new {
    background: var(--slate-100);
    height: 20px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    padding-right: 2px;
    gap: 1px;
    text-decoration: none;
}

@media (min-width: 640px) {
    .stat-pill-new {
        height: 28px;
        padding-right: 4px;
        gap: 4px;
    }
}

.img-coin-new {
    height: 24px;
    width: 24px;
}

@media (min-width: 640px) {
    .img-coin-new {
        height: 30px;
        width: 30px;
    }
}

.stat-value {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    display: inline-block;
}

@media (min-width: 400px) {
    .stat-value {
        font-size: 15px;
    }
}

@media (min-width: 640px) {
    .stat-value {
        font-size: 17px;
    }
}

.plus-icon-circle {
    width: 16px;
    height: 16px;
    background: var(--red-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plus-icon-circle svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 640px) {
    .plus-icon-circle svg {
        width: 20px;
        height: 20px;
    }
}

/* Header Icons */
.header-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .header-nav-group {
        gap: 12px;
    }
}

.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.nav-icon-link img {
    height: 18px;
    width: 18px;
    object-fit: contain;
}

@media (min-width: 640px) {
    .nav-icon-link img {
        height: 24px;
        width: 24px;
    }
}

.profile-thumb img {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    border: 1px solid var(--slate-200);
}

@media (min-width: 640px) {
    .profile-thumb img {
        height: 28px;
        width: 28px;
    }
}

.modal-compact-center {
    left: 0 !important;
    right: 0 !important;
}

.modal-compact-center #confirm-convert {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    font-weight: 700;
}

.modal-compact-center #confirm-convert:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

/* LIST GACHA GRID */
.h-container, 
.header-content-slider {
    max-width: 800px;
    width: 100%;
}

@media (min-width: 800px) {
    .h-container, 
    .header-content-slider {
        margin-left: calc(50vw - 400px) !important;
        margin-right: auto !important;
    }
}

@media (max-width: 799px) {
    .h-container, 
    .header-content-slider {
        margin-left: auto;
        margin-right: auto;
    }
}

.gacha-grid-wrapper,
.gacha-cont {
    width: 100%;
}

.banner-img-wrapper {
    width: 100%;
    padding-bottom: 25%; /* 4:1 aspect ratio */
    position: relative;
    overflow: hidden;
    border-radius: 4px; /* Subtle round as per modern design */
}

.banner-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.gacha-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px 12px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .gacha-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
}

.gacha-item-wrapper {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.card-modern {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.card-img-wrapper {
    width: 100%;
    padding-bottom: 65.7%;
    position: relative;
    display: block;
    height: 0;
    overflow: hidden;
}

.card-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.card-p-3 {
    padding: 12px;
}

.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.price-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding-bottom: 1px;
}

.price-left .coin-icon {
    width: 24px;
    height: 24px;
}

.price-left .price-val {
    font-size: 20px;
    font-weight: 700;
}

.stock-right-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

.stock-label {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 1px 0;
    color: #1e293b;
    line-height: 1;
    text-align: center;
    width: 100%;
}

/* Progress Bar */
.stock-bar-progress {
    background-color: #f1f5f9;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
}

.stock-bar-progress-bar {
    background-color: #22c55e;
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.stock-bar-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

.stock-bar-price {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-bar-point {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.stock-bar-remain {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.stock-bar-current {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.stock-bar-total {
    font-size: 14px;
    color: #64748b;
}

/* BUTTONS */
.buy-btn-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.gacha-btn-modern {
    flex: 1;
    height: 40px;
    border-radius: 4px;
    border: none;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

/* Detail Page Override */
.gacha-btn-container-sticky .gacha-btn-modern,
.gacha-btn-wrapper .gacha-btn-modern {
    height: 50px;
    font-size: 16px;
}

.btn-1-time { background: #e45826; }
.btn-10-time { background: rgb(10, 160, 150); }
.btn-100-time { background: linear-gradient(135deg, rgb(255, 0, 255) 0%, rgb(191, 0, 255) 0%, rgb(255, 0, 255) 50%, rgb(128, 0, 128) 99%); }

.gacha-btn-modern:hover {
    opacity: 0.9;
}

/* RAINBOW CONTAINER (FOR BACKGROUND COLOR) */
.gacha-grid-wrapper {
    /* background: linear-gradient(180deg, rgba(228, 88, 38, 1), rgba(241, 141, 0, 1)); */
    /* padding: 24px 20px; */
    /* border-radius: 4px; */
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 639px) {
    .gacha-grid-wrapper {
        padding: 0;
        border-radius: 0;
    }
}

.rainbow-title-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.rainbow-title-area img {
    height: 20px;
    width: 24px;
    object-fit: contain;
}

.rainbow-title-area h2 {
    color: #2e2e2e;
    font-weight: 700;
    font-size: 16px;
    margin: 0;
}

@media (min-width: 640px) {
    .rainbow-title-area h2 {
        font-size: 18px;
    }
}

/* Modern Footer */
.footer-modern {
    background-color: #2e2e2e;
    padding: 32px 0;
    margin-top: auto;
    width: 100%;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-logo-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-logo-img {
    width: 140px;
    height: auto;
    filter: brightness(1); /* Ensure logo is visible on dark bg */
}

.footer-description {
    font-size: 14px;
    color: #fff;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 840px) {
    .footer-modern {
        padding: 40px 16px;
    }
}


/* GACHA RESULT PAGE MODERN */
.result-modern-container {
    position: fixed;
    inset: 0;
    z-index: 1030;
    background-color: var(--bg-white);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.bg-gacha-result-container {
    background-repeat: repeat;
    background-position: center;
    background-size: 2000px 1571.43px;
    background-attachment: fixed;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-header {
    background: #fff;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.result-header-inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.result-header-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    color: #09090b;
}

.btn-later {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #2e2e2e;
    cursor: pointer;
    text-decoration: none;
}

.view-toggler-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #E1E1E1;
    border-radius: 9999px;
    width: 320px;
    margin: 24px auto 16px;
    overflow: hidden;
}

.view-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-400);
    transition: all 0.2s;
}

.view-toggle-btn.active {
    color: #2e2e2e;
}

.view-toggle-btn.active svg {
    color: #F3BE20;
    fill: #F3BE20;
    stroke: #F3BE20;
}

.toggle-divider {
    width: 1px;
    height: 40px;
    background: #E1E1E1;
}

/* PRODUCT GRID / LIST */
.result-products-list {
    padding: 0 24px 180px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-products-grid {
    padding-bottom: 180px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .result-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* RESULT CARD */
.result-card-modern {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.result-products-grid .result-card-modern {
    flex-direction: column;
    padding: 8px;
    gap: 8px;
}

.result-card-modern.selected {
    border-color: var(--primary-color);
}

.result-card-img-wrapper {
    position: relative;
    width: 128px;
    flex-shrink: 0;
}

.result-products-grid .result-card-img-wrapper {
    width: 100%;
}

.result-card-img {
    width: 100%;
    aspect-ratio: 128/178;
    object-fit: contain;
}

.single-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
}

.result-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.result-card-top {
    display: flex;
    justify-content: flex-end;
}

.selection-status {
    display: flex;
    align-items: center;
    gap: 4px;
}

.selection-status span {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
}

.result-card-modern.selected .selection-status span {
    color: var(--primary-color);
}

.check-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.result-card-modern.selected .check-circle {
    background: var(--primary-color);
}

.result-card-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #2e2e2e;
}

.result-products-grid .result-card-name {
    font-size: 14px;
    text-align: center;
    margin-bottom: 4px;
}

.result-card-deadline {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.result-products-grid .result-card-top,
.result-products-grid .result-card-deadline {
    display: none;
}

.result-card-footer {
    background: #f1f5f9;
    border-radius: 4px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.result-products-grid .result-card-footer {
    gap: 4px;
}

.result-card-coin-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.result-products-grid .result-card-coin-icon {
    width: 16px;
    height: 16px;
}

.result-card-coin-val {
    font-size: 18px;
    font-weight: 700;
    color: #2e2e2e;
}

.result-products-grid .result-card-coin-val {
    font-size: 14px;
}

.result-products-grid .result-card-coin-val small {
    display: none;
}

/* STICKY FOOTER */
.result-sticky-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.08);
    z-index: 1031;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.footer-inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.footer-coin-total {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-coin-icon {
    width: 26px;
    height: 26px;
}

.footer-coin-total span {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.footer-actions-right {
    display: flex;
    gap: 0;
}

.btn-ghost {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #09090b;
    padding: 16px;
    cursor: pointer;
}

.footer-main-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    height: 40px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-modern {
    background: var(--primary-color);
    color: #fff;
    border: none;
    height: 40px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-primary:disabled, .btn-primary-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.footer-note {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin: 8px 0 4px;
}

.hidden-result {
    display: none;
}

/* Fully White Background Overrides for Auth Page */
body.is-auth-page, 
body.is-auth-page .site-background, 
body.is-auth-page .main {
    background-color: #fff;
    background-image: none;
    padding: 0;
    margin-top: 0;
    box-shadow: none;
    border: none;
}

[x-cloak] { display: none !important; }

.auth-page-wrapper {
    background-color: #fff;
    width: 100%;
}

.auth-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 16px 96px;
}

.auth-container h1 {
    text-align: left;
    width: 100%;
}

.register-form, .form-wrapper {
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
.tw-flex { display: flex; }
.tw-flex-col { flex-direction: column; }
.tw-gap-4 { gap: 1rem; }
.tw-space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.tw-text-xl { font-size: 20px; line-height: 28px; }
.tw-leading-none { line-height: 1; }
.tw-text-sm { font-size: 14px; }
.tw-text-xs { font-size: 12px; }
.tw-font-bold { font-weight: 700; }
.tw-mb-6 { margin-bottom: 24px; }
.tw-mt-4 { margin-top: 1rem; }
.tw-mt-6 { margin-top: 1.5rem; }
.tw-w-full { width: 100%; }
.tw-rounded-full { border-radius: 9999px; }
.tw-bg-primary { background-color: var(--primary-color); }
.tw-text-white { color: #fff; }
.tw-text-center { text-align: center; }
.tw-underline { text-decoration: underline; }
.tw-relative { position: relative; }
.tw-absolute { position: absolute; }
.tw-right-0 { right: 0; }
.tw-top-0 { top: 0; }
.tw-h-full { height: 100%; }
.tw-px-3 { padding-left: 12px; padding-right: 12px; }

.auth-input-field {
    display: flex;
    width: 100%;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    padding: 0 12px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.auth-input-field:focus {
    border-color: var(--primary-color);
    outline: none;
}
.password-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
}
.password-toggle-btn svg {
    width: 18px;
    height: 18px;
}
.auth-main-submit-btn {
    width: 100%;
    height: 36px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    padding: 8px 32px;
}
.auth-main-submit-btn:hover {
    background-color: var(--primary-hover);
}

/* Custom Checkbox Styling scoped to Auth Pages */
.auth-container input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    padding: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid #ee6027;
    border-radius: 4px;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-container input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #ee6027;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.auth-container input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.auth-container input[type="checkbox"]:checked {
    background-color: #fff;
    border-color: var(--primary-accent);
}

/* Registration Success Screen */
.reg-success-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 16px;
    background-color: var(--bg-white);
    padding-top: 32px;
}

.reg-success-title {
    margin-bottom: 24px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-darker);
}

.reg-success-icon {
    margin: 40px auto;
    width: 192px;
    height: auto;
    display: block;
}

.reg-success-msg {
    font-size: 16px;
    color: var(--text-darker);
    line-height: 1.6;
    margin-bottom: 0;
}

.reg-success-email {
    font-weight: bold;
}

.reg-success-note-lg {
    margin-top: 16px;
    font-size: 18px;
    color: var(--red-600);
    line-height: 1.4;
}

.reg-success-note-sm {
    margin-top: 16px;
    font-size: 14px;
    color: var(--red-600);
    line-height: 1.4;
}


/* BREADCRUMB STYLES */
.breadcrumb-container {
    background-color: var(--bg-white);
    padding: 16px 0;
    width: 100%;
}

.breadcrumb-container .h-container {
    padding: 0 16px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}

.breadcrumb-item {
    font-size: 12px;
    color: #64748b;
    line-height: 1;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #2e2e2e;
}

.breadcrumb-item.active {
    color: #2e2e2e;
    font-weight: 500;
}

.breadcrumb-item h1 {
    font-size: 12px;
    margin: 0;
    font-weight: 500;
    display: inline;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: var(--slate-400);
}

.breadcrumb-separator .material-icons {
    font-size: 16px;
}

/* Adjust d-gacha-detail padding when breadcrumb is present */
.d-gacha-detail {
    padding-top: 0;
}

@media (max-width: 639px) {
    .breadcrumb-container {
        padding: 12px 0;
    }
    
    .breadcrumb-item {
        font-size: 11px;
    }
    
    .breadcrumb-separator .material-icons {
        font-size: 14px;
    }

    .gacha-btn-container-sticky {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* GACHA DETAIL - CLEAN OPTIMIZED STYLES (NO IMPORTANT) */
.d-gacha-detail .prize-block {
    /* margin-bottom: 24px; */
    text-align: center;
}

.d-gacha-detail .prize-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.d-gacha-detail .card-item {
    position: relative;
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1.4;
    width: 100%;
}

.d-gacha-detail .card-large {
    flex: 0 1 284px;
}

.d-gacha-detail .card-medium {
    flex: 0 1 220px;
}

.d-gacha-detail .card-small {
    flex: 0 1 180px;
}

.d-gacha-detail .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.d-gacha-detail .card-item .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.d-gacha-detail .card-item .card-psa-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20%;
    max-width: 48px;
    z-index: 5;
}

.d-gacha-detail .card-item .card-case-icon {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 20%;
    max-width: 48px;
    z-index: 5;
}

.d-gacha-detail .card-item .card-quantity-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    height: 30px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    z-index: 10;
    border-top-left-radius: 4px;
    line-height: 1;
}

.d-gacha-detail .card-quantity-badge .material-icons { font-size: 18px; }

@media (max-width: 639px) {
    .d-gacha-detail .card-item { max-width: 160px; }
    .d-gacha-detail .card-quantity-badge { height: 24px; padding: 0 6px; font-size: 1.25rem; }
    .d-gacha-detail .card-quantity-badge .material-icons { font-size: 14px; }
}

.card-slider .slider .slick-prev,
.card-slider .slider .slick-next {
    padding: 16px 18px;
    background-color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 44px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 0;
    line-height: 0;
    transition: background-color 0.2s;
}

.card-slider .slider .slick-prev:hover,
.card-slider .slider .slick-next:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.card-slider .slider .slick-prev {
    left: 0px !important;
    border-radius: 0 50px 50px 0;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='18' viewBox='0 0 10 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 1L1 9l8 8' stroke='%23444444' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30%;
}

.card-slider .slider .slick-next {
    right: 0px !important;
    border-radius: 50px 0 0 50px;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='18' viewBox='0 0 10 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l8 8-8 8' stroke='%23444444' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30%;
}

.card-slider .slider .slick-prev:before,
.card-slider .slider .slick-next:before {
    content: '' !important;
}

/* MODAL MYPAGE SYSTEM */
:root {
    --header-height: 52px;
}

.is-modal-open {
    width: 100%;
}

body.is-modal-open .bottom-nav {
    display: none !important;
}

#modal-mypage {
    background-color: white;
    width: 100%;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    position: fixed;
    left: 0;
    transform: translateX(100%);
    top: var(--header-height);
    z-index: 10050;
    transition: transform .3s ease-in-out;
    display: flex;
    flex-direction: column;
}

#modal-mypage.is-open {
    transform: translateX(0);
}

.mypage-inner-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 32px 24px;
}

@media (max-width: 575px) {
    .mypage-inner-container {
        padding: 24px 16px;
    }
}

/* Premium Rank Card styling */
.mypage-rank-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 140px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
}

@media (max-width: 575px) {
    .mypage-rank-card {
        height: 128px;
    }
}

.mypage-rank-frame {
    width: 100%;
    height: 100%;
    object-fit: fill;
    position: absolute;
    top: 0;
    left: 0;
}

.mypage-rank-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

@media (max-width: 575px) {
    .mypage-rank-overlay {
        padding: 0 16px;
    }
}

.mypage-rank-badge {
    width: 127px;
    height: 127px;
    object-fit: contain;
    margin-right: 16px;
}

@media (max-width: 575px) {
    .mypage-rank-badge {
        width: 96px;
        height: 96px;
        margin-right: 12px;
    }
}

.mypage-rank-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    color: white;
}

.mypage-rank-info-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0;
    opacity: 0.9;
}

@media (max-width: 575px) {
    .mypage-rank-info-label {
        font-size: 12px;
    }
}

.mypage-rank-info-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 575px) {
    .mypage-rank-info-value {
        font-size: 30px;
    }
}

.mypage-rank-info-rate {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .mypage-rank-info-rate {
        font-size: 10px;
    }
}

.mypage-rank-arrow {
    margin-left: auto;
    color: white;
    width: 32px;
    height: 32px;
}

/* Custom divides for account rows */
.list-group-divider-custom a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    color: var(--text-dark-gray);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.list-group-divider-custom a + a {
    border-top: 1px solid #E2E8F0;
}

.list-group-divider-custom a:hover {
    color: var(--rose-500);
    padding-left: 4px;
}

.form-input-ring-modern {
    height: 40px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-dark-gray);
    background-color: #ffffff;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.form-input-ring-modern option {
    color: var(--text-dark-gray);
    background-color: #ffffff;
}

.form-input-ring-modern:focus {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px hsl(43, 99%, 65%);
}

/* ==========================================================================
   JACKPOT PAGE SYSTEM
   ========================================================================== */
.jackpot-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark-gray);
}
.jackpot-back-btn {
    display: flex;
    align-items: center;
    padding: 16px 0;
    margin-left: -6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark-gray);
    text-decoration: none;
}
.jackpot-banner {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
}
.jackpot-info-card {
    background-color: #E2E8F0;
    border-radius: 12px;
    padding: 24px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.jackpot-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.jackpot-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark-gray);
}
.jackpot-card-subtitle {
    font-size: 14px;
    margin: 0;
    color: var(--text-dark-gray);
}
.jackpot-progress-wrapper {
    margin-top: 32px;
    padding: 0 4px;
}
.jackpot-progress-track {
    height: 8px;
    width: 100%;
    background-color: #CBD5E1;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}
.jackpot-progress-fill {
    height: 100%;
    width: 100%;
    background-color: #e7d5da;
    transform: translateX(-200%);
    transition: all 0.3s ease;
}
.jackpot-arrows-row {
    position: relative;
    display: flex;
    height: 40px;
}
.jackpot-arrow-img {
    position: absolute;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    opacity: 0.1;
    filter: grayscale(100%);
    z-index: 5;
}
.jackpot-arrow-img-up {
    top: -4px;
}
.jackpot-arrow-img-down {
    top: -44px;
}
.jackpot-arrow-text-up {
    position: absolute;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    opacity: 0.15;
    top: 24px;
    margin: 0;
    z-index: 5;
}
.jackpot-arrow-text-down {
    position: absolute;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    opacity: 0.15;
    top: -52px;
    margin: 0;
    z-index: 5;
}
.jackpot-list {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark-gray);
    padding-left: 20px;
    list-style-type: disc;
    margin: 8px 0 0 0;
}
.jackpot-list li {
    margin-bottom: 4px;
}
.jackpot-section {
    margin-bottom: 24px;
}
.jackpot-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark-gray);
}
.jackpot-section-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark-gray);
}

/* GACHA COIN EXCHANGED OVERLAY CLEAN LOOK */
.gacha-exchanged-backdrop {
    display: none;
}

.gacha-exchanged-dialog {
    position: relative;
    z-index: 1;
    overflow-y: visible;
    background-color: transparent;
}

.gacha-exchanged-layout {
    min-height: 100%;
}

.gacha-exchanged-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.gacha-exchanged-success-box {
    background: var(--bg-white);
    border-radius: 4px;
    padding: 32px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gacha-exchanged-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: var(--text-dark);
}

.gacha-exchanged-coin-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--slate-100);
    border-radius: 8px;
    padding: 16px 0;
}

.gacha-exchanged-coin-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gacha-exchanged-coin-text {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.gacha-exchanged-coin-text-green {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--green-600);
}

.gacha-exchanged-chevron {
    color: var(--slate-500);
}

.gacha-exchanged-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    background: var(--bg-white);
}

.gacha-exchanged-card-body {
    padding: 12px;
}

.gacha-exchanged-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.gacha-exchanged-point-box {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gacha-exchanged-point-val {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.gacha-exchanged-point-unit {
    font-size: 14px;
    font-weight: 400;
}

.gacha-exchanged-close-btn {
    width: 100%;
    height: 40px;
    border: 1px solid var(--primary-color) !important;
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Premium Grade / Rank Detail Page styling */
.grade-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

.grade-progress-box {
    background-color: #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.grade-progress-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.grade-progress-track {
    height: 12px;
    background-color: #d1d5db;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
}

.grade-progress-bar {
    height: 100%;
    background-color: #26AF60;
    transition: width 0.3s ease;
}

.grade-progress-remaining {
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-600);
    text-align: right;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1;
}

.grade-progress-pt {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 4px;
}

.grade-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grade-section {
    display: flex;
    flex-direction: column;
}

.grade-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.grade-section-content {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.625;
    color: var(--text-dark);
}

.grade-benefits-list {
    list-style-type: decimal;
    list-style-position: inside;
    padding-left: 0;
    margin-top: 8px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.grade-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
}

.grade-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
}

.grade-table th {
    height: 48px;
    padding: 0 16px;
    font-weight: 500;
    font-size: 12px;
    color: var(--text-dark);
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--slate-200);
    vertical-align: middle;
}

.grade-table td {
    padding: 16px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid var(--slate-200);
    vertical-align: middle;
}

.grade-table tbody tr:last-child td {
    border-bottom: none;
}

.grade-table tbody tr.bg-muted {
    background-color: var(--slate-100);
}

.grade-table td.grade-table-name {
    font-weight: 500;
}

.grade-table-coin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.grade-table-coin img {
    width: 20px;
    height: 20px;
}

/* GACHA RESULT MODAL CLEAN STYLES */
.result-modal-content {
    border-radius: 12px;
    border: none;
    overflow: hidden;
}

.result-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.result-modal-title {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 0;
}

.result-modal-body-text {
    font-weight: 500;
    margin-bottom: 8px;
}

.result-modal-coin-box {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.result-modal-coin-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.result-modal-coin-amount {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

.result-modal-footer {
    border-top: none;
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
}

.result-modal-btn {
    height: 44px;
    font-weight: 700;
    flex: 1;
    font-size: 14px;
}

.result-modal-btn-primary {
    background: var(--primary-color, #e45826);
    border: none;
    color: #fff;
}

.result-modal-btn-primary:hover {
    background: var(--primary-color, #e45826) !important;
    color: #fff !important;
    opacity: 0.9;
}

/* OTHER HELPER CLASSES */
.toggle-btn-disabled {
    cursor: default;
    opacity: 0.8;
}

.psa10-badge-modern {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
}

.gacha-btn-container-sticky {
    background-color: var(--bg-white) !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* Profile Card styling */
.mypage-profile-card {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.mypage-profile-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.mypage-profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
    background: #E0F2FE;
    flex-shrink: 0;
}

.mypage-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mypage-profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mypage-profile-name {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.mypage-profile-link {
    font-size: 14px;
    color: #B45309;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================== */
/* PROFILE PAGE STYLES                        */
/* ========================================== */

.profile-container *,
.profile-container *::before,
.profile-container *::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
}

.profile-container img,
.profile-container svg {
    display: block;
}

.profile-container img {
    max-width: 100%;
    height: auto;
}

.profile-container p {
    margin: 0;
}

.profile-container {
    padding: 16px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    font-weight: 500;
    color: hsl(0, 0%, 18%);
    line-height: 1.5;
}

.profile-top-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.4));
}

.profile-back-link {
    margin-left: -6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px 0;
    font-size: 14px;
    line-height: 20px;
    color: #fff;
    text-decoration: none;
}

.profile-back-link svg {
    width: 20px;
    height: 20px;
    color: #fff;
}
@media (min-width: 768px) {
    .profile-back-link svg {
        width: 24px;
        height: 24px;
    }
}

.profile-edit-link {
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.profile-edit-link svg {
    width: 20px;
    height: 20px;
    color: #fff;
}
@media (min-width: 768px) {
    .profile-edit-link svg {
        width: 28px;
        height: 28px;
    }
}

.profile-bg-container {
    position: fixed;
    inset: 0;
    z-index: -10;
    display: flex;
    justify-content: center;
}

.profile-bg-image {
    width: 100%;
    max-width: 800px;
    height: 100%;
    position: absolute;
    background-size: cover;
    background-position: center;
}

.profile-content-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
}

.profile-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    max-width: 768px;
}

.profile-avatar-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    z-index: 10;
}

.profile-avatar-img {
    border-radius: 9999px;
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
    height: 100%;
    border: 4px solid #fff;
    background-color: #f3f4f6;
}

.profile-rank-wrapper {
    margin-top: 88px;
    z-index: 10;
}

.profile-rank-badge {
    height: 36px;
    width: fit-content;
}

.profile-rank-img {
    height: 36px !important;
    width: auto;
    border-radius: 9999px;
    object-fit: cover;
    box-shadow: 0px 3px 12px 0px rgba(28,30,58,0.1);
}

.profile-username {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.4));
    line-height: 30px;
    text-align: center;
    margin-top: 20px;
}
@media (min-width: 768px) {
    .profile-username {
        font-size: 20px;
    }
}

.profile-stats-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 768px;
}
@media (min-width: 768px) {
    .profile-stats-container {
        width: fit-content;
    }
}

.profile-stats-row {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
    border-radius: 8px;
}

.profile-stats-inner {
    display: flex;
    width: 100%;
    justify-content: center;
}

.profile-stats-group {
    display: flex;
    gap: 40px;
}

.profile-stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 34px;
}

.profile-stat-value-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.4));
    line-height: 1;
}
@media (min-width: 768px) {
    .profile-stat-value {
        font-size: 24px;
    }
}

.profile-stat-unit {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.4));
    line-height: 1;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .profile-stat-unit {
        font-size: 14px;
    }
}

.profile-stat-label {
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.4));
    line-height: 1;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .profile-stat-label {
        font-size: 14px;
    }
}

.profile-help-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.profile-help-btn img {
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.4));
}

.profile-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
@media (min-width: 640px) {
    .profile-cards-grid {
        gap: 12px;
    }
}
@media (min-width: 768px) {
    .profile-cards-grid {
        gap: 16px;
    }
}

.profile-card-item {
    aspect-ratio: 868/1212;
}

.profile-card-content {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-card-placeholder {
    opacity: 0.8;
    object-fit: cover;
}

/* Payment Page Styles */
.payment-page-container {
    background-color: #F2F3F5;
    min-height: 100vh;
    padding-bottom: 96px;
}

.payment-container-inner {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

.payment-summary-card {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #E4E8ED;
}

.payment-summary-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.payment-summary-label {
    font-size: 14px;
    font-weight: 700;
}

.payment-summary-value {
    font-size: 24px;
    font-weight: 700;
}

.payment-summary-value small {
    font-size: 12px;
    margin-left: 2px;
}

.payment-method-title {
    font-size: 14px;
    margin-bottom: 16px;
    margin-top: 32px;
}

.payment-method-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-method-item {
    border: 1px solid #E4E8ED;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.payment-method-item-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
}

.payment-method-item.active {
    background-color: #FEF8E9;
    border-color: var(--primary-color, #e45826);
}

.radio-indicator {
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.radio-indicator > div {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: white;
    display: none;
}

.payment-method-item.active .radio-indicator {
    background-color: var(--primary-color, #e45826);
}

.payment-method-item.active .radio-indicator > div {
    display: block;
}

.payment-method-text {
    font-size: 16px;
    flex: 1 1 0%;
}

.payment-method-logos {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.payment-logo-container {
    width: 27px;
    height: 24px;
    border: 1px solid #E4E8ED;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    overflow: hidden;
}

.payment-logo-container img {
    object-fit: contain;
    width: 24px;
    height: 24px;
}

.amazon-pay-logo {
    width: 84px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.amazon-pay-logo img {
    object-fit: contain;
    width: 84px;
    height: 16px;
}

.payment-submit-btn {
    background-color: var(--primary-color, #e45826);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 46px;
    margin-top: 16px;
}

.payment-submit-btn:hover {
    background-color: var(--primary-hover, #c34a20);
}

/* Additional Semantic Styles for Payment Header and Banner */
.payment-header {
    background-color: transparent;
    border-bottom: none;
    padding: 16px 16px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.payment-back-btn {
    color: #475569;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 0;
}

.payment-page-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    text-align: center;
    margin: 0;
    width: 100%;
}

.payment-banner {
    margin-top: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 8px;
    padding: 0 16px;
}

.payment-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Additional Semantic Styles for Summary Card */
.payment-summary-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.payment-coins {
    color: var(--primary-color, #e45826);
}

.payment-summary-row.payment-coins .payment-summary-value {
    font-size: 20px;
}

.payment-bonus {
    color: #6D6D6D;
}

.payment-bonus-value {
    font-size: 14px;
    font-weight: 500;
}

.payment-rank {
    color: #FF3B30;
}

.payment-summary-row.payment-rank .payment-summary-value {
    font-size: 20px;
}

.highlight {
    color: #f5004e;
    font-size: 20px;
    margin-bottom: 0;
}

.payment-summary-label.highlight {
    font-size: 14px;
}

/* Additional Semantic Styles for Law Link */
.payment-law-link-container {
    margin-top: 16px;
    text-align: center;
}

.payment-law-link {
    font-size: 14px;
    color: #6b7280;
    text-decoration: underline;
}

/* Additional Semantic Styles for Stripe Logo */
.stripe-logo {
    width: 84px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.stripe-logo img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* Contact Form Modern Styles */
.form-textarea-modern {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-dark-gray);
    background-color: #ffffff;
    outline: none;
    transition: box-shadow 0.2s ease;
    min-height: 120px;
}
.form-textarea-modern:focus {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px hsl(43, 99%, 65%);
}

.file-upload-wrapper {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    background-color: #ffffff;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 40px;
}
.file-upload-wrapper:hover {
    background-color: #F8F9FA;
}

.btn-rounded-full {
    border-radius: 9999px !important;
}

.btn-orange {
    background-color: #e45826 !important;
    color: #ffffff !important;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 24px;
}

.btn-contact-submit {
    height: 36px !important;
    background-color: #e45826 !important;
    color: #ffffff !important;
    font-weight: bold;
    font-size: 14px;
    border-radius: 9999px !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: var(--text-dark-gray);
}

.contact-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}

.contact-desc p {
    margin-bottom: 4px;
}
