/* =============================================================================
   DESIGN SYSTEM — Production Component Library
   Extracted from templates/design_system/standalone.html
   Source of truth for all ds-* component classes.
   ============================================================================= */

/* ========== BUTTONS ========== */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.ds-btn--primary {
    background: #00f3ff;
    color: #050b14;
    border-color: #00f3ff;
}
.ds-btn--primary:hover { background: #33f5ff; box-shadow: 0 0 20px rgba(0,243,255,0.3); transform: translateY(-1px); }
.ds-btn--secondary {
    background: transparent;
    color: #00f3ff;
    border-color: rgba(0,243,255,0.3);
}
.ds-btn--secondary:hover { border-color: #00f3ff; background: rgba(0,243,255,0.08); }
.ds-btn--evolve {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    border-color: #f97316;
}
.ds-btn--evolve:hover { background: linear-gradient(135deg, #fb923c, #fdba74); box-shadow: 0 0 20px rgba(249,115,22,0.35); transform: translateY(-1px); }
.ds-btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.ds-btn--ghost:hover { color: #fff; background: rgba(255,255,255,0.06); }
.ds-btn--danger {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    border-color: rgba(239,68,68,0.3);
}
.ds-btn--danger:hover { background: #ef4444; color: #fff; }
.ds-btn--success {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border-color: rgba(34,197,94,0.3);
}
.ds-btn--success:hover { background: #22c55e; color: #050b14; }
.ds-btn--sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.ds-btn--lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.ds-btn:disabled, .ds-btn--disabled { opacity: 0.4; pointer-events: none; }
.ds-btn--loading { position: relative; color: transparent; pointer-events: none; }
.ds-btn--loading::after {
    content: ''; position: absolute; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: ds-spin 0.6s linear infinite;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }

/* ========== INPUTS ========== */
.ds-input {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-primary, #e5e5e5);
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
}
.ds-input:focus { border-color: #00f3ff; box-shadow: 0 0 0 3px rgba(0,243,255,0.1); }
.ds-input--error { border-color: #ef4444; }
.ds-input--error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.ds-input--success { border-color: #22c55e; }

.ds-select {
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.ds-textarea {
    min-height: 100px;
    resize: vertical;
}

/* ========== TOGGLE & CHECKBOX ========== */
.ds-toggle {
    position: relative; width: 44px; height: 24px;
    background: rgba(255,255,255,0.1); border-radius: 12px;
    cursor: pointer; transition: background 0.2s;
    border: none;
}
.ds-toggle::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; background: #fff;
    border-radius: 50%; transition: transform 0.2s;
}
.ds-toggle--on { background: #00f3ff; }
.ds-toggle--on::after { transform: translateX(20px); }

.ds-checkbox {
    width: 20px; height: 20px; border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s ease; flex-shrink: 0;
}
.ds-checkbox--checked {
    background: #00f3ff; border-color: #00f3ff;
}
.ds-checkbox--checked::after {
    content: ''; width: 6px; height: 10px;
    border: solid #050b14; border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
}

.ds-radio {
    width: 20px; height: 20px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s ease; flex-shrink: 0;
}
.ds-radio--selected { border-color: #00f3ff; }
.ds-radio--selected::after {
    content: ''; width: 10px; height: 10px;
    background: #00f3ff; border-radius: 50%;
}

/* ========== CARDS ========== */
.ds-card {
    background: rgba(13,18,28,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.25s ease;
}
.ds-card:hover {
    border-color: rgba(0,243,255,0.2);
    box-shadow: 0 0 25px rgba(0,243,255,0.06);
    transform: translateY(-2px);
}
.ds-card__header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.ds-card__icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(0,243,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.ds-card__title { font-size: 16px; font-weight: 600; color: #fff; }
.ds-card__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.ds-card__footer { margin-top: 16px; display: flex; align-items: center; gap: 8px; }

.ds-card--elevated {
    background: rgba(15,23,42,0.9);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.1);
}
.ds-card--orange { border-left: 3px solid #f97316; }
.ds-card--cyan { border-left: 3px solid #00f3ff; }
.ds-card--glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    border-color: rgba(255,255,255,0.08);
}

/* ========== ALERTS ========== */
.ds-alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px; border-radius: 12px;
    font-size: 13px; line-height: 1.5;
    border: 1px solid transparent;
}
.ds-alert__icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.ds-alert--info { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.2); color: #60a5fa; }
.ds-alert--success { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.2); color: #4ade80; }
.ds-alert--warning { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.2); color: #fb923c; }
.ds-alert--error { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); color: #f87171; }

/* ========== TOAST ========== */
.ds-toast {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: 12px;
    background: rgba(15,23,42,0.95); border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    font-size: 13px; color: #fff;
    min-width: 260px;
}
.ds-toast__bar { width: 3px; height: 20px; border-radius: 2px; flex-shrink: 0; }
.ds-toast__bar--info { background: #3b82f6; }
.ds-toast__bar--success { background: #22c55e; }
.ds-toast__bar--error { background: #ef4444; }

/* ========== BADGES / TAGS ========== */
.ds-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.3px;
}
.ds-badge--cyan { background: rgba(0,243,255,0.12); color: #00f3ff; }
.ds-badge--orange { background: rgba(249,115,22,0.12); color: #fb923c; }
.ds-badge--green { background: rgba(34,197,94,0.12); color: #4ade80; }
.ds-badge--red { background: rgba(239,68,68,0.12); color: #f87171; }
.ds-badge--neutral { background: rgba(255,255,255,0.08); color: var(--text-secondary); }

/* ========== PROGRESS ========== */
.ds-progress { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.ds-progress__bar { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.ds-progress__bar--cyan { background: linear-gradient(90deg, #00f3ff, #0d9488); }
.ds-progress__bar--orange { background: linear-gradient(90deg, #f97316, #facc15); }

/* ========== SKELETON ========== */
.ds-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: ds-shimmer 1.5s ease infinite;
    border-radius: 8px;
}
@keyframes ds-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ========== AVATAR ========== */
.ds-avatar {
    border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}
.ds-avatar--xs { width: 24px; height: 24px; }
.ds-avatar--sm { width: 32px; height: 32px; }
.ds-avatar--md { width: 40px; height: 40px; }
.ds-avatar--lg { width: 48px; height: 48px; }
.ds-avatar--xl { width: 64px; height: 64px; }
.ds-avatar--ring { border-color: #00f3ff; box-shadow: 0 0 8px rgba(0,243,255,0.3); }

.ds-avatar-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,243,255,0.1); color: #00f3ff;
    font-weight: 600; border-radius: 50%;
}

/* ========== TABLE ========== */
.ds-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ds-table th {
    text-align: left; padding: 10px 16px;
    font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ds-table td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-secondary); }
.ds-table tr:hover td { background: rgba(0,243,255,0.02); }

/* ========== LIST ITEM ========== */
.ds-list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 10px;
    transition: background 0.15s ease; cursor: pointer;
}
.ds-list-item:hover { background: rgba(255,255,255,0.04); }
.ds-list-item__icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(0,243,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ds-list-item__text { flex: 1; }
.ds-list-item__title { font-size: 14px; color: #fff; font-weight: 500; }
.ds-list-item__subtitle { font-size: 12px; color: var(--text-muted); }
.ds-list-item__action { color: var(--text-muted); font-size: 14px; }

/* ========== STAT ========== */
.ds-stat { text-align: center; }
.ds-stat__value { font-family: 'Oswald', sans-serif; font-size: 36px; color: #fff; line-height: 1; }
.ds-stat__label { font-size: 12px; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.5px; }
.ds-stat--cyan .ds-stat__value { color: #00f3ff; }
.ds-stat--orange .ds-stat__value { color: #f97316; }

/* ========== TABS ========== */
.ds-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,0.04); border-radius: 12px; }
.ds-tab {
    padding: 8px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    cursor: pointer; transition: all 0.15s ease; border: none; background: none;
}
.ds-tab:hover { color: var(--text-secondary); }
.ds-tab--active { background: rgba(0,243,255,0.1); color: #00f3ff; }

/* ========== PACK CARDS ========== */
.ds-pack-card {
    background: var(--surface-primary, #0a0f1a);
    border: 2px solid var(--border-default, rgba(255,255,255,0.08));
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 200px;
    transition: all 0.25s ease;
    position: relative;
}
.ds-pack-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.ds-pack-card__rarity {
    padding: 8px 12px;
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.ds-pack-card--common .ds-pack-card__rarity { background: rgba(255,255,255,0.04); color: var(--text-muted); }
.ds-pack-card--limited { border-color: #3b82f6; box-shadow: 0 0 12px rgba(59,130,246,0.2); }
.ds-pack-card--limited .ds-pack-card__rarity { background: rgba(59,130,246,0.12); color: #60a5fa; }
.ds-pack-card--limited:hover { box-shadow: 0 0 20px rgba(59,130,246,0.3), 0 8px 24px rgba(0,0,0,0.3); }
.ds-pack-card--unique { border-color: #facc15; box-shadow: 0 0 12px rgba(250,204,21,0.2); }
.ds-pack-card--unique .ds-pack-card__rarity { background: rgba(250,204,21,0.12); color: #facc15; }
.ds-pack-card--unique:hover { box-shadow: 0 0 20px rgba(250,204,21,0.4), 0 8px 24px rgba(0,0,0,0.3); }
.ds-pack-card--unique::after {
    content: ''; position: absolute; inset: 0; border-radius: 14px;
    background: linear-gradient(135deg, rgba(250,204,21,0.08), transparent, rgba(250,204,21,0.06));
    background-size: 200% 200%;
    animation: ds-pack-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ds-pack-shimmer { 0%{background-position:200% 200%} 100%{background-position:-200% -200%} }
.ds-pack-card__icon {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 12px 0;
    color: var(--text-secondary);
}
.ds-pack-card__name { font-size: 13px; font-weight: 600; color: #fff; padding: 0 12px; }
.ds-pack-card__desc { font-size: 11px; color: var(--text-muted); padding: 4px 12px 8px; line-height: 1.4; flex: 1; }
.ds-pack-card__footer {
    width: 100%; padding: 8px 10px;
    display: flex; gap: 6px;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: auto;
}
.ds-pack-btn {
    flex: 1; padding: 6px 8px; border-radius: 8px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; border: 1px solid transparent;
    cursor: pointer; transition: all 0.15s ease;
    text-align: center;
}
.ds-pack-btn--use { background: #00f3ff; color: #050b14; border-color: #00f3ff; }
.ds-pack-btn--use:hover { background: #33f5ff; box-shadow: 0 0 12px rgba(0,243,255,0.3); }
.ds-pack-btn--equip { background: transparent; color: var(--text-secondary); border-color: rgba(255,255,255,0.15); }
.ds-pack-btn--equip:hover { border-color: #00f3ff; color: #00f3ff; }
.ds-pack-btn--equipped { background: rgba(0,243,255,0.15); color: #00f3ff; border-color: rgba(0,243,255,0.3); }
.ds-pack-btn--owned { background: rgba(34,197,94,0.1); color: #4ade80; border-color: rgba(34,197,94,0.2); pointer-events: none; }

/* ========== SHOP CARDS ========== */
.ds-shop-card {
    background: var(--surface-secondary, #0f172a);
    border: 1px solid var(--border-default, rgba(255,255,255,0.08));
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.ds-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(249,115,22,0.12);
    border-color: rgba(249,115,22,0.4);
}
.ds-shop-card:hover .ds-shop-card__image img { transform: scale(1.05); }
.ds-shop-card__image {
    position: relative; width: 100%; height: 160px; overflow: hidden;
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.1));
    display: flex; align-items: center; justify-content: center;
}
.ds-shop-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.ds-shop-card__image-icon { font-size: 48px; opacity: 0.5; }
.ds-shop-card__badge {
    position: absolute; top: 12px; right: 12px;
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(249,115,22,0.4);
    font-size: 16px; color: #fff;
}
.ds-shop-card__body { padding: 16px; }
.ds-shop-card__house {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.8px; color: #8b5cf6; margin-bottom: 4px;
}
.ds-shop-card__name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ds-shop-card__desc {
    font-size: 12px; color: var(--text-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 12px;
}
.ds-shop-card__meta { display: flex; gap: 8px; margin-bottom: 12px; }
.ds-shop-card__tag {
    font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
    background: rgba(255,255,255,0.06); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
}
.ds-shop-card__footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.04);
}
.ds-shop-card__price {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: #fff;
}
.ds-shop-card__price svg { flex-shrink: 0; }
.ds-shop-card__cta {
    padding: 7px 18px; border-radius: 12px;
    font-size: 13px; font-weight: 600; border: none;
    cursor: pointer; transition: all 0.2s ease;
}
.ds-shop-card__cta--get { background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff; }
.ds-shop-card__cta--get:hover { box-shadow: 0 0 16px rgba(139,92,246,0.4); }
.ds-shop-card__cta--open { background: rgba(16,185,129,0.12); color: #10b981; }
.ds-shop-card__cta--buy { background: #00f3ff; color: #050b14; }
.ds-shop-card__cta--buy:hover { background: #33f5ff; box-shadow: 0 0 12px rgba(0,243,255,0.3); }
.ds-shop-card__cta--owned { background: rgba(34,197,94,0.1); color: #4ade80; pointer-events: none; }

/* ========== APP CARDS ========== */
.ds-app-card {
    background: var(--surface-primary, #111318);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex; flex-direction: column;
}
.ds-app-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.ds-app-card__hero {
    position: relative; height: 180px; overflow: hidden;
    background: linear-gradient(160deg, rgba(139,92,246,0.12), rgba(6,182,212,0.08));
    display: flex; align-items: center; justify-content: center;
}
.ds-app-card__hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 60%, rgba(139,92,246,0.08) 0%, transparent 70%);
}
.ds-app-card__hero img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.ds-app-card__hero-icon {
    font-size: 48px; opacity: 0.4; z-index: 0;
}
.ds-app-card__price {
    position: absolute; bottom: 10px; right: 10px;
    padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
    backdrop-filter: blur(12px); z-index: 2;
}
.ds-app-card__price--paid {
    background: rgba(34,197,94,0.15); color: #4ade80;
    border: 1px solid rgba(34,197,94,0.2);
}
.ds-app-card__price--free {
    background: rgba(16,185,129,0.15); color: #10b981;
    border: 1px solid rgba(16,185,129,0.2);
}
.ds-app-card__info {
    padding: 14px 16px 16px;
    display: flex; align-items: center; gap: 10px;
}
.ds-app-card__app-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(139,92,246,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #8b5cf6; flex-shrink: 0;
}
.ds-app-card__meta { flex: 1; min-width: 0; }
.ds-app-card__name {
    font-size: 14px; font-weight: 600; color: #e4e4e7;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ds-app-card__type { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }
.ds-app-card__action {
    padding: 6px 16px; border-radius: 20px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.3px; border: none; cursor: pointer;
    flex-shrink: 0; transition: opacity 0.15s;
}
.ds-app-card__action--get {
    background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff;
}
.ds-app-card__action--open {
    background: rgba(16,185,129,0.12); color: #10b981;
}
.ds-app-card__action:hover { opacity: 0.85; }

/* ========== UNIFIED CARD ========== */
.ds-ucard {
    background: var(--surface-primary, #0a0f1a);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}
.ds-ucard:hover {
    border-color: rgba(0,243,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(0,243,255,0.06);
    transform: translateY(-2px);
}
.ds-ucard__image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.08));
}
.ds-ucard__image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.ds-ucard:hover .ds-ucard__image img { transform: scale(1.03); }
.ds-ucard__image--sm { height: 120px; }
.ds-ucard__image--md { height: 160px; }
.ds-ucard__image--lg { height: 200px; }
.ds-ucard__image-placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; opacity: 0.35;
    width: 100%; height: 100%;
}
.ds-ucard__image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 50%, rgba(5,11,20,0.8));
}
.ds-ucard__badge-row {
    position: absolute; top: 10px; left: 10px; right: 10px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 2;
}
.ds-ucard__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.ds-ucard__eyebrow {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 4px;
}
.ds-ucard__title {
    font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ds-ucard__desc {
    font-size: 13px; color: var(--text-secondary); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    flex: 1;
}
.ds-ucard__footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: auto;
}
.ds-ucard__social {
    display: flex; align-items: center; gap: 8px;
}
.ds-ucard__avatar-stack {
    display: flex;
}
.ds-ucard__avatar-stack > * {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid var(--surface-primary, #0a0f1a);
    margin-left: -8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 600;
}
.ds-ucard__avatar-stack > *:first-child { margin-left: 0; }
.ds-ucard__social-text {
    font-size: 11px; color: var(--text-muted);
}

/* ========== APP TOPBAR ========== */
.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    padding-right: 72px;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.app-topbar__left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.app-topbar__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: white;
    overflow: hidden;
}
.app-topbar__icon i,
.app-topbar__icon svg {
    width: 18px;
    height: 18px;
    color: white;
}
.app-topbar__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.app-topbar__name {
    font-size: 15px;
    font-weight: 600;
    color: #e4e4e7;
}
.app-topbar__house,
.app-topbar__sub {
    font-size: 12px;
    color: #71717a;
}
.app-topbar__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.app-topbar__close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
.app-topbar__close i,
.app-topbar__close svg {
    width: 18px;
    height: 18px;
}

/* ========== COINY ICON (inline) ========== */
.ds-coiny { display: inline-flex; align-items: center; gap: 4px; }
.ds-coiny svg { width: 16px; height: 16px; vertical-align: middle; }
