:root {
    --bg: #0f1117;
    --panel: #181b24;
    --panel-hover: #1f2330;
    --border: #2a2f3d;
    --text: #e6e8ee;
    --muted: #8b92a5;
    --accent: #5b8cff;
    --accent-hover: #4a7af0;
}

* { box-sizing: border-box; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

a { color: inherit; }

.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}
.topbar .brand { font-weight: 700; font-size: 18px; text-decoration: none; }
.topbar .crumb { color: var(--muted); }

.lang-switch {
    display: flex;
    gap: 2px;
    margin-left: auto;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.lang-switch a, .lang-switch span {
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
}
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch .active { background: var(--accent); color: #fff; }

/* Cuenta en la barra superior */
.account-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    font-size: 14px;
}
.account-nav + .lang-switch { margin-left: 0; }
.account-nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.account-nav a:not(.btn):hover { color: var(--text); }
.account-nav form { margin: 0; }
.link-button {
    padding: 0;
    background: none;
    border: 0;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}
.link-button:hover { color: var(--text); }

/* width: en el flex del body, los márgenes auto (centrado) harían que se encogiera al contenido */
.page { width: 100%; max-width: 1000px; margin: 0 auto; padding: 32px 16px; }
.legal-page { max-width: 760px; }
.status-page { max-width: 560px; padding-top: 72px; text-align: center; }
.status-page .subtitle { margin-bottom: 24px; }
.status-code { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .2em; }
.maintenance-bar { padding: 8px 16px; background: #3a2f12; color: #f0d79a; font-size: 13px; text-align: center; }
.legal-page h2 { margin: 28px 0 8px; font-size: 18px; }
.legal-page p { color: var(--muted); }
.legal-page a { color: var(--accent); }
.site-footer {
    margin-top: auto;
    padding: 24px 16px 32px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}
.site-footer p { margin: 10px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.legal-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal-table th { color: var(--text); }
.legal-table td { color: var(--muted); }

h1 { margin: 0 0 6px; font-size: 26px; }
.subtitle { margin: 0 0 28px; color: var(--muted); }

/* Hub: grilla de apps */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.app-card {
    display: block;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .15s;
}
.app-card:hover { background: var(--panel-hover); border-color: var(--accent); transform: translateY(-2px); }
.app-card { position: relative; }
.app-card.locked h2, .app-card.locked p { opacity: .55; }
.app-card .plan-tag { position: absolute; top: 16px; right: 16px; }
.app-card .plan-tag + h2 { padding-right: 90px; }
.icon { flex-shrink: 0; }
.plan-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.plan-tag.plan-basic { color: #6fbf98; }
.plan-tag.plan-pro { color: #93aef5; }
.plan-tag.plan-exclusive { color: #d8b25e; }
.locked-app {
    max-width: 520px;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.locked-app p { margin: 12px 0 0; }
.locked-actions { display: flex; gap: 10px; margin-top: 18px; }
.app-card h2 { margin: 0 0 6px; font-size: 17px; }
.app-card p { margin: 0; color: var(--muted); font-size: 14px; }
.app-card.maintenance { cursor: default; }
.app-card.maintenance:hover { background: var(--panel); border-color: var(--border); transform: none; }
.app-card.maintenance h2, .app-card.maintenance p { opacity: .55; }
.maintenance-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 8px;
    border: 1px solid #d8a25e;
    border-radius: 6px;
    color: #d8a25e;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Formulario de una app */
.search {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.search input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
}
.search input:focus { outline: none; border-color: var(--accent); }
.search button {
    padding: 12px 22px;
    background: var(--accent);
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.search button:hover { background: var(--accent-hover); }
.search button:disabled { opacity: .7; cursor: progress; }
.search.is-loading input { opacity: .7; }
.search.is-loading button::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.search-status { margin: -12px 0 24px; color: var(--muted); font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.result {
    display: flex;
    justify-content: center;
}

/* Outfit Viewer */
.outfit {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.outfit-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.outfit-label {
    padding: 2px 10px;
    background: var(--accent);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.outfit-name { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.outfit-look {
    width: 165px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 165 / 480;
    background: #1b1f2a;
    border-radius: 8px;
    object-fit: contain;
}
.outfit-side .btn { width: 100%; text-align: center; }
.outfit-count { margin-bottom: 4px; color: var(--muted); font-size: 14px; }

.product-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.product-group-title span {
    padding: 1px 8px;
    background: var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0;
}
.product-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .15s;
}
.product-card:hover { border-color: var(--accent); }
.product-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 5 / 4;
    background: #fff;
}
.product-thumb img { max-width: 100%; max-height: 100%; }
.product-ap {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 1px 6px;
    background: #e5484d;
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}
.product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 10px 0;
    min-width: 0;
}
.product-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.product-name:hover { color: var(--accent); }
.product-creator {
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-creator:hover { color: var(--text); }
.product-price { margin-top: 4px; color: #f5c451; font-size: 13px; font-weight: 600; }
.product-price.hidden-price { color: var(--muted); font-weight: 500; }
.product-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding: 10px;
}
.product-actions .btn { flex: 1; padding: 6px 8px; font-size: 13px; text-align: center; }

@media (max-width: 640px) {
    .outfit { grid-template-columns: 1fr; }
    .outfit-look { width: 120px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Derivation Tree: cadena vertical de productos */
.tree-chain {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tree-node { width: 100%; max-width: 220px; }
.tree-node.is-current .product-card { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tree-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0;
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
}
.tree-link::before,
.tree-link::after {
    content: "";
    width: 2px;
    height: 14px;
    background: var(--border);
}
.tree-link span { padding: 4px 0; }

/* Current Outfit: pestañas "ahora / perfil" */
.look-tabs { margin: -8px 0 20px; }

/* Outfit History */
.look-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}
.look-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color .15s, transform .15s;
}
.look-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.look-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}
.look-card .btn { width: 100%; text-align: center; }

@media (max-width: 480px) {
    .look-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Product Files */
.files-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.files-thumb {
    width: 100px;
    height: 80px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}
.files-info { flex: 1; min-width: 0; }
.files-info h2 { margin: 0 0 4px; font-size: 17px; overflow-wrap: anywhere; }
.files-info p { margin: 0; color: var(--muted); font-size: 14px; }
.files-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.files-actions .btn.busy { opacity: .6; cursor: progress; }

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.file-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .15s;
}
.file-card:hover { border-color: var(--accent); }
.file-preview {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    background: #1b1f2a;
    border-radius: 6px;
    overflow: hidden;
}
.file-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.file-ext {
    padding: 4px 10px;
    background: var(--border);
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
.file-name {
    font-size: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .files-head { flex-direction: column; align-items: stretch; text-align: center; }
    .files-thumb { align-self: center; }
    .files-actions { justify-content: center; }
    .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Room Card: #dialog tiene alto fijo (550px) y la barra inferior se sale;
   se reserva su espacio. El botón de cerrar queda fuera y no hace nada. */
.roomcard { padding-bottom: 45px; }
.roomcard #close_button { display: none; }

/* Error dentro de las tarjetas de Avatar Card y Room Card */
.avicard .avicard-error,
.roomcard .roomcard-error {
    padding: 24px 16px;
    font-weight: bold;
    text-align: center;
}

/* Componentes compartidos por las apps */
.notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
}
.notice.error { border-left-color: #e5484d; }

.btn {
    display: inline-block;
    padding: 8px 14px;
    background: var(--accent);
    border: 0;
    border-radius: 8px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { background: var(--border); color: var(--muted); cursor: default; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); background: transparent; }

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}
.pagination a, .pagination span {
    padding: 8px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
}
.pagination a:hover { border-color: var(--accent); }
.pagination .active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .disabled { color: var(--muted); }

/* Badge List */
.badge-filters {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 6px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 4px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.toggle:hover, .toggle.on { color: var(--text); }
.toggle-track {
    position: relative;
    width: 34px;
    height: 20px;
    background: var(--border);
    border-radius: 999px;
    transition: background .15s;
}
.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform .15s;
}
.toggle.on .toggle-track { background: #30a46c; }
.toggle.on .toggle-thumb { transform: translateX(14px); }

@media (max-width: 640px) {
    .badge-filters { flex-direction: column-reverse; gap: 12px; }
    .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
}

.badge-summary { margin-bottom: 16px; color: var(--muted); font-size: 14px; }

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.badge-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color .15s, transform .15s;
}
.badge-card:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Los badges de IMVU son de 20x20: se amplían sin suavizar para que se vean nítidos */
.badge-frame {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    background: radial-gradient(circle, #262b3a 0%, #1b1f2a 70%);
    border-radius: 50%;
}
.badge-frame img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    image-rendering: pixelated;
}

.badge-name {
    width: 100%;
    min-height: 2.6em;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge-status {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.badge-status.public { color: #6fbf98; }

.badge-actions {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-top: auto;
}
.badge-actions .btn {
    flex: 1;
    padding: 7px 8px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Room History */
.room-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    margin-bottom: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.room-cover { background: #1b1f2a; min-height: 160px; }
.room-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; min-width: 0; }
.room-body h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.room-desc {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.room-meta { margin: 0; color: var(--muted); font-size: 13px; }
.room-dates { display: flex; flex-wrap: wrap; gap: 8px; }
.room-dates select {
    min-width: 80px;
    padding: 6px 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    font-size: 13px;
}
.room-dates select:disabled { color: var(--muted); }
.room-visitors { width: 100%; transition: opacity .15s; }
.room-visitors.loading { opacity: .5; }
.room-visitors-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.room-visitors-head .btn { padding: 5px 10px; font-size: 13px; }
.visitor-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.visitor { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.visitor img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #1b1f2a; }

@media (max-width: 640px) {
    .room-card { grid-template-columns: 1fr; }
    .room-cover { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Bulk Report */
.report-progress {
    height: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.report-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
    transition: width .3s;
}
.report-status { margin: 10px 0 18px; color: var(--muted); font-size: 14px; text-align: center; }
.report-log { display: flex; flex-direction: column; gap: 10px; }
.report-entry {
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
}
.report-line { display: flex; align-items: baseline; gap: 8px; overflow-wrap: anywhere; }
.report-line::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.report-line.ok::before { background: #30a46c; }
.report-line.fail::before, .report-line.flag::before { background: #e5484d; }
.report-line.muted { color: var(--muted); }
.report-line.muted::before { background: var(--muted); }

/* Páginas de cuenta */
.auth-page { max-width: 460px; }
.auth-page h2 { margin: 32px 0 12px; font-size: 18px; }
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.auth-form small { color: var(--muted); font-size: 12px; }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
}
.auth-form input:focus { outline: none; border-color: var(--accent); }
.auth-form .auth-check { flex-direction: row; align-items: center; gap: 8px; color: var(--muted); }
.auth-form .auth-check a { color: var(--accent); text-decoration: underline; }
.auth-form .btn { padding: 11px 14px; font-size: 15px; font-weight: 600; }
.auth-inline { margin: 0 0 16px; }
.auth-links { margin-top: 16px; color: var(--muted); font-size: 14px; }
.auth-links a { color: var(--accent); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 16px;
    margin: 0;
    padding: 20px 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.auth-details dt { color: var(--muted); }
.auth-details dd { margin: 0; overflow-wrap: anywhere; }

/* Suscripción y planes */
.subscription-plan { margin: 0 0 12px; }
.subscription-plan a { color: var(--accent); text-decoration: none; }
.subscription-list { display: flex; flex-direction: column; gap: 10px; }
.subscription-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.subscription-item form { margin: 0; }
.subscription-meta { margin-top: 4px; color: var(--muted); font-size: 13px; }
.subscription-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.subscription-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.subscription-status.status-active { color: #6fbf98; }
.subscription-status.status-past_due, .subscription-status.status-suspended { color: #d8b25e; }
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.plan-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.plan-card.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-card h2 { margin: 0; font-size: 20px; }
.plan-card form { margin: 0; }
.plan-card .btn { width: 100%; padding: 10px 14px; font-weight: 600; }
.plan-price { margin: 0; font-size: 22px; font-weight: 700; }
.plan-current {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
