:root {
    --primary-gold: #c6a664;
    --dark-blue: #081123;
    --text-light: #ffffff;
    --text-muted: #d0d0d0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-light);
    background-color: var(--dark-blue);
    overflow-x: hidden;
}

/* Background & Hero Container */
.hero-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('five_hp_mainphoto.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Dark overlay gradient to make text readable */
.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8, 17, 35, 0.8) 0%, rgba(8, 17, 35, 0.3) 20%, rgba(8, 17, 35, 0.2) 60%, rgba(8, 17, 35, 0.9) 100%);
    z-index: 1;
}

/* Header */
.header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: linear-gradient(to bottom, rgba(8, 17, 35, 0.95) 0%, rgba(8, 17, 35, 0) 100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.logo-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0;
}

.logo-text p {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 4px;
    margin: 0;
    color: var(--text-muted);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 300;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-gold);
}

.nav-menu a.active {
    color: var(--text-light);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-gold);
}

/* Main Hero Content */
.main-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    transform: translateY(-5%); /* Slightly adjust vertical position */
}

.subtitle-jp {
    font-size: 1.1rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 5px;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.initial {
    font-size: 1.3em;
}

.title-small {
    font-size: 0.7em;
}

.cursive-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--primary-gold);
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* Bottom Info Section */
.bottom-info {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 4rem;
    background: linear-gradient(to top, rgba(8, 17, 35, 0.95) 0%, rgba(8, 17, 35, 0.8) 70%, rgba(8, 17, 35, 0) 100%);
    gap: 4rem;
}

.info-block {
    flex: 1;
    max-width: 450px;
}

.news-block {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.event-block {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-title {
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 400;
}

.info-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.info-text span {
    display: inline-block;
    width: 90px;
}

.btn-more {
    display: inline-block;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: var(--primary-gold);
    color: var(--dark-blue);
}

.divider {
    width: 1px;
    height: 100px;
    background-color: rgba(198, 166, 100, 0.3);
}

.members-only-btn {
    position: absolute;
    right: 4rem;
    bottom: 3rem;
}

.members-only-btn a {
    display: inline-block;
    background-color: var(--primary-gold);
    color: var(--dark-blue);
    text-decoration: none;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.members-only-btn a:hover {
    background-color: #fff;
    color: var(--dark-blue);
}

.scroll-top {
    position: absolute;
    right: 4rem;
    bottom: 7rem;
}

.scroll-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.scroll-top a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .main-title {
        font-size: 3.5rem;
    }
    .header {
        padding: 1rem 2rem;
    }
    .nav-menu ul {
        gap: 1.5rem;
    }
    .bottom-info {
        padding: 2rem;
        gap: 2rem;
    }
    .scroll-top {
        right: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-title {
        font-size: 2.5rem;
    }
    .cursive-subtitle {
        font-size: 2rem;
    }
    .bottom-info {
        flex-direction: column;
        gap: 2rem;
    }
    .divider {
        width: 100%;
        height: 1px;
    }
    .info-block {
        max-width: 100%;
    }
    .scroll-top {
        display: none;
    }
}

/* About Section */
.about-section {
    padding: 6rem 4rem;
    background-color: var(--dark-blue);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--primary-gold);
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 4rem;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: stretch;
}

.about-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-right {
    flex: 1;
    display: flex;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.right-img {
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 2rem;
    }
    .about-content {
        flex-direction: column;
    }
}

/* Events Section */
.events-section {
    padding: 6rem 4rem;
    background: linear-gradient(to bottom, var(--dark-blue) 0%, #0c1527 100%);
    border-top: 1px solid rgba(198, 166, 100, 0.15);
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
}

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.event-month-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(198, 166, 100, 0.15);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.event-month-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(198, 166, 100, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.month-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(198, 166, 100, 0.3);
}

.month-num {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
}

.month-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--text-light);
    opacity: 0.8;
}

.event-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.event-date {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-gold);
    white-space: nowrap;
    min-width: 95px;
    text-align: right;
    padding-top: 2px;
}

.day-span {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    margin-left: 2px;
}

.event-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-tag {
    align-self: flex-start;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.badge-nosc {
    background-color: rgba(30, 144, 255, 0.12);
    color: #4da3ff;
    border: 1px solid rgba(30, 144, 255, 0.25);
}

.badge-training {
    background-color: rgba(46, 204, 113, 0.12);
    color: #58d68d;
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.badge-guest {
    background-color: rgba(155, 89, 182, 0.12);
    color: #af7ac5;
    border: 1px solid rgba(155, 89, 182, 0.25);
}

.badge-meeting {
    background-color: rgba(241, 196, 15, 0.12);
    color: #f5b041;
    border: 1px solid rgba(241, 196, 15, 0.25);
}

.badge-maintenance {
    background-color: rgba(230, 126, 34, 0.12);
    color: #eb984e;
    border: 1px solid rgba(230, 126, 34, 0.25);
}

.badge-reserve {
    background-color: rgba(149, 165, 166, 0.12);
    color: #bdc3c7;
    border: 1px solid rgba(149, 165, 166, 0.25);
}

.event-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.4;
}

.event-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.desc-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    display: inline-block;
    margin-top: 0.15rem;
}

.warning-text {
    color: #ff7675 !important;
}

@media (max-width: 768px) {
    .events-section {
        padding: 4rem 2rem;
    }
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .event-month-card {
        padding: 1.5rem;
    }
}

/* Activity Log Section */
.activity-section {
    padding: 6rem 4rem;
    background-color: #0a1221;
    border-top: 1px solid rgba(198, 166, 100, 0.15);
}

.activity-container {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    padding: 3rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(198, 166, 100, 0.1) 0%, var(--primary-gold) 15%, var(--primary-gold) 85%, rgba(198, 166, 100, 0.1) 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--dark-blue);
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-item:hover .timeline-badge {
    background-color: var(--primary-gold);
    color: var(--dark-blue);
    box-shadow: 0 0 20px rgba(198, 166, 100, 0.6);
    transform: translateX(-50%) scale(1.1);
}

.timeline-card {
    width: 44%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(198, 166, 100, 0.15);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 2;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-card {
    margin-right: 56%;
}

.timeline-item:nth-child(even) .timeline-card {
    margin-left: 56%;
}

.timeline-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-gold);
    box-shadow: 0 12px 35px rgba(198, 166, 100, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-gold);
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

.timeline-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 220px;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
}

.timeline-card:hover .timeline-image img {
    transform: scale(1.06);
}

/* Timeline Responsiveness */
@media (max-width: 900px) {
    .timeline-card {
        width: 42%;
    }
}

@media (max-width: 768px) {
    .activity-section {
        padding: 4rem 2rem;
    }
    
    .timeline-line {
        left: 30px;
        transform: none;
    }
    
    .timeline-badge {
        left: 30px;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        font-size: 0.85rem;
    }
    
    .timeline-item:hover .timeline-badge {
        transform: translateX(-50%) scale(1.05);
    }
    
    .timeline-item {
        justify-content: flex-start !important;
        margin-bottom: 3.5rem;
    }
    
    .timeline-card {
        width: calc(100% - 65px) !important;
        margin-left: 65px !important;
        margin-right: 0 !important;
        padding: 1.5rem;
    }
    
    .timeline-image img {
        max-height: 180px;
    }
}

/* Activity Log Day-by-Day List Styles */
.activity-log-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(198, 166, 100, 0.15);
    background: rgba(8, 17, 35, 0.4);
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) rgba(255, 255, 255, 0.02);
}

/* Custom scrollbar for Webkit browsers */
.activity-log-list::-webkit-scrollbar {
    width: 6px;
}
.activity-log-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.activity-log-list::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 3px;
}

.activity-log-item {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

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

.log-date {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: left;
}

.log-day {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.85;
    margin-left: 2px;
}

.log-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 300;
    text-align: left;
}

.log-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    display: inline-block;
    margin-top: 0.25rem;
}

.highlighted-item {
    background: rgba(198, 166, 100, 0.05);
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    border-radius: 4px;
}

.transition-item {
    border-left: 3px solid var(--primary-gold);
    background: rgba(198, 166, 100, 0.08);
}

.badge-cancel {
    background-color: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.25);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-right: 0.3rem;
    display: inline-block;
    vertical-align: middle;
}

.badge-work {
    background-color: rgba(52, 152, 219, 0.12);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.25);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-right: 0.3rem;
    display: inline-block;
    vertical-align: middle;
}

.badge-maint {
    background-color: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.25);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-right: 0.3rem;
    display: inline-block;
    vertical-align: middle;
}

.badge-plan {
    background-color: rgba(155, 89, 182, 0.12);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.25);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-right: 0.3rem;
    display: inline-block;
    vertical-align: middle;
}

/* Activity Log Media Grid & Item Styles */
.log-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}
.log-media-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 480px) {
    .log-media-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(198, 166, 100, 0.18);
    background: rgba(8, 17, 35, 0.65);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-item:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary-gold);
    box-shadow: 0 8px 22px rgba(198, 166, 100, 0.3);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
}

.media-item:hover img {
    transform: scale(1.06);
}

/* Live Photo Preview Video & LIVE Badge */
.live-preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.media-item:hover .live-preview-video {
    opacity: 1;
}

.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(198, 166, 100, 0.9);
    color: var(--dark-blue);
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 3px;
}

.live-badge::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #ff3b30;
    border-radius: 50%;
    animation: live-blink 1s infinite alternate;
}

@keyframes live-blink {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Technical Badges for Maps/Weather */
.tech-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.tech-badge.route {
    background: rgba(52, 152, 219, 0.95);
    color: white;
}

.tech-badge.weather {
    background: rgba(241, 196, 15, 0.95);
    color: var(--dark-blue);
}

/* Hover Magnifier Overlay */
.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8, 17, 35, 0) 0%, rgba(8, 17, 35, 0.5) 100%);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.zoom-icon {
    color: white;
    font-size: 1.3rem;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.media-item:hover .zoom-icon {
    transform: scale(1);
}

/* Glassmorphism Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(8, 17, 35, 0.93) 0%, rgba(4, 8, 18, 0.99) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10050;
    opacity: 0;
    transition: opacity 0.4s ease;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-container {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.lightbox-content {
    max-width: 100%;
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(198, 166, 100, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(198, 166, 100, 0.12);
    background: #081123;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    color: white;
    font-size: 0.95rem;
    font-weight: 300;
    text-align: center;
    line-height: 1.6;
    background: rgba(8, 17, 35, 0.8);
    padding: 0.8rem 2.2rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 700px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

/* Lightbox Navigation Controls */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-close:hover {
    color: var(--primary-gold);
    background: rgba(198, 166, 100, 0.1);
    border-color: var(--primary-gold);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.2rem;
    font-weight: bold;
    padding: 1.2rem 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10000;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--primary-gold);
    background: rgba(198, 166, 100, 0.12);
    border-color: var(--primary-gold);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Lightbox Mobile Adjustments */
@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.2rem;
        width: 42px;
        height: 42px;
    }
    .lightbox-prev,
    .lightbox-next {
        padding: 0.7rem 1.1rem;
        font-size: 1.6rem;
    }
    .lightbox-prev {
        left: 15px;
    }
    .lightbox-next {
        right: 15px;
    }
    .lightbox-caption {
        font-size: 0.8rem;
        padding: 0.6rem 1.4rem;
        max-width: 90%;
    }
}

/* ==========================================================================
   MEMBERS ONLY PORTAL STYLES (Passcode Protected)
   ========================================================================== */

/* Modal Backdrop Overlay */
.members-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(6, 13, 27, 0.94) 0%, rgba(3, 7, 15, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.members-modal.active {
    display: flex;
    opacity: 1;
}

/* Glassmorphism Portal Container */
.members-modal-container {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(198, 166, 100, 0.2);
    border-radius: 16px;
    padding: 3rem;
    width: 92%;
    max-width: 900px;
    height: auto;
    max-height: 88vh;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(198, 166, 100, 0.08);
    position: relative;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) rgba(255, 255, 255, 0.01);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.members-modal-container::-webkit-scrollbar {
    width: 6px;
}
.members-modal-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
.members-modal-container::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 3px;
}

/* Close button */
.members-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.2rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10010;
}

.members-close:hover {
    color: var(--primary-gold);
    background: rgba(198, 166, 100, 0.1);
    border-color: var(--primary-gold);
    transform: rotate(90deg);
}

/* ==========================================
   VIEW 1: PASSCODE ENTRY PANEL
   ========================================== */
.view-passcode {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.passcode-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.security-icon {
    width: 70px;
    height: 70px;
    color: var(--primary-gold);
    background: rgba(198, 166, 100, 0.08);
    border: 1px solid rgba(198, 166, 100, 0.25);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 20px rgba(198, 166, 100, 0.15);
}

.security-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
}

.passcode-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.passcode-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* PIN Display dynamic input field */
.pin-display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.pin-input-field {
    background: rgba(8, 17, 35, 0.6);
    border: 1px solid rgba(198, 166, 100, 0.25);
    border-radius: 30px;
    padding: 0.6rem 2rem;
    min-width: 180px;
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.pin-dots {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
    min-height: 18px;
}

.pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pin-dot.filled {
    background: var(--primary-gold);
    box-shadow: 0 0 10px var(--primary-gold), inset 0 0 3px rgba(255,255,255,0.6);
    transform: scale(1.1);
}

.pin-cursor {
    width: 2px;
    height: 18px;
    background-color: var(--primary-gold);
    box-shadow: 0 0 8px var(--primary-gold);
    animation: pin-blink 0.8s infinite alternate;
}

@keyframes pin-blink {
    from { opacity: 0.1; }
    to { opacity: 1; }
}

.pin-error-msg {
    font-size: 0.8rem;
    color: #ff4757;
    height: 18px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    font-weight: 400;
    text-align: center;
}

.pin-error-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pad Shake Animation on Failure */
.shake-element {
    animation: pin-shake 0.4s ease-in-out;
}

@keyframes pin-shake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-10px); }
    30%, 60%, 90% { transform: translateX(10px); }
}

/* Numerical Keypad */
.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1.75rem;
    margin-top: 0.5rem;
}

.pin-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px solid rgba(198, 166, 100, 0.22);
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-light);
    font-family: 'Cinzel', serif;
    font-size: 1.45rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.pin-btn:hover {
    background: var(--primary-gold);
    color: var(--dark-blue);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(198, 166, 100, 0.4);
    transform: scale(1.05);
}

.pin-btn:active {
    transform: scale(0.94);
}

.pin-btn.btn-action {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.pin-btn.btn-action:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-gold);
    border-color: rgba(198, 166, 100, 0.15);
    box-shadow: none;
}

/* ==========================================
   VIEW 2: UNLOCKED MEMBERS PORTAL DASHBOARD
   ========================================== */
.view-dashboard {
    display: none;
    flex-direction: column;
    gap: 2.2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.view-dashboard.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Dashboard Top Header Control */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(198, 166, 100, 0.2);
    padding-bottom: 1.25rem;
    gap: 1.5rem;
}

.dashboard-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-title-area svg {
    width: 26px;
    height: 26px;
    color: var(--primary-gold);
}

.dashboard-title-area h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--primary-gold);
    letter-spacing: 2px;
}

.btn-lock {
    background: transparent;
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #ff6b6b;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-lock:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #ff4757;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.25);
}

.btn-lock svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* Tab Bar Navigation */
.members-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
    letter-spacing: 1px;
}

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

.tab-btn.active {
    color: var(--text-light);
    font-weight: 700;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-gold);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

/* Tab panel switching */
.tab-content {
    display: none;
    animation: tab-slide-fade 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.tab-content.active {
    display: block;
}

@keyframes tab-slide-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------
   TAB 1: MANUALS GRID & CARDS
   ------------------------------------------ */
.manuals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.manual-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(198, 166, 100, 0.15);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.manual-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 12px 30px rgba(198, 166, 100, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.manual-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.manual-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(198, 166, 100, 0.08);
    border: 1px solid rgba(198, 166, 100, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-gold);
    flex-shrink: 0;
}

.manual-icon-box svg {
    width: 22px;
    height: 22px;
}

.manual-card-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.manual-doc-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
    margin-top: 0.25rem;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.85rem;
    background: rgba(8, 17, 35, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.25s ease;
}

.doc-item:hover {
    border-color: rgba(198, 166, 100, 0.3);
    background: rgba(198, 166, 100, 0.03);
}

.doc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.doc-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.4;
}

.doc-meta {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
}

.btn-doc-view {
    background: transparent;
    border: 1px solid rgba(198, 166, 100, 0.4);
    color: var(--primary-gold);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.btn-doc-view:hover {
    background: var(--primary-gold);
    color: var(--dark-blue);
    border-color: var(--primary-gold);
    box-shadow: 0 0 8px rgba(198, 166, 100, 0.4);
}

.btn-doc-view svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* ------------------------------------------
   TAB 2: MEMBER DIRECTORY ROSTER
   ------------------------------------------ */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.member-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(198, 166, 100, 0.15);
    border-radius: 12px;
    padding: 1.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.member-card:hover::before {
    transform: scaleX(1);
}

.member-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 166, 100, 0.15) 0%, rgba(198, 166, 100, 0) 100%);
    border: 1.5px dashed var(--primary-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.member-card:hover .member-avatar {
    border-style: solid;
    background: rgba(198, 166, 100, 0.1);
    box-shadow: 0 0 15px rgba(198, 166, 100, 0.3);
    transform: scale(1.05);
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.member-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
}

.member-role {
    font-size: 0.72rem;
    color: var(--primary-gold);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.member-contact {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    width: 100%;
    margin-top: 4px;
}

/* ------------------------------------------
   TAB 3: FUTURE PLANS ROADMAP
   ------------------------------------------ */
.roadmap-timeline {
    position: relative;
    padding: 1rem 0 1rem 2.2rem;
    max-width: 760px;
    margin: 0 auto;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-gold) 0%, rgba(198, 166, 100, 0.1) 100%);
}

.roadmap-item {
    position: relative;
    margin-bottom: 2.2rem;
}

.roadmap-item:last-child {
    margin-bottom: 0;
}

.roadmap-node {
    position: absolute;
    left: -2.2rem;
    top: 5px;
    transform: translateX(-50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: var(--dark-blue);
    border: 2px solid var(--primary-gold);
    z-index: 2;
    box-shadow: 0 0 10px var(--primary-gold);
}

.roadmap-content {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--primary-gold);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.6rem;
    transition: all 0.3s ease;
}

.roadmap-item:hover .roadmap-content {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(198, 166, 100, 0.3);
    border-left-color: var(--primary-gold);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transform: translateX(3px);
}

.roadmap-time {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.roadmap-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 6px;
}

.roadmap-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

/* Roadmap Tab Two-Column Layout */
.roadmap-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.roadmap-timeline {
    flex: 1.3;
    padding: 1rem 0 1rem 2.2rem;
    margin: 0;
}

.roadmap-sidebar {
    flex: 0.7;
    position: sticky;
    top: 0;
}

.roadmap-image-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(198, 166, 100, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.roadmap-image-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 8px 25px rgba(198, 166, 100, 0.1);
    background: rgba(255, 255, 255, 0.035);
}

.roadmap-image-card .media-item {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    width: 100%;
}

.roadmap-image-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.roadmap-image-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

/* Responsive for Roadmap Container */
@media (max-width: 900px) {
    .roadmap-container {
        flex-direction: column;
        gap: 2rem;
    }
    .roadmap-timeline {
        width: 100%;
    }
    .roadmap-sidebar {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
}


/* ==========================================================================
   INTERACTIVE DOCUMENT VIEWER MODAL STYLES
   ========================================================================== */
.doc-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 8, 18, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10020;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    justify-content: center;
    align-items: center;
}

.doc-viewer-modal.active {
    display: flex;
    opacity: 1;
}

.doc-viewer-container {
    background: #081123;
    border: 1px solid rgba(198, 166, 100, 0.25);
    border-radius: 12px;
    width: 90%;
    max-width: 720px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    position: relative;
    animation: viewer-scale 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes viewer-scale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.doc-viewer-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-viewer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-viewer-close {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.3s;
    background: transparent;
    border: none;
    outline: none;
    line-height: 1;
}

.doc-viewer-close:hover {
    color: var(--primary-gold);
}

.doc-viewer-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.7;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) rgba(255, 255, 255, 0.02);
}

.doc-viewer-body::-webkit-scrollbar {
    width: 6px;
}
.doc-viewer-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.doc-viewer-body::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 3px;
}

/* Styling for document contents inside viewer */
.simulated-doc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.85rem;
}

.simulated-doc h3 {
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(198, 166, 100, 0.15);
}

.simulated-doc h4 {
    font-size: 0.95rem;
    color: white;
    margin: 1.5rem 0 0.6rem 0;
}

.simulated-doc p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.simulated-doc ul, .simulated-doc ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.simulated-doc li {
    margin-bottom: 0.4rem;
}

.simulated-doc .warning-box {
    background: rgba(230, 126, 34, 0.05);
    border-left: 3px solid #e67e22;
    padding: 1rem;
    border-radius: 0 6px 6px 0;
    margin: 1.5rem 0;
}

.simulated-doc .warning-box strong {
    color: #e67e22;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR MEMBERS ONLY SECTION
   ========================================================================== */
@media (max-width: 1024px) {
    .roster-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .members-modal-container {
        padding: 2.2rem 1.5rem 1.5rem 1.5rem;
        max-height: 94vh;
        width: 95%;
    }
    
    .members-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }
    
    .view-passcode {
        gap: 1.4rem;
    }
    
    .passcode-title {
        font-size: 1.5rem;
    }
    
    .pin-btn {
        width: 58px;
        height: 58px;
        font-size: 1.25rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .dashboard-title-area h2 {
        font-size: 1.3rem;
    }
    
    .members-tabs {
        overflow-x: auto;
        width: 100%;
        gap: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .manuals-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .roster-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
    
    .member-card {
        padding: 1.5rem 1rem;
    }
    
    .roadmap-timeline {
        padding-left: 1.6rem;
    }
    
    .roadmap-content {
        padding: 1rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .roster-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
}


