:root {
    --cc-bg: #080808;
    --cc-border: #1a1a1a;
    --cc-border-soft: #2a2a2a;
    --cc-text: #ebebeb;
    --cc-muted: #555555;
    --cc-gold: #c4912a;
    --cc-gold-soft: #d4a63f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.cosmos-landing {
    margin: 0;
    min-height: 100vh;
    background-color: var(--cc-bg);
    background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(29, 78, 216, 0.09) 0%, transparent 70%);
    color: var(--cc-text);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
}

a { color: inherit; }

.cc-lightbar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(196,145,42,0.6) 40%, rgba(212,166,63,1) 50%, rgba(196,145,42,0.6) 60%, transparent 100%);
    animation: cc-lightmove 4s infinite cubic-bezier(0.4, 0, 0.6, 1);
    z-index: 9999;
    pointer-events: none;
}

@keyframes cc-lightmove {
    0% { left: -280px; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.cc-nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: 4rem;
    border-bottom: 1px solid rgba(42,42,42,0.45);
    background: rgba(8,8,8,0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 120;
}

.cc-nav-inner {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cc-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.cc-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(196,145,42,0.35));
}

.cc-brand span {
    font-size: 0.64rem;
    letter-spacing: 0.28em;
    font-weight: 400;
    color: #ebebeb;
}

.cc-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cc-menu a {
    font-size: 0.76rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
    color: #7e7e7e;
    transition: color 160ms ease;
}

.cc-menu a:hover { color: #ebebeb; }

.cc-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.cc-pill {
    border: 1px solid var(--cc-border-soft);
    background: transparent;
    color: #ebebeb;
    border-radius: 9999px;
    padding: 0.44rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    transition: all 200ms ease;
}

.cc-pill:hover {
    border-color: #555;
    color: #fff;
    text-decoration: none;
}

.cc-pill-gold {
    color: #080808;
    border-color: #d4a63f;
    background: linear-gradient(135deg, #d4a63f 0%, #c4912a 60%, #a87820 100%);
    box-shadow: 0 0 20px rgba(196,145,42,0.22);
}

.cc-pill-gold:hover {
    color: #080808;
    box-shadow: 0 0 34px rgba(196,145,42,0.5);
}

.cc-pulse { animation: cc-pulse-gold 2.5s ease-in-out infinite; }

@keyframes cc-pulse-gold {
    0%, 100% { box-shadow: 0 0 20px rgba(196,145,42,0.25); }
    50% { box-shadow: 0 0 44px rgba(196,145,42,0.55); }
}

.cc-feedback {
    max-width: 1440px;
    margin: 4.5rem auto 0;
    padding: 0 clamp(1rem, 4vw, 2.4rem);
}

.cc-feedback .alert {
    border-radius: 12px;
    border: 1px solid rgba(196,145,42,0.28);
    background: rgba(18, 12, 6, 0.9);
    color: #f0dbb0;
    padding: 0.8rem 1rem;
    margin: 0 0 1rem;
}

.cc-feedback .alert-danger { border-color: rgba(239, 98, 98, 0.45); color: #ffd0d0; }
.cc-feedback .alert-success { border-color: rgba(104, 197, 131, 0.45); color: #d8ffd8; }
.cc-feedback .alert-warning { border-color: rgba(230, 189, 99, 0.45); color: #ffe9b0; }
.cc-feedback .alert-info { border-color: rgba(110, 176, 245, 0.45); color: #d6ebff; }

.cc-section {
    max-width: 1440px;
    margin: 0 auto;
    padding-inline: clamp(1rem, 4vw, 2.4rem);
    scroll-margin-top: 84px;
}

.cc-dots {
    position: fixed;
    left: clamp(0.55rem, 2vw, 1.25rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0.68rem;
}

.cc-dots button {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border: 0;
    background: #3a3a3a;
    cursor: pointer;
    transition: all 320ms cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.cc-dots button.active {
    background: var(--cc-gold);
    box-shadow: 0 0 10px rgba(196,145,42,0.55);
}

.cc-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 4rem;
}

.cc-hero-bg,
.cc-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cc-hero-bg {
    background: url('../cosmos/images/bg-1.jpg') center top / cover no-repeat;
    opacity: 0.31;
}

.cc-hero-overlay {
    background:
        radial-gradient(ellipse 65% 50% at 50% 46%, rgba(196,145,42,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 90% 60% at 50% 50%, transparent 40%, rgba(8,8,8,0.65) 100%),
        linear-gradient(to bottom, rgba(8,8,8,0.16) 0%, rgba(8,8,8,0.06) 50%, rgba(8,8,8,1) 100%);
}

.cc-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cc-hero-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 0.95rem;
    filter: drop-shadow(0 0 28px rgba(196,145,42,0.55));
}

.cc-eyebrow {
    margin: 0;
    font-size: 0.64rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--cc-gold);
    font-weight: 300;
}

.cc-hero h1 {
    margin: 1.2rem 0 1.4rem;
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #f7f7f7;
    font-size: clamp(2.8rem, 9vw, 6.2rem);
}

.cc-hero h1 span {
    background: linear-gradient(90deg, #d4a63f 0%, #f0d080 50%, #c4912a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cc-hero-text {
    margin: 0 0 1.2rem;
    color: var(--cc-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.cc-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: #7e7e7e;
    font-size: 0.7rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
}

.cc-hero-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: #34d399;
    box-shadow: 0 0 6px #34d399;
}

.cc-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.cc-section-head { margin-bottom: 1.7rem; }

.cc-section-head h2 {
    margin: 0.7rem 0 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
}

.cc-section-head.center { text-align: center; }

.cc-section-head h2 span,
.cc-community-copy h2 span,
.cc-register-cta h2 span,
.cc-news h2 span { color: var(--cc-gold); font-style: italic; }

.cc-section-head-inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.cc-section-head-inline a {
    color: #555;
    text-decoration: none;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cc-classes,
.cc-server,
.cc-news,
.cc-community,
.cc-register-cta {
    padding-block: 5rem;
    border-top: 1px solid var(--cc-border);
}

.cc-patch-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid var(--cc-border);
    height: 120px;
    margin-bottom: 1.4rem;
    background: #050505;
}

.cc-patch-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.cc-patch-card > div {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 1rem 1.2rem;
    background: linear-gradient(to right, rgba(8,8,8,0.92) 35%, rgba(8,8,8,0.4) 100%);
}

.cc-patch-card span {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(196,145,42,0.4);
    color: var(--cc-gold);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.cc-patch-card h3 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.cc-patch-card p {
    margin: 0;
    color: #7e7e7e;
    font-size: 0.76rem;
}

.cc-class-grid {
    border: 1px solid var(--cc-border);
    border-radius: 0.5rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
}

.cc-class-grid aside {
    border-right: 1px solid var(--cc-border);
    background: #050505;
    display: flex;
    flex-direction: column;
}

.cc-class-grid aside button {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #111;
    text-align: left;
    padding: 0.78rem 0.95rem;
    color: #555;
    font-size: 0.71rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.cc-class-grid aside button.active {
    background: rgba(196,145,42,0.08);
    color: var(--cc-gold);
    border-left: 2px solid var(--cc-gold);
    padding-left: calc(0.95rem - 2px);
}

.cc-class-content { padding: 1.35rem; }

.cc-class-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cc-class-top h3 {
    margin: 0;
    font-size: 1.38rem;
    font-weight: 500;
}

.cc-class-states {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.cc-class-states button {
    padding: 0.24rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid #2a2a2a;
    background: transparent;
    color: #555;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.cc-class-states button.active {
    border-color: rgba(196,145,42,0.6);
    background: rgba(196,145,42,0.12);
    color: var(--cc-gold);
}

.cc-class-stats {
    margin-top: 1rem;
    display: grid;
    gap: 0.45rem;
}

.cc-class-stat-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cc-class-stat-row > span {
    width: 4.5rem;
    font-size: 0.71rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7e7e7e;
}

.cc-class-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.cc-class-stars img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.cc-class-description {
    margin: 0.95rem 0 0;
    color: var(--cc-muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

.cc-class-video {
    margin-top: 1rem;
    position: relative;
    border: 1px solid var(--cc-border);
    border-radius: 0.4rem;
    overflow: hidden;
    padding-top: 56.25%;
    background: #0d0d0d;
}

.cc-class-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cc-server .cc-spec-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #1c1c1c;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.cc-spec-bar > div {
    padding: 1.05rem 1.2rem;
    text-align: center;
    border-right: 1px solid #1c1c1c;
    background: rgba(196,145,42,0.03);
}

.cc-spec-bar > div:last-child { border-right: 0; }

.cc-spec-bar small {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 0.32rem;
}

.cc-spec-bar strong {
    font-size: 0.88rem;
    color: var(--cc-gold);
    font-weight: 500;
}

.cc-server-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.4rem, 4vw, 3rem);
}

.cc-mini-title {
    margin: 0 0 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--cc-gold);
}

.cc-server-grid > div > article {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.95rem 1.05rem;
    border: 1px solid #151515;
    border-radius: 0.375rem;
    background: rgba(255,255,255,0.02);
    margin-bottom: 0.65rem;
}

.cc-server-grid > div > article > span {
    color: var(--cc-gold);
    margin-top: 2px;
    font-size: 0.62rem;
}

.cc-server-grid h4 {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    color: #d4a843;
}

.cc-server-grid p {
    margin: 0;
    font-size: 0.78rem;
    color: #666;
    line-height: 1.55;
}

.cc-advantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.cc-advantages article {
    padding: 0.88rem;
    border: 1px solid #151515;
    border-radius: 0.375rem;
    background: rgba(255,255,255,0.02);
}

.cc-advantages article > span {
    color: var(--cc-gold);
    font-size: 0.55rem;
}

.cc-advantages h4 {
    margin: 0.28rem 0 0.2rem;
    font-size: 0.74rem;
    color: #c4c4c4;
}

.cc-advantages p {
    margin: 0;
    font-size: 0.7rem;
    color: #555;
    line-height: 1.45;
}

.cc-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1px;
    background: var(--cc-border);
    border: 1px solid var(--cc-border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.cc-news-card {
    position: relative;
    min-height: 200px;
    background: #080808;
    text-decoration: none;
    overflow: hidden;
}

.cc-news-card .news-bg {
    position: absolute;
    inset: 0;
    transition: transform 700ms cubic-bezier(0.16,1,0.3,1);
}

.cc-news-card .news-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0.5;
}

.cc-news-card:hover .news-bg { transform: scale(1.06); }

.cc-news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    pointer-events: none;
    transition: border-color 350ms ease;
}

.cc-news-card:hover::after { border-color: rgba(196,145,42,0.3); }

.cc-news-card .news-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.15) 100%);
}

.cc-news-card.featured .news-content { padding: 1.3rem; }

.cc-news-card span {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid rgba(196,145,42,0.3);
    color: var(--cc-gold);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.cc-news-card h3 {
    margin: 0 0 0.32rem;
    font-size: 0.88rem;
    color: #ebebeb;
    font-weight: 400;
}

.cc-news-card p {
    margin: 0;
    color: #3a3a3a;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.news-shimmer {
    background: linear-gradient(90deg, #c4912a 30%, #f5d68a 50%, #c4912a 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

.cc-community {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: clamp(1.4rem, 4vw, 3.4rem);
    align-items: start;
    position: relative;
}

.cc-community::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../cosmos/backgrounds/bg-dark.jpg') center / cover no-repeat;
    opacity: 0.09;
    pointer-events: none;
}

.cc-community-copy,
.cc-community-widget {
    position: relative;
    z-index: 1;
}

.cc-community-copy h2 {
    margin: 0.7rem 0 1rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
}

.cc-community-copy p {
    margin: 0;
    color: var(--cc-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.cc-community-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cc-community-actions a {
    text-decoration: none;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.62rem 1.3rem;
    border-radius: 9999px;
    border: 1px solid rgba(196,145,42,0.5);
    color: var(--cc-gold);
}

.cc-community-stats {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
}

.cc-community-stats strong {
    display: block;
    font-size: 1.45rem;
    font-weight: 300;
}

.cc-community-stats small {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #3a3a3a;
}

.cc-community-widget {
    border: 1px solid var(--cc-border);
    border-radius: 0.55rem;
    overflow: hidden;
}

.cc-register-cta {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: center;
    overflow: hidden;
}

.cc-register-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../cosmos/images/bg-1.jpg') center / cover no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.cc-register-cta > div { position: relative; z-index: 1; }

.cc-register-cta h2 {
    margin: 0.8rem 0 1rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
}

.cc-stars {
    display: flex;
    align-items: center;
    gap: 0.23rem;
    margin-bottom: 1rem;
}

.cc-stars img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.cc-stars span {
    margin-left: 0.5rem;
    color: #555;
    font-size: 0.72rem;
}

.cc-register-cta ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.cc-register-cta li {
    font-size: 0.84rem;
    color: #ababab;
    padding-left: 1.15rem;
    position: relative;
}

.cc-register-cta li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42rem;
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: var(--cc-gold);
}

.cc-cta-secondary {
    margin-top: 1rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.cc-cta-secondary a {
    text-decoration: none;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.55rem 1.2rem;
    border-radius: 9999px;
    border: 1px solid #2a2a2a;
    color: #555;
}

.cc-cta-secondary a:first-child {
    border-color: rgba(196,145,42,0.3);
    color: var(--cc-gold);
}

.cc-register-panel {
    background: rgba(8,8,8,0.88);
    border: 1px solid rgba(196,145,42,0.2);
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.cc-register-panel h3 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 400;
}

.cc-register-panel > p {
    margin: 0 0 0.5rem;
    color: #555;
    font-size: 0.8rem;
}

.steps article {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid #111;
    padding: 0.9rem 0;
}

.steps article:last-child { border-bottom: 0; }

.steps span {
    font-size: 1.6rem;
    font-weight: 100;
    line-height: 1;
    color: rgba(196,145,42,0.25);
}

.steps h4 {
    margin: 0 0 0.2rem;
    font-size: 0.84rem;
    color: #d4d4d4;
}

.steps p {
    margin: 0;
    font-size: 0.75rem;
    color: #555;
}

.cc-pill.block {
    width: 100%;
    border-radius: 7px;
    margin-top: 0.6rem;
    padding: 0.72rem 1rem;
}

.cc-pill.block.muted {
    color: #3a3a3a;
    border-color: #1a1a1a;
}

.cc-register-panel .mini {
    margin: 0.5rem 0 0;
    text-align: center;
    font-size: 0.72rem;
    color: #3a3a3a;
}

.mini-link {
    border: 0;
    background: transparent;
    color: var(--cc-gold);
    text-decoration: none;
    padding: 0;
    cursor: pointer;
}

.cc-footer {
    border-top: 1px solid var(--cc-border);
    background: #080808;
    padding: 2.7rem clamp(1rem, 4vw, 2.4rem) 1.4rem;
}

.cc-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
}

.cc-footer-inner p {
    color: #3a3a3a;
    font-size: 0.8rem;
    max-width: 34ch;
    margin: 0.9rem 0 0;
    line-height: 1.6;
}

.cc-socials {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
}

.cc-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid #1a1a1a;
    color: #3a3a3a;
    text-decoration: none;
    transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.cc-socials a:hover {
    color: var(--cc-gold);
    border-color: rgba(196,145,42,0.4);
    background: rgba(196,145,42,0.06);
}
.cc-socials a span {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.cc-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.56rem;
}

.cc-footer-links a {
    text-decoration: none;
    color: #555;
    font-size: 0.8rem;
}

.cc-footer-links a:hover { color: #ebebeb; }

.cc-footer-bottom {
    max-width: 1440px;
    margin: 1.4rem auto 0;
    border-top: 1px solid var(--cc-border);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: #2a2a2a;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.cc-modal-open { overflow: hidden; }

.cc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0,0,0,0.82);
    overflow-y: auto;
    padding: 18px 12px;
}

.cc-modal.show { display: block; }

.cc-modal .modal-dialog {
    max-width: 560px;
    margin: 2.5rem auto;
}

.cc-modal .modal-dialog.modal-lg { max-width: 920px; }

.cc-modal .modal-content {
    background: #0b0b0b;
    border: 1px solid rgba(196,145,42,0.35);
    border-radius: 14px;
    box-shadow: 0 22px 50px rgba(0,0,0,0.66);
    overflow: hidden;
}

.cc-modal .modal-header,
.cc-modal .modal-body,
.cc-modal .modal-footer {
    padding: 1rem 1.2rem;
}

.cc-modal .modal-header {
    border-bottom: 1px solid rgba(196,145,42,0.16);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-modal .modal-footer {
    border-top: 1px solid rgba(196,145,42,0.12);
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.cc-modal .cc-modal-footer-between { justify-content: space-between; }

.cc-modal .modal-title {
    margin: 0;
    color: #f0d080;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.cc-modal .close {
    border: 0;
    background: transparent;
    color: #f0d080;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}

.cc-modal .close:hover { opacity: 1; }

.cc-modal .form-group { margin-bottom: 0.8rem; }

.cc-modal label {
    display: block;
    margin: 0 0 0.32rem;
    font-size: 0.82rem;
    color: #d4d4d4;
}

.cc-modal .form-control {
    width: 100%;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #101010;
    color: #ebebeb;
    padding: 0.55rem 0.7rem;
    outline: none;
    box-shadow: none;
}

.cc-modal .form-control:focus { border-color: rgba(196,145,42,0.58); }

.cc-modal .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.cc-modal .form-row > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    padding: 0;
}

.cc-modal .form-check {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.cc-modal .form-check-input { margin-top: 0.3rem; }

.cc-modal .form-check-label {
    margin: 0;
    font-size: 0.81rem;
    line-height: 1.4;
    color: #ababab;
}

.cc-modal .form-check-label a { color: var(--cc-gold-soft); }

.cc-modal .g-recaptcha {
    display: inline-block;
    transform-origin: center top;
}

.cc-link-btn {
    border: 0;
    background: transparent;
    color: #9abef8;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.82rem;
}

#rulesModalContent {
    max-height: 58vh;
    overflow-y: auto;
    color: #d4d4d4;
    line-height: 1.6;
}

#rulesModalContent h1,
#rulesModalContent h2,
#rulesModalContent h3,
#rulesModalContent h4 { color: #f0d080; }

#rulesModalContent a { color: #9abef8; }

@media (max-width: 1180px) {
    .cc-menu { display: none; }
}

@media (max-width: 900px) {
    .cc-dots { display: none; }

    .cc-class-grid,
    .cc-server-grid,
    .cc-community,
    .cc-register-cta,
    .cc-news-grid,
    .cc-footer-inner,
    .cc-footer-bottom {
        grid-template-columns: 1fr;
        display: grid;
        justify-content: initial;
    }

    .cc-class-grid aside {
        border-right: 0;
        border-bottom: 1px solid var(--cc-border);
    }

    .cc-advantages { grid-template-columns: 1fr; }

    .cc-spec-bar {
        grid-template-columns: 1fr;
    }

    .cc-spec-bar > div {
        border-right: 0;
        border-bottom: 1px solid #1c1c1c;
    }

    .cc-spec-bar > div:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
    .cc-nav { height: auto; min-height: 4rem; }
    .cc-nav-inner { flex-wrap: wrap; padding-block: 0.7rem; }
    .cc-nav-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .cc-feedback { margin-top: 6.2rem; }
    .cc-hero { padding-top: 6.7rem; }

    .cc-modal .modal-dialog,
    .cc-modal .modal-dialog.modal-lg { margin: 1rem auto; max-width: 100%; }

    .cc-modal .form-row { grid-template-columns: 1fr; }
    .cc-modal .g-recaptcha { transform: scale(0.86); }
}
.cc-community-widget {
    position: relative;
    min-height: 380px;
    background: rgba(16,16,20,0.88);
}

.cc-widget-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: #9ba1c8;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    z-index: 3;
}

.cc-community-widget iframe {
    display: block;
    width: 100%;
    min-height: 380px;
    border: 0;
    position: relative;
    z-index: 2;
}

.cc-widget-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem;
    text-align: center;
    background: rgba(8, 8, 10, 0.82);
    z-index: 4;
}

.cc-widget-fallback p {
    margin: 0;
    color: #c9cedf;
    font-size: 0.9rem;
}

.cc-widget-fallback a {
    text-decoration: none;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.62rem 1.2rem;
    border-radius: 9999px;
    border: 1px solid rgba(196,145,42,0.5);
    color: var(--cc-gold);
}

.cc-community-widget.failed iframe {
    opacity: 0.2;
    filter: grayscale(0.3);
}
