* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.discord-iframe {
    margin-top: -60px;    
    height: 400px;
}

body {
    background-color: #0d0204;
    color: #f5f5f5;
    font-family: 'Montserrat', sans-serif;    
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    filter: blur(8px);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 2, 4, 0.5) 0%, rgba(13, 2, 4, 0.85) 100%);
    z-index: -2;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 2px solid rgba(128, 0, 32, 0.3);
    background-color: rgba(13, 2, 4, 0.8);
    backdrop-filter: blur(8px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-link {
    font-family: 'Kanit', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(128, 0, 32, 0.6);
    margin-right: 15px;
}
.hr-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; display: block;
    border: 2px solid #800020;
    box-shadow: 0 0 10px rgba(128, 0, 32, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hr-avatar:hover { transform: scale(1.08); box-shadow: 0 0 16px rgba(255, 51, 102, 0.8); }
.auth-link {
    font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 1rem;
    text-decoration: none; letter-spacing: 1px; padding: 7px 16px;
    border-radius: 6px; transition: all 0.25s ease;
}

.auth-link.login { color: #cfcfcf; }
.auth-link.login:hover { color: #fff; }
.auth-link.register {
    color: #fff; background: #800020;
    border: 1px solid rgba(255, 0, 64, 0.3);
    box-shadow: 0 0 12px rgba(128, 0, 32, 0.4);
}
.auth-link.register:hover { background: #b3002d; box-shadow: 0 0 18px rgba(255, 0, 64, 0.6); }

.nav-item {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #a3a3a3;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-item:hover, .nav-item.active {
    color: #800020;
    text-shadow: 0 0 10px rgba(128, 0, 32, 0.8);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #800020;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}
.nav-item a, 
.nav-item a:visited, 
.nav-item a:hover, 
.nav-item a:active,
.nav-item a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.profile-nav-item {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #e6e6e6;
    text-decoration: none;
    position: relative;
    transition: color 0.3s, text-shadow 0.3s;

    display: inline-flex;
    align-items: center;
}

.profile-nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #800020;
    transition: width 0.3s ease;
}

.profile-nav-item:hover, .profile-nav-item.active {
    color: #800020;
    text-shadow: 0 0 10px rgba(128, 0, 32, 0.8);
}

.profile-nav-item a:visited,
.profile-nav-item a:hover,
.profile-nav-item a:active,
.profile-nav-item a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.profile-nav-item .user-login {
    margin-right: 12px !important;
    line-height: 1 !important;
}

.profile-nav-item .hr-avatar {
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.discord-widget-box {
    display: inline-block;
    margin-top: 30px;
    border: 2px solid #800020;
    box-shadow: 0 0 20px rgba(128, 0, 32, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.profile-btn {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #800020;
    padding: 8px 18px;
    border-radius: 4px;
    background: rgba(128, 0, 32, 0.1);
    box-shadow: 0 0 10px rgba(128, 0, 32, 0.3);
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: #800020;
    box-shadow: 0 0 20px rgba(128, 0, 32, 0.7);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #800020;
    box-shadow: 0 0 10px rgba(128, 0, 32, 0.5);
    display: none;
    object-fit: cover;
}

.main-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.main-title {
    font-family: 'Kanit', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    letter-spacing: 3px;
    color: #ffffff;
    line-height: 1.1;
    animation: pulse 3s infinite alternate;
}

.main-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: #e0e0e0;
    margin-top: 10px;
    margin-bottom: 45px;
}

.media-box {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 50px auto;
    border: 2px solid #800020;
    box-shadow: 0 0 25px rgba(128, 0, 32, 0.4);
    background-color: rgba(13, 2, 4, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.media-placeholder {
    color: #555;
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 20px;
}

.author-box {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(13, 2, 4, 0.8);
    border: 1px solid rgba(128, 0, 32, 0.3);
    padding: 12px 25px;
    border-radius: 30px;
    text-align: left;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(128, 0, 32, 0.8));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.kefir-image {
    width: 60px;
    height: 80px;
}

.author-box:hover .author-avatar {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 0 20px rgba(128, 0, 32, 1));
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    position: center;
    color: #ffffff;
    padding-bottom: 1px;
    margin-bottom: 3px;
}

.author-text {
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 1px;
}

.media-box {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 50px auto;
    border: 2px solid #800020;
    box-shadow: 0 0 25px rgba(128, 0, 32, 0.4);
    background-color: #000000;
    border-radius: 4px;
    position: relative; 
    display: flex;
    align-items: center;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 2, 4, 0.7);
    border: 1px solid #800020;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 4px;
    user-select: none;
}

.slider-btn:hover {
    background: #800020;
    box-shadow: 0 0 15px rgba(128, 0, 32, 0.8);
    color: #ffffff;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 15px rgba(128, 0, 32, 0.5);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 30px rgba(128, 0, 32, 0.9), 0 0 10px rgba(255, 255, 255, 0.1);
        transform: scale(1.02);
    }
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo-link {
    font-family: 'Kanit', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(128, 0, 32, 0.6);
}

.nav-links-center {
    display: flex;
    align-items: center;
    gap: 35px;
    justify-content: center;
}

.nav-item {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #a3a3a3;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-item:hover, .nav-item.active {
    color: #800020;
    text-shadow: 0 0 10px rgba(128, 0, 32, 0.8);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #800020;
    transition: width 0.3s ease;
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.purchase-container {
    max-width: 900px;
    width: 100%;
    margin: 120px auto 50px auto;
    padding: 0 20px;
}

.discord-style-box {
    background: rgba(13, 2, 4, 0.9);
    border: 1px solid rgba(128, 0, 32, 0.25);
    border-radius: 12px;
    padding: 40px;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.discord-main-title {
    font-family: 'Kanit', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.discord-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.code-price-list, .code-additional {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.code-line {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    background: #140306;
    border: 1px solid rgba(128, 0, 32, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    width: max-content;
    max-width: 100%;
    color: #e0e0e0;
}

.highlight {
    color: #ffffff;
    font-weight: bold;
}

.price {
    background: #26070e;
    color: #ff3366;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid rgba(128, 0, 32, 0.4);
}

.beta-line {
    width: 100%;
    display: block;
    line-height: 1.6;
}

.highlight-beta {
    color: #b3b3b3;
    font-weight: bold;
}

.beta-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    margin-left: 5px;
}

.payment-method-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 3, 6, 0.4);
    border-bottom: 1px solid rgba(128, 0, 32, 0.15);
    padding: 15px 0;
    gap: 20px;
}

.code-inline-text {
    font-family: 'Courier New', Courier, monospace;
    background: #140306;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    color: #cccccc;
    font-size: 0.95rem;
}

.payment-icons {
    display: flex;
    gap: 10px;
}

.pay-icon {
    width: 38px;
    height: 38px;
    background: #140306;
    border: 1px solid rgba(128, 0, 32, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pay-icon svg {
    width: 20px;
    height: 20px;
    fill: #800020;
    filter: drop-shadow(0 0 5px rgba(128, 0, 32, 0.5));
}

.pay-icon:hover {
    transform: scale(1.08);
    border-color: #ff3366;
    box-shadow: 0 0 12px rgba(128, 0, 32, 0.8);
}

.pay-icon:hover svg {
    fill: #ff3366;
}

.kz-icon {
    font-family: 'Kanit', sans-serif;
    font-weight: 900;
    color: #800020;
    font-size: 0.95rem;
    text-shadow: 0 0 5px rgba(128, 0, 32, 0.5);
    user-select: none;
}

.kz-icon:hover {
    color: #ff3366;
}

.tg-bot-action {
    margin-top: 40px;
    text-align: center;
}

.telegram-purchase-btn {
    display: inline-block;
    width: 100%;
    padding: 15px 0;
    background: #800020;
    border: 1px solid rgba(255, 0, 64, 0.3);
    color: #ffffff;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(128, 0, 32, 0.4);
    transition: all 0.3s ease;
}

.telegram-purchase-btn:hover {
    background: #b3002d;
    box-shadow: 0 0 30px rgba(255, 0, 64, 0.6);
    transform: scale(1.01);
}

        :root {
            --kv-wine: #800020;
            --kv-wine-soft: rgba(128, 0, 32, 0.4);
            --kv-accent: #ff3366;
            --kv-line: #140306;
        }
        .profile-wrap {
            max-width: 760px;
            width: 100%;
            margin: 110px auto 60px auto;
            padding: 0 20px;
        }
        .profile-card {
            background: rgba(13, 2, 4, 0.92);
            border: 1px solid rgba(128, 0, 32, 0.25);
            border-radius: 14px;
            padding: 34px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
        }
        .profile-head {
            display: flex;
            align-items: center;
            gap: 22px;
            padding-bottom: 24px;
            margin-bottom: 24px;
            border-bottom: 1px solid rgba(128, 0, 32, 0.25);
        }
        .avatar-edit {
            position: relative;
            width: 96px;
            height: 96px;
            flex-shrink: 0;
            cursor: pointer;
        }
        .avatar-edit img {
            width: 96px;
            height: 96px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--kv-wine);
            box-shadow: 0 0 18px rgba(128, 0, 32, 0.6);
        }
        .avatar-edit .avatar-overlay {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.55);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.72rem;
            color: #fff;
            opacity: 0;
            transition: opacity 0.2s ease;
            text-align: center;
            letter-spacing: 0.5px;
        }
        .avatar-edit:hover .avatar-overlay { opacity: 1; }
        .profile-id .pname {
            font-family: 'Kanit', sans-serif;
            font-weight: 900;
            font-size: 1.9rem;
            color: #fff;
            letter-spacing: 1px;
        }
        .profile-id .pgroup {
            display: inline-block;
            margin-top: 6px;
            font-family: 'Kanit', sans-serif;
            font-size: 0.85rem;
            color: var(--kv-accent);
            background: rgba(255, 51, 102, 0.12);
            border: 1px solid var(--kv-wine);
            padding: 3px 12px;
            border-radius: 20px;
            letter-spacing: 1px;
        }
        .profile-id .puid { color: #888; font-size: 0.85rem; margin-top: 6px; }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 24px;
        }
        @media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }
        .info-item {
            background: rgba(20, 3, 6, 0.5);
            border: 1px solid rgba(128, 0, 32, 0.18);
            border-radius: 8px;
            padding: 12px 14px;
        }
        .info-item .lbl {
            font-size: 0.75rem;
            color: #9a9a9a;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }
        .info-item .val {
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            color: #fff;
            font-size: 0.98rem;
            word-break: break-word;
        }
        .pass-val { cursor: pointer; user-select: none; }
        .pass-val .dots { color: var(--kv-accent); }

        .warn-banner {
            background: rgba(128, 0, 32, 0.18);
            border: 1px solid var(--kv-wine);
            color: #ff8095;
            border-radius: 8px;
            padding: 12px 16px;
            font-size: 0.9rem;
            margin-bottom: 18px;
        }

        .sub-block { margin-bottom: 22px; }
        .sub-title {
            font-family: 'Kanit', sans-serif;
            font-weight: 600;
            color: #fff;
            font-size: 1.1rem;
            margin-bottom: 10px;
            letter-spacing: 0.5px;
        }
        .sub-tags { display: flex; flex-wrap: wrap; gap: 8px; }
        .sub-tag {
            font-family: 'Courier New', monospace;
            font-size: 0.85rem;
            background: var(--kv-line);
            border: 1px solid rgba(128, 0, 32, 0.3);
            color: #e0e0e0;
            padding: 6px 12px;
            border-radius: 6px;
        }
        .sub-none { color: #777; font-size: 0.9rem; }

        .actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 26px;
            padding-top: 22px;
            border-top: 1px solid rgba(128, 0, 32, 0.25);
        }
        .act-btn {
            flex: 1;
            min-width: 150px;
            padding: 12px 16px;
            border-radius: 8px;
            font-family: 'Kanit', sans-serif;
            font-weight: 600;
            font-size: 0.95rem;
            letter-spacing: 0.5px;
            cursor: pointer;
            border: 1px solid var(--kv-wine);
            background: rgba(128, 0, 32, 0.12);
            color: #fff;
            transition: all 0.25s ease;
            text-align: center;
        }
        .act-btn:hover:not(:disabled) {
            background: var(--kv-wine);
            box-shadow: 0 0 18px rgba(128, 0, 32, 0.6);
        }
        .act-btn.logout { border-color: #555; background: rgba(80,80,80,0.15); }
        .act-btn.logout:hover { background: #444; box-shadow: none; }
        .act-btn:disabled { opacity: 0.45; cursor: not-allowed; }

        .modal-overlay {
            display: none;
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.7);
            z-index: 100;
            align-items: center;
            justify-content: center;
        }
        .modal-overlay.open { display: flex; }
        .modal {
            background: rgba(13, 2, 4, 0.98);
            border: 1px solid var(--kv-wine);
            border-radius: 12px;
            padding: 28px;
            width: 390px;
            max-width: 90%;
            box-shadow: 0 0 30px rgba(128, 0, 32, 0.6);
        }
        .modal h3 {
            font-family: 'Kanit', sans-serif;
            color: #fff;
            margin-bottom: 16px;
            letter-spacing: 0.5px;
        }
        .modal input {
            width: 100%;
            background: var(--kv-line);
            border: 1px solid rgba(128, 0, 32, 0.35);
            border-radius: 8px;
            padding: 11px 14px;
            color: #fff;
            font-size: 0.95rem;
            margin-bottom: 14px;
        }
        .modal input:focus { outline: none; border-color: var(--kv-accent); }
        .modal-actions { display: flex; gap: 10px; }