@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --background: #101014;
    --background-soft: #15151c;
    --surface: #1b1b23;
    --surface-light: #20202a;
    --surface-hover: #272731;

    --gold: #f5c542;
    --gold-dark: #d08a10;
    --gold-hover: #ffd866;

    --text: #f5f5f7;
    --text-soft: #c3c3cc;
    --text-muted: #858592;

    --border: #30303b;
    --border-light: #3a3a46;

    --danger: #ef5350;
    --danger-dark: #b93432;
    --success: #43a66f;
    --warning: #e29d37;
    --info: #4e91d8;

    --shadow: 0 14px 35px rgba(0, 0, 0, 0.28);

    --radius-small: 8px;
    --radius: 12px;
    --radius-large: 18px;
    --radius-round: 999px;

    --page-width: 620px;
    --header-height: 62px;
}

/*
|--------------------------------------------------------------------------
| Reset
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at top,
            rgba(245, 197, 66, 0.05),
            transparent 340px
        ),
        var(--background);
    color: var(--text);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: break-word;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    color: var(--gold-hover);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
    font-weight: 600;
    line-height: 1.25;
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    background: var(--gold);
    color: #111;
}

/*
|--------------------------------------------------------------------------
| Main layout
|--------------------------------------------------------------------------
*/

.site-shell {
    min-height: 100vh;
}

.page-container {
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 18px 12px 90px;
}

.page-container-wide {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 12px 90px;
}

.page-heading {
    margin-bottom: 18px;
}

.page-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.page-subtitle {
    margin-top: 5px;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.section-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 500;
}

.center-content {
    text-align: center;
}

.hidden {
    display: none !important;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    background: rgba(16, 16, 20, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    width: 100%;
    max-width: 980px;
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.site-logo:hover {
    color: var(--gold-hover);
}

.site-logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(
        145deg,
        var(--gold),
        var(--gold-dark)
    );
    color: #111;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.header-link {
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-soft);
    border-radius: var(--radius-round);
    font-size: 13px;
    font-weight: 400;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.header-link:hover,
.header-link.active {
    background: var(--surface-light);
    color: var(--gold);
}

.header-icon {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-link {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--danger);
    color: white;
    border: 2px solid var(--background);
    border-radius: var(--radius-round);
    font-size: 9px;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Bottom navigation
|--------------------------------------------------------------------------
*/

.bottom-navigation {
    position: fixed;
    z-index: 1100;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(21, 21, 28, 0.97);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.bottom-navigation-inner {
    width: 100%;
    max-width: var(--page-width);
    height: 66px;
    margin: 0 auto;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.bottom-nav-link {
    position: relative;
    min-width: 58px;
    height: 54px;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    border-radius: var(--radius);
    font-size: 10px;
    font-weight: 400;
}

.bottom-nav-link:hover,
.bottom-nav-link.active {
    color: var(--gold);
    background: rgba(245, 197, 66, 0.06);
}

.bottom-nav-icon {
    font-size: 19px;
    line-height: 1;
}

.bottom-nav-badge {
    position: absolute;
    top: 3px;
    right: 10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--danger);
    color: white;
    border-radius: var(--radius-round);
    font-size: 9px;
}

/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/

.card {
    margin-bottom: 14px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.card-flat {
    box-shadow: none;
}

.card-header {
    margin: -2px 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.card-description {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

.card-divider {
    height: 1px;
    margin: 15px 0;
    background: var(--border);
}

/*
|--------------------------------------------------------------------------
| Authentication pages
|--------------------------------------------------------------------------
*/

.auth-page {
    width: 100%;
    min-height: 100vh;
    padding: 28px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 430px;
}

.auth-brand {
    margin-bottom: 22px;
    text-align: center;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--gold);
    font-size: 29px;
    font-weight: 600;
}

.auth-logo-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: linear-gradient(
        145deg,
        var(--gold),
        var(--gold-dark)
    );
    color: #111;
    border-radius: 50%;
    font-size: 21px;
    font-weight: 600;
}

.auth-tagline {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-card {
    padding: 22px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.auth-title {
    margin-bottom: 4px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.auth-subtitle {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.auth-footer {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/*
|--------------------------------------------------------------------------
| Forms
|--------------------------------------------------------------------------
*/

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 500;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: var(--background-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    font-size: 14px;
    font-weight: 400;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-control::placeholder,
.form-textarea::placeholder {
    color: #6f6f7a;
}

.form-control:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--border-light);
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    background: #181820;
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.1);
}

.form-control:disabled,
.form-select:disabled,
.form-textarea:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

.form-textarea-small {
    min-height: 76px;
}

.form-help {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 11px;
}

.form-error {
    margin: 5px 0 0;
    color: #ff8c89;
    font-size: 11px;
}

.input-group {
    position: relative;
}

.input-group .form-control {
    padding-right: 47px;
}

.input-action {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    background: transparent;
    color: var(--text-muted);
    border: 0;
    border-radius: 50%;
}

.input-action:hover {
    background: var(--surface-light);
    color: var(--gold);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.checkbox-row input[type='checkbox'] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--gold-dark);
}

.checkbox-label {
    color: var(--text-soft);
    font-size: 12px;
}

.character-counter {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 10px;
    text-align: right;
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.button {
    min-height: 42px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-round);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    transition:
        transform 0.15s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--border-light);
}

.button:active {
    transform: scale(0.98);
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.button-primary {
    background: linear-gradient(
        135deg,
        var(--gold),
        var(--gold-dark)
    );
    color: #121212;
    border-color: transparent;
}

.button-primary:hover {
    background: linear-gradient(
        135deg,
        var(--gold-hover),
        var(--gold)
    );
    color: #111;
}

.button-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold-dark);
}

.button-outline:hover {
    background: rgba(245, 197, 66, 0.08);
    color: var(--gold-hover);
}

.button-danger {
    background: rgba(239, 83, 80, 0.1);
    color: #ff8e8c;
    border-color: rgba(239, 83, 80, 0.35);
}

.button-danger:hover {
    background: rgba(239, 83, 80, 0.18);
    color: #ffaaa8;
}

.button-success {
    background: rgba(67, 166, 111, 0.12);
    color: #73d09c;
    border-color: rgba(67, 166, 111, 0.35);
}

.button-small {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 11px;
}

.button-large {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 14px;
}

.button-block {
    width: 100%;
}

.button-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/*
|--------------------------------------------------------------------------
| Alerts and flash messages
|--------------------------------------------------------------------------
*/

.alert {
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 12px;
}

.alert-success {
    background: rgba(67, 166, 111, 0.11);
    color: #8ad7ad;
    border-color: rgba(67, 166, 111, 0.3);
}

.alert-error {
    background: rgba(239, 83, 80, 0.1);
    color: #ff9e9c;
    border-color: rgba(239, 83, 80, 0.3);
}

.alert-warning {
    background: rgba(226, 157, 55, 0.1);
    color: #f1bd71;
    border-color: rgba(226, 157, 55, 0.3);
}

.alert-info {
    background: rgba(78, 145, 216, 0.1);
    color: #8ebce9;
    border-color: rgba(78, 145, 216, 0.3);
}

.error-list {
    margin: 0;
    padding-left: 18px;
}

.error-list li + li {
    margin-top: 4px;
}

/*
|--------------------------------------------------------------------------
| User avatars
|--------------------------------------------------------------------------
*/

.avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: cover;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 50%;
}

.avatar-small {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.avatar-medium {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
}

.avatar-large {
    width: 94px;
    height: 94px;
    flex-basis: 94px;
    border-width: 3px;
}

.avatar-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(
        145deg,
        #292932,
        #1b1b22
    );
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
}

.user-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-line-text {
    min-width: 0;
    flex: 1;
}

.user-display-name {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-username {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
|--------------------------------------------------------------------------
| Post composer
|--------------------------------------------------------------------------
*/

.post-composer {
    margin-bottom: 14px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.composer-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.composer-input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    background: var(--background-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 16px;
    outline: none;
    resize: vertical;
}

.composer-input:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.08);
}

.composer-actions {
    margin-top: 11px;
    padding-top: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--border);
}

.composer-tools {
    display: flex;
    align-items: center;
    gap: 5px;
}

.composer-tool {
    min-height: 34px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    color: var(--text-soft);
    border: 0;
    border-radius: var(--radius-round);
    font-size: 11px;
}

.composer-tool:hover {
    background: var(--surface-light);
    color: var(--gold);
}

.photo-preview-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.photo-preview-item {
    position: relative;
    overflow: hidden;
    background: var(--background-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.72);
    color: white;
    border: 0;
    border-radius: 50%;
}

/*
|--------------------------------------------------------------------------
| Wall posts
|--------------------------------------------------------------------------
*/

.post-card {
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.post-header {
    padding: 13px 14px 9px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.post-author {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-author-details {
    min-width: 0;
}

.post-author-name {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    color: var(--text-muted);
    font-size: 10px;
}

.post-menu {
    position: relative;
}

.post-menu-button {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--text-muted);
    border: 0;
    border-radius: 50%;
    font-size: 18px;
}

.post-menu-button:hover {
    background: var(--surface-light);
    color: var(--text);
}

.dropdown-menu {
    position: absolute;
    z-index: 30;
    top: 40px;
    right: 0;
    width: 170px;
    padding: 6px;
    background: #22222b;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dropdown-link {
    width: 100%;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-soft);
    border: 0;
    border-radius: var(--radius-small);
    font-size: 12px;
    text-align: left;
}

.dropdown-link:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.dropdown-link-danger {
    color: #ff9492;
}

.post-body {
    padding: 4px 14px 12px;
    color: var(--text);
    font-size: 13px;
    white-space: pre-wrap;
}

.post-photo-grid {
    display: grid;
    gap: 2px;
    background: var(--background);
}

.post-photo-grid.one-photo {
    grid-template-columns: 1fr;
}

.post-photo-grid.two-photos {
    grid-template-columns: repeat(2, 1fr);
}

.post-photo-grid.three-photos {
    grid-template-columns: repeat(2, 1fr);
}

.post-photo-grid.three-photos .post-photo:first-child {
    grid-row: span 2;
}

.post-photo-grid.four-photos {
    grid-template-columns: repeat(2, 1fr);
}

.post-photo {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    background: #08080b;
}

.post-photo img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    max-height: 620px;
    object-fit: cover;
}

.post-photo-grid.one-photo .post-photo img {
    object-fit: contain;
}

.post-stats {
    min-height: 39px;
    margin: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
}

.post-actions {
    padding: 5px 9px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.post-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: var(--text-muted);
    border: 0;
    border-radius: var(--radius-small);
    font-size: 11px;
}

.post-action:hover {
    background: var(--surface-light);
    color: var(--text);
}

.post-action.liked {
    color: var(--gold);
}

/*
|--------------------------------------------------------------------------
| Comments
|--------------------------------------------------------------------------
*/

.comments-section {
    padding: 0 13px 13px;
    border-top: 1px solid var(--border);
}

.comment-form {
    padding-top: 11px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.comment-input-wrap {
    position: relative;
    flex: 1;
}

.comment-input {
    width: 100%;
    min-height: 38px;
    max-height: 130px;
    padding: 9px 42px 9px 12px;
    background: var(--background-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 18px;
    outline: none;
    resize: none;
    font-size: 12px;
}

.comment-input:focus {
    border-color: var(--gold-dark);
}

.comment-submit {
    position: absolute;
    top: 3px;
    right: 4px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--gold);
    border: 0;
    border-radius: 50%;
}

.comment-submit:hover {
    background: var(--surface-light);
}

.comments-list {
    padding-top: 11px;
}

.comment-item {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.comment-content-wrap {
    min-width: 0;
    flex: 1;
}

.comment-bubble {
    padding: 8px 10px;
    background: var(--surface-light);
    border-radius: 13px;
}

.comment-author {
    color: var(--text);
    font-size: 11px;
    font-weight: 500;
}

.comment-body {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 11px;
    white-space: pre-wrap;
}

.comment-actions {
    margin: 4px 0 0 9px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text-muted);
    font-size: 9px;
}

.comment-action {
    padding: 0;
    background: transparent;
    color: inherit;
    border: 0;
    font-size: inherit;
}

.comment-action:hover,
.comment-action.active {
    color: var(--gold);
}

.comment-replies {
    margin-top: 9px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

/*
|--------------------------------------------------------------------------
| Profile
|--------------------------------------------------------------------------
*/

.profile-card {
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.profile-cover {
    position: relative;
    height: 170px;
    background:
        linear-gradient(
            135deg,
            rgba(245, 197, 66, 0.24),
            rgba(208, 138, 16, 0.06)
        ),
        var(--surface-light);
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-main {
    position: relative;
    padding: 0 16px 17px;
}

.profile-avatar-wrap {
    position: relative;
    width: fit-content;
    margin-top: -48px;
}

.profile-avatar {
    width: 98px;
    height: 98px;
    object-fit: cover;
    background: var(--surface-light);
    border: 4px solid var(--surface);
    border-radius: 50%;
}

.profile-actions {
    min-height: 48px;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.profile-name {
    margin: 7px 0 1px;
    font-size: 21px;
    font-weight: 600;
}

.profile-username {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.profile-bio {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    white-space: pre-wrap;
}

.profile-details {
    margin-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 13px;
    color: var(--text-muted);
    font-size: 11px;
}

.profile-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-stats {
    margin-top: 14px;
    padding-top: 13px;
    display: flex;
    gap: 22px;
    border-top: 1px solid var(--border);
}

.profile-stat {
    color: var(--text-muted);
    font-size: 11px;
}

.profile-stat strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}

.profile-tabs {
    margin-bottom: 14px;
    padding: 5px;
    display: flex;
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tab {
    min-width: max-content;
    padding: 8px 15px;
    color: var(--text-muted);
    border-radius: var(--radius-small);
    font-size: 11px;
}

.profile-tab:hover,
.profile-tab.active {
    background: var(--surface-light);
    color: var(--gold);
}

/*
|--------------------------------------------------------------------------
| User lists
|--------------------------------------------------------------------------
*/

.user-list {
    display: flex;
    flex-direction: column;
}

.user-list-item {
    padding: 11px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.user-list-item:first-child {
    padding-top: 0;
}

.user-list-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.user-list-main {
    min-width: 0;
    flex: 1;
}

/*
|--------------------------------------------------------------------------
| Notifications
|--------------------------------------------------------------------------
*/

.notification-item {
    margin-bottom: 8px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.notification-item.unread {
    background: rgba(245, 197, 66, 0.045);
    border-color: rgba(245, 197, 66, 0.22);
}

.notification-content {
    min-width: 0;
    flex: 1;
}

.notification-text {
    color: var(--text-soft);
    font-size: 12px;
}

.notification-time {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
}

/*
|--------------------------------------------------------------------------
| Empty states and loading
|--------------------------------------------------------------------------
*/

.empty-state {
    padding: 40px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    text-align: center;
}

.empty-state-icon {
    margin-bottom: 10px;
    color: var(--gold-dark);
    font-size: 38px;
}

.empty-state-title {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 500;
}

.empty-state-text {
    margin: 0 auto 15px;
    max-width: 340px;
    color: var(--text-muted);
    font-size: 12px;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    margin: 18px auto;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    overflow: hidden;
    background: var(--surface-light);
    border-radius: var(--radius-small);
    position: relative;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: skeleton-loading 1.3s infinite;
}

@keyframes skeleton-loading {
    to {
        transform: translateX(100%);
    }
}

/*
|--------------------------------------------------------------------------
| Modal
|--------------------------------------------------------------------------
*/

.modal-backdrop {
    position: fixed;
    z-index: 2000;
    inset: 0;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
}

.modal {
    width: 100%;
    max-width: 470px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.modal-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.modal-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--text-muted);
    border: 0;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--surface-light);
    color: var(--text);
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    border-top: 1px solid var(--border);
}

/*
|--------------------------------------------------------------------------
| Tables and admin
|--------------------------------------------------------------------------
*/

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: var(--surface);
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
    font-size: 11px;
}

.data-table th {
    color: var(--text-muted);
    font-weight: 500;
}

.data-table td {
    color: var(--text-soft);
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.status-badge {
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-round);
    font-size: 9px;
    font-weight: 500;
}

.status-active {
    background: rgba(67, 166, 111, 0.12);
    color: #77d19d;
}

.status-pending {
    background: rgba(226, 157, 55, 0.12);
    color: #efb965;
}

.status-banned,
.status-suspended {
    background: rgba(239, 83, 80, 0.12);
    color: #ff9693;
}

/*
|--------------------------------------------------------------------------
| Utility classes
|--------------------------------------------------------------------------
*/

.text-gold {
    color: var(--gold);
}

.text-muted {
    color: var(--text-muted);
}

.text-danger {
    color: #ff8c89;
}

.text-success {
    color: #72cf9b;
}

.text-small {
    font-size: 11px;
}

.text-center {
    text-align: center;
}

.margin-top {
    margin-top: 14px;
}

.margin-bottom {
    margin-bottom: 14px;
}

.no-margin {
    margin: 0;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-small {
    gap: 7px;
}

.gap {
    gap: 12px;
}

.separator {
    height: 1px;
    margin: 14px 0;
    background: var(--border);
}

/*
|--------------------------------------------------------------------------
| Tablet and desktop
|--------------------------------------------------------------------------
*/

@media (min-width: 600px) {
    body {
        font-size: 15px;
    }

    .page-container,
    .page-container-wide {
        padding-right: 18px;
        padding-left: 18px;
    }

    .auth-card {
        padding: 26px;
    }

    .form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-photo-grid {
        gap: 3px;
    }

    .post-photo {
        min-height: 230px;
    }

    .post-photo img {
        min-height: 230px;
    }

    .profile-cover {
        height: 215px;
    }
}

@media (min-width: 900px) {
    .bottom-navigation {
        display: none;
    }

    .page-container,
    .page-container-wide {
        padding-bottom: 35px;
    }

    .header-link-text {
        display: inline;
    }
}

/*
|--------------------------------------------------------------------------
| Small mobile screens
|--------------------------------------------------------------------------
*/

@media (max-width: 430px) {
    :root {
        --header-height: 57px;
    }

    .header-inner {
        padding: 0 9px;
    }

    .site-logo {
        font-size: 18px;
    }

    .site-logo-mark {
        width: 31px;
        height: 31px;
        font-size: 14px;
    }

    .header-link {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
    }

    .header-link-text {
        display: none;
    }

    .page-container,
    .page-container-wide {
        padding: 12px 8px 84px;
    }

    .card {
        padding: 14px;
        border-radius: 15px;
    }

    .post-card,
    .profile-card,
    .post-composer {
        border-radius: 15px;
    }

    .post-header {
        padding-right: 11px;
        padding-left: 11px;
    }

    .post-body {
        padding-right: 11px;
        padding-left: 11px;
    }

    .post-stats {
        margin-right: 11px;
        margin-left: 11px;
    }

    .post-photo {
        min-height: 150px;
    }

    .post-photo img {
        min-height: 150px;
    }

    .profile-cover {
        height: 145px;
    }

    .profile-main {
        padding-right: 13px;
        padding-left: 13px;
    }

    .profile-avatar {
        width: 88px;
        height: 88px;
    }

    .profile-avatar-wrap {
        margin-top: -43px;
    }

    .profile-actions {
        min-height: 43px;
    }

    .button {
        padding-right: 13px;
        padding-left: 13px;
        font-size: 12px;
    }

    .auth-page {
        padding: 18px 9px;
    }

    .auth-card {
        padding: 19px 14px;
    }
}

/*
|--------------------------------------------------------------------------
| Accessibility
|--------------------------------------------------------------------------
*/

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}






























/* ==========================================================================
   Compact Twunked landing page
   ========================================================================== */

.landing-page {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(245, 197, 66, 0.06),
            transparent 32%
        ),
        #101014;
}

.landing-shell {
    width: min(1040px, calc(100% - 24px));
    margin: 0 auto;
    padding: 20px 0;
}

.landing-hero {
    overflow: hidden;
    padding: 22px clamp(22px, 5vw, 52px) 42px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 25px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(245, 197, 66, 0.09),
            transparent 28%
        ),
        #15151c;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.landing-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 44px;
}

.landing-brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #f4f4f6;
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
}

.landing-brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(245, 197, 66, 0.45);
    border-radius: 13px;
    color: #17130a;
    background: linear-gradient(145deg, #ffe382, #f5a500);
    box-shadow: 0 9px 24px rgba(245, 155, 0, 0.16);
    font-size: 15px;
    font-weight: 700;
}

.landing-login-link {
    color: #f5c542;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

.landing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: clamp(30px, 6vw, 66px);
    align-items: center;
}

.landing-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 10px;
    border: 1px solid rgba(245, 197, 66, 0.14);
    border-radius: 999px;
    color: #d8b64f;
    background: rgba(245, 197, 66, 0.05);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-title {
    max-width: 560px;
    margin: 0 auto;
    color: #f5f5f7;
    font-size: clamp(31px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.07;
    letter-spacing: -0.038em;
    text-align: center;
}

.landing-title span {
    display: block;
    color: #d6ad39;
}

.landing-description {
    max-width: 510px;
    margin: 18px 0 0;
    color: #9b9ba4;
    font-size: 12px;
    line-height: 1.7;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.landing-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.landing-button:hover {
    transform: translateY(-2px);
}

.landing-button-primary {
    color: #17130a;
    background: linear-gradient(135deg, #f8d665, #f5a500);
    box-shadow: 0 12px 28px rgba(245, 155, 0, 0.16);
}

.landing-button-secondary {
    border-color: rgba(255, 255, 255, 0.1);
    color: #c7c7cd;
    background: rgba(255, 255, 255, 0.025);
}

.landing-note {
    margin: 15px 0 0;
    color: #777780;
    font-size: 11px;
}

.landing-panel {
    display: grid;
    gap: 9px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 20px;
    background: rgba(31, 31, 41, 0.88);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
}

.landing-panel-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 13px;
    background: rgba(12, 12, 17, 0.5);
}

.landing-panel-icon {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(245, 197, 66, 0.11);
    border-radius: 11px;
    color: #dcb541;
    background: rgba(245, 197, 66, 0.05);
}

.landing-panel-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.landing-panel-item h2 {
    margin: 1px 0 4px;
    color: #dcdce1;
    font-size: 11px;
    font-weight: 600;
}

.landing-panel-item p {
    margin: 0;
    color: #7d7d86;
    font-size: 9px;
    line-height: 1.5;
}

.landing-footer {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 20px 5px 4px;
    box-sizing: border-box;
    color: #6f6f78;
    font-size: 11px;
    text-align: center;
}


.landing-footer > p {
    width: 100%;
    margin: 0;
    text-align: center;
}





.landing-footer p {
    margin: 0;
}

.landing-footer-links {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
}

.landing-footer-links a {
    color: #777781;
    text-decoration: none;
}

.landing-footer-links a:hover {
    color: #d6ad39;
}

@media (max-width: 780px) {
    .landing-shell {
        width: min(620px, calc(100% - 18px));
        padding-top: 10px;
    }

    .landing-hero {
        padding: 18px 20px 24px;
        border-radius: 21px;
    }

    .landing-topbar {
        margin-bottom: 34px;
    }

    .landing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .landing-title {
        max-width: 520px;
        font-size: clamp(30px, 6vw, 42px);
    }

    .landing-panel {
        width: min(100%, 470px);
        margin: 0 auto;
    }
}

@media (max-width: 500px) {
    .landing-footer {
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
}

    .landing-hero {
        padding: 15px 14px 20px;
        border-radius: 18px;
    }

    .landing-topbar {
        margin-bottom: 29px;
    }

    .landing-brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .landing-brand {
        font-size: 17px;
    }

    .landing-title {
        font-size: clamp(28px, 8.7vw, 36px);
    }

    .landing-description {
        font-size: 11px;
    }

    .landing-actions {
        flex-direction: column;
    }

    .landing-button {
        width: 100%;
    }

    .landing-panel {
        padding: 12px;
        border-radius: 17px;
    }

    .landing-panel-item {
        padding: 11px;
    }

    .landing-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-button {
        transition: none;
    }

    .landing-button:hover {
        transform: none;
    }
}












/* ==========================================================================
   Landing-page community post slider
   Add this to the bottom of the landing-page CSS
   ========================================================================== */

.community-slider {
    margin-top: 15px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 21px;
    background: #15151c;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.community-slider-header {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.community-slider-label {
    display: block;
    margin-bottom: 4px;
    color: #d6ad39;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.community-slider-header h2 {
    margin: 0;
    color: #ededf0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.community-slider-controls {
    display: flex;
    gap: 7px;
}

.community-slider-controls button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: #d6d6dc;
    background: rgba(255, 255, 255, 0.025);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.community-slider-controls button:hover {
    border-color: rgba(245, 197, 66, 0.24);
    color: #f5c542;
    background: rgba(245, 197, 66, 0.04);
}

.community-slider-track {
    display: grid;
    grid-auto-columns: calc((100% - 24px) / 3);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    padding: 1px 1px 7px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.community-slider-track::-webkit-scrollbar {
    display: none;
}

.community-slide {
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: #1c1c24;
    scroll-snap-align: start;
}

.community-slide-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #111116;
}

.community-slide-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.community-slide:hover
.community-slide-photo img {
    transform: scale(1.025);
}

.community-slide-public {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #f0f0f2;
    background: rgba(14, 14, 18, 0.72);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.community-slide-content {
    padding: 12px;
}

.community-slide-author {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.community-slide-author > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.community-slide-author strong {
    overflow: hidden;
    color: #e3e3e7;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-slide-author span,
.community-slide-author time {
    color: #74747d;
    font-size: 10px;
}

.community-slide-author time {
    flex: 0 0 auto;
}

.community-slide-content > p {
    display: -webkit-box;
    min-height: 47px;
    overflow: hidden;
    margin: 10px 0 0;
    color: #a2a2aa;
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.community-slider-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 10px 2px 0;
    color: #777780;
    font-size: 9px;
}

.community-slider-footer a {
    flex: 0 0 auto;
    color: #d6ad39;
    font-weight: 600;
    text-decoration: none;
}

.community-slider-footer a:hover {
    color: #f5c542;
}

@media (max-width: 800px) {
    .community-slider-track {
        grid-auto-columns:
            calc((100% - 12px) / 2);
    }
}

@media (max-width: 520px) {
    .community-slider {
        padding: 14px;
        border-radius: 18px;
    }

    .community-slider-header h2 {
        font-size: 16px;
    }

    .community-slider-controls button {
        width: 32px;
        height: 32px;
    }

    .community-slider-track {
        grid-auto-columns: 84%;
    }

    .community-slider-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-slider-track {
        scroll-behavior: auto;
    }

    .community-slide-photo img {
        transition: none;
    }

    .community-slide:hover
    .community-slide-photo img {
        transform: none;
    }
}