:root {
    --primary: #087df5;
    --primary-dark: #0564c8;
    --navy: #062c61;
    --navy-2: #0b3d78;
    --text: #14213d;
    --muted: #718096;
    --border: #dfe7f0;
    --bg: #f5f8fc;
    --card: #ffffff;
    --success: #16b87a;
    --danger: #e53935;
    --shadow: 0 10px 30px rgba(18, 45, 80, .08);
    --radius: 12px;
    --transition: .25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#actionBtn:disabled{
	opacity:0.5;
	cursor:not-allowed;
	background:silver;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

body.dark-mode {
    --text: #edf4ff;
    --muted: #aebbd0;
    --border: #273b55;
    --bg: #071322;
    --card: #0d1d31;
    --navy: #061a35;
    --navy-2: #0b294d;
    --shadow: 0 12px 35px rgba(0, 0, 0, .25);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.btn {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-light {
    background: #fff;
    color: var(--navy);
}

.btn-outline {
    border-color: var(--border);
    background: var(--card);
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.brand-icon {
    width: 35px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #0b86ff;
    font-size: 29px;
}

.brand h2,
.brand h1 {
    font-size: 18px;
    line-height: 1.05;
}

.brand p {
    font-size: 8px;
    letter-spacing: .3px;
    opacity: .75;
}

.brand-white {
    color: #fff;
}

.brand-white .brand-icon {
    color: #0795ff;
}

/* ==================== LANDING PAGE ==================== */

.landing-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 45%, rgba(0, 151, 255, .2), transparent 28%),
        linear-gradient(145deg, #02050d, #031a3b 55%, #021125);
}

.landing-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 25px;
}

.landing-card {
    width: min(560px, 100%);
    min-height: 350px;
    padding: 55px 50px;
    border: 1px solid rgba(0, 190, 255, .25);
    border-radius: 15px;
    background: rgba(4, 19, 42, .72);
    box-shadow: 0 20px 80px rgba(0, 132, 255, .12);
    text-align: center;
    color: #fff;
}

.brand-large {
    justify-content: center;
}

.brand-large .brand-icon {
    font-size: 43px;
}

.brand-large h1 {
    font-size: 42px;
}

.brand-large h1 span {
    color: #04c4ff;
}

.brand-large p {
    font-size: 12px;
    margin-top: 5px;
}

.landing-loader {
    margin: 45px auto 30px;
}

.loader-line {
    height: 4px;
    max-width: 270px;
    margin: auto;
    background: rgba(255,255,255,.18);
    overflow: hidden;
    border-radius: 10px;
}

.loader-line span {
    display: block;
    height: 100%;
    width: 52%;
    background: #08c5ff;
    animation: load 1.7s infinite ease-in-out;
}

.landing-loader p {
    font-size: 12px;
    margin-top: 10px;
    opacity: .8;
}

.landing-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ==================== AUTH PAGES ==================== */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(350px, 1fr) minmax(450px, 1.15fr);
    background: var(--bg);
}

.auth-promo {
    min-height: 100vh;
    color: #fff;
    background:
        radial-gradient(circle at 50% 55%, rgba(0, 150, 255, .3), transparent 27%),
        linear-gradient(150deg, #062b60, #041a3b);
    padding: 35px clamp(30px, 5vw, 70px);
    display: flex;
    align-items: center;
}

.promo-content {
    width: min(520px, 100%);
    margin: auto;
}

.promo-copy {
    margin-top: 80px;
}

.promo-copy h1 {
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.1;
}

.promo-copy p {
    max-width: 380px;
    margin-top: 18px;
    color: #d4e3f7;
}

.promo-art {
    height: 220px;
    margin: 30px 0;
    position: relative;
    display: grid;
    place-items: center;
}

.phone-shape {
    width: 130px;
    height: 205px;
    border: 7px solid #0c8eff;
    border-radius: 25px;
    transform: rotate(-12deg);
    background: linear-gradient(145deg, #173d70, #0a2448);
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
    display: grid;
    place-items: center;
    position: relative;
}

.phone-shape i:first-child {
    font-size: 75px;
    color: #d6edff;
}

.phone-shape i:last-child {
    position: absolute;
    bottom: 25px;
    color: #12d7a0;
    font-size: 30px;
}

.shape {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    position: absolute;
}

.shape-one { background: #0ce0ff; left: 20%; top: 20%; transform: rotate(25deg); }
.shape-two { background: #16ce87; right: 22%; top: 15%; transform: rotate(35deg); }
.shape-three { background: #167df5; left: 23%; bottom: 15%; transform: rotate(45deg); }

.promo-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.2);
    padding-top: 20px;
    font-size: 12px;
}

.promo-features span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-form-panel {
    min-height: 100vh;
    background: var(--card);
    display: grid;
    /* grid-template-columns: minmax(320px, 1fr) minmax(260px, .8fr); */
}

.auth-form-wrap {
    width: min(450px, 100%);
    padding: 70px 35px;
    margin: auto;
}

.mobile-brand {
    display: none;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h1 {
    font-size: 28px;
}

.auth-heading p {
    color: var(--muted);
    font-size: 13px;
}

.auth-heading.center {
    text-align: center;
}

.auth-form-wrap form,
.simple-auth-card form {
    display: grid;
    gap: 8px;
}

label {
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
}

label i {
    color: var(--primary);
    margin-right: 5px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    border-radius: 7px;
    padding: 12px 13px;
    outline: none;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8,125,245,.1);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: 0;
    background: transparent;
    color: var(--muted);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0 12px;
    font-size: 11px;
}

.form-row a,
.auth-footer a,
.back-link,
.profile-tabs a {
    color: var(--primary);
    font-weight: 700;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-weight: 500;
}

.checkbox-label input {
    width: 15px;
    height: 15px;
}

.or-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--muted);
    margin: 18px 0;
    font-size: 12px;
}

.or-divider::before,
.or-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

.auth-footer {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    margin-top: 22px;
}

.login-image {
    min-height: 100%;
    background: #edf4fb;
    overflow: hidden;
}

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

.simple-auth-page {
    min-height: 100vh;
    background: var(--bg);
    display: grid;
    place-items: center;
    padding: 25px;
}

.simple-auth-card {
    width: min(550px, 100%);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px 55px 30px;
    box-shadow: var(--shadow);
}

.register-card {
    width: min(650px, 100%);
}

.back-link {
    font-size: 11px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-bottom: 10px;
}

.auth-brand-center {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.profile-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.avatar-upload {
    margin: 0;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #edf3fa;
    position: relative;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.avatar-upload input {
    display: none;
}

.avatar-upload > span:first-of-type {
    font-size: 25px;
    color: #9aabba;
}

.avatar-upload i:last-child {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--text);
    color: var(--card);
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 9px;
}

.profile-upload strong,
.profile-upload small {
    display: block;
    font-size: 10px;
}

.profile-upload small {
    color: var(--muted);
}

.phone-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 7px;
}

.conditional-fields {
    display: none;
}

.conditional-fields.show {
    display: grid;
    gap: 8px;
}

.forgot-card {
    width: min(550px, 100%);
    text-align: left;
}

.forgot-icon {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: #eaf3ff;
    margin: 20px auto;
    display: grid;
    place-items: center;
    color: var(--primary);
    position: relative;
    font-size: 45px;
}

.forgot-icon i:last-child {
    position: absolute;
    font-size: 22px;
    bottom: 19px;
    right: 15px;
}

/* ==================== APP ==================== */

.topbar {
    height: 64px;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar .brand {
    flex: 0 0 auto;
}

.top-search {
    width: min(430px, 45vw);
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8295ae;
    font-size: 12px;
}

.top-search input {
    height: 36px;
    padding: 0 14px 0 35px;
    border: 0;
    border-radius: 6px;
    color: #182b44;
    background: #fff;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    border: 0;
    background: transparent;
    color: inherit;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.icon-btn:hover {
    background: rgba(255,255,255,.1);
}

.mini-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.mini-profile > i {
    font-size: 9px;
}

.avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3a45d, #7b4f37);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
}

.avatar.small {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 8px;
}

.mobile-menu-btn {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 20px;
}

.app-layout {
    min-height: calc(100vh - 64px);
    display: flex;
}

.sidebar {
    width: 210px;
    background: var(--card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 18px 10px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
}

.side-nav {
    display: grid;
    gap: 4px;
}

.side-nav a,
.logout-link {
    padding: 11px 12px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 12px;
    color: var(--muted);
}

.side-nav a i,
.logout-link i {
    width: 17px;
    text-align: center;
}

.side-nav a:hover,
.side-nav a.active {
    color: var(--primary);
    background: #edf5ff;
}

.dark-mode .side-nav a:hover,
.dark-mode .side-nav a.active {
    background: #102944;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.logout-link:hover {
    color: var(--danger);
    background: rgba(229,57,53,.08);
}

.feed-main,
.profile-main,
.create-main,
.post-main {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 25px;
}

.feed-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.market-search {
    flex: 1;
    position: relative;
}

.market-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #91a1b5;
}

.market-search input {
    padding-left: 40px;
    height: 44px;
}

.category-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 3px;
}

.category {
    white-space: nowrap;
    border: 1px solid var(--border);
    background: var(--card);
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--muted);
}

.category.active,
.category:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: 0 3px 12px rgba(18,45,80,.04);
}

.product-image {
    display: block;
    aspect-ratio: 1.35;
    overflow: hidden;
    background: #eef3f8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-info {
    padding: 12px;
}

.product-info h3 {
    font-size: 14px;
    margin-bottom: 3px;
}

.product-info > strong {
    color: var(--success);
    font-size: 14px;
}

.seller {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 9px;
}

.seller span:last-child {
    margin-left: auto;
}

.whatsapp-btn {
    min-height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    background: var(--success);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.profile-btn {
    display: flex;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px;
    margin-top: 7px;
    font-size: 10px;
    color: var(--muted);
}

/* ==================== PROFILE ==================== */

.profile-main {
    max-width: 850px;
}

.profile-header-card,
.about-card,
.comments-card,
.post-detail-card,
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.profile-header-card {
    margin-top: 12px;
    padding: 25px;
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

.large-avatar {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f4b17a, #734a35);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.profile-details h1 {
    font-size: 23px;
}

.verified {
    color: #0d8cf7;
    font-size: 15px;
}

.profile-details p {
    color: var(--muted);
    font-size: 12px;
}

.phone-link {
    color: var(--success);
    font-size: 11px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 25px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.profile-stats div {
    padding: 12px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.profile-stats div:last-child {
    border-right: 0;
}

.profile-stats strong,
.profile-stats span {
    display: block;
}

.profile-stats strong {
    font-size: 14px;
}

.profile-stats span {
    font-size: 10px;
    color: var(--muted);
}

.message-btn {
    width: 260px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
}

.profile-tabs {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    border-bottom: 1px solid var(--border);
}

.profile-tabs a {
    padding: 10px 5px;
    color: var(--muted);
    font-size: 12px;
    position: relative;
}

.profile-tabs a.active {
    color: var(--primary);
}

.profile-tabs a.active::after {
    content: "";
    position: absolute;
    height: 2px;
    background: var(--primary);
    bottom: -1px;
    left: 0;
    right: 0;
}

.profile-listings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.mini-product {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 9px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.mini-product img {
    width: 70px;
    height: 62px;
    object-fit: cover;
    border-radius: 6px;
}

.mini-product h3 {
    font-size: 12px;
}

.mini-product strong {
    color: var(--success);
    font-size: 11px;
}

.about-card {
    margin-top: 15px;
    padding: 20px;
}

.about-card h2 {
    font-size: 16px;
    margin-bottom: 6px;
}

.about-card p {
    color: var(--muted);
    font-size: 12px;
}

/* ==================== CREATE POST ==================== */

.create-main {
    max-width: 800px;
}

.form-card {
    padding: 25px;
    margin-top: 12px;
}

.form-card-heading {
    margin-bottom: 20px;
}

.form-card-heading h1 {
    font-size: 23px;
}

.form-card-heading p {
    color: var(--muted);
    font-size: 12px;
}

.form-card form {
    display: grid;
    gap: 8px;
}

.upload-layout {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 12px;
    margin-bottom: 10px;
}

.image-drop-zone {
    min-height: 150px;
    border: 1.5px dashed #b8c7d8;
    border-radius: 8px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    cursor: pointer;
    color: var(--muted);
}

.image-drop-zone input {
    display: none;
}

.image-drop-zone i {
    font-size: 28px;
    color: var(--primary);
}

.image-drop-zone strong {
    font-size: 11px;
}

.image-drop-zone span,
.image-drop-zone small {
    font-size: 9px;
}

.upload-preview {
    position: relative;
    height: 150px;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.upload-preview button {
    position: absolute;
    right: 5px;
    top: 5px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    color: #fff;
    width: 23px;
    height: 23px;
}

/* ==================== POST + COMMENTS ==================== */

.post-main {
    max-width: 1000px;
}

.post-detail-card {
    margin-top: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.post-image-large {
    min-height: 450px;
    background: #edf2f7;
}

.post-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-detail-content {
    padding: 35px;
}

.post-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 10px;
}

.badge {
    background: #e9f3ff;
    color: var(--primary);
    padding: 5px 9px;
    border-radius: 20px;
    font-weight: 700;
}

.post-detail-content h1 {
    font-size: 30px;
    margin-top: 18px;
}

.post-price {
    color: var(--success);
    font-size: 22px;
    font-weight: 800;
    margin-top: 4px;
}

.post-description {
    color: var(--muted);
    font-size: 13px;
    margin: 15px 0 25px;
}

.seller-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.seller-card strong {
    font-size: 12px;
}

.seller-card p,
.seller-card small {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.seller-card > a {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
}

.whatsapp-large {
    width: 100%;
    margin-top: 15px;
    background: var(--success);
    color: #fff;
}

.comments-card {
    margin-top: 15px;
    padding: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 17px;
}

.section-title span {
    font-size: 10px;
    color: var(--muted);
}

.comment {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.comment strong,
.comment small {
    font-size: 11px;
}

.comment small {
    color: var(--muted);
    margin-left: 8px;
}

.comment p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}

.comment-form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.comment-form textarea {
    resize: none;
    min-height: 45px;
}

.send-comment {
    color: #fff;
    background: var(--primary);
}

.send-comment:hover {
    background: var(--primary-dark);
}

/* ==================== ANIMATION ==================== */

@keyframes load {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(90%); }
    100% { transform: translateX(190%); }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1100px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-promo {
        display: none;
    }

    .auth-form-panel {
        grid-template-columns: 1fr;
    }

    .login-image {
        display: none;
    }

    .auth-form-wrap {
        width: min(470px, 100%);
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 75px;
    }

    .side-nav a span,
    .side-nav a:not(.active)::after {
        display: none;
    }

    .side-nav a,
    .logout-link {
        justify-content: center;
    }

    .side-nav a {
        font-size: 0;
    }

    .side-nav a i {
        font-size: 16px;
    }

    .logout-link {
        font-size: 0;
    }

    .logout-link i {
        font-size: 16px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-detail-card {
        grid-template-columns: 1fr;
    }

    .post-image-large {
        min-height: 330px;
    }
}

@media (max-width: 650px) {
    .topbar {
        height: 58px;
        padding: 0 12px;
        gap: 8px;
    }

    .topbar .brand h2 {
        font-size: 14px;
    }

    .topbar .brand p {
        display: none;
    }

    .top-search {
        width: auto;
        flex: 1;
        margin: 0 3px;
    }

    .top-search input {
        height: 34px;
    }

    .mini-profile span:not(.avatar),
    .mini-profile > i {
        display: none;
    }

    .mobile-menu-btn {
        display: grid;
        place-items: center;
    }

    .app-layout {
        min-height: calc(100vh - 58px);
    }

    .sidebar {
        position: fixed;
        left: -220px;
        top: 58px;
        width: 210px;
        z-index: 15;
        transition: left .25s ease;
        height: calc(100vh - 58px);
    }

    body.menu-open .sidebar {
        left: 0;
    }

    .side-nav a {
        justify-content: flex-start;
        font-size: 12px;
    }

    .side-nav a i,
    .logout-link i {
        font-size: 14px;
    }

    .logout-link {
        justify-content: flex-start;
        font-size: 12px;
    }

    .feed-main,
    .profile-main,
    .create-main,
    .post-main {
        padding: 15px;
    }

    .feed-toolbar {
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .product-info {
        padding: 9px;
    }

    .seller span:last-child {
        display: none;
    }

    .profile-listings {
        grid-template-columns: 1fr;
    }

    .simple-auth-page {
        padding: 10px;
    }

    .simple-auth-card {
        padding: 15px 20px 25px;
    }

    .register-card {
        width: 100%;
    }

    .landing-card {
        padding: 45px 20px;
    }

    .brand-large h1 {
        font-size: 35px;
    }

    .landing-actions {
        flex-direction: column;
    }

    .post-detail-content {
        padding: 20px;
    }

    .post-image-large {
        min-height: 260px;
    }

    .upload-layout {
        grid-template-columns: 1fr;
    }

    .upload-preview {
        width: 100px;
    }

    .profile-top {
        align-items: flex-start;
    }

    .profile-details h1 {
        font-size: 19px;
    }

    .comment-form {
        grid-template-columns: auto 1fr;
    }

    .send-comment {
        grid-column: 2;
        justify-self: end;
    }
}

@media (max-width: 420px) {
    .topbar .brand-icon {
        font-size: 24px;
        width: 28px;
    }

    .topbar .brand h2 {
        font-size: 12px;
    }

    .theme-toggle {
        width: 30px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .profile-stats strong {
        font-size: 12px;
    }

    .profile-stats span {
        font-size: 8px;
    }

    .auth-form-wrap {
        padding: 35px 20px;
    }
}
































