/**
 * Neo | Clans Module CSS
 * Designed & Scoped for LR Web Neo Remastered (moonrisecs.fun)
 */

:root {
    --clans-bg: #0d111a;
    --clans-card-bg: rgba(18, 24, 40, 0.86);
    --clans-card-border: rgba(255, 255, 255, 0.08);
    --clans-primary: #6366f1;
    --clans-primary-hover: #4f46e5;
    --clans-primary-glow: rgba(99, 102, 241, 0.35);
    --clans-accent: #3b82f6;
    --clans-gold: #fbbf24;
    --clans-silver: #cbd5e1;
    --clans-bronze: #f59e0b;
    --clans-text: #f1f5f9;
    --clans-text-muted: #94a3b8;
    --clans-success: #10b981;
    --clans-danger: #ef4444;
    --clans-warning: #f59e0b;
    --clans-radius: 14px;
    --clans-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================
   1. MODULE WRAPPER & GLOBAL RESET OVERRIDES
   ========================================================== */
.clans-module-wrapper {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 8px 0 48px 0;
    font-family: inherit;
    color: var(--clans-text);
    box-sizing: border-box;
    position: relative;
}

.clans-module-wrapper *,
.clans-module-wrapper *::before,
.clans-module-wrapper *::after {
    box-sizing: border-box;
}

/* Neutralize global `label:has(+ input[required])::after` & `white-space: nowrap` */
.clans-module-wrapper label {
    white-space: normal !important;
    line-height: 1.4 !important;
}
.clans-module-wrapper label:has(+ input[required])::after {
    content: none !important;
    display: none !important;
}

/* Neutralize global `code { display: flex; width: max-content; }` */
.clans-module-wrapper code {
    display: inline-flex !important;
    width: auto !important;
    padding: 3px 9px !important;
    margin: 2px !important;
    background: rgba(99, 102, 241, 0.14) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 6px !important;
    color: #a5b4fc !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

.clans-text-muted {
    color: var(--clans-text-muted) !important;
}

.clans-w-full {
    width: 100% !important;
}

.clans-flex-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
}

/* ==========================================================
   2. ALERTS
   ========================================================== */
.clans-module-wrapper .clans-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--clans-radius);
    margin-bottom: 20px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
}
.clans-module-wrapper .clans-alert svg {
    width: 26px !important;
    height: 26px !important;
    flex-shrink: 0;
    stroke: #fbbf24;
    fill: none !important;
}
.clans-module-wrapper .clans-alert-body strong {
    display: block;
    font-size: 15px;
    color: #fef3c7;
}
.clans-module-wrapper .clans-alert-body p {
    margin: 3px 0 0 0;
    font-size: 13.5px;
    color: #fde68a;
    line-height: 1.4;
}

/* ==========================================================
   3. TOP NAVIGATION HEADER
   ========================================================== */
.clans-module-wrapper .clans-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 20px;
    background: var(--clans-card-bg);
    border: 1px solid var(--clans-card-border);
    border-radius: var(--clans-radius);
    margin-bottom: 22px;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.clans-module-wrapper .clans-nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.clans-module-wrapper .clans-nav-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    height: 40px !important;
    border-radius: 10px !important;
    color: var(--clans-text-muted) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    white-space: nowrap !important;
    transition: var(--clans-transition) !important;
}

.clans-module-wrapper .clans-nav-tab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.clans-module-wrapper .clans-nav-tab.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--clans-primary) 0%, var(--clans-accent) 100%) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 4px 16px var(--clans-primary-glow) !important;
}

.clans-module-wrapper .clans-nav-tab svg {
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
}

.clans-module-wrapper .clans-tag-pill {
    padding: 2px 7px;
    background: rgba(0, 0, 0, 0.32);
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #93c5fd !important;
    line-height: 1.2;
}

.clans-module-wrapper .clans-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================
   4. BUTTONS (HIGH SPECIFICITY OVER GLOBAL `button`)
   ========================================================== */
.clans-module-wrapper button.clans-btn,
.clans-module-wrapper a.clans-btn,
.clans-module-wrapper .clans-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 9px 18px !important;
    height: 40px !important;
    width: auto !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: var(--clans-transition) !important;
}

.clans-module-wrapper .clans-btn svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
}

.clans-module-wrapper button.clans-btn-primary,
.clans-module-wrapper a.clans-btn-primary,
.clans-module-wrapper .clans-btn-primary {
    background: linear-gradient(135deg, var(--clans-primary) 0%, var(--clans-accent) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3) !important;
}

.clans-module-wrapper button.clans-btn-primary:hover,
.clans-module-wrapper a.clans-btn-primary:hover,
.clans-module-wrapper .clans-btn-primary:hover {
    background: linear-gradient(135deg, #5b54fa 0%, #2563eb 100%) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.48) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

.clans-module-wrapper button.clans-btn-secondary,
.clans-module-wrapper a.clans-btn-secondary,
.clans-module-wrapper .clans-btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

.clans-module-wrapper button.clans-btn-secondary:hover,
.clans-module-wrapper a.clans-btn-secondary:hover,
.clans-module-wrapper .clans-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

.clans-module-wrapper button.clans-btn-danger,
.clans-module-wrapper a.clans-btn-danger,
.clans-module-wrapper .clans-btn-danger {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.38) !important;
    box-shadow: none !important;
}

.clans-module-wrapper button.clans-btn-danger:hover,
.clans-module-wrapper a.clans-btn-danger:hover,
.clans-module-wrapper .clans-btn-danger:hover {
    background: rgba(239, 68, 68, 0.85) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

.clans-module-wrapper button.clans-btn-disabled,
.clans-module-wrapper .clans-btn-disabled,
.clans-module-wrapper button.clans-btn:disabled {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #64748b !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
}

.clans-module-wrapper button.clans-btn-sm,
.clans-module-wrapper a.clans-btn-sm,
.clans-module-wrapper .clans-btn-sm {
    padding: 6px 14px !important;
    height: 34px !important;
    font-size: 12.5px !important;
    border-radius: 8px !important;
}

.clans-module-wrapper button.clans-btn-icon,
.clans-module-wrapper .clans-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: var(--clans-transition) !important;
}

.clans-module-wrapper button.clans-btn-icon:hover {
    background: rgba(99, 102, 241, 0.25) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    color: #ffffff !important;
}

.clans-module-wrapper button.clans-btn-icon.clans-btn-danger-icon:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #fca5a5 !important;
}

.clans-module-wrapper button.clans-btn-icon svg {
    width: 15px !important;
    height: 15px !important;
    fill: none !important;
    stroke: currentColor !important;
}

/* ==========================================================
   5. STATUS PILLS & BADGES
   ========================================================== */
.clans-module-wrapper .clan-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important;
}

.clans-module-wrapper .clans-status-open {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.clans-module-wrapper .clans-status-closed {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.clans-module-wrapper .clans-status-req {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.clans-module-wrapper .clans-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc !important;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.clans-module-wrapper .clans-price-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #34d399 !important;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================================
   6. SEARCH & FILTERS BAR
   ========================================================== */
.clans-module-wrapper .clans-filters-card {
    background: var(--clans-card-bg);
    border: 1px solid var(--clans-card-border);
    border-radius: var(--clans-radius);
    padding: 14px 18px;
    margin-bottom: 24px;
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.clans-module-wrapper .clans-filters-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.clans-module-wrapper .clans-search-wrap {
    position: relative;
    flex: 1 1 260px;
    min-width: 220px;
}

.clans-module-wrapper .clans-search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px !important;
    height: 17px !important;
    stroke: #64748b;
    fill: none !important;
    pointer-events: none;
    z-index: 2;
}

/* Override global `input[type="text"] { padding: 8px 14px !important; }` so text never overlaps icon */
.clans-module-wrapper input[type="text"].clans-search-input,
.clans-module-wrapper input[type="text"],
.clans-module-wrapper .clans-search-input {
    width: 100% !important;
    height: 40px !important;
    padding-left: 48px !important;
    padding-right: 14px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background: rgba(12, 16, 28, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
}

.clans-module-wrapper .clans-filter-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.clans-module-wrapper .clans-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    height: 36px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--clans-text-muted) !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--clans-transition);
}

.clans-module-wrapper .clans-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff !important;
}

.clans-module-wrapper .clans-pill.active {
    background: rgba(99, 102, 241, 0.22);
    color: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.22);
}

.clans-module-wrapper .clans-sort-wrap {
    flex: 0 0 auto;
    min-width: 190px;
}

/* ==========================================================
   7. PODIUM OF TOP 3 CLANS
   ========================================================== */
.clans-module-wrapper .clans-podium-section {
    margin-bottom: 32px;
    text-align: center;
    padding: 20px 16px 10px;
    background: linear-gradient(180deg, rgba(18, 24, 42, 0.5) 0%, rgba(13, 17, 28, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.clans-module-wrapper .clans-podium-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 28px 0;
    color: var(--clans-gold) !important;
    text-shadow: 0 2px 12px rgba(251, 191, 36, 0.3);
}

.clans-module-wrapper .clans-podium-title span {
    color: var(--clans-gold) !important;
}

.clans-module-wrapper .clans-podium-title svg {
    width: 24px !important;
    height: 24px !important;
    stroke: var(--clans-gold) !important;
    fill: none !important;
}

.clans-module-wrapper .clans-podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 18px;
    max-width: 860px;
    margin: 0 auto;
    padding-top: 14px;
}

.clans-module-wrapper .clans-podium-col {
    flex: 1 1 0;
    min-width: 0;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clans-module-wrapper .clans-podium-card {
    width: 100%;
    background: rgba(18, 24, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--clans-radius);
    padding: 24px 14px 18px;
    position: relative;
    cursor: pointer;
    transition: var(--clans-transition);
    backdrop-filter: blur(12px);
    margin-bottom: 8px;
}

.clans-module-wrapper .clans-podium-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.clans-module-wrapper .clans-podium-card.gold-glow {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 8px 26px rgba(251, 191, 36, 0.16);
}

.clans-module-wrapper .clans-podium-medal {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.clans-module-wrapper .clans-podium-medal.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #111827 !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.clans-module-wrapper .clans-podium-medal.silver {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    color: #0f172a !important;
}

.clans-module-wrapper .clans-podium-medal.bronze {
    background: linear-gradient(135deg, #f97316 0%, #b45309 100%);
    color: #ffffff !important;
}

.clans-module-wrapper .clans-podium-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 4px auto 10px auto;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clans-module-wrapper .clans-podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clans-module-wrapper .clans-podium-avatar span {
    font-size: 1.35rem;
    font-weight: 800;
    color: #818cf8 !important;
}

.clans-module-wrapper .clans-podium-name {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clans-module-wrapper .clans-podium-tag {
    font-size: 12.5px;
    font-weight: 700;
    color: #818cf8 !important;
    margin-bottom: 6px;
}

.clans-module-wrapper .clans-podium-score {
    font-size: 13.5px;
    font-weight: 700;
    color: #34d399 !important;
}

.clans-module-wrapper .clans-pedestal {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.05em;
    border-radius: 10px 10px 4px 4px;
}

.clans-module-wrapper .pedestal-1 {
    height: 92px;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.24) 0%, rgba(251, 191, 36, 0.04) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24 !important;
}

.clans-module-wrapper .pedestal-2 {
    height: 68px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.2) 0%, rgba(148, 163, 184, 0.04) 100%);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #cbd5e1 !important;
}

.clans-module-wrapper .pedestal-3 {
    height: 50px;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.2) 0%, rgba(217, 119, 6, 0.04) 100%);
    border: 1px solid rgba(217, 119, 6, 0.28);
    color: #f59e0b !important;
}

@media (max-width: 768px) {
    .clans-module-wrapper .clans-podium-container {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }
    .clans-module-wrapper .clans-podium-col {
        width: 100%;
        max-width: 360px;
    }
    .clans-module-wrapper .clans-podium-rank-1 {
        order: -1;
    }
    .clans-module-wrapper .clans-pedestal {
        height: 36px !important;
    }
}

/* ==========================================================
   8. CLANS GRID & CLAN CARDS
   ========================================================== */
.clans-module-wrapper .clans-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    width: 100%;
}

.clans-module-wrapper .clans-cols-1 {
    grid-template-columns: minmax(0, 1fr);
}
.clans-module-wrapper .clans-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.clans-module-wrapper .clans-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.clans-module-wrapper .clans-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .clans-module-wrapper .clans-cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .clans-module-wrapper .clans-cols-3,
    .clans-module-wrapper .clans-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .clans-module-wrapper .clans-cols-2,
    .clans-module-wrapper .clans-cols-3,
    .clans-module-wrapper .clans-cols-4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.clans-module-wrapper .clan-card {
    background: linear-gradient(145deg, rgba(22, 29, 49, 0.9) 0%, rgba(13, 18, 32, 0.96) 100%);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--clans-radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    transition: var(--clans-transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.clans-module-wrapper .clan-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.clans-module-wrapper .clan-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    min-width: 0;
}

.clans-module-wrapper .clan-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clans-module-wrapper .clan-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clans-module-wrapper .clan-card-avatar span {
    font-weight: 800;
    font-size: 15px;
    color: #818cf8 !important;
}

.clans-module-wrapper .clan-card-titles {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.clans-module-wrapper .clan-card-tag {
    font-size: 11.5px;
    font-weight: 700;
    color: #60a5fa !important;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clans-module-wrapper .clan-card-name {
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff !important;
}

.clans-module-wrapper .clan-card-name a {
    color: #ffffff !important;
    text-decoration: none;
    transition: var(--clans-transition);
}

.clans-module-wrapper .clan-card-name a:hover {
    color: #818cf8 !important;
}

.clans-module-wrapper .clan-card-desc {
    font-size: 13px;
    color: var(--clans-text-muted) !important;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 37px;
    word-break: break-word;
}

.clans-module-wrapper .clan-card-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 8px;
    background: rgba(9, 13, 24, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 12px;
    text-align: center;
}

.clans-module-wrapper .clan-card-stat {
    min-width: 0;
    overflow: hidden;
}

.clans-module-wrapper .clan-card-stat span {
    display: block;
    font-size: 10.5px;
    color: var(--clans-text-muted) !important;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clans-module-wrapper .clan-card-stat strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clans-module-wrapper .clan-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.clans-module-wrapper .clan-card-footer > * {
    flex: 1 1 auto;
}

/* Empty State */
.clans-module-wrapper .clans-no-results,
.clans-module-wrapper .clans-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    background: var(--clans-card-bg);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--clans-radius);
    color: var(--clans-text-muted);
}

.clans-module-wrapper .clans-no-results svg {
    width: 44px !important;
    height: 44px !important;
    stroke: #6366f1;
    fill: none !important;
    margin-bottom: 12px;
    opacity: 0.8;
}

.clans-module-wrapper .clans-no-results h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.clans-module-wrapper .clans-no-results p {
    margin: 0;
    font-size: 13.5px;
    color: var(--clans-text-muted);
}

/* ==========================================================
   9. PAGINATION
   ========================================================== */
.clans-module-wrapper .clans-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.clans-module-wrapper .clans-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--clans-card-bg);
    border: 1px solid var(--clans-card-border);
    color: var(--clans-text) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    transition: var(--clans-transition);
}

.clans-module-wrapper .clans-page-num:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.clans-module-wrapper .clans-page-num.active {
    background: var(--clans-primary);
    color: #ffffff !important;
    border-color: var(--clans-primary);
    box-shadow: 0 4px 12px var(--clans-primary-glow);
}

/* ==========================================================
   10. CLAN PROFILE VIEW
   ========================================================== */
.clans-module-wrapper .clan-profile-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clans-module-wrapper .clan-hero {
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.clans-module-wrapper .clan-hero-content {
    position: relative;
    z-index: 2;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: 100%;
    flex-wrap: wrap;
}

.clans-module-wrapper .clan-avatar-wrap {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--clans-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
    background: rgba(12, 16, 28, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clans-module-wrapper .clan-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clans-module-wrapper .clan-avatar-placeholder {
    font-size: 1.9rem;
    font-weight: 900;
    color: #818cf8 !important;
}

.clans-module-wrapper .clan-hero-info {
    flex: 1 1 320px;
    min-width: 0;
}

.clans-module-wrapper .clan-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.clans-module-wrapper .clan-tag-badge {
    font-size: 1.05rem;
    font-weight: 800;
    color: #60a5fa !important;
}

.clans-module-wrapper .clan-name {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 900;
    color: #ffffff !important;
    line-height: 1.2;
    word-break: break-word;
}

.clans-module-wrapper .clan-description {
    margin: 0 0 12px 0;
    color: #cbd5e1 !important;
    font-size: 13.5px;
    line-height: 1.5;
    max-width: 680px;
    word-break: break-word;
}

.clans-module-wrapper .clan-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--clans-text-muted);
}

.clans-module-wrapper .clan-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.clans-module-wrapper .clan-meta-row svg {
    width: 15px !important;
    height: 15px !important;
    stroke: currentColor;
    fill: none !important;
}

.clans-module-wrapper .clans-timer-pill {
    color: #fbbf24 !important;
    font-weight: 600;
}

.clans-module-wrapper .clans-permanent-pill {
    color: #34d399 !important;
    font-weight: 600;
}

.clans-module-wrapper .clan-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Profile Stats Grid */
.clans-module-wrapper .clan-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1100px) {
    .clans-module-wrapper .clan-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .clans-module-wrapper .clan-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.clans-module-wrapper .clan-stat-card {
    background: var(--clans-card-bg);
    border: 1px solid var(--clans-card-border);
    border-radius: 12px;
    padding: 14px 12px;
    backdrop-filter: blur(12px);
    text-align: center;
    min-width: 0;
}

.clans-module-wrapper .clan-stat-label {
    display: block;
    font-size: 11px;
    color: var(--clans-text-muted) !important;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clans-module-wrapper .clan-stat-val {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clans-module-wrapper .clans-val-accent {
    color: #818cf8 !important;
}

.clans-module-wrapper .clans-val-success {
    color: #34d399 !important;
}

/* Profile Tabs */
.clans-module-wrapper .clan-profile-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--clans-card-border);
    padding-bottom: 12px;
    overflow-x: auto;
}

.clans-module-wrapper button.clan-profile-tab,
.clans-module-wrapper .clan-profile-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 16px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: var(--clans-text-muted) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transition: var(--clans-transition) !important;
}

.clans-module-wrapper button.clan-profile-tab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.clans-module-wrapper button.clan-profile-tab.active {
    background: rgba(99, 102, 241, 0.22) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2) !important;
}

.clans-module-wrapper .clans-badge-counter {
    padding: 1px 7px;
    border-radius: 10px;
    background: #ef4444;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
}

.clans-module-wrapper .clan-tab-content {
    display: none;
}

.clans-module-wrapper .clan-tab-content.active {
    display: block;
}

/* ==========================================================
   11. CARDS & RESPONSIVE TABLES
   ========================================================== */
.clans-module-wrapper .clans-card {
    background: var(--clans-card-bg);
    border: 1px solid var(--clans-card-border);
    border-radius: var(--clans-radius);
    padding: 22px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    min-width: 0;
}

.clans-module-wrapper .clans-card-header {
    margin-bottom: 18px;
}

.clans-module-wrapper .clans-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.clans-module-wrapper .clans-card-header p {
    margin: 4px 0 0 0;
    color: var(--clans-text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.clans-module-wrapper .clans-card-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.clans-module-wrapper .clans-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(12, 16, 28, 0.45);
}

.clans-module-wrapper table.clans-table {
    width: 100% !important;
    min-width: 640px !important;
    border-collapse: collapse !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    margin: 0 !important;
}

.clans-module-wrapper table.clans-table thead tr {
    background: rgba(10, 14, 24, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.clans-module-wrapper table.clans-table thead th {
    text-align: left !important;
    padding: 12px 16px !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    white-space: nowrap !important;
}

.clans-module-wrapper table.clans-table tbody td {
    padding: 12px 16px !important;
    height: auto !important;
    font-size: 13.5px !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

.clans-module-wrapper table.clans-table tbody td.clans-cell-wrap {
    white-space: normal !important;
    min-width: 180px;
    max-width: 340px;
    line-height: 1.4;
}

.clans-module-wrapper .clans-cell-sub {
    font-size: 12px;
    color: var(--clans-text-muted);
    margin-top: 2px;
}

.clans-module-wrapper .clans-empty-cell {
    text-align: center !important;
    padding: 28px 16px !important;
    color: var(--clans-text-muted) !important;
}

.clans-module-wrapper .clan-member-name {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    transition: var(--clans-transition);
}

.clans-module-wrapper .clan-member-name:hover {
    color: #818cf8 !important;
}

.clans-module-wrapper .clans-role-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c4b5fd !important;
    font-weight: 700;
    font-size: 12px;
}

.clans-module-wrapper .clans-immunity-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd !important;
    font-weight: 700;
    font-size: 12px;
}

.clans-module-wrapper .clans-actions-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================
   12. CLAN SHOP
   ========================================================== */
.clans-module-wrapper .clans-shop-header {
    background: var(--clans-card-bg);
    border: 1px solid var(--clans-card-border);
    border-radius: var(--clans-radius);
    padding: 18px 22px;
    margin-bottom: 18px;
}

.clans-module-wrapper .clans-shop-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.clans-module-wrapper .clans-shop-header p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--clans-text-muted);
}

.clans-module-wrapper .clans-bank-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    font-size: 13.5px;
    color: #cbd5e1;
}

.clans-module-wrapper .clans-bank-pill strong {
    color: #34d399 !important;
    font-size: 15px;
}

.clans-module-wrapper .clans-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.clans-module-wrapper .clans-shop-card {
    background: var(--clans-card-bg);
    border: 1px solid var(--clans-card-border);
    border-radius: var(--clans-radius);
    padding: 22px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: var(--clans-transition);
}

.clans-module-wrapper .clans-shop-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.clans-module-wrapper .clans-shop-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}

.clans-module-wrapper .clans-shop-icon svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #818cf8 !important;
    fill: none !important;
}

.clans-module-wrapper .clans-shop-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.clans-module-wrapper .clans-shop-desc {
    font-size: 13px;
    color: var(--clans-text-muted);
    line-height: 1.45;
}

.clans-module-wrapper .clans-shop-price {
    font-size: 16px;
    font-weight: 800;
    color: #34d399 !important;
    margin-bottom: 12px;
}

/* ==========================================================
   13. CLAN CHAT
   ========================================================== */
.clans-module-wrapper .clans-chat-container {
    display: flex;
    flex-direction: column;
    height: 460px;
    padding: 0 !important;
    overflow: hidden;
}

.clans-module-wrapper .clans-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clans-module-wrapper .clans-chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.clans-module-wrapper .clans-chat-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    flex-shrink: 0;
}

.clans-module-wrapper .clans-chat-msg-body {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 78%;
}

.clans-module-wrapper .clans-chat-msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.clans-module-wrapper .clans-chat-msg-sender {
    font-weight: 700;
    font-size: 13px;
    color: #a5b4fc !important;
}

.clans-module-wrapper .clans-chat-msg-time {
    font-size: 11px;
    color: var(--clans-text-muted) !important;
}

.clans-module-wrapper .clans-chat-msg-text {
    font-size: 13.5px;
    color: #f1f5f9;
    line-height: 1.45;
    word-break: break-word;
}

.clans-module-wrapper .clans-chat-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(10, 14, 24, 0.65);
    border-top: 1px solid var(--clans-card-border);
    margin: 0;
}

/* ==========================================================
   14. LOGS FILTER BAR & ADMIN LOGS TOOLBAR
   ========================================================== */
.clans-module-wrapper .clans-logs-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.clans-module-wrapper button.clans-log-filter-btn {
    padding: 6px 13px !important;
    height: 32px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--clans-text-muted) !important;
    box-shadow: none !important;
}

.clans-module-wrapper button.clans-log-filter-btn:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    color: #ffffff !important;
}

.clans-module-wrapper button.clans-log-filter-btn.active {
    background: rgba(99, 102, 241, 0.22) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    color: #ffffff !important;
}

.clans-module-wrapper .clans-logs-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.clans-module-wrapper .clans-logs-search-bar .clans-input-sm {
    width: 150px !important;
    height: 34px !important;
}

.clans-module-wrapper .clans-logs-search-bar .clans-select-sm {
    width: 190px !important;
    height: 34px !important;
}

/* ==========================================================
   15. FORMS, INPUTS, SELECTS, SWITCHES & FILE INPUTS
   ========================================================== */
.clans-module-wrapper .clans-input-group {
    margin-bottom: 16px;
    min-width: 0;
}

.clans-module-wrapper .clans-input-group label {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    white-space: normal !important;
}

.clans-module-wrapper .clans-help-text {
    display: block;
    margin-top: 5px;
    font-size: 11.5px;
    color: var(--clans-text-muted) !important;
    line-height: 1.35;
}

.clans-module-wrapper input.clans-input,
.clans-module-wrapper select.clans-select,
.clans-module-wrapper textarea.clans-textarea {
    width: 100% !important;
    padding: 9px 14px !important;
    height: 41px !important;
    background-color: rgba(12, 16, 28, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-family: inherit !important;
    float: none !important;
    transition: var(--clans-transition) !important;
}

.clans-module-wrapper select.clans-select {
    padding-right: 34px !important;
    display: block !important;
}

.clans-module-wrapper textarea.clans-textarea {
    height: auto !important;
    min-height: 86px !important;
    padding: 10px 14px !important;
    resize: vertical !important;
}

.clans-module-wrapper .clans-input-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.clans-module-wrapper .clans-input-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .clans-module-wrapper .clans-input-grid-2,
    .clans-module-wrapper .clans-input-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.clans-module-wrapper .clans-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 20px 0;
    height: 1px;
}

/* Override global `input[type="file"] { display: none; }` */
.clans-module-wrapper input[type="file"].clans-file-input {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 7px 10px !important;
    background: rgba(12, 16, 28, 0.72) !important;
    border: 1px dashed rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px !important;
    color: #cbd5e1 !important;
    font-size: 12.5px !important;
    cursor: pointer !important;
}

.clans-module-wrapper input[type="file"].clans-file-input::file-selector-button {
    padding: 6px 12px;
    margin-right: 10px;
    border-radius: 7px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.18);
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--clans-transition);
}

.clans-module-wrapper input[type="file"].clans-file-input::file-selector-button:hover {
    background: rgba(99, 102, 241, 0.35);
}

/* Toggle Switches Grid & High-Specificity Checkbox Reset */
.clans-module-wrapper .clans-switches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.clans-module-wrapper label.clans-switch-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: rgba(12, 16, 28, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    margin: 0 !important;
    transition: var(--clans-transition) !important;
}

.clans-module-wrapper label.clans-switch-label:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
    background: rgba(18, 24, 42, 0.7) !important;
}

/* Defeat `@supports ... input[type="checkbox"]:not(.switch)` */
.clans-module-wrapper label.clans-switch-label input[type="checkbox"],
.clans-module-wrapper label.clans-switch-label input[type="checkbox"]:not(.switch) {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

.clans-module-wrapper .clans-slider {
    width: 42px;
    height: 24px;
    min-width: 42px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    position: relative;
    transition: var(--clans-transition);
    flex-shrink: 0;
}

.clans-module-wrapper .clans-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    transition: var(--clans-transition);
}

.clans-module-wrapper label.clans-switch-label input[type="checkbox"]:checked + .clans-slider {
    background: var(--clans-primary);
    box-shadow: 0 0 12px var(--clans-primary-glow);
}

.clans-module-wrapper label.clans-switch-label input[type="checkbox"]:checked + .clans-slider::after {
    transform: translateX(18px);
}

.clans-module-wrapper .clans-label-text {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0 !important;
    line-height: 1.3;
}

/* Permissions Checkboxes List in Role Modal */
.clans-module-wrapper .clans-permissions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clans-module-wrapper label.clans-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    background: rgba(12, 16, 28, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    margin: 0 !important;
    white-space: normal !important;
    transition: var(--clans-transition) !important;
}

.clans-module-wrapper label.clans-checkbox-label:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
}

.clans-module-wrapper label.clans-checkbox-label input[type="checkbox"] {
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.clans-module-wrapper label.clans-checkbox-label span {
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0 !important;
}

.clans-module-wrapper .clans-danger-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================================
   16. ADMIN PANEL TABS & DB STATUS BOX
   ========================================================== */
.clans-module-wrapper .clans-admin-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clans-module-wrapper .clans-admin-header {
    background: var(--clans-card-bg);
    border: 1px solid var(--clans-card-border);
    border-radius: var(--clans-radius);
    padding: 18px 22px;
    backdrop-filter: blur(12px);
}

.clans-module-wrapper .clans-admin-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.clans-module-wrapper .clans-admin-header h2 svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #818cf8 !important;
    fill: none !important;
}

.clans-module-wrapper .clans-admin-subtabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.clans-module-wrapper button.clans-subtab {
    padding: 8px 15px !important;
    height: 36px !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--clans-text-muted) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

.clans-module-wrapper button.clans-subtab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.09) !important;
}

.clans-module-wrapper button.clans-subtab.active {
    background: rgba(99, 102, 241, 0.22) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    color: #ffffff !important;
}

.clans-module-wrapper .clans-admin-tab-content {
    display: none;
}

.clans-module-wrapper .clans-admin-tab-content.active {
    display: block;
}

.clans-module-wrapper .clans-db-status-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    background: rgba(12, 16, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.clans-module-wrapper .clans-db-tables-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13.5px;
    color: #cbd5e1;
}

/* ==========================================================
   17. MODALS
   ========================================================== */
.clans-module-wrapper .clans-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.clans-module-wrapper .clans-modal.active {
    display: flex;
}

.clans-module-wrapper .clans-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 18, 0.78);
    backdrop-filter: blur(8px);
}

.clans-module-wrapper .clans-modal-box {
    position: relative;
    z-index: 2;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    overflow: hidden;
}

.clans-module-wrapper .clans-modal-lg {
    max-width: 660px;
}

.clans-module-wrapper .clans-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
}

.clans-module-wrapper .clans-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.clans-module-wrapper button.clans-modal-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--clans-text-muted) !important;
    font-size: 14px !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.clans-module-wrapper button.clans-modal-close:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
}

.clans-module-wrapper .clans-modal-body {
    padding: 20px 22px;
    max-height: 74vh;
    overflow-y: auto;
}

.clans-module-wrapper .clans-modal-footer {
    padding: 14px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 24, 0.55);
}

/* Two-Stage Creation Steps */
.clans-module-wrapper .clans-steps-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.clans-module-wrapper .clans-step-pill {
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--clans-text-muted) !important;
    background: rgba(255, 255, 255, 0.05);
}

.clans-module-wrapper .clans-step-pill.active {
    background: var(--clans-primary);
    color: #ffffff !important;
}

.clans-module-wrapper .clans-step-arrow {
    color: var(--clans-text-muted);
    font-size: 13px;
}

.clans-module-wrapper .clans-stage {
    display: none;
}

.clans-module-wrapper .clans-stage.active {
    display: block;
}

.clans-module-wrapper .clans-preview-header h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.clans-module-wrapper .clans-preview-header p {
    margin: 0 0 14px 0;
    font-size: 12.5px;
    color: var(--clans-text-muted);
}

.clans-module-wrapper .clans-preview-card {
    margin: 0 0 18px 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.clans-module-wrapper .clans-payment-box {
    background: rgba(12, 16, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
}

.clans-module-wrapper .clans-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13.5px;
}

.clans-module-wrapper .clans-payment-row:last-of-type {
    margin-bottom: 0;
}

.clans-module-wrapper .clans-balance-alert {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5 !important;
    font-size: 12.5px;
    line-height: 1.4;
}
