/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.btn-compact {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 999px;
}

/* Standalone Admin Page */
.admin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem 2.5rem;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.25rem;
}

.admin-tabs-content {
    background: rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(248, 250, 252, 0.08);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.admin-tab-btn {
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.14);
    background: rgba(248, 250, 252, 0.06);
    color: rgba(248, 250, 252, 0.82);
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tab-btn:hover {
    border-color: rgba(225, 29, 72, 0.35);
    background: rgba(225, 29, 72, 0.12);
}

.admin-tab-btn.active {
    background: rgba(225, 29, 72, 0.18);
    border-color: rgba(225, 29, 72, 0.45);
    color: rgba(248, 250, 252, 0.92);
    box-shadow: 0 12px 26px rgba(225, 29, 72, 0.12);
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.active {
    display: block;
}

.admin-page-title {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.admin-page-subtitle {
    color: rgba(248, 250, 252, 0.75);
}

.admin-page-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.75rem;
    align-items: start;
}

.admin-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(248, 250, 252, 0.10);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.admin-card h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(248, 250, 252, 0.08);
}

/* Common dark surfaces */
.modal-content,
.member-card,
.hierarchy-node,
.time-display,
.spotlight-card {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(248, 250, 252, 0.10);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 7, 10, 0.72);
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(225, 29, 72, 0.15);
}

.godfather-banner {
    width: 100%;
    border-bottom: 1px solid rgba(248, 250, 252, 0.10);
    background:
        radial-gradient(900px 120px at 30% 20%, rgba(225, 29, 72, 0.22), transparent 60%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.90) 0%, rgba(5, 7, 10, 0.94) 70%);
}

:root {
    --primary-red: #E11D48;
    --primary-green: #16A34A;
    --primary-black: #0B0F14;
    --light-gray: #1B2430;
    --medium-gray: #9CA3AF;
    --dark-gray: #0F172A;
    --white: #F8FAFC;
    --background: #05070A;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 12px 28px rgba(225, 29, 72, 0.18);
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(225, 29, 72, 0.22), transparent 55%),
        radial-gradient(900px 500px at 90% 10%, rgba(225, 29, 72, 0.14), transparent 55%),
        linear-gradient(180deg, #05070A 0%, var(--background) 60%, #05070A 100%);
    background-color: var(--background);
    color: var(--white);
    line-height: 1.6;
}

.godfather-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.55rem 2rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.godfather-banner-tag {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1.2px;
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.9);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(225, 29, 72, 0.35);
    background: rgba(225, 29, 72, 0.12);
}

.godfather-banner-quote {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.78);
}

@media (max-width: 600px) {
    .godfather-banner-inner {
        padding: 0.55rem 1rem;
    }
    .godfather-banner-quote {
        font-size: 0.9rem;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.session-indicator {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.75);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.10);
    background: rgba(248, 250, 252, 0.05);
    white-space: nowrap;
}

@media (max-width: 800px) {
    .session-indicator {
        display: none;
    }
}

.nav-link {
    color: rgba(248, 250, 252, 0.92);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-red);
}

.btn:focus-visible,
.nav-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.22);
    border-color: rgba(225, 29, 72, 0.55);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(180deg, rgba(225, 29, 72, 1) 0%, rgba(190, 18, 60, 1) 100%);
    color: var(--white);
}

.btn-primary:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(248, 250, 252, 0.10);
    border: 1px solid rgba(248, 250, 252, 0.16);
    color: var(--white);
}

.btn-secondary:hover {
    background: rgba(248, 250, 252, 0.16);
    transform: translateY(-1px);
    border-color: rgba(225, 29, 72, 0.28);
}

.btn:active {
    transform: translateY(0);
}

.btn[disabled],
.btn-small[disabled],
button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding-bottom: 1.25rem;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Spotlight */
.spotlight-card {
    max-width: 560px;
    margin: 1.25rem auto 0;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(248, 250, 252, 0.10);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.spotlight-card.hidden {
    display: none;
}

.spotlight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.spotlight-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
}

.spotlight-body {
    padding: 1rem;
    color: rgba(248, 250, 252, 0.85);
}

.spotlight-row {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 1rem;
    align-items: center;
}

.spotlight-name {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: var(--white);
}

.spotlight-meta {
    margin-top: 0.25rem;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* Time Display */
.time-display {
    margin: 1.25rem 0 1rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(248, 250, 252, 0.10);
    border-radius: var(--radius-md);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
}

.time-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.time-item {
    text-align: center;
    flex: 1;
}

.time-label {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-value {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.date-value {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: rgba(248, 250, 252, 0.78);
    font-weight: 500;
}

.time-separator {
    font-size: 2rem;
    color: var(--primary-red);
    font-weight: bold;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }
}

/* Section Styles */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

/* Members Section */
.members-section {
    padding: 3.5rem 0 5rem;
    background: transparent;
}

.member-category {
    margin-bottom: 4rem;
}

.category-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(44, 62, 80, 0.12);
    padding-bottom: 0.5rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

@media (max-width: 900px) {
    .members-grid {
        gap: 1.25rem;
    }
}

.member-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(248, 250, 252, 0.10);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.member-card:hover {
    border-color: rgba(225, 29, 72, 0.45);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.member-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
    width: 64px;
    height: 110px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.10), rgba(248, 250, 252, 0.04));
    padding: 4px;
}

/* Profile Links and Stats */
.profile-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: rgba(225, 29, 72, 0.20);
    border: 1px solid rgba(225, 29, 72, 0.35);
    color: var(--white);
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-link:hover {
    background: rgba(248, 250, 252, 0.14);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(225, 29, 72, 0.16);
}

/* Admin Bulk Actions + Audit Log */
.bulk-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}

.bulk-actions .btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
}

.select-all-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.profile-chip:hover {
    border-color: rgba(225, 29, 72, 0.45);
    background: rgba(225, 29, 72, 0.18);
}

.member-item .member-select {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.member-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-red);
    margin-top: 2px;
}

.audit-log {
    margin-top: 1rem;
    background: rgba(229, 231, 235, 0.55);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.audit-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(248, 250, 252, 0.06);
}

.audit-log-header h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--white);
}

.audit-log-list {
    max-height: 220px;
    overflow: auto;
}

.audit-log-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    font-size: 0.9rem;
    color: var(--dark-gray);
    background: rgba(248, 250, 252, 0.05);
}

.audit-log-item:last-child {
    border-bottom: none;
}

.audit-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--medium-gray);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.member-stats {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(248, 250, 252, 0.06);
    border: 1px solid rgba(248, 250, 252, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.stats-header {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    padding: 0.2rem 0;
}

.stat-label {
    font-weight: 500;
    color: var(--medium-gray);
}

.stat-value {
    font-weight: 500;
    color: var(--primary-black);
}

.stat-value.online {
    color: var(--primary-red);
}

.stat-value.offline {
    color: var(--medium-gray);
}

.member-card h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.member-realname {
    color: rgba(248, 250, 252, 0.72);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: rgba(248, 250, 252, 0.78);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Hierarchy Section */
.hierarchy-section {
    padding: 5rem 0;
    background: transparent;
}

.hierarchy-tree {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.hierarchy-level {
    display: flex;
    justify-content: center;
}

.hierarchy-nodes {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hierarchy-node {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(248, 250, 252, 0.10);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    min-width: 200px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.hierarchy-avatar {
    width: 56px;
    height: 80px;
    margin: 0 auto 0.85rem;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.06);
    border: 1px solid rgba(248, 250, 252, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hierarchy-avatar-img {
    width: 56px;
    height: 80px;
    object-fit: contain;
    border-radius: 14px;
}

.hierarchy-node:hover {
    border-color: rgba(225, 29, 72, 0.45);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hierarchy-node.capo {
    border-color: var(--primary-red);
    border-width: 2px;
    box-shadow: 0 18px 40px rgba(225, 29, 72, 0.10);
}

.hierarchy-node.second-in-command {
    border-color: rgba(225, 29, 72, 0.35);
    border-width: 2px;
}

.node-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hierarchy-node h3,
.hierarchy-node h4 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hierarchy-node p {
    color: rgba(248, 250, 252, 0.70);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.72);
}

.modal[aria-hidden="false"] .modal-content {
    animation: modalPop 160ms ease-out;
}

@keyframes modalPop {
    from { transform: translateY(10px) scale(0.99); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-content {
    background: rgba(15, 23, 42, 0.92);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-md);
    max-height: 80vh;
    overflow: auto;
}

.member-profile-modal {
    max-width: 760px;
}

.member-profile-header {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1.1rem 1.1rem 0.9rem;
    border-bottom: 1px solid rgba(248, 250, 252, 0.10);
}

.member-profile-avatar {
    width: 72px;
    height: 96px;
    border-radius: var(--radius-md);
    background: rgba(248, 250, 252, 0.06);
    border: 1px solid rgba(248, 250, 252, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.member-profile-avatar-img {
    width: 72px;
    height: 96px;
    object-fit: contain;
}

.member-profile-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.35rem;
    color: var(--white);
}

.member-profile-meta {
    margin-top: 0.15rem;
    color: rgba(248, 250, 252, 0.75);
}

.member-profile-actions {
    margin-top: 0.55rem;
}

.member-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.9rem 1.1rem 1.1rem;
}

.member-profile-card {
    background: rgba(248, 250, 252, 0.05);
    border: 1px solid rgba(248, 250, 252, 0.10);
    border-radius: var(--radius-md);
    padding: 0.8rem;
}

.member-profile-card:hover {
    border-color: rgba(225, 29, 72, 0.28);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.member-profile-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: var(--white);
}

.member-profile-kv {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.95rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(248, 250, 252, 0.08);
}

.kv-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.kv-ico {
    font-size: 0.9rem;
    opacity: 0.9;
}

.member-profile-kv:last-child {
    border-bottom: none;
}

.member-profile-kv span:first-child {
    color: rgba(248, 250, 252, 0.65);
}

.member-profile-kv span:last-child {
    color: rgba(248, 250, 252, 0.90);
    text-align: right;
    word-break: break-word;
}

.profile-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.profile-chip {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(225, 29, 72, 0.28);
    background: rgba(225, 29, 72, 0.12);
    color: rgba(248, 250, 252, 0.92);
    font-size: 0.82rem;
}

.profile-empty {
    color: rgba(248, 250, 252, 0.60);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .member-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .member-profile-grid {
        grid-template-columns: 1fr;
    }
}

.close {
    color: var(--medium-gray);
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--primary-red);
}

.modal-content h2 {
    font-family: 'Cinzel', serif;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--white);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(248, 250, 252, 0.12);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--medium-gray);
}

.tab-btn.active {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

.tab-btn:hover {
    color: var(--primary-red);
}

.auth-form {
    display: block;
}

.auth-form form {
    display: grid;
    gap: 0.75rem;
}

.auth-form .btn {
    width: 100%;
}

.auth-form.hidden {
    display: none;
}

/* Admin Controls */
.admin-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.admin-controls .search-input {
    flex: 1;
    min-width: 240px;
}

.admin-controls .filter-select {
    min-width: 180px;
}

@media (max-width: 700px) {
    .admin-controls {
        flex-direction: column;
    }
    .admin-controls .filter-select {
        width: 100%;
        min-width: 0;
    }
}

.search-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: var(--radius-md);
    background: rgba(248, 250, 252, 0.06);
    color: rgba(248, 250, 252, 0.90);
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: rgba(248, 250, 252, 0.55);
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: rgba(248, 250, 252, 0.06);
    color: rgba(248, 250, 252, 0.90);
}

/* Account Stats */
.account-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(248, 250, 252, 0.06);
    border: 1px solid rgba(248, 250, 252, 0.10);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.stat-card h4 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stat-card span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

/* Settings */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.setting-item label {
    font-weight: 600;
    color: rgba(248, 250, 252, 0.85);
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
/* Re-registration Section */
.reregister-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(248, 250, 252, 0.12);
    background: rgba(248, 250, 252, 0.04);
}

.reregister-section h3 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    margin-bottom: 1rem;
    text-align: center;
}

.reregister-section p {
    text-align: center;
    color: rgba(248, 250, 252, 0.72);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(248, 250, 252, 0.85);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.06);
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: var(--radius-md);
    color: rgba(248, 250, 252, 0.90);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(225, 29, 72, 0.75);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.18);
}

/* Admin Panel */
.admin-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(5, 7, 10, 0.98) 100%);
    border-left: 2px solid var(--primary-red);
    z-index: 3000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.admin-panel.hidden {
    transform: translateX(100%);
}

.admin-header {
    padding: 1.5rem;
    background: var(--primary-red);
    border-bottom: 1px solid rgba(248, 250, 252, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    font-family: 'Cinzel', serif;
    color: var(--white);
}

.admin-content {
    padding: 1.5rem;
}

.admin-section {
    margin-bottom: 2rem;
}

.admin-section h3 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 0.5rem;
}

/* User Drawer */
.user-drawer {
    margin-top: 1rem;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(248, 250, 252, 0.10);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.user-drawer.hidden {
    display: none;
}

.user-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.user-drawer-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--white);
    font-size: 1.1rem;
}

.user-drawer-subtitle {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.user-drawer-body {
    padding: 1rem;
}

.drawer-section {
    margin-bottom: 1.25rem;
}

.drawer-section h4 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.drawer-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(248, 250, 252, 0.55);
    margin: 0.25rem 0 0.5rem;
}

.drawer-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.drawer-form input {
    flex: 1;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(248, 250, 252, 0.14);
    background: rgba(248, 250, 252, 0.06);
    color: rgba(248, 250, 252, 0.90);
}

.drawer-form input:focus {
    outline: none;
    border-color: rgba(225, 29, 72, 0.75);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.18);
}

.drawer-list {
    display: grid;
    gap: 0.6rem;
}

.drawer-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.8rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(248, 250, 252, 0.10);
    background: rgba(248, 250, 252, 0.06);
}

.drawer-item-text {
    color: rgba(248, 250, 252, 0.85);
    font-size: 0.95rem;
}

.drawer-empty {
    color: var(--medium-gray);
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.member-list {
    max-height: 400px;
    overflow-y: auto;
}

.member-item {
    background: rgba(248, 250, 252, 0.06);
    border: 1px solid rgba(248, 250, 252, 0.10);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.member-item:hover {
    border-color: rgba(225, 29, 72, 0.26);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.member-rank {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 999px;
}

.btn-promote {
    background: rgba(248, 250, 252, 0.10);
    border: 1px solid rgba(225, 29, 72, 0.30);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-promote:hover {
    background: rgba(225, 29, 72, 0.18);
}

.btn-demote {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-demote:hover {
    filter: brightness(1.03);
}

.member-status.reregister {
    background: var(--primary-red);
    color: white;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
.hero-subtitle {
font-size: 1rem;
}
    
.time-container {
flex-direction: column;
gap: 1rem;
}
    
.time-separator {
transform: rotate(90deg);
font-size: 1.5rem;
}
    
.about-content {
grid-template-columns: 1fr;
text-align: center;
}
    
.about-stats {
flex-direction: row;
justify-content: center;
}
    
.members-grid {
grid-template-columns: 1fr;
}
    
.hierarchy-nodes {
flex-direction: column;
align-items: center;
}
    
.ranks-container {
grid-template-columns: 1fr;
}
    
.admin-panel {
width: 100%;
}
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}
