/* --- Core Color Palette --- */
:root {
    --monnas-blue: #003B5C; /* Deep School Blue */
    --monnas-gold: #CFB53B; /* Old-Gold */
    --monnas-brown: #5C4033; /* Rich Dark Brown */
    --bg-light: #F8F9FA;
    --text-dark: #2C3338;
    --text-light: #FFFFFF;
}

/* --- Global Reset & Base Typography --- */
* {
    box-sizing: border-box; 
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- Header & Navigation --- */
.dashboard-header,
.public-nav {
    background-color: var(--monnas-blue);
    color: var(--text-light);
    width: 100%; /* FIX: Prevents shrinking on pos.php */
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--monnas-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap; 
}

.logo {
    color: var(--text-light);
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gold-text {
    color: var(--monnas-gold);
}

/* --- Hamburger Menu Icon (Hidden on Desktop) --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* --- Hamburger to 'X' Animation --- */
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--monnas-gold);
}

/* --- Buttons --- */
.btn-outline,
.btn-outline-dark,
.btn-gold,
.btn-gold-large,
.btn-gold-full {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline {
    border: 2px solid var(--monnas-gold);
    padding: 8px 16px;
    color: var(--bg-light);
}

.btn-outline:hover {
    background-color: var(--monnas-gold);
    color: var(--monnas-blue) !important;
}

.btn-gold {
    background-color: var(--monnas-gold);
    color: var(--monnas-brown);
    padding: 10px 20px;
    border: none;
}

.btn-gold:hover, .btn-gold-large:hover, .btn-gold-full:hover {
    background-color: #e6c840;
}

.btn-gold-large {
    background-color: var(--monnas-gold);
    color: var(--monnas-blue);
    padding: 15px 30px;
    font-size: 1.2rem;
}

.btn-gold-full {
    background-color: var(--monnas-gold);
    color: var(--monnas-blue);
    padding: 15px;
    border: none;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 10px;
}

.btn-outline-dark {
    margin-top: 5px;
    padding: 10px 20px;
    border: 2px solid var(--monnas-brown);
    color: var(--monnas-brown);
}

.btn-outline-dark:hover {
    background-color: var(--monnas-brown);
    color: var(--text-light);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 80vh;
    background-color: var(--monnas-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px; 
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0, 59, 92, 0.8), rgba(92, 64, 51, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 800px;
    width: 100%;
    margin: 0 auto; 
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); 
    color: var(--monnas-gold);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
}

/* --- Layout Grids (Dashboard & Value Prop) --- */
.guild-container,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px;
}

.guild-container {
    padding: 40px 50px;
}

.features-grid {
    margin-top: 50px;
}

/* --- Cards --- */
.guild-card,
.feature-card {
    background: var(--text-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    position: relative;
}

.guild-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.feature-card {
    padding: 30px;
    border-top: 4px solid var(--monnas-gold);
}

.guild-header {
    background-color: var(--monnas-brown);
    color: var(--text-light);
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 3px solid var(--monnas-gold);
}

.teaser-body {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 55px); 
}

/* --- Locked State Overlay --- */
.locked-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 59, 92, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    text-align: center;
    padding: 20px;
}

/* --- Sections --- */
.value-section {
    padding: 80px 50px;
    text-align: center;
}

.guild-teaser-section {
    padding: 80px 50px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 10px;
}

/* --- Authentication Pages --- */
.auth-bg {
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column; 
    min-height: 100vh;
    padding: 0;
}

.auth-container {
    background: #ffffff;
    width: 100%;
    max-width: 550px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 59, 92, 0.1);
    border-top: 5px solid var(--monnas-gold);
    margin: 60px auto; 
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: var(--monnas-blue);
    margin-bottom: 5px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--monnas-brown);
    margin-bottom: 5px;
}

.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--monnas-blue);
}

.auth-footer-text {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 20px;
}

.auth-footer-text a {
    color: var(--monnas-blue);
    font-weight: bold;
}

/* --- Alerts --- */
.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

.public-footer {
    background-color: var(--text-dark);
    color: #888;
    text-align: center;
    padding: 30px 20px;
}

/* --- Language Switcher --- */
.lang-switch {
    position: absolute;
    bottom: 5px; 
    right: 50px; 
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem; 
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
    border: none;
    z-index: 10;
}

.lang-switch a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-switch a.active-lang {
    color: var(--monnas-gold);
    font-weight: bold;
    pointer-events: none;
}

.lang-switch a:hover:not(.active-lang) {
    color: var(--monnas-gold);
    opacity: 0.8;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
}

/* --- Guild Portal Specific Styles --- */
.guild-portal-hero {
    background-color: var(--monnas-blue);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 5px solid var(--monnas-gold);
}

.portal-hero-content h1 {
    font-size: 2.5rem;
    color: var(--monnas-gold);
    margin: 0 0 10px 0;
}

.portal-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: flex-start; 
}

/* Feed Column */
.portal-feed {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feed-post {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.post-avatar {
    width: 45px;
    height: 45px;
    background-color: var(--monnas-gold);
    color: var(--monnas-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.post-meta {
    display: flex;
    flex-direction: column;
}

.post-meta span {
    font-size: 0.8rem;
    color: #888;
}

.post-body p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.post-media {
    width: 100%;
    height: auto; /* Allows the height to shrink naturally for wide images */
    max-height: 500px; /* Prevents super tall portrait images from taking over the screen */
    object-fit: contain; /* Ensures the entire image/video is visible without cropping */
    border-radius: 8px;
    border: 1px solid #eee;
    background-color: var(--bg-light); /* Adds a nice seamless background if there is letterboxing */
}

.empty-state {
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed #ccc;
    color: #666;
}

/* Sidebar Column */
.portal-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    margin-top: 0;
    color: var(--monnas-brown);
    border-bottom: 2px solid var(--monnas-gold);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.event-date {
    background: var(--bg-light);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    text-align: center;
    min-width: 55px;
}

.event-date .month {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--monnas-blue);
    text-transform: uppercase;
}

.event-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
}

.event-details strong {
    display: block;
    color: var(--monnas-blue);
    font-size: 0.95rem;
}

.event-details span {
    font-size: 0.8rem;
    color: #666;
}

.info-widget {
    background-color: var(--bg-light);
    border-top: 4px solid var(--monnas-brown);
}

/* --- Profile Settings Page --- */
.profile-header {
    text-align: center;
    margin: 40px auto 30px auto;
    max-width: 600px;
}

.profile-header h2 {
    color: var(--monnas-blue);
    margin-bottom: 5px;
}

.profile-layout-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 40px auto;
    align-items: flex-start; 
}

.profile-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-top: 4px solid var(--monnas-blue);
}

.settings-card h3 {
    margin-top: 0;
    color: var(--monnas-brown);
    border-bottom: 2px solid var(--monnas-gold);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.subscription-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.subscription-item:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-active { background-color: #d4edda; color: #155724; }
.status-expired { background-color: #f8d7da; color: #721c24; }
.status-admin { background-color: var(--monnas-gold); color: var(--monnas-blue); }

.avatar-preview {
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    overflow: hidden; 
    background: var(--bg-light); 
    border: 3px solid var(--monnas-gold); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2rem; 
    color: var(--monnas-blue); 
    font-weight: bold;
    flex-shrink: 0;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Toggle Switch Styles --- */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--monnas-blue); }
input:checked + .slider:before { transform: translateX(24px); }

/* --- Upload Zone --- */
.upload-zone {
    border: 2px dashed var(--monnas-blue);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 20px;
    width: 100%; /* FIX: Ensures form container padding is respected */
}

.upload-zone:hover {
    background-color: #f0f8ff;
}

.upload-zone input[type="file"] {
    display: none; 
}

.file-name-display {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--monnas-brown);
    font-weight: bold;
}

/* --- POS Styles --- */
.pos-container { 
    max-width: 500px; 
    width: 100%; /* FIX: Ensures it centers correctly */
    margin: 20px auto; 
    padding: 0 15px; 
}
#reader { width: 100%; border-radius: 8px; overflow: hidden; border: 2px solid var(--monnas-blue); }
.customer-panel { background: white; border-radius: 8px; padding: 20px; margin-top: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-top: 4px solid var(--monnas-gold); display: none; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.product-btn { padding: 15px; background: var(--bg-light); border: 1px solid #ccc; border-radius: 6px; font-weight: bold; cursor: pointer; display: flex; flex-direction: column; align-items: center; transition: all 0.2s ease; }
.product-btn:hover { border-color: var(--monnas-blue); background: #eef5fa; }

/* FIX: Added missing Cart List styles for POS */
.cart-list-container {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    min-height: 60px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.cart-item-qty { 
    font-weight: bold; 
    color: var(--monnas-blue); 
    margin-right: 10px; 
}

/* --- Networking Directory Styles --- */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.directory-card {
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: var(--bg-light);
    transition: box-shadow 0.2s;
    height: 100%; 
}

.directory-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.dir-card-header {
    display: flex;
    gap: 15px;
    width: 100%;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.dir-card-header .avatar {
    width: 50px;
    height: 50px;
    background-color: var(--monnas-blue);
    color: var(--monnas-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dir-card-body {
    flex: 1; 
    width: 100%;
    font-size: 0.9rem;
    color: #555;
}

.dir-card-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.dir-card-actions a, 
.dir-card-actions button {
    flex: 1;
    margin: 0;
    padding: 8px 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.stacked-layout {
    flex-direction: column;
    width: 100%;
}

/* --- Job Board Styles --- */
.job-grid {
    display: grid;
    gap: 20px;
}

.job-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--monnas-blue);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.job-title {
    color: var(--monnas-blue);
    font-size: 1.3rem;
    margin: 0 0 5px 0;
}

.job-company {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1rem;
}

.job-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

.job-meta span {
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.job-description {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 20px;
    flex: 1; 
}

.job-poster {
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

/* --- Admin Styles --- */
.admin-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.admin-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--monnas-gold);
}

.admin-card h3 {
    color: var(--monnas-blue);
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.event-list-item {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}

.event-list-item h4 {
    margin: 0 0 5px 0;
    color: var(--monnas-brown);
}

.event-meta {
    font-size: 0.85rem;
    color: #666;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
}

.btn-delete:hover {
    background: #c82333;
}

.admin-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 20px; 
    background: white; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.admin-table th, .admin-table td { 
    padding: 12px 15px; 
    text-align: left; 
    border-bottom: 1px solid #eee; 
}

.admin-table th { 
    background-color: var(--monnas-blue); 
    color: white; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
}

.amount-pos { color: green; font-weight: bold; }
.amount-neg { color: red; font-weight: bold; }
.admin-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }

/* --- Digital ID Card Styles --- */
.card-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.digital-id-card {
    background: linear-gradient(135deg, var(--monnas-blue) 0%, #001f30 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 59, 92, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.digital-id-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: var(--monnas-gold);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.card-photo {
    width: 70px;
    height: 70px;
    background-color: var(--monnas-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--monnas-blue);
    border: 3px solid white;
    overflow: hidden;
    flex-shrink: 0;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-container {
    background: white;
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.qr-container img {
    display: block;
    width: 180px;
    height: 180px;
}

.wallet-panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.balance-amount {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--monnas-blue);
    margin: 10px 0;
    line-height: 1;
    transition: color 0.3s;
}

/* =========================================
   MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ========================================= */

@media (max-width: 1100px) {
    .profile-layout-3col { grid-template-columns: 1fr 1fr; }
}
        
/* Tablets and smaller screens (Max-width 900px) */
@media (max-width: 900px) {
    .public-nav,
    .dashboard-header {
        padding: 15px 20px;
        flex-direction: row; 
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%; 
        text-align: center;
        background-color: var(--monnas-blue);
        padding: 20px 0;
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 0;
        margin: 0; 
    }

    .nav-links a.btn-outline,
    .nav-links a.btn-gold {
        width: 80%; 
        margin: 0 auto;
    }

    .value-section,
    .guild-teaser-section,
    .guild-container {
        padding: 50px 20px;
    }

    .form-row {
        flex-direction: column; 
        gap: 20px;
    }

    .lang-switch {
        right: 20px;
        bottom: 2px;
        width: auto;
        justify-content: flex-end;
        border: none;
        padding: 0;
        margin: 0;
    }

    .portal-container {
        flex-direction: column; 
    }
    
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .admin-grid { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 800px) {
    .profile-layout-3col { grid-template-columns: 1fr; }
}
        
/* Mobile Phones (Max-width 600px) */
@media (max-width: 600px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .auth-container {
        margin: 30px auto; /* FIX: Restored margin so it doesn't stick to the top */
        padding: 25px 20px; 
    }

    /* Force grids to single column */
    .guild-container,
    .features-grid,
    .directory-grid,
    .profile-layout {
        grid-template-columns: 1fr; 
    }

    /* Ensures the avatar upload area stacks nicely on tiny screens */
    .avatar-preview-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* =============================================
   INDEX PAGE — CUSTOM OVERRIDES & NEW SECTIONS
   ============================================= */

:root {
    --monnas-gold-light: rgba(207, 181, 59, 0.15);
    --monnas-gold-mid:   rgba(207, 181, 59, 0.35);
}

body {
    font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
}

/* --- NAV REFINEMENTS --- */
.dashboard-header {
    background: rgba(0, 22, 40, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 18px 60px;
    border-bottom: 1px solid rgba(207, 181, 59, 0.3);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 16px;
}

/* --- HERO --- */
.mn-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000d1a;
}

.mn-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,59,92,0.7) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(92,64,51,0.5) 0%, transparent 60%),
        linear-gradient(160deg, #000d1a 0%, #001f35 40%, #0a0a00 100%);
    z-index: 1;
}

.mn-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(207,181,59,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(207,181,59,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 2;
}

.mn-hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 920px;
    padding: 40px 30px;
}

.mn-hero__eyebrow {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--monnas-gold);
    border: 1px solid rgba(207,181,59,0.4);
    padding: 8px 20px;
    border-radius: 2px;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.mn-hero__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 600;
    line-height: 1;
    color: #fff;
    margin: 0 0 8px;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.5s forwards;
}

.mn-hero__title em {
    font-style: italic;
    color: var(--monnas-gold);
}

.mn-hero__latin {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-style: italic;
    color: rgba(255,255,255,0.45);
    letter-spacing: 2px;
    margin: 0 0 36px;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.65s forwards;
}

.mn-hero__divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--monnas-gold), transparent);
    margin: 0 auto 36px;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

.mn-hero__sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255,255,255,0.65);
    max-width: 680px;
    margin: 0 auto 50px;
    line-height: 1.8;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.9s forwards;
}

.mn-hero__ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s ease 1.1s forwards;
}

.mn-cta-primary {
    display: inline-block;
    text-decoration: none;
    background: var(--monnas-gold);
    color: #001a2e;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 38px;
    border-radius: 2px;
    transition: all 0.3s;
}

.mn-cta-primary:hover {
    background: #e6c840;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(207,181,59,0.3);
}

.mn-cta-ghost {
    display: inline-block;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 16px 38px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 2px;
    transition: all 0.3s;
}

.mn-cta-ghost:hover {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.mn-hero__scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s ease 1.6s forwards;
}

.mn-hero__scroll span {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.mn-hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(207,181,59,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* --- STATS BAR --- */
.mn-stats {
    background: #001929;
    border-top: 1px solid rgba(207,181,59,0.2);
    border-bottom: 1px solid rgba(207,181,59,0.2);
    padding: 0;
}

.mn-stats__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}

.mn-stat {
    padding: 40px 30px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.mn-stat:last-child { border-right: none; }

.mn-stat__num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 700;
    color: var(--monnas-gold);
    line-height: 1;
    display: block;
}

.mn-stat__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
    display: block;
}

/* --- SECTION UTILITY --- */
.mn-section {
    padding: 110px 60px;
}

.mn-section--dark {
    background: #001929;
}

.mn-section--light {
    background: #f5f3ee;
}

.mn-section--mid {
    background: #003B5C;
}

.mn-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--monnas-gold);
    margin-bottom: 16px;
    display: block;
}

.mn-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 24px;
}

.mn-heading--light { color: #fff; }
.mn-heading--dark  { color: #001929; }
.mn-heading--brown { color: var(--monnas-brown); }

.mn-body {
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
}

.mn-body--light { color: rgba(255,255,255,0.6); }
.mn-body--dark  { color: #4a4a4a; }

/* --- VALUE PROPS --- */
.mn-props {
    max-width: 1200px;
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.mn-prop {
    padding: 50px 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    transition: background 0.4s;
}

.mn-prop::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--monnas-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mn-prop:hover { background: rgba(255,255,255,0.05); }
.mn-prop:hover::before { transform: scaleX(1); }

.mn-prop__icon {
    font-size: 2rem;
    margin-bottom: 24px;
    display: block;
}

.mn-prop__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
}

.mn-prop__body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
}

.mn-prop__num {
    position: absolute;
    bottom: 20px;
    right: 24px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(207,181,59,0.06);
    line-height: 1;
}

/* --- HERITAGE SPLIT --- */
.mn-heritage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1300px;
    margin: 0 auto;
    gap: 80px;
    align-items: center;
}

.mn-heritage__visual {
    position: relative;
}

.mn-heritage__img-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.mn-heritage__img-wrap img {
    width: 100%;
    display: block;
    filter: sepia(30%) contrast(1.1);
}


.mn-heritage__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 130px;
    height: 130px;
    background: var(--monnas-gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 40px rgba(207,181,59,0.4);
}

.mn-heritage__badge-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #001929;
    line-height: 1;
}

.mn-heritage__badge-txt {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(0,25,41,0.7);
}

.mn-heritage__text { padding: 20px 0; }

.mn-heritage__pull {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-style: italic;
    color: rgba(255,255,255,0.45);
    border-left: 2px solid var(--monnas-gold);
    padding-left: 24px;
    margin: 32px 0;
    line-height: 1.6;
}

.mn-checklist {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mn-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    font-weight: 300;
}

.mn-checklist li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid var(--monnas-gold);
    border-radius: 50%;
    margin-top: 3px;
    background: radial-gradient(circle at center, rgba(207,181,59,0.3), transparent 70%);
}

/* --- GUILDS TEASER --- */
.mn-guilds-teaser {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.mn-guild-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 50px;
}

.mn-guild-pill {
    display: inline-block;
    text-decoration: none;
    padding: 14px 28px;
    border: 1px solid rgba(207,181,59,0.3);
    border-radius: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
    transition: all 0.3s;
    background: rgba(207,181,59,0.04);
}

.mn-guild-pill:hover {
    background: var(--monnas-gold);
    color: #001929;
    border-color: var(--monnas-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(207,181,59,0.25);
}

.mn-guilds-cta {
    margin-top: 50px;
}

/* --- TESTIMONIALS --- */
.mn-testimonials {
    max-width: 1100px;
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mn-testimonial {
    padding: 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 4px;
    position: relative;
}

.mn-testimonial::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    color: rgba(207,181,59,0.2);
    position: absolute;
    top: 10px;
    left: 24px;
    line-height: 1;
}

.mn-testimonial__text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
    padding-top: 30px;
}

.mn-testimonial__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mn-testimonial__avatar {
    width: 44px;
    height: 44px;
    background: var(--monnas-blue);
    border: 2px solid rgba(207,181,59,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--monnas-gold);
    flex-shrink: 0;
}

.mn-testimonial__name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.mn-testimonial__meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    font-weight: 300;
}

/* --- FINAL CTA BAND --- */
.mn-cta-band {
    position: relative;
    background: linear-gradient(120deg, #001929 0%, #003B5C 50%, #001929 100%);
    padding: 120px 60px;
    text-align: center;
    overflow: hidden;
}

.mn-cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(207,181,59,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(207,181,59,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}

.mn-cta-band__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.mn-cta-band__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.mn-cta-band__title em { color: var(--monnas-gold); font-style: italic; }

.mn-cta-band__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
    margin-bottom: 48px;
    line-height: 1.7;
}

.mn-cta-band__btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- FOOTER --- */
.mn-footer {
    background: #000d1a;
    border-top: 1px solid rgba(207,181,59,0.15);
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.mn-footer__logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.mn-footer__copy a {
    color: var(--monnas-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mn-footer__copy a:hover {
    color: #fff; /* Changes to white on hover for a nice effect */
    text-decoration: underline;
}

.mn-footer__links {
    display: flex;
    gap: 24px;
}

.mn-footer__links a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    transition: color 0.3s;
}

.mn-footer__links a:hover { color: var(--monnas-gold); }

/* --- ANIMATIONS --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

.mn-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.mn-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.mn-reveal-delay-1 { transition-delay: 0.1s; }
.mn-reveal-delay-2 { transition-delay: 0.2s; }
.mn-reveal-delay-3 { transition-delay: 0.3s; }
.mn-reveal-delay-4 { transition-delay: 0.4s; }
.mn-reveal-delay-5 { transition-delay: 0.5s; }

/* --- RESPONSIVE FOR NEW INDEX SECTIONS --- */
@media (max-width: 1000px) {
    .mn-heritage { grid-template-columns: 1fr; gap: 50px; }
    .mn-heritage__badge { bottom: 16px; right: 16px; }
    .mn-props { grid-template-columns: 1fr; }
    .mn-testimonials { grid-template-columns: 1fr; }
    .mn-stats__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .mn-section { padding: 70px 24px; }
    .mn-stats__inner { grid-template-columns: repeat(2, 1fr); }
    .mn-stat { padding: 28px 16px; }
    .mn-footer { flex-direction: column; text-align: center; padding: 40px 24px; }
    .mn-cta-band { padding: 80px 24px; }
    .dashboard-header { padding: 15px 20px; }
}