/* Final social overrides */
body {
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at top left, #1b2331 0%, #0f1218 35%),
        linear-gradient(180deg, #0d1117, #080b10);
    color: #eef2f7;
}

.app {
    width: min(430px, 100vw);
    margin: 0 auto;
    background: #0f1218;
    position: relative;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 24px 60px rgb(0 0 0 / 0.35);
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(180deg, #1f242f, #171b24);
    border-bottom: 1px solid #2e3646;
    padding: 0.75rem 1rem 0.6rem;
}

.header-content {
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
}

.header-brand {
    align-items: center;
    gap: 0.65rem;
}

.header h1 {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.collection-switcher {
    background: rgb(255 255 255 / 0.06);
    border: 1px solid rgb(255 255 255 / 0.09);
}

.collection-tab {
    color: rgb(255 255 255 / 0.76);
    font-size: 0.78rem;
    padding: 0.5rem 0.82rem;
}

.collection-tab.active {
    color: #141923;
    background: #f2c200;
}

.header-stats {
    justify-content: center;
    gap: 1.7rem;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca9bb;
}

.main {
    max-width: none;
    margin: 0;
    padding: 0;
    display: block;
}

.sidebar {
    display: none;
}

.content {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.view {
    min-height: calc(100vh - 180px);
    padding: 0.85rem 0.8rem 7rem;
}

.social-screen-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.social-screen-header h2 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: white;
}

.activity-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #2e3646;
    background: #1a1f29;
    border-radius: 999px;
    padding: 0.15rem;
}

.activity-tab {
    border: none;
    background: transparent;
    color: #9ca9bb;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 0.52rem 0.25rem;
    cursor: pointer;
}

.activity-tab.active {
    background: #f2c200;
    color: #191d27;
}

.activity-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.feed-action-button {
    width: 100%;
    justify-content: center;
    border: 1px solid #2e3646;
    background: #1a1f29;
    color: #eef2f7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.56rem 0.62rem;
}

.feed-action-button:hover {
    border-color: #4a556a;
    background: #222835;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.activity-empty-state {
    border: 1px solid #2e3646;
    border-radius: 18px;
    background: #1a1f29;
    text-align: center;
    padding: 2rem 1rem;
}

.activity-empty-state i {
    font-size: 1.7rem;
    color: #9ca9bb;
    margin-bottom: 0.65rem;
}

.activity-empty-state h3 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.activity-empty-state p {
    color: #9ca9bb;
    font-size: 0.85rem;
}

.activity-card {
    border: 1px solid #2e3646;
    background: #1a1f29;
    border-radius: 16px;
    overflow: hidden;
}

.activity-cover {
    width: 100%;
    height: 220px;
    background: linear-gradient(160deg, #1c2431, #141922);
    position: relative;
    cursor: pointer;
}

.activity-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Burger feed cards carry portrait phone photos way more often than the
   alfajor grid, so `cover` at 220 px was chopping the burger itself out.
   Let the full photo breathe with `contain` + a taller box; the dark card
   background doubles as letterbox so the card still looks tight. */
.activity-cover.burger-cover {
    height: 320px;
    background: #0f1520;
}

.activity-cover.burger-cover img {
    object-fit: contain;
}

/* "No photo" state: render an inline SVG icon inside a flex-centered wrapper
   instead of stretching the off-center PNG. Keeps the burger dead-center
   regardless of card aspect ratio. */
.activity-cover-placeholder,
.burger-detail-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f1520;
}
.activity-cover-placeholder-icon {
    width: 72px;
    height: 72px;
    display: block;
}
.burger-detail-cover-placeholder .activity-cover-placeholder-icon {
    width: 96px;
    height: 96px;
}

.activity-cover-user-pill {
    position: absolute;
    top: 0.62rem;
    left: 0.62rem;
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    max-width: calc(100% - 1.2rem);
    padding: 0.38rem 0.56rem 0.38rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgb(255 255 255 / 0.18);
    background: rgb(8 13 22 / 0.64);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.activity-cover-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d1117;
    font-size: 0.72rem;
    font-weight: 800;
}

.activity-cover-user-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-cover-user-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #3b82f6;
}

.activity-cover-user-text {
    min-width: 0;
}

.activity-cover-user-name {
    margin: 0;
    color: #f8fbff;
    font-size: 0.86rem;
    line-height: 1.05;
    font-weight: 800;
}

.activity-cover-user-time {
    margin: 0.14rem 0 0;
    color: #c4d0e1;
    font-size: 0.72rem;
    line-height: 1.05;
    font-weight: 600;
}

.activity-media-fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f7c631;
    font-size: 3rem;
}

.activity-author-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 0.85rem 0.4rem;
}

.activity-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--avatar-accent, #475569);
    color: #0d1117;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.activity-author-name {
    color: white;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.2;
}

.activity-author-meta {
    color: #9ca9bb;
    font-size: 0.74rem;
}

.activity-panel {
    padding: 0.8rem 0.85rem 0.9rem;
    border-top: 1px solid rgb(255 255 255 / 0.06);
}

.activity-main-row {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
}

.activity-title-wrap h3 {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.15;
    font-weight: 800;
    color: #f8fafc;
}

.activity-title-wrap p {
    margin: 0.2rem 0 0;
    color: #9ca9bb;
    font-size: 0.86rem;
}

.activity-title-wrap.has-place-logo {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.65rem;
    align-items: stretch;
}

.activity-place-logo-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #2a3447;
    background: #101722;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.activity-place-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-place-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    font-weight: 800;
    color: #e0e9f7;
}

.activity-title-wrap.has-place-logo .activity-title-text {
    min-height: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.activity-title-wrap.has-place-logo h3 {
    font-size: 0.99rem;
    font-weight: 760;
    line-height: 1.2;
}

.activity-title-wrap.has-place-logo p {
    margin-top: 0.2rem;
    font-size: 0.91rem;
    line-height: 1.2;
    color: #b8c7da;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-title-wrap.is-clickable {
    cursor: pointer;
}

.activity-title-wrap.is-clickable h3,
.activity-title-wrap.is-clickable p {
    transition: color 0.2s ease;
}

.activity-title-wrap.is-clickable:hover h3 {
    color: #ffd96a;
}

.activity-title-wrap.is-clickable:hover p {
    color: #d8e2f0;
}

.activity-rating-row {
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.activity-dots {
    display: inline-flex;
    gap: 0.3rem;
}

.rating-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid #6b7280;
    background: transparent;
}

.rating-dot.filled {
    border-color: #f2c200;
    background: #f2c200;
}

.rating-dot.half {
    border-color: #f2c200;
    background: linear-gradient(90deg, #f2c200 50%, transparent 50%);
}

.activity-score {
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.95rem;
}

.activity-card-note {
    margin-top: 0.6rem;
    color: #9ca9bb;
    font-size: 0.8rem;
    line-height: 1.45;
    min-height: 1.2rem;
}

.activity-actions {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.activity-actions.is-compact {
    grid-template-columns: repeat(2, 1fr);
}

.activity-action-btn {
    border: 1px solid #2e3646;
    background: #181d26;
    color: #d3dbe7;
    border-radius: 10px;
    padding: 0.46rem 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.activity-action-btn:hover {
    border-color: #4f607a;
    color: white;
}

.status-badge.categorized {
    background: rgb(46 164 255 / 0.16);
    color: #6fc7ff;
}

.status-badge.uncategorized {
    background: rgb(242 194 0 / 0.16);
    color: #ffd647;
}

.activity-badge-col {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.checkin-badge-btn,
.details-badge-btn {
    border: 1px solid transparent;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.checkin-badge-btn:hover,
.details-badge-btn:hover {
    background: rgb(46 164 255 / 0.26);
    color: #b9e5ff;
}

#item-modal .modal-content {
    background: #131a24;
    border: 1px solid #2e3646;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgb(0 0 0 / 0.55);
}

#item-modal .modal-header {
    border-bottom: 1px solid #2e3646;
    background: #151d29;
}

#item-modal .modal-header h3 {
    color: #f6f9ff;
}

#item-modal .modal-close {
    color: #9ca9bb;
}

#item-modal .modal-close:hover {
    color: #f8fbff;
}

#item-modal .modal-body {
    background: #131a24;
    color: #d4dde9;
}

#item-modal .modal-item-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#item-modal .modal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #2e3646;
}

#item-modal .modal-item-header h4 {
    margin: 0;
    color: #f8fbff;
}

#item-modal .modal-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.7rem;
}

#item-modal .modal-item-field {
    padding: 0.68rem 0.72rem;
    border: 1px solid #2e3646;
    background: #1a2230;
    border-radius: 10px;
    color: #d5deeb;
    font-size: 0.84rem;
}

#item-modal .modal-item-field strong {
    color: #f8fbff;
}

#item-modal .modal-item-notes {
    grid-column: 1 / -1;
}

#item-modal .burger-modal-gallery-item {
    border-color: #2e3646;
    background: #141b27;
}

#item-modal .burger-modal-gallery-item span {
    color: #9ca9bb;
}

#item-modal .modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 0.75rem;
    border-top: 1px solid #2e3646;
}

#item-modal .burger-detail-shell {
    gap: 0.85rem;
}

#item-modal .burger-detail-media {
    width: 100%;
    min-height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2e3646;
    background: #0f1520;
    display: flex;
    align-items: center;
    justify-content: center;
}

#item-modal .burger-detail-media img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

#item-modal .burger-detail-media-fallback {
    color: #8ea0b7;
    font-size: 2rem;
}

#item-modal .burger-detail-header {
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 0.1rem;
}

#item-modal .burger-detail-title-with-logo {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.68rem;
    align-items: stretch;
}

#item-modal .burger-detail-place-logo-box {
    width: 56px;
    min-height: 56px;
    border-radius: 14px;
    border: 1px solid #2b3446;
    background: #101722;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#item-modal .burger-detail-place-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#item-modal .burger-detail-place-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.02rem;
    font-weight: 800;
    color: #e7eef9;
}

#item-modal .burger-detail-title-text {
    min-height: 56px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#item-modal .burger-detail-header h4 {
    margin: 0;
    line-height: 1.12;
}

#item-modal .burger-detail-header p {
    margin: 0.18rem 0 0;
    color: #9ca9bb;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#item-modal .burger-detail-score-pill {
    padding: 0.38rem 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
}

#item-modal .burger-detail-summary-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

#item-modal .burger-detail-compare-card {
    border: 1px solid #2e3646;
    border-radius: 10px;
    background: #161e2b;
    padding: 0.58rem 0.62rem;
    display: grid;
    gap: 0.22rem;
}

#item-modal .burger-detail-compare-card span {
    color: #9ca9bb;
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

#item-modal .burger-detail-compare-card strong {
    color: #f8fbff;
    font-size: 1.08rem;
    line-height: 1.1;
}

#item-modal .burger-detail-compare-card small {
    color: #9ca9bb;
    font-size: 0.74rem;
}

#item-modal .burger-detail-fact {
    border: 1px solid #2e3646;
    background: #151d29;
    border-radius: 10px;
    padding: 0.58rem 0.62rem;
    display: grid;
    gap: 0.22rem;
}

#item-modal .burger-detail-fact span {
    color: #8ea0b7;
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

#item-modal .burger-detail-fact strong {
    color: #f4f8ff;
    font-size: 1.08rem;
    line-height: 1.1;
    font-weight: 700;
    word-break: break-word;
}

/* Read-only ingredient tags in the burger detail modal. Mirrors the chip
   styling from the create form (unselected / "resting" state) so the user
   sees the same visual language for meat / bun / toppings everywhere. */
#item-modal .burga-detail-tag-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
}
#item-modal .burga-detail-tag-row::-webkit-scrollbar { display: none; }
#item-modal .burga-detail-tag-row-wrap {
    flex-wrap: wrap;
    overflow-x: visible;
}
/* Selector bumped to `.burger-detail-fact .burga-detail-tag` so it wins over
   the `.burger-detail-fact span` rule above that uppercases the label. */
#item-modal .burger-detail-fact .burga-detail-tag {
    flex: 0 0 auto;
    padding: 0.35rem 0.6rem;
    border: 1px solid #2e3646;
    background: #101623;
    color: #eef2f7;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
}
#item-modal .burger-detail-fact .burga-detail-tag.is-empty {
    border-style: dashed;
    color: #8a95a9;
    font-weight: 500;
    font-style: italic;
}

#item-modal .burger-detail-flavor-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

#item-modal .burger-detail-toppings-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

#item-modal .burger-detail-toppings-row .burger-detail-fact {
    grid-column: 1 / -1;
}

#item-modal .burger-detail-ratings-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

#item-modal .burger-detail-ratings-grid .burger-rating-card {
    flex: 1 1 calc(33.333% - 0.37rem);
    min-width: 122px;
    display: grid;
    gap: 0.3rem;
    position: relative;
    overflow: visible;
}

#item-modal .burger-detail-ratings-grid .burger-rating-card:nth-child(n + 4) {
    flex-basis: calc(50% - 0.28rem);
}

#item-modal .burger-rating-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

#item-modal .burger-rating-card-value {
    color: #e9eff9;
    font-size: 0.94rem;
    font-weight: 700;
}

#item-modal .burger-detail-comments-toggle {
    border: 1px solid #2e3646;
    border-radius: 10px;
    background: #141c29;
    padding: 0.24rem 0.6rem 0.6rem;
}

#item-modal .burger-detail-comments-toggle summary {
    list-style: none;
    cursor: pointer;
    color: #d9e3f2;
    font-size: 0.83rem;
    font-weight: 700;
    padding: 0.42rem 0 0.34rem;
}

#item-modal .burger-detail-comments-toggle summary::-webkit-details-marker {
    display: none;
}

#item-modal .burger-detail-comments-toggle summary::after {
    content: '+';
    float: right;
    color: #9ca9bb;
}

#item-modal .burger-detail-comments-toggle[open] summary::after {
    content: '-';
}

#item-modal .burger-detail-comments-grid {
    margin-top: 0.28rem;
}

#item-modal .burger-modal-back-feed {
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    font-size: 0.79rem;
    font-weight: 700;
    margin-left: auto;
}

#item-modal .burger-detail-shell .modal-actions .submit-button,
#item-modal .burger-detail-shell .modal-actions .delete-button,
#item-modal .burger-detail-shell .modal-actions .burger-modal-back-feed {
    border: 1px solid #2f3b52;
    background: #182131;
    color: #e1e9f6;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: none;
}

#item-modal .burger-detail-shell .modal-actions .submit-button:hover,
#item-modal .burger-detail-shell .modal-actions .delete-button:hover,
#item-modal .burger-detail-shell .modal-actions .burger-modal-back-feed:hover {
    background: #202c40;
    border-color: #445876;
    color: #f4f8ff;
}

#item-modal .burger-detail-shell .modal-actions [data-burger-checkin] {
    background: #221e13;
    border-color: #5a4a1a;
    color: #f3d97a;
}

#item-modal .burger-detail-shell .modal-actions [data-burger-checkin]:hover {
    background: #2b2516;
    border-color: #766126;
    color: #ffe8a2;
}

#item-modal .burger-detail-shell .modal-actions [data-burger-delete] {
    background: #211921;
    border-color: #523248;
    color: #e8c3d2;
}

#item-modal .burger-detail-shell .modal-actions [data-burger-delete]:hover {
    background: #2a1e2a;
    border-color: #6a435c;
    color: #f7dbe8;
}

@media (max-width: 560px) {
    /* summary-row keeps its 2-column layout so "Tu puntaje" and "Promedio
       global" render side by side on mobile too (they used to stack). */
    #item-modal .burger-detail-flavor-row,
    #item-modal .burger-detail-toppings-row {
        grid-template-columns: 1fr;
    }

    #item-modal .burger-modal-back-feed {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

.discover-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #1a1f29;
    border: 1px solid #2e3646;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
}

.discover-search i {
    color: #9ca9bb;
}

.discover-search input {
    width: 100%;
    border: none;
    background: transparent;
    color: #eef2f7;
    font-size: 1rem;
}

.discover-search input:focus {
    outline: none;
}

.discover-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.discover-card {
    border: 1px solid #2e3646;
    border-radius: 12px;
    background: #1a1f29;
    color: #eef2f7;
    padding: 0.7rem 0.45rem;
    font-size: 0.74rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.discover-card i {
    color: #ffd647;
    font-size: 1rem;
}

.discover-card:hover {
    background: #222835;
}

.stats-mode-button {
    border-color: #2e3646;
    background: #1a1f29;
    color: #9ca9bb;
}

.stats-mode-button.active {
    color: #191d27;
    background: #f2c200;
    border-color: transparent;
}

.summary-card,
.stat-card {
    background: #1a1f29;
    border: 1px solid #2e3646;
    box-shadow: none;
}

.summary-card-value {
    font-size: 1.45rem;
    color: #f7fbff;
}

.summary-card-label,
.stat-item-label {
    color: #9ca9bb;
}

.stat-card h3 {
    color: #eef3fb;
}

.stat-item {
    border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.stat-item-value {
    color: #8ad0ff;
    text-align: right;
    max-width: 52%;
    white-space: normal;
}

.profile-hero {
    border: 1px solid #2e3646;
    border-radius: 18px;
    overflow: hidden;
    background: #1a1f29;
}

.profile-cover {
    height: 88px;
    background:
        radial-gradient(circle at 15% 25%, rgb(46 164 255 / 0.28), transparent 45%),
        radial-gradient(circle at 80% 10%, rgb(242 194 0 / 0.25), transparent 35%),
        linear-gradient(135deg, #243042, #151c27);
}

.profile-content {
    margin-top: -28px;
    padding: 0 0.95rem 1rem;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #d8dee7;
    background: #202836;
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    overflow: hidden;
    position: relative;
}

.profile-avatar #profile-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.profile-avatar-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.profile-avatar-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.62rem;
}

.profile-upload-btn,
.profile-remove-btn {
    border: 1px solid #2e3646;
    border-radius: 999px;
    background: #171d27;
    color: #d5deeb;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.62rem;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

.profile-upload-btn:hover,
.profile-remove-btn:hover {
    background: #212938;
}

.profile-remove-btn {
    display: none;
}

.profile-photo-input {
    display: none;
}

#profile-name {
    color: #f8fbff;
    font-size: 1.1rem;
    font-weight: 800;
}

#profile-joined {
    color: #9ca9bb;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.profile-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.profile-metrics-hero {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

.profile-metric {
    border: 1px solid #2e3646;
    border-radius: 12px;
    background: #171c25;
    padding: 0.6rem 0.4rem;
    text-align: center;
}

.profile-metric-label {
    display: block;
    color: #9ca9bb;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-metric strong {
    display: block;
    margin-top: 0.2rem;
    color: white;
    font-size: 1.02rem;
}

.profile-section {
    margin-top: 0.95rem;
    border: 1px solid #2e3646;
    border-radius: 16px;
    background: #1a1f29;
    padding: 0.85rem;
}

.section-header h3 {
    color: white;
    font-size: 0.97rem;
    font-weight: 800;
}

.profile-photos {
    margin-top: 0.7rem;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.45rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
}

.profile-photos::-webkit-scrollbar {
    display: none;
}

.profile-photo-item {
    border: 1px solid #2e3646;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #151b24;
    padding: 0;
    flex: 0 0 92px;
    scroll-snap-align: start;
}

.profile-photo-item img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    display: block;
}

.profile-highlights {
    margin-top: 0.7rem;
    display: grid;
    gap: 0.5rem;
}

.highlight-card {
    border: 1px solid #2e3646;
    border-radius: 12px;
    background: #171d27;
    padding: 0.62rem 0.72rem;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
}

.highlight-card span {
    color: #9ca9bb;
    font-size: 0.8rem;
}

.highlight-card strong {
    color: #fff;
    font-size: 0.9rem;
    text-align: right;
}

.profile-stats-section .stats-toolbar {
    margin-top: 0.65rem;
}

.profile-stats-section .stats-summary {
    margin: 0.8rem 0 0.85rem;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.profile-stats-section .summary-card {
    padding: 0.8rem 0.9rem;
}

.profile-stats-section .summary-card-value {
    font-size: 1.25rem;
}

.profile-stats-section .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
}

.profile-stats-section .stat-card {
    padding: 0.9rem;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(430px, 100vw);
    background: #171c25;
    border-top: 1px solid #2e3646;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.35rem 0.45rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    z-index: 80;
}

.bottom-nav-button {
    border: none;
    background: transparent;
    color: #8895a8;
    border-radius: 12px;
    font-size: 0.72rem;
    gap: 0.3rem;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.45rem 0.2rem;
}

.bottom-nav-button i {
    font-size: 1.02rem;
}

.bottom-nav-button.active {
    color: #f2c200;
    background: rgb(242 194 0 / 0.08);
}

.app-toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.5rem;
    width: min(360px, calc(100vw - 1.5rem));
    z-index: 1400;
}

.app-toast {
    border: 1px solid #2e3646;
    border-left-width: 4px;
    border-radius: 12px;
    background: #1a1f29;
    box-shadow: 0 12px 24px rgb(0 0 0 / 0.28);
    color: #eef3fb;
    padding: 0.7rem 0.82rem;
    font-size: 0.84rem;
    line-height: 1.35;
    animation: appToastIn 0.2s ease;
    cursor: pointer;
}

.app-toast-info {
    border-left-color: #f2c200;
}

.app-toast-success {
    border-left-color: #4ade80;
}

.app-toast-error {
    border-left-color: #f87171;
}

.app-toast.is-hiding {
    animation: appToastOut 0.2s ease forwards;
}

.app-toast-text {
    display: block;
}

@keyframes appToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes appToastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.social-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(4.55rem + env(safe-area-inset-bottom, 0px));
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: #2ea4ff;
    color: white;
    font-size: 1.35rem;
    box-shadow: 0 16px 30px rgb(46 164 255 / 0.35);
    cursor: pointer;
    z-index: 90;
}

.social-fab:hover {
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .app {
        margin: 1rem auto;
        border-radius: 26px;
        overflow: hidden;
        min-height: calc(100vh - 2rem);
    }

    .social-fab {
        right: calc((100vw - 430px) / 2 + 1rem);
    }
}

.profile-stats-subtitle {
    color: #9ca9bb;
    font-size: 0.75rem;
    margin: 0.6rem 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-stats-empty {
    color: #7c879a;
    font-size: 0.85rem;
    padding: 0.55rem 0.1rem;
}

.profile-stats-places .profile-highlights,
.profile-stats-burgas .profile-highlights {
    margin-top: 0.2rem;
    gap: 0.4rem;
}

.profile-top-row {
    margin-top: 0.25rem;
    margin-bottom: 0.2rem;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.45rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
}

.profile-top-row::-webkit-scrollbar {
    display: none;
}

.profile-top-chip {
    flex: 0 0 128px;
    scroll-snap-align: start;
    border: 1px solid #2e3646;
    border-radius: 12px;
    background: #171d27;
    padding: 0.55rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 72px;
}

.profile-top-chip-title {
    color: #f1f5fb;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-top-chip-subtitle {
    color: #8a95a8;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-top-chip-metric {
    margin-top: auto;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.profile-badges-row {
    margin-top: 0.7rem;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
}

.profile-badges-row::-webkit-scrollbar {
    display: none;
}

.profile-badge-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 78px;
    height: 78px;
    border: 1px solid #2e3646;
    border-radius: 14px;
    background: #171d27;
    color: #9ca9bb;
    font-size: 0.68rem;
    text-align: center;
    padding: 0.4rem 0.35rem;
}

.profile-badge-chip i {
    font-size: 1.1rem;
    color: #6b7588;
}

.profile-badge-chip.locked {
    opacity: 0.78;
}

