:root {
    --bg: #050711;
    --blue: #159ff0;
    --discord: #5865f2;
    --instagram: #e1306c;
    --youtube: #ff0000;
    --green: #19e3a0;
    --white: #f5f7fb;
    --text: #a5b0c1;
    --muted: #738096;
    --border: rgba(255,255,255,.09);
    --container: 1180px;
    --x: 0px;
    --y: 0px;
    --z: 0px;
    --rx: 0deg;
    --ry: 0deg;
    --rz: 0deg;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--white);
    background: var(--bg);
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #050711;
}

.background-image {
    position: absolute;
    inset: 0;
    background-image: url("../images/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(.55) saturate(1.05);
    transform: scale(1.025);
}

.background-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2,7,15,.80) 0%, rgba(2,7,15,.42) 42%, rgba(2,7,15,.48) 100%);
}

.background-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,.25) 65%, rgba(0,0,0,.78) 100%);
}

.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stars-1 {
    opacity: .55;
    background-image:
            radial-gradient(1px 1px at 8% 15%, #fff, transparent),
            radial-gradient(1px 1px at 21% 31%, #fff, transparent),
            radial-gradient(1px 1px at 38% 17%, #8bd5ff, transparent),
            radial-gradient(1px 1px at 57% 27%, #fff, transparent),
            radial-gradient(1px 1px at 76% 16%, #fff, transparent),
            radial-gradient(1px 1px at 91% 31%, #ffc08d, transparent);
}

.stars-2 {
    opacity: .25;
    background-image:
            radial-gradient(1px 1px at 14% 67%, white, transparent),
            radial-gradient(1px 1px at 44% 78%, white, transparent),
            radial-gradient(1px 1px at 68% 62%, #8bd5ff, transparent),
            radial-gradient(1px 1px at 88% 75%, white, transparent);
}

.stars-3 {
    opacity: .18;
    background-image:
            radial-gradient(2px 2px at 5% 45%, white, transparent),
            radial-gradient(1px 1px at 97% 20%, white, transparent);
}

.ambient-particles {
    position: absolute;
    inset: 0;
}

.navbar {
    position: relative;
    z-index: 90;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(3,8,16,.86);
    backdrop-filter: blur(20px);
    overflow: visible;
}

.navbar-inner {
    width: min(calc(100% - 48px), 1240px);
    min-height: 84px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.logo-box {
    position: relative;
    width: 47px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(30,159,238,.22), rgba(255,111,47,.18));
    box-shadow: 0 7px 22px rgba(0,0,0,.35);
}

.logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    padding: 3px;
    position: relative;
    z-index: 2;
}

.logo-fallback-letter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 23px;
    font-weight: 900;
    font-style: italic;
    z-index: 1;
}

.logo-box:not(.logo-fallback) .logo-fallback-letter {
    display: none;
}

.logo-text strong {
    color: white;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -.7px;
}

.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.main-nav a {
    padding: 12px 13px;
    border-radius: 9px;
    color: #8793a7;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: .2s ease;
}

.main-nav a:hover {
    color: white;
    background: rgba(255,255,255,.05);
}

.main-nav a.active {
    color: white;
    background: rgba(20,159,240,.11);
}

.navbar-user {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 205px;
    z-index: 100;
}

.guest-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.login-button,
.register-button {
    min-height: 41px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: .2s ease;
}

.login-button {
    color: #9ca8ba;
    background: transparent;
    border: 1px solid transparent;
}

.login-button:hover {
    color: white;
    background: rgba(255,255,255,.045);
    border-color: rgba(255,255,255,.07);
}

.register-button {
    color: white;
    background: linear-gradient(100deg, #159eea, #ff7832);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 7px 22px rgba(21,158,234,.14);
}

.register-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(21,158,234,.23);
}

.user-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 100;
}

.user-menu {
    position: relative;
    min-width: 205px;
    min-height: 56px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;
    cursor: pointer;
    text-align: left;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.user-menu:hover {
    background: rgba(255,255,255,.055);
    border-color: rgba(21,159,240,.25);
    box-shadow: 0 8px 25px rgba(0,0,0,.20);
}

.user-avatar {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    color: white;
    background: linear-gradient(135deg, #17243d, #24132d);
    border: 1px solid rgba(21,159,240,.35);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.user-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.user-info strong {
    display: block;
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f5f7fb;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.user-info span {
    display: block;
    color: #8792a6;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
}

.credit-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #ffd43b;
    box-shadow: 0 0 8px rgba(255,212,59,.55);
    vertical-align: middle;
}

#navCredits {
    color: #8f99aa;
    font-size: 11px;
    font-weight: 600;
}

.arrow {
    flex-shrink: 0;
    color: #8b96a9;
    font-size: 12px;
    transition: transform .2s ease;
}

.user-menu.open .arrow {
    transform: rotate(180deg);
}

.user-dropdown,
#userDropdown,
.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 9999;
    width: 235px;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 14px;
    background: rgba(9,12,23,.98);
    box-shadow: 0 25px 70px rgba(0,0,0,.62);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.user-dropdown.open,
#userDropdown.open,
.dropdown.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.user-actions:has(.user-menu.open) .user-dropdown,
.user-actions:has(.user-menu.open) #userDropdown,
.user-actions:has(.user-menu.open) .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.user-dropdown a,
.user-dropdown button,
#userDropdown a,
#userDropdown button,
.dropdown a,
.dropdown button {
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #b5becd;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.user-dropdown a:hover,
.user-dropdown button:hover,
#userDropdown a:hover,
#userDropdown button:hover,
.dropdown a:hover,
.dropdown button:hover {
    color: white;
    background: rgba(255,255,255,.065);
    transform: translateX(2px);
}

.user-dropdown a svg,
.user-dropdown button svg,
#userDropdown a svg,
#userDropdown button svg,
.dropdown a svg,
.dropdown button svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: .9;
}

.dropdown-line {
    width: calc(100% - 8px);
    height: 1px;
    margin: 7px 4px;
    background: rgba(255,255,255,.08);
}

.user-dropdown hr,
#userDropdown hr,
.dropdown hr {
    width: calc(100% - 8px);
    margin: 7px 4px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.user-dropdown strong,
.user-dropdown b,
#userDropdown strong,
#userDropdown b,
.dropdown strong,
.dropdown b {
    font-size: 13px;
}

.user-dropdown small,
#userDropdown small,
.dropdown small {
    color: #778397;
    font-size: 11px;
}

#logoutButton {
    color: #ff7f8d;
    font-size: 13px;
}

#logoutButton:hover {
    color: #ff9aa5;
    background: rgba(255,70,90,.08);
}

main,
.hero,
.news-section,
.features,
.server-cta,
.footer {
    position: relative;
    z-index: 2;
}

.hero {
    position: relative;
    width: min(calc(100% - 48px), var(--container));
    min-height: 650px;
    margin: auto;
    padding: 95px 0 40px;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 30px;
}

.hero-social {
    position: absolute;
    top: 24px;
    left: 50%;
    z-index: 100;
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
    pointer-events: auto;
}

.hero-social-title {
    display: block;
    margin: 0 0 10px;
    color: #d6deeb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0,0,0,.95);
}

.hero-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.hero-social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(2,7,15,.82);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(0,0,0,.45);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hero-social-link svg {
    width: 22px;
    height: 22px;
    display: block;
}

.hero-social-link.discord {
    color: #7289da;
    background: rgba(88,101,242,.20);
    border: 1px solid rgba(114,137,218,.70);
    box-shadow: 0 0 20px rgba(88,101,242,.25);
}

.hero-social-link.discord svg {
    fill: #7289da;
    filter: drop-shadow(0 0 6px rgba(114,137,218,.55));
}

.hero-social-link.discord:hover {
    color: #ffffff;
    background: #5865f2;
    border-color: #7289da;
    box-shadow: 0 10px 35px rgba(88,101,242,.60);
    transform: translateY(-3px);
}

.hero-social-link.discord:hover svg {
    fill: #ffffff;
}

.hero-social-link.instagram {
    color: #e1306c;
    background: rgba(225,48,108,.15);
    border: 1px solid rgba(225,48,108,.55);
    box-shadow: 0 0 18px rgba(225,48,108,.16);
}

.hero-social-link.instagram svg {
    color: #e1306c;
}

.hero-social-link.instagram:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
    border-color: transparent;
    box-shadow: 0 10px 32px rgba(225,48,108,.45);
    transform: translateY(-3px);
}

.hero-social-link.instagram:hover svg {
    color: #ffffff;
}

.hero-social-link.youtube {
    color: #ff0000;
    background: rgba(255,0,0,.15);
    border: 1px solid rgba(255,0,0,.50);
    box-shadow: 0 0 18px rgba(255,0,0,.14);
}

.hero-social-link.youtube svg {
    color: #ff0000;
}

.hero-social-link.youtube:hover {
    color: #ffffff;
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 10px 32px rgba(255,0,0,.45);
    transform: translateY(-3px);
}

.hero-social-link.youtube:hover svg {
    color: #ffffff;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    position: relative;
    z-index: 20;
    max-width: 700px;
    font-size: clamp(55px, 5.5vw, 78px);
    line-height: .97;
    letter-spacing: -4px;
    font-weight: 900;
    text-shadow: 0 5px 30px rgba(0,0,0,.40);
}

.hero-title-line {
    display: block;
    color: white;
}

.hero-title-gradient {
    display: block;
    background: linear-gradient(90deg, #19a9ff, #6475ff, #a15df3);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-description {
    max-width: 620px;
    margin-top: 25px;
    color: #a3afc0;
    font-size: 16px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 11px;
    margin-top: 29px;
}

.primary-button,
.secondary-button {
    min-height: 52px;
    padding: 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

.primary-button {
    color: white;
    background: linear-gradient(100deg, #119ff0, #6173ff);
    box-shadow: 0 12px 30px rgba(18,145,226,.20);
}

.primary-button:hover {
    transform: translateY(-2px);
}

.secondary-button {
    color: #c5cedb;
    background: rgba(5,12,22,.70);
    border: 1px solid rgba(255,255,255,.12);
}

.secondary-button:hover {
    color: white;
    background: rgba(255,255,255,.07);
}

.server-info {
    max-width: 620px;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    margin-top: 25px;
}

.server-status,
.server-ip {
    min-height: 72px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: rgba(4,10,19,.80);
    backdrop-filter: blur(14px);
    transition: border-color .3s ease, background .3s ease;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
}

.status-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px rgba(25,227,160,.75);
}

.server-status strong {
    display: block;
    font-size: 12px;
}

.server-status div span {
    display: block;
    margin-top: 4px;
    color: #758298;
    font-size: 10px;
}

.server-ip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    cursor: pointer;
}

.server-ip.copied {
    border-color: rgba(25, 227, 160, 0.4);
    background: rgba(4, 25, 20, 0.9);
}

.server-ip.copied .ip-content strong {
    color: #19e3a0;
}

.server-ip.copied .ip-icon {
    color: #19e3a0;
    background: rgba(25, 227, 160, 0.15);
}

.ip-icon {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #36b5ff;
    background: rgba(20,158,238,.09);
    transition: color .3s ease, background .3s ease;
}

.ip-content {
    flex: 1;
    min-width: 0;
}

.ip-content span {
    display: block;
    margin-bottom: 4px;
    color: #6d7a8e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ip-content strong {
    font-size: 13px;
    transition: color .3s ease;
}

#copyIpButton {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 9px;
    color: #a5b0c0;
    background: rgba(255,255,255,.035);
    transition: color .3s ease, background .3s ease, border-color .3s ease;
}

#copyIpButton:hover {
    color: white;
    background: rgba(255,255,255,.08);
}

.hero-visual {
    position: relative;
    min-height: 530px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,155,240,.18), rgba(255,102,36,.045) 46%, transparent 70%);
    filter: blur(12px);
}

.floating-card {
    position: absolute;
    z-index: 20;
    top: 25px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;
    background: rgba(4,10,18,.91);
    backdrop-filter: blur(15px);
}

.mini-icon {
    color: var(--green);
    font-size: 10px;
    text-shadow: 0 0 10px var(--green);
}

.floating-card strong {
    display: block;
    font-size: 14px;
}

.floating-card span {
    color: #707d91;
    font-size: 9px;
}

.minecraft-stage {
    position: relative;
    width: 540px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1300px;
}

.block-glow {
    position: absolute;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,154,238,.25), transparent 67%);
    filter: blur(25px);
}

.block-shadow {
    position: absolute;
    bottom: 72px;
    width: 245px;
    height: 58px;
    border-radius: 50%;
    background: rgba(0,0,0,.60);
    filter: blur(25px);
    transform: rotateX(70deg);
}

.minecraft-block {
    position: relative;
    width: 210px;
    height: 210px;
    z-index: 10;
    transform-style: preserve-3d;
    transform: rotateX(-19deg) rotateY(-34deg);
}

.cube {
    position: absolute;
    inset: 0;
    width: 210px;
    height: 210px;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.cube-face {
    position: absolute;
    width: 210px;
    height: 210px;
    left: 0;
    top: 0;
    border: 2px solid rgba(25,23,18,.52);
    overflow: hidden;
    backface-visibility: visible;
}

.front {
    transform: translateZ(105px);
    background: linear-gradient(180deg, #83c84b 0 18%, #704725 18% 100%);
}

.right {
    transform: rotateY(90deg) translateZ(105px);
    background: linear-gradient(180deg, #6cac3c 0 18%, #5a391f 18% 100%);
}

.top {
    transform: rotateX(90deg) translateZ(105px);
    background: linear-gradient(135deg, #91d253, #67a83a);
}

.left {
    transform: rotateY(-90deg) translateZ(105px);
    background: #4c301b;
}

.back {
    transform: rotateY(180deg) translateZ(105px);
    background: #54351d;
}

.bottom {
    transform: rotateX(-90deg) translateZ(105px);
    background: #392417;
}

.grass-top-strip {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 39px;
    background: linear-gradient(180deg, #9ada57, #70af3e);
    border-bottom: 2px solid rgba(50,85,28,.48);
}

.grass-patch {
    position: absolute;
    width: 32px;
    height: 14px;
    border-radius: 2px;
    background: rgba(46,94,26,.45);
}

.tg1 { left: 25px; top: 35px; }
.tg2 { left: 85px; top: 22px; }
.tg3 { right: 32px; top: 43px; }
.tg4 { left: 132px; top: 68px; }
.tg5 { right: 72px; top: 82px; }

.dirt-pixel {
    position: absolute;
    width: 21px;
    height: 15px;
    border-radius: 2px;
    background: rgba(52,31,17,.43);
}

.px1 { left: 22px; top: 67px; }
.px2 { left: 78px; top: 110px; }
.px3 { right: 25px; top: 83px; }
.px4 { left: 128px; top: 150px; }
.px5 { left: 38px; bottom: 28px; }
.px6 { right: 63px; top: 56px; }
.px7 { left: 101px; top: 76px; }

.rx1 { left: 27px; top: 68px; }
.rx2 { right: 24px; top: 113px; }
.rx3 { left: 58px; bottom: 29px; }
.rx4 { right: 48px; top: 52px; }

.crack-layer {
    position: absolute;
    inset: 0;
    width: 210px;
    height: 210px;
    transform: translateZ(107px);
    pointer-events: none;
    opacity: 0;
}

.crack {
    position: absolute;
    width: 4px;
    height: 80px;
    border-radius: 2px;
    background: #101010;
    box-shadow: 0 0 3px rgba(0,0,0,.8);
    opacity: 0;
    transform-origin: top center;
}

.c1 { left: 91px; top: 28px; transform: rotate(20deg); }
.c2 { left: 100px; top: 74px; height: 70px; transform: rotate(-46deg); }
.c3 { left: 118px; top: 95px; height: 75px; transform: rotate(45deg); }
.c4 { left: 61px; top: 110px; height: 60px; transform: rotate(-38deg); }
.c5 { left: 138px; top: 42px; height: 90px; transform: rotate(-19deg); }
.c6 { left: 82px; top: 127px; height: 62px; transform: rotate(62deg); }
.c7 { left: 67px; top: 57px; height: 53px; transform: rotate(73deg); }

.minecraft-block.crack-1 .crack-layer { opacity: 1; }
.minecraft-block.crack-1 .c1 { opacity: .55; }
.minecraft-block.crack-2 .c1,
.minecraft-block.crack-2 .c2,
.minecraft-block.crack-2 .c3 { opacity: .7; }
.minecraft-block.crack-3 .crack { opacity: .78; }
.minecraft-block.crack-4 .crack { opacity: .9; }
.minecraft-block.crack-5 .crack { opacity: 1; }

.minecraft-block.hit {
    animation: blockHit .20s ease;
}

@keyframes blockHit {
    0% { transform: rotateX(-19deg) rotateY(-34deg); }
    25% { transform: rotateX(-20deg) rotateY(-36deg); }
    50% { transform: rotateX(-18deg) rotateY(-32deg); }
    75% { transform: rotateX(-20deg) rotateY(-35deg); }
    100% { transform: rotateX(-19deg) rotateY(-34deg); }
}

.minecraft-block.broken {
    animation: blockBreak .42s ease forwards;
}

@keyframes blockBreak {
    0% { opacity: 1; transform: rotateX(-19deg) rotateY(-34deg); }
    55% { opacity: .75; transform: rotateX(-19deg) rotateY(-34deg); }
    100% { opacity: 0; transform: rotateX(-19deg) rotateY(-34deg); }
}

.pickaxe {
    position: absolute;
    z-index: 30;
    width: 145px;
    height: 145px;
    right: 48px;
    bottom: 66px;
    transform: rotate(-34deg);
    pointer-events: none;
}

.pickaxe-metal {
    position: absolute;
    width: 110px;
    height: 27px;
    top: 12px;
    left: 10px;
    border-radius: 16px 16px 5px 5px;
    background: linear-gradient(180deg, #f6f8fa, #8b99a5);
    box-shadow: 0 5px 14px rgba(0,0,0,.45);
}

.pickaxe-metal::before,
.pickaxe-metal::after {
    content: "";
    position: absolute;
    top: 2px;
    width: 25px;
    height: 45px;
    border-radius: 5px;
    background: linear-gradient(90deg, #75838f, #f4f7f9);
}

.pickaxe-metal::before { left: -9px; transform: rotate(24deg); }
.pickaxe-metal::after { right: -9px; transform: rotate(-24deg); }

.pickaxe-wood {
    position: absolute;
    top: 25px;
    left: 65px;
    width: 15px;
    height: 120px;
    border-radius: 8px;
    background: linear-gradient(90deg, #573016, #bd7940, #573016);
}

.pickaxe.swing {
    animation: pickaxeSwing .38s ease;
}

@keyframes pickaxeSwing {
    0% { transform: rotate(-34deg); }
    45% { transform: rotate(-80deg); }
    100% { transform: rotate(-34deg); }
}

.hit-effect {
    position: absolute;
    z-index: 50;
    left: 50%;
    top: 50%;
    color: white;
    font-size: 40px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%,-50%);
}

.hit-effect.show {
    animation: hitFlash .30s ease;
}

@keyframes hitFlash {
    0% { opacity: 0; transform: translate(-50%,-50%) scale(.4); }
    35% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(1.35); }
}

.break-particles {
    position: absolute;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    transform-style: preserve-3d;
}

.break-particle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 11px;
    border-radius: 1px;
    transform-style: preserve-3d;
    animation: particleBreak .75s cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes particleBreak {
    0% { opacity: 1; transform: translate3d(0,0,105px) rotateX(0) rotateY(0) rotateZ(0) scale(1); }
    100% { opacity: 0; transform: translate3d(var(--x), var(--y), var(--z)) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(.45); }
}

.news-section,
.features {
    width: min(calc(100% - 48px), var(--container));
    margin: auto;
    padding: 75px 0;
}

.section-heading {
    margin-bottom: 32px;
    text-align: center;
}

.section-heading-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-label {
    color: #42b8ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.section-line {
    width: 55px;
    height: 1px;
    background: linear-gradient(90deg, #159ee9, #ff7930);
}

.section-status {
    color: #78859a;
    font-size: 11px;
    font-weight: 700;
}

.section-heading h2 {
    margin-top: 13px;
    font-size: 38px;
    letter-spacing: -1.7px;
}

.section-heading p {
    max-width: 620px;
    margin: 11px auto 0;
    color: #8290a5;
    font-size: 15px;
    line-height: 1.7;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 17px;
}

.news-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(5,11,20,.78);
    backdrop-filter: blur(12px);
    transition: .25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(28,160,236,.27);
}

.news-image {
    position: relative;
    height: 140px;
    padding: 15px;
    overflow: hidden;
}

.news-image-blue { background: linear-gradient(135deg, #0a405f, #071526); }
.news-image-purple { background: linear-gradient(135deg, #392d68, #15101f); }
.news-image-pink { background: linear-gradient(135deg, #612c50, #19101b); }

.news-category {
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.news-decoration {
    position: absolute;
    right: 35px;
    bottom: 18px;
    color: white;
    opacity: .12;
    font-size: 58px;
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    gap: 8px;
    color: #68758a;
    font-size: 10px;
}

.news-content h3 {
    margin-top: 10px;
    font-size: 17px;
}

.news-content p {
    margin-top: 9px;
    color: #7d8aa0;
    font-size: 12px;
    line-height: 1.7;
}

.news-link {
    display: inline-block;
    margin-top: 15px;
    color: #39b1ff;
    font-size: 12px;
    font-weight: 800;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 17px;
}

.feature-card {
    position: relative;
    min-height: 215px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(5,11,20,.75);
    backdrop-filter: blur(12px);
}

.feature-number {
    position: absolute;
    top: 15px;
    right: 18px;
    color: rgba(255,255,255,.07);
    font-size: 29px;
    font-weight: 900;
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 11px;
    font-size: 20px;
}

.blue-icon { color: #39b7ff; background: rgba(25,165,240,.10); }
.purple-icon { color: #8a7cff; background: rgba(113,93,255,.10); }
.pink-icon { color: #ff719f; background: rgba(255,80,139,.10); }

.feature-card h3 {
    font-size: 17px;
}

.feature-card p {
    margin-top: 9px;
    color: #7b899f;
    font-size: 12px;
    line-height: 1.7;
}

.server-cta {
    width: min(calc(100% - 48px), 1000px);
    margin: 25px auto 80px;
    padding: 58px 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(28,159,235,.17);
    border-radius: 20px;
    background: rgba(5,15,25,.75);
    backdrop-filter: blur(15px);
}

.server-cta-glow {
    position: absolute;
    inset: -100px;
    background: radial-gradient(circle, rgba(20,157,236,.12), transparent 55%);
}

.server-cta-content {
    position: relative;
    z-index: 2;
}

.cta-label {
    color: #42b8ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.server-cta h2 {
    margin-top: 9px;
    font-size: 35px;
}

.server-cta p {
    margin: 11px auto 24px;
    color: #8290a3;
    font-size: 14px;
}

.server-cta strong {
    color: white;
}

.footer {
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(3,7,14,.92);
    backdrop-filter: blur(15px);
}

.footer-inner {
    width: min(calc(100% - 48px), var(--container));
    margin: auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.6fr repeat(3,1fr);
    gap: 35px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9px;
    background: linear-gradient(135deg, #164c70, #69351f);
}

.footer-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo > span {
    color: white;
    font-size: 20px;
    font-weight: 900;
}

.footer-brand p {
    margin-top: 11px;
    color: #68758a;
    font-size: 12px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-column strong {
    color: #dfe5ed;
    font-size: 11px;
    letter-spacing: 1.4px;
}

.footer-column a {
    color: #6d7a8e;
    font-size: 12px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    width: min(calc(100% - 48px), var(--container));
    margin: auto;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.055);
    color: #566377;
    font-size: 10px;
}

@media (max-width: 1100px) {
    .main-nav a {
        padding: 10px 8px;
        font-size: 11px;
    }
    .navbar-inner {
        gap: 15px;
    }
    .navbar-user {
        min-width: 185px;
    }
    .user-menu {
        min-width: 185px;
    }
    .user-info strong {
        max-width: 95px;
    }
}

@media (max-width: 1000px) {
    .main-nav {
        display: none;
    }
    .hero {
        grid-template-columns: 1fr;
        padding-top: 110px;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-title {
        margin: 0 auto;
    }
    .hero-description {
        margin: 25px auto 0;
    }
    .hero-buttons {
        justify-content: center;
    }
    .server-info {
        margin: 25px auto 0;
        text-align: left;
    }
    .hero-visual {
        min-height: 540px;
    }
    .hero-social {
        top: 28px;
    }
}

@media (max-width: 800px) {
    .navbar-inner {
        width: calc(100% - 24px);
        min-height: 74px;
    }
    .navbar-user {
        min-width: auto;
    }
    .user-menu {
        min-width: 175px;
    }
    .user-info strong {
        max-width: 85px;
    }
    .news-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .hero-title {
        font-size: 50px;
        letter-spacing: -3px;
    }
    .hero-social {
        top: 22px;
    }
}

@media (max-width: 650px) {
    .user-menu {
        min-width: 56px;
        width: 56px;
        height: 56px;
        padding: 7px;
        justify-content: center;
    }
    .user-info,
    .arrow {
        display: none;
    }
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .user-dropdown,
    #userDropdown,
    .dropdown {
        top: calc(100% + 8px);
        right: 0;
        width: 220px;
    }
    .user-dropdown a,
    .user-dropdown button,
    #userDropdown a,
    #userDropdown button,
    .dropdown a,
    .dropdown button {
        min-height: 47px;
        font-size: 13px;
    }
    .guest-actions {
        gap: 5px;
    }
    .login-button,
    .register-button {
        padding: 9px 10px;
        font-size: 11px;
    }
}

@media (max-width: 550px) {
    .logo-text { display: none; }
    .login-button { display: none; }
    .register-button { display: none; }
    .hero {
        width: calc(100% - 24px);
        padding-top: 95px;
    }
    .hero-social {
        top: 17px;
        left: 50%;
        width: max-content;
        transform: translateX(-50%);
    }
    .hero-social-title {
        margin-bottom: 8px;
        font-size: 10px;
        letter-spacing: 1.7px;
    }
    .hero-social-links { gap: 8px; }
    .hero-social-link {
        width: 41px;
        height: 41px;
        border-radius: 10px;
    }
    .hero-social-link svg {
        width: 20px;
        height: 20px;
    }
    .hero-title {
        font-size: 40px;
        letter-spacing: -2.4px;
        line-height: .98;
    }
    .hero-description { font-size: 14px; }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .primary-button,
    .secondary-button { width: 100%; }
    .server-info { grid-template-columns: 1fr; }
    .minecraft-stage {
        transform: scale(.72);
        margin: -45px 0;
    }
    .floating-card { right: 2px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
    .navbar-inner {
        width: calc(100% - 18px);
        gap: 8px;
    }
    .navbar { overflow: visible; }
    .user-dropdown,
    #userDropdown,
    .dropdown { top: calc(100% + 8px); }
    .section-heading h2 { font-size: 32px; }
    .section-heading p { font-size: 14px; }
}


/* FOTOĞRAFTAKİ VIRACRAFT KART TASARIMI */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.viracraft-news-card {
    background: #0c0f1d;
    border: 1px solid rgba(255, 116, 24, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.viracraft-news-card:hover {
    transform: translateY(-5px);
    border-color: #ff7418;
    box-shadow: 0 15px 40px rgba(255, 116, 24, 0.25);
}

.card-image-box {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 16px;
}

.card-category-badge {
    background: #ff7418;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.card-body-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-date {
    color: #ff7418;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.card-title {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 10px;
}

.card-desc {
    color: #8c97ab;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.card-read-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(90deg, #ff7418, #ff922f);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(255, 116, 24, 0.3);
}

.card-read-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* FOTOĞRAFTAKİ DETAY POPUP PENCERESİ */
.news-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    place-items: center;
    padding: 20px;
}

.news-modal-backdrop.open { display: grid; }

.news-modal-dialog {
    background: #0d101d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: min(800px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.modal-breadcrumb {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: #8c97ab;
}

.modal-breadcrumb i { margin: 0 6px; color: #5f6c82; }
.modal-breadcrumb strong { color: #fff; }

.news-modal-body { padding: 32px; }

.news-modal-body h1 {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
}

.news-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.author-info { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 42px;
    height: 42px;
    background: #ff7418;
    color: #fff;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 18px;
}

.author-info strong { display: block; color: #fff; font-size: 14px; }
.author-info span { color: #8c97ab; font-size: 12px; }

.news-stats { display: flex; gap: 10px; }
.stat-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #8c97ab;
}

.stat-badge strong { color: #fff; margin-left: 4px; }

.news-full-content {
    color: #d1d8e0;
    font-size: 15px;
    line-height: 1.8;
}

.news-full-content p { margin-bottom: 16px; }


.announcement-bar {
    background: rgba(255, 116, 24, 0.08);
    border-bottom: 1px solid rgba(255, 116, 24, 0.2);
    padding: 10px 20px;
}
.announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.announcement-badge {
    background: #ff7418;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}