/* ==================== CORE LAYOUT ==================== */
.h-vh-100 {
    height: var(--real-vh, 100dvh);
    overflow: hidden;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#index-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-image: url(/images/4k.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#index-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 50%);
    z-index: 0;
    pointer-events: none;
}

.header-wrapper { flex: 1; overflow: hidden; width: 100%; }

.clan-container {
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow: hidden;
    border-left: 1px solid var(--swal2-backdrop);
}

.clan-header { display: flex; flex-direction: column; align-items: center; }
.clan-header img { width: 200px; }

.clan-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.clan-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
}
.clan-tab.active {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgb(253 126 20 / 20%);
    box-shadow: 0 4px 15px #fd7e14, inset 0 0 10px #fd7e14;
    backdrop-filter: blur(3px);
    border: 1px solid #fd7e14;
    outline: 1px solid #fd7e14;
    color: #fff;
}
.clan-tab {
    cursor: pointer;
}
.clan-view {
    padding: 10px;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: none;
}

.clan-view.active {
    display: flex;
}

/* ==================== CLANS LIST ==================== */
.clans-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    z-index: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.clan-item-link { display: flex; align-items: center; justify-content: space-between; }

.clan-item {
    display: flex;
    gap: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    outline: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    flex: 1;
    margin-right: -70px;
}

.clan-owner-avatar {
    width: 50px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    background: #fff;
}
.clan-logo {
    height: 110px;
    z-index: 1;
    margin-right: -30px;
}

/* ==================== CREATE CLAN SECTION ==================== */
.create-clan-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    height: 100%;
}

@media (min-width: 992px) {
    .create-clan-container {
        grid-template-columns: 1fr 2fr;
    }
}

.create-form {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 5px;;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-panel {
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}
.clan-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}
.clan-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: #fff;
    height: 100%;
    color: #000;
    border-radius: 10px;
}

/* ==================== LOGO EFFECTS ==================== */
.clan-avatar {
    width: 100px;
    aspect-ratio: 1 / 1;
    position: relative;
    padding: 3px;
    background: #fff;
    border-radius: 50%;
    margin-top: -60px;
}
.clan-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.5s;
}
.clan-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
}
.clan-progress-info {
    width: 100%;
    max-width: 80%;
    flex: 1;
}
.clan-progress {
    position: relative;
    height: 18px;
    display: flex;
    align-items: center;
}
.clan-progress .progress {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 1px solid #007bff;
    margin: -2px;
}
.clan-member-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: monospace;
    font-weight: 600;
    color: var(--white);
    pointer-events: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}
.preview-logo,
.clan-icon {
    width: 60px;
    border: 1px solid #007bff;
    border-radius: 50%;
    background: #fff;
    z-index: 1;
    padding: 2px;
}

.logo-glow-blue {
    filter: drop-shadow(0 0 2px var(--blue)) brightness(1.2);
}
.logo-blood-red   {
    filter: drop-shadow(0 0 2px #ff0033) brightness(1.2);
}
.logo-silver      {
    filter: drop-shadow(0 0 2px #c0c0c0) brightness(1.2);
}
.logo-gold-glow   { 
    filter: drop-shadow(0 0 2px #ffd700) brightness(1.2); 
}
.created-clan {
    text-align: center;
    background: var(--orange);
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}
.clan-body-preview {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.clan-menu {
    display: flex;
    gap: 1px;
    border-top: 5px solid #ccc;
    padding: 5px 10px;
}
.menu-item.active {
    background: #f0f0f0 !important;
    color: #000 !important;
}
.menu-item {
    padding: 5px 8px;
    border-radius: 20px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s;
    text-decoration: none !important;
    display: block;
    cursor: pointer;
}
.clan-live {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 10px;
}
.clan-live-item {
    flex: 1;
    border-radius: 10px;
    font-family: monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url(/images/4k.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 0.3s;
}
.clan-live-item.locked {
    position: relative;
}
.clan-live-item.locked .round-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 8px;
    color: #ffffff;
}
.round-header {
    font-weight: 700;
    color: #fd7e14;
}
.round-time {
    font-size: 15px;
    color: #d35400;
}
.round-status.locked-status {
    color: #888 !important;
    font-weight: 500;
}
.selected-dragons {
    display: flex;
    align-items: center;
    padding: 5px;
}
.selected-dragon-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.selected-dragon-item img {
    width: 34px;
}
.not-logged-in-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 20px;;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}
/* ==================== FORM STYLES ==================== */
.form-control, .clan-textarea {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.form-control:focus, .clan-textarea:focus {
    background: rgba(255,255,255,0.15);
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

/* ==================== OTHER ==================== */
.clan-footer {
    
}
#nav-section {
    width: 100%;
    background: #fff;
    z-index: 1;
}

.clans-list::-webkit-scrollbar { display: none; }
/* Form text color */
.form-control, .clan-textarea {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #ffffff !important;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.6) !important;
}

/* Select option */
.form-control option {
    background: #fff !important;
    color: #000 !important;
}
@media (min-width: 769px) and (max-width: 1920px) {
    .clans-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-content: start;
        gap: 10px;
    }
}

@media (min-width: 1921px) {
    .clans-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-content: start;
        gap: 10px;
    }
}