* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

.font1 {
    font-family: "Noto Sans Thai", sans-serif;
}

.font1-bold {
    font-family: "Noto Sans Thai", sans-serif;
    font-weight: 700;
}

.font1-light {
    font-family: "Noto Sans Thai", sans-serif;
    font-weight: 300;
}

.font1-thin {
    font-family: "Noto Sans Thai", sans-serif;
    font-weight: 100;
}


.edge-tab {
    position: fixed;
    background: #000000;
    z-index: 1009;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 40px;
    gap: 24px;
    box-sizing: border-box;
}

.edge-tab i {
    font-size: 24px;
    color: #e5e5e5;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.edge-tab i:hover {
    transform: scale(1.1);
    color: #ffffff;
}

.edge-top {
    left: 0;
    right: 0;
    height: 50px;
    flex-direction: row;
    top: 0;
}

.nav-icon-wrap {
    position: relative;
    display: inline-flex;
}

.profile-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.my-profile-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.my-profile-link:visited,
.my-profile-link:hover,
.my-profile-link:focus,
.my-profile-link:active {
    color: inherit;
    text-decoration: none;
}

.my-profile-link i {
    font-size: 24px;
    display: block;
}

.notification-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 9px;
    height: 9px;
    background: #ff3333;
    border-radius: 50%;
    display: none;
}

.notification-dot.show {
    display: block;
}

.notification-mini {
    position: fixed;
    top: 60px;
    right: 18px;
    width: 240px;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 14px 12px;
    z-index: 1010;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .25s;
}

.notification-mini.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-mini h3 {
    margin-top: 0;
}

.notification-item-mini,
.notification-item-full {
    padding: 10px 10px 9px;
    border-radius: 10px;
    background: #f4f4f4;
    margin-bottom: 8px;
    line-height: 1.45;
    cursor: pointer;
}

.notification-item-mini span,
.notification-item-full span {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 4px;
}

.notification-more-btn {
    width: 100%;
    border: none;
    background: #2f2f2f;
    color: white;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.notification-blur {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(1.5px);
    opacity: 0;
    visibility: hidden;
    z-index: 1008;
}

.notification-blur.show {
    opacity: 1;
    visibility: visible;
}

.notification-full {
    position: fixed;
    top: 50px;
    right: 8px;
    width: min(300px, calc(100vw - 20px));
    height: calc(100vh - 58px);
    background: #ffffff;
    z-index: 1009;
    padding: 18px 18px 20px;
    box-shadow: -8px 0 28px rgba(0, 0, 0, .28);
    transform: translateX(100%);
    transition: .3s;
    overflow-y: auto;
}

.notification-full.show {
    transform: translateX(0);
}

.notification-full h2 {
    margin-top: 0;
}

.notification-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.notification-tabs button {
    border: none;
    background: #eeeeee;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.notification-tabs button.active {
    background: #2f2f2f;
    color: white;
}

.coming-soon-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: .2s;
}

.coming-soon-popup.show {
    opacity: 1;
    visibility: visible;
}

.coming-soon-box {
    background: #fff;
    padding: 25px 30px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.coming-soon-box button {
    margin-top: 15px;
    border: none;
    background: #2f2f2f;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
}

.notification-disabled {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-disabled::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 2px;
    background: #ff4b4b;
    border-radius: 2px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%) rotate(-38deg);
    transform-origin: center;
    pointer-events: none;
}

.settings-wrap {
    position: relative;
}

.settings-wrap i {
    cursor: pointer;
}

.settings-menu {
    position: absolute;
    top: 35px;
    right: 0;
    width: 190px;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .35);
    display: none;
    z-index: 5000;
}

.settings-menu.show {
    display: flex;
    flex-direction: column;
}

.settings-menu button {
    background: none;
    border: none;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
}

.settings-menu button:hover {
    background: #eeeeee;
}

.settings-menu hr {
    width: 100%;
    border: none;
    border-top: 1px solid #dddddd;
}

.lang-toggle {
    background: #f2f2f2;
    color: #000;
    border: none;
    border-radius: 18px;
    padding: 6px 16px;
    font-weight: 700;
    cursor: pointer;
}



/* Shared Appearance / Settings */
.settings-menu button.active,
.settings-menu button[data-theme-option].active {
    background: #2f2f2f;
    color: #ffffff;
}

.setting-state {
    float: right;
    font-size: 12px;
    opacity: .7;
    margin-left: 10px;
}

body.theme-light {
    background: #f5f5f5 !important;
    color: #000;
}

body.theme-dark {
    background: #242424 !important;
    color: #fff;
}

body.theme-dark .about-hero p,
body.theme-dark .about-version {
    color: #d0d0d0;
}

body.theme-light .about-title {
    color: #111;
}

body.theme-light .about-hero p,
body.theme-light .about-version {
    color: #555;
}

body.scene-off .acki-scene {
    display: none !important;
}

body.weather-off #weatherEvents {
    display: none !important;
}

body.theme-dark .post,
body.theme-dark .create-post,
body.theme-dark .comment-panel,
body.theme-dark .share-box,
body.theme-dark .notification-mini,
body.theme-dark .notification-full,
body.theme-dark .coming-soon-box,
body.theme-dark .post-menu {
    background: #f7f7f7;
    color: #111;
}

body.theme-dark .post-body,
body.theme-dark .post-body p,
body.theme-dark .post-name,
body.theme-dark .post-menu button,
body.theme-dark .comment-panel,
body.theme-dark .share-box {
    color: #111;
}

body.theme-dark .post-time,
body.theme-dark .create-status {
    color: #666;
}

body.theme-dark input,
body.theme-dark textarea {
    background: #fff;
    color: #111;
}
body.theme-dark .delete-post-modal {
    background: #f7f7f7;
    color: #111111;
}

body.theme-dark .delete-post-modal h2 {
    color: #111111;
}

body.theme-dark .delete-post-modal p {
    color: #555555;
}
.delete-post-modal {
    background: #ffffff;
    color: #111111;
}

.delete-post-modal h2 {
    color: #111111;
}

.delete-post-modal p {
    color: #555555;
}

body.theme-dark .delete-post-modal {
    background: #f7f7f7;
    color: #111111;
}

@media (max-width: 600px) {
    .edge-tab {
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 14px;
        gap: 14px;
        justify-content: space-between;
    }

    .edge-tab i {
        font-size: 20px;
        flex-shrink: 0;
    }

    .notification-disabled::after {
        width: 22px;
    }

    .settings-wrap {
        flex-shrink: 0;
    }

    .lang-toggle {
        flex-shrink: 0;
        min-width: 54px;
        padding: 9px 12px;
    }
}

.avatar{
    border-radius:50%;
    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;

    color:white;
    font-weight:700;
    flex-shrink:0;
}

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

.post-avatar{
    width:48px;
    height:48px;
}

.comment-avatar{
    width:40px;
    height:40px;
}

.profile-avatar{
    width:110px;
    height:110px;
}

.profile-card-avatar{
    width:36px;
    height:36px;
}