
/* ==========================================
   DIGIMAGINE - COMPLETE RESPONSIVE STYLESHEET
   Desktop, Tablet and Mobile
========================================== */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    width: 100%;
    margin: 0;
    padding: 0 0 110px;
    overflow-x: hidden;
    background: #090711;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

/* ==========================================
   DIGIMAGINE ENTRANCE
========================================== */

.digimagine-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 92%;
    max-width: 1100px;
    margin: 24px auto;
    padding: 20px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #246c68;
    border-radius: 18px;
    background: linear-gradient(110deg, #17102d, #102b32, #17102d);
    background-size: 200% 100%;
    animation: entryGlow 6s ease infinite;
    box-shadow: 0 10px 35px rgba(0,0,0,0.3);
}

.digimagine-entry-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.digimagine-entry-text span {
    margin-bottom: 7px;
    color: #00dcc0;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 4px;
}

.digimagine-entry-text img {
    display: block;
    width: 310px;
    max-width: 100%;
    height: auto;
    max-height: 100px;
}

.digimagine-entry-text small {
    margin-top: 7px;
    color: #d0cddd;
}

.digimagine-entry-arrow {
    display: flex;
    align-items: center;
    color: #00dcc0;
    font-weight: bold;
}

.digimagine-entry-arrow span:last-child {
    margin-left: 10px;
    font-size: 28px;
}

@keyframes entryGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ==========================================
   MAIN PAGE
========================================== */

.dm-page {
    display: block;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 14px;
}

.dm-hero {
    width: 100%;
    padding: 24px 4px;
}

.dm-kicker {
    color: #00dcc0;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: bold;
    line-height: 1.8;
}

.dm-hero h1 {
    margin: 15px 0;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.dm-hero p {
    color: #aaa6bb;
    font-size: 17px;
    line-height: 1.7;
    overflow-wrap: break-word;
}

/* ==========================================
   BACK BUTTON
========================================== */

.dm-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 11px 15px;
    margin: 12px 0;
    color: #00dcc0;
    text-decoration: none;
    font-weight: bold;
    line-height: 1.5;
    border: 1px solid #246c68;
    border-radius: 10px;
    background: #10201f;
}

/* ==========================================
   PANELS
========================================== */

.dm-panel,
.dm-post {
    width: 100%;
    min-width: 0;
    margin-bottom: 16px;
    background: #151322;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 17px;
}

.dm-panel {
    padding: 16px;
}

/* ==========================================
   BUTTONS
========================================== */

.dm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: #00dcc0;
    color: #090711;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    line-height: 1.4;
    cursor: pointer;
    overflow-wrap: break-word;
}

.dm-btn:hover {
    background: #00f0d0;
}

.dm-btn.secondary {
    background: #201c32;
    color: #ffffff;
    border: 1px solid #403955;
}

.dm-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 15px;
}

.dm-actions button,
.dm-actions a {
    margin-right: 10px;
    margin-bottom: 8px;
}

/* ==========================================
   ERROR MESSAGES
========================================== */

.dm-error {
    color: #ffb4b4;
    background: #25131a;
    border: 1px solid #71313c;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

/* ==========================================
   CREATIVE FEED
========================================== */

.dm-feed {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.dm-post {
    display: block;
    overflow: hidden;
}

.dm-post-head {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 14px;
}

.dm-post-head > div {
    min-width: 0;
    flex: 1;
}

.dm-post-head a {
    display: inline-block;
    max-width: 100%;
    margin-left: 12px;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.dm-avatar {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #201c32;
}

.dm-post-head .dm-avatar {
    margin-right: 12px;
}

.dm-muted {
    color: #aaa6bb;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.dm-post-caption {
    width: 100%;
    padding: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

/* ==========================================
   MEDIA GALLERY
========================================== */

.dm-media-gallery {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: #05040a;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.dm-media-slide {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    overflow: hidden;
    scroll-snap-align: center;
}

.dm-media-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    margin: 0 auto;
    background: #05040a;
}

.dm-media-slide video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    margin: 0 auto;
    background: #05040a;
}

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

.dm-form {
    width: 100%;
    min-width: 0;
}

.dm-form label {
    display: block;
    margin: 14px 0 6px;
    color: #ded9ec;
    font-size: 13px;
    font-weight: bold;
}

.dm-form input:not([type="checkbox"]),
.dm-form textarea,
.dm-form select {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    color: #ffffff;
    background: #0e0b18;
    border: 1px solid #403955;
    border-radius: 10px;
    font-family: Arial, sans-serif;
}

.dm-form textarea {
    min-height: 110px;
    resize: vertical;
}

.dm-form input[type="file"] {
    width: 100%;
    max-width: 100%;
    color: #ffffff;
    background: transparent;
    border: 0;
}

.dm-upload-box {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 22px;
    margin-top: 12px;
    border: 1px dashed #00dcc0;
    border-radius: 13px;
    text-align: center;
    background: #10201f;
    cursor: pointer;
}

.dm-upload-box p {
    color: #aaa6bb;
    font-size: 13px;
    line-height: 1.6;
}

/* ==========================================
   UPLOAD PREVIEW
========================================== */

.dm-preview {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 14px;
}

.dm-preview img,
.dm-preview video {
    display: block;
    width: 48%;
    height: 170px;
    margin: 1%;
    background: #05040a;
    border-radius: 10px;
}

/* ==========================================
   BOTTOM NAVIGATION
========================================== */

.dm-bottom-nav {
    position: fixed;
    z-index: 5000;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    width: 100%;
    padding: 9px 10px;
    padding-bottom: calc(9px + env(safe-area-inset-bottom));
    background: #0c0a16;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.dm-bottom-nav a {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 58px;
    padding: 5px 2px;
    color: #bdb8ca;
    text-decoration: none;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    border-radius: 11px;
}

.dm-bottom-nav a.active {
    color: #00dcc0;
    background: #10201f;
}

.dm-bottom-nav .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 21px;
}

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

.dm-bottom-ai {
    position: relative;
}

.dm-ai-orbit {
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #00dcc0;
    border-right-color: #7654e8;
    animation: dmOrbit 2.5s linear infinite;
}

.dm-bottom-ai img {
    display: block;
    width: 23px;
    height: 23px;
}

@keyframes dmOrbit {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   EMPTY STATE
========================================== */

.dm-empty {
    padding: 30px 15px;
    color: #aaa6bb;
    text-align: center;
}

/* ==========================================
   PAGE TRANSITION
========================================== */

.dm-transition-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090711;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.45s ease, transform 0.65s ease;
}

.dm-transition-overlay.show {
    opacity: 1;
    transform: scale(1);
}

.dm-transition-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85%;
    animation: dmLogoReveal 0.8s ease both;
}

.dm-transition-content img {
    display: block;
    width: 100%;
    max-width: 450px;
    max-height: 180px;
}

.dm-transition-content span {
    margin-top: 15px;
    color: #00dcc0;
    letter-spacing: 3px;
    font-size: 11px;
    text-align: center;
}

@keyframes dmLogoReveal {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   TABLET
========================================== */

@media screen and (max-width: 768px) {

    .dm-page {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .dm-hero h1 {
        font-size: 32px;
    }

    .dm-media-slide img,
    .dm-media-slide video {
        max-height: 75vh;
    }

    .dm-post {
        border-radius: 15px;
    }

}

/* ==========================================
   MOBILE
========================================== */

@media screen and (max-width: 520px) {

    body {
        padding-bottom: 100px;
    }

    .digimagine-entry {
        width: 94%;
        margin: 16px auto;
        padding: 14px;
    }

    .digimagine-entry-text {
        max-width: 75%;
    }

    .digimagine-entry-text img {
        width: 220px;
    }

    .digimagine-entry-text span {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .digimagine-entry-arrow {
        font-size: 12px;
    }

    .dm-page {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .dm-hero {
        padding: 22px 4px;
    }

    .dm-kicker {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .dm-hero h1 {
        margin: 13px 0;
        font-size: 29px;
        line-height: 1.25;
    }

    .dm-hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    .dm-back {
        display: flex;
        width: 100%;
        padding: 12px;
        font-size: 14px;
        text-align: center;
    }

    .dm-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .dm-hero .dm-actions .dm-btn {
        display: flex;
        width: 100%;
        margin-right: 0;
    }

    .dm-post {
        width: 100%;
        margin-bottom: 18px;
        border-radius: 15px;
    }

    .dm-post-head {
        padding: 12px;
    }

    .dm-avatar {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
    }

    .dm-post-head a {
        margin-left: 0;
        font-size: 14px;
    }

    .dm-muted {
        font-size: 11px;
    }

    .dm-post-caption {
        padding: 12px;
        font-size: 14px;
        line-height: 1.7;
    }

    .dm-media-gallery {
        width: 100%;
        max-width: 100%;
    }

    .dm-media-slide {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
    }

    .dm-media-slide img {
        width: 100%;
        height: auto;
        max-height: 70vh;
    }

    .dm-media-slide video {
        width: 100%;
        height: auto;
        max-height: 70vh;
    }

    .dm-preview img,
    .dm-preview video {
        width: 48%;
        height: 130px;
    }

    .dm-upload-box {
        padding: 16px 10px;
    }

    .dm-actions button,
    .dm-actions a {
        width: 100%;
        margin-right: 0;
    }

    .dm-post > div:last-child {
        max-width: 100%;
    }

    .dm-post > div:last-child .dm-btn {
        max-width: 100%;
    }

    .dm-bottom-nav {
        padding: 7px 4px;
        padding-bottom: calc(7px + env(safe-area-inset-bottom));
    }

    .dm-bottom-nav a {
        min-height: 56px;
        font-size: 10px;
    }

    .dm-bottom-nav .nav-icon {
        width: 24px;
        height: 24px;
        font-size: 19px;
    }

    .dm-panel {
        padding: 13px;
    }

}

/* ==========================================
   VERY SMALL PHONES
========================================== */

@media screen and (max-width: 360px) {

    .dm-page {
        padding-left: 9px;
        padding-right: 9px;
    }

    .dm-hero h1 {
        font-size: 25px;
    }

    .dm-bottom-nav a {
        font-size: 9px;
    }

    .dm-post-head {
        padding: 10px;
    }

    .dm-post-caption {
        font-size: 13px;
    }

}


/* =====================================
   DIGIMAGINE ENTRANCE - FINAL SIZE FIX
===================================== */

.digimagine-entry {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 94% !important;
    max-width: 1100px !important;
    min-height: 150px !important;
    margin: 24px auto !important;
    padding: 20px !important;
    border: 1px solid #246c68 !important;
    border-radius: 20px !important;
    background: linear-gradient(110deg, #17102d, #102b32, #17102d) !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

.digimagine-entry-text {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

.digimagine-entry-text span {
    color: #00dcc0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 3px !important;
    margin-bottom: 10px !important;
}

.digimagine-entry-text img {
    display: block !important;
    width: 100% !important;
    max-width: 340px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    background: transparent !important;
}

.digimagine-entry-text small {
    display: block !important;
    margin-top: 10px !important;
    color: #d0cddd !important;
    font-size: 14px !important;
}

.digimagine-entry-arrow {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    color: #00dcc0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.digimagine-entry-arrow span:last-child {
    font-size: 28px !important;
    margin-left: 8px !important;
}

@media screen and (max-width: 600px) {

    .digimagine-entry {
        width: 94% !important;
        min-height: 145px !important;
        padding: 15px !important;
        gap: 8px !important;
    }

    .digimagine-entry-text {
        flex: 1 1 auto !important;
        max-width: none !important;
    }

    .digimagine-entry-text img {
        width: 100% !important;
        max-width: 260px !important;
        max-height: none !important;
    }

    .digimagine-entry-text span {
        font-size: 11px !important;
        letter-spacing: 2px !important;
    }

    .digimagine-entry-text small {
        font-size: 12px !important;
    }

    .digimagine-entry-arrow {
        font-size: 12px !important;
    }

    .digimagine-entry-arrow span:last-child {
        font-size: 23px !important;
        margin-left: 5px !important;
    }
}



/* CREATIVE PROFILE REDESIGN */

.dm-profile-hero {
    position: relative;
    padding: 30px;
    border: 1px solid rgba(0,220,192,.2);
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 0%, rgba(118,84,232,.20), transparent 38%),
        linear-gradient(145deg, #19172a, #0e111b);
    overflow: hidden;
}

.dm-profile-identity {
    display: flex;
    align-items: center;
    gap: 22px;
}

.dm-profile-avatar {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #00dcc0;
    background: #201d31;
}

.dm-profile-placeholder {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #00dcc0;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg,#24203c,#111722);
    border: 3px solid #00dcc0;
}

.dm-profile-name {
    margin: 0 0 5px;
    font-size: clamp(25px, 4vw, 36px);
    overflow-wrap: anywhere;
}

.dm-profile-username {
    color: #00dcc0;
    font-size: 14px;
    margin-bottom: 8px;
}

.dm-profile-category {
    color: #b9a8ff;
    font-size: 13px;
}

.dm-profile-bio {
    margin: 24px 0 10px;
    color: #e3e0ed;
    line-height: 1.8;
    white-space: pre-wrap;
}

.dm-profile-location {
    color: #aaa6ba;
    font-size: 13px;
}

.dm-profile-stats {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin: 25px 0;
}

.dm-profile-stat {
    display: block;
    text-decoration: none;
    color: #fff;
    padding: 17px;
    border-radius: 15px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
    text-align: center;
}

.dm-profile-stat strong {
    display: block;
    color: #00dcc0;
    font-size: 25px;
    margin-bottom: 5px;
}

.dm-profile-stat span {
    color: #c5c1d1;
    font-size: 12px;
}

.dm-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dm-profile-actions form {
    margin: 0;
}

.dm-alert {
    padding: 13px 16px;
    margin-bottom: 12px;
    color: #ffd8d8;
    background: rgba(190,45,70,.15);
    border: 1px solid rgba(255,100,120,.25);
    border-radius: 12px;
}

.dm-profile-upload {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.dm-profile-upload img,
#profilePlaceholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    background: #24203c;
    border: 2px solid #00dcc0;
}

#profilePlaceholder {
    display: grid;
    place-items: center;
    color: #00dcc0;
    font-size: 30px;
}

.dm-profile-upload small {
    display: block;
    color: #aaa6ba;
    margin-top: 7px;
}

.dm-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dm-check input {
    width: auto;
}

@media(max-width:600px) {
    .dm-profile-hero {
        padding: 20px;
    }

    .dm-profile-identity {
        align-items: flex-start;
        gap: 14px;
    }

    .dm-profile-avatar,
    .dm-profile-placeholder {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
    }

    .dm-profile-stats {
        gap: 8px;
    }

    .dm-profile-actions {
        flex-direction: column;
    }

    .dm-profile-actions .dm-btn {
        width: 100%;
        text-align: center;
    }

    .dm-profile-upload {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* DIGIMAGINE FEED LAYOUT */

.dm-post {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 19px;
    background: #151322;
    margin-bottom: 22px;
}

.dm-post-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 17px 8px;
}

.dm-feed-avatar-link {
    display: block;
    flex: 0 0 48px;
}

.dm-post-head .dm-avatar {
    width: 48px;
    height: 48px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00dcc0;
    background: #252039;
}

.dm-avatar-placeholder {
    display: grid;
    place-items: center;
    color: #00dcc0;
    font-weight: 800;
    font-size: 18px;
}

.dm-feed-identity {
    flex: 1;
    min-width: 0;
}

.dm-feed-name {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 750;
    margin-bottom: 4px;
}

.dm-feed-name:hover,
.dm-feed-view-profile:hover {
    color: #00dcc0;
}

.dm-feed-view-profile {
    color: #00dcc0;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.dm-feed-dot {
    padding: 0 4px;
}

.dm-post-caption {
    display: block;
    padding: 8px 17px 16px;
    margin: 0;
    color: #f0edf7;
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
    overflow-wrap: anywhere;
}

.dm-media-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 12px 13px;
    scroll-snap-type: x mandatory;
}

.dm-media-slide {
    flex: 0 0 min(100%, 520px);
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: 13px;
    background: #090711;
}

.dm-media-slide img,
.dm-media-slide video {
    width: 100%;
    max-height: 570px;
    display: block;
    object-fit: contain;
    background: #090711;
}

.dm-post-date {
    padding: 0 16px 14px;
    color: #9994a9;
    font-size: 11px;
}

.dm-circle-list {
    display: grid;
    gap: 12px;
}

.dm-circle-person {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: #151322;
    border: 1px solid rgba(255,255,255,.08);
}

.dm-circle-person img,
.dm-circle-initial {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 50px;
}

.dm-circle-initial {
    display: grid;
    place-items: center;
    background: #29213f;
    color: #00dcc0;
}

.dm-circle-person small {
    display: block;
    margin-top: 5px;
    color: #aaa6ba;
}

.dm-circle-view {
    margin-left: auto;
    color: #00dcc0;
    font-size: 12px;
    white-space: nowrap;
}

.dm-bottom-nav {
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 3px;
    padding: 10px 4px calc(10px + env(safe-area-inset-bottom));
    background: rgba(9,7,17,.97);
    border-top: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(15px);
}

.dm-bottom-nav a {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #aaa6ba;
    text-decoration: none;
    font-size: 10px;
}

.dm-bottom-nav a.active {
    color: #00dcc0;
}

.dm-bottom-nav .nav-icon {
    font-size: 21px;
    line-height: 1;
}

body {
    padding-bottom: 85px;
}

@media(max-width:400px) {
    .dm-bottom-nav a {
        font-size: 9px;
    }

    .dm-bottom-nav .nav-icon {
        font-size: 19px;
    }

    .dm-feed-view-profile {
        font-size: 10px;
    }
}


/* DIGIMAGINE BRAND HEADER */

.dm-brand-header {
    width: 100%;
    padding: 16px 20px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dm-brand-link img {
    display: block;
    width: 190px;
    max-width: 65vw;
    height: auto;
    object-fit: contain;
}

.dm-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* PROFILE ACTION ARRANGEMENT */

.dm-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.dm-circle-main-action {
    width: 100%;
}

.dm-circle-main-action .dm-btn,
.dm-profile-actions > .dm-btn {
    width: 100%;
}

.dm-profile-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dm-profile-secondary-actions .dm-btn {
    width: 100%;
    text-align: center;
}

@media(max-width:420px) {
    .dm-profile-secondary-actions {
        gap: 8px;
    }

    .dm-profile-secondary-actions .dm-btn {
        padding: 12px 7px;
        font-size: 12px;
    }
}


/* TWO-COLUMN CREATIVE PORTFOLIO */

.dm-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.dm-portfolio-grid .dm-post {
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
}

.dm-portfolio-grid .dm-post-caption {
    padding: 13px;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
}

.dm-portfolio-grid .dm-media-gallery {
    display: block;
    padding: 0;
    overflow: hidden;
}

.dm-portfolio-grid .dm-media-slide {
    width: 100%;
    max-width: none;
    border-radius: 0;
}

.dm-portfolio-grid .dm-media-slide img,
.dm-portfolio-grid .dm-media-slide video {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

@media(max-width:600px) {
    .dm-portfolio-grid {
        gap: 10px;
    }

    .dm-portfolio-grid .dm-media-slide img,
    .dm-portfolio-grid .dm-media-slide video {
        height: 175px;
    }
}


/* PROFILE TEXT ALIGNMENT */

.dm-profile-hero > .dm-profile-bio,
.dm-profile-hero > .dm-profile-location {
    margin-left: 0;
    text-align: left;
    max-width: 760px;
}

.dm-profile-hero > .dm-profile-bio {
    margin-top: 22px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.dm-profile-identity > div {
    min-width: 0;
}

.dm-profile-name {
    line-height: 1.2;
}

.dm-profile-category {
    line-height: 1.5;
}

.dm-profile-location {
    margin-top: 8px;
}

/* DIGIMAGINE TOP HEADER - CORRECTED */

.dm-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 12px 16px;
    box-sizing: border-box;
}

.dm-top-header .dm-brand-link {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.dm-top-header .dm-brand-link img {
    display: block;
    width: 105px;
    max-width: 28vw;
    height: auto;
    max-height: 45px;
    object-fit: contain;
}

.dm-top-header .dm-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    max-width: 65%;
    margin: 0;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
}

@media(max-width: 420px) {
    .dm-top-header {
        gap: 8px;
        padding: 10px;
    }

    .dm-top-header .dm-brand-link img {
        width: 90px;
        max-width: 26vw;
        max-height: 38px;
    }

    .dm-top-header .dm-back {
        max-width: 68%;
        padding: 9px 8px;
        font-size: 11px;
    }
}