body[data-page="themes"] .account-main { max-width: var(--container); }
.theme-grid { gap: 1.2rem; }
.theme-grid .empty-state { grid-column: 1 / -1; padding: clamp(2rem, 5vw, 4rem); }
.theme-store-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .18s ease, transform .18s ease; }
.theme-store-card:hover { border-color: var(--line-accent); transform: translateY(-3px); }
.theme-card-preview { min-height: 190px; aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; overflow: hidden; text-decoration: none; color: #dceaff; background: radial-gradient(circle at 65% 25%, #314e8c, #121d38 46%, #080d1b 85%); border-bottom: 1px solid var(--line-soft); }
.theme-card-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.theme-store-card:hover .theme-card-preview img { transform: scale(1.025); }
.theme-preview-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 21px; color: #fff; background: linear-gradient(145deg, #4b8cff, #16366f); box-shadow: 0 18px 50px rgba(23,89,204,.3); font-size: 2.5rem; font-weight: 700; }
.theme-preview-label { font: .67rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #bdccee; }
.theme-card-body { padding: 1.25rem; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.theme-card-body h2 { margin-top: .85rem; font-size: 1.38rem; }
.theme-card-description { min-height: 3.1em; }
.theme-card-meta { width: 100%; display: grid; gap: .35rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line-soft); color: var(--text-muted); font-size: .84rem; }
.theme-card-bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: auto; padding-top: 1.15rem; }
.theme-card-bottom strong { color: #fff; font-size: 1.16rem; white-space: nowrap; }
.theme-breadcrumb { display: flex; gap: .6rem; align-items: center; color: var(--text-muted); font-size: .9rem; }
.theme-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 320px); align-items: start; gap: 1.25rem; }
.theme-detail-primary { min-width: 0; display: grid; gap: 2rem; }
.theme-summary { padding: clamp(1.4rem, 4vw, 2.3rem); }
.theme-summary h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-top: .6rem; }
.theme-description { margin-top: 1.25rem; color: var(--text-muted); white-space: pre-line; overflow-wrap: anywhere; }
.theme-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.7rem; }
.theme-facts div { padding-top: .8rem; border-top: 1px solid var(--line-soft); display: grid; gap: .2rem; }
.theme-facts span { color: var(--text-muted); font-size: .8rem; }
.theme-facts strong { overflow-wrap: anywhere; }
.theme-acquire { position: sticky; top: 90px; padding: 1.4rem; display: grid; justify-items: start; gap: .85rem; }
.theme-acquire .btn { width: 100%; }
.theme-price { color: #fff; font-size: clamp(1.8rem, 4vw, 2.25rem); font-weight: 700; letter-spacing: -.04em; }
.theme-acquire-note { color: var(--text-muted); font-size: .91rem; }
.theme-credit-box { width: 100%; margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.theme-credit-box h3 { font-size: 1.05rem; }
.theme-credit-box p { margin-top: .4rem; color: var(--text-muted); font-size: .89rem; }
.theme-credit-box form { display: grid; gap: .85rem; margin-top: .85rem; }
.theme-confirm { display: flex; align-items: flex-start; gap: .55rem; font-size: .87rem; }
.theme-confirm input { margin-top: .28rem; accent-color: var(--accent); }
.theme-media-section { display: grid; gap: 1rem; }
.theme-media { margin: 0; padding: .9rem; overflow: hidden; }
.theme-media figcaption { margin: .2rem .2rem .8rem; font-weight: 700; }
.theme-media img, .theme-media video { width: 100%; max-height: 540px; object-fit: contain; display: block; border-radius: 8px; background: #05070f; }
.theme-lightbox-open { overflow: hidden; }
body.theme-lightbox-open { position: fixed; width: 100%; }
.theme-lightbox { box-sizing: border-box; width: min(94vw, 1400px); max-width: none; max-height: calc(100dvh - 2rem); margin: auto; padding: clamp(.75rem, 2vw, 1.25rem); overflow: auto; overscroll-behavior: contain; color: var(--text-main); background: #10182b; border: 1px solid var(--line-accent); border-radius: var(--radius-md); box-shadow: 0 24px 80px rgba(0, 0, 0, .7); }
.theme-lightbox::backdrop { background: rgba(3, 6, 15, .88); }
.theme-lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.theme-lightbox-header h2 { margin: 0; font-size: clamp(1rem, 2.4vw, 1.3rem); overflow-wrap: anywhere; }
.theme-lightbox-close { flex: none; }
.theme-lightbox-image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 9rem); margin: 0 auto; object-fit: contain; border-radius: 8px; }
.theme-preview-empty { padding: 2rem; border: 1px dashed var(--line-accent); border-radius: var(--radius-md); color: var(--text-muted); }
.theme-purchase { padding: clamp(1.4rem, 4vw, 2.2rem); display: grid; justify-items: start; gap: 1rem; }
.theme-purchase h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.theme-purchase-status { width: 100%; padding: 1rem; border: 1px solid var(--line-accent); border-radius: var(--radius-md); background: rgba(75,140,255,.08); }
@media (max-width: 900px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .theme-detail-layout { grid-template-columns: 1fr; } .theme-acquire { position: static; grid-row: 1; } }
@media (max-width: 620px) { .theme-grid { grid-template-columns: 1fr; } .theme-facts { grid-template-columns: 1fr; } .theme-card-preview { min-height: 215px; } .theme-card-bottom { flex-wrap: wrap; } }
@media (max-width: 620px) { .theme-lightbox { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); } .theme-lightbox-image { max-height: calc(100dvh - 7rem); } }
