:root {
    --primary-color: #000000;
    --accent-color: #D4AF37; /* Gold */
    --text-color: #ffffff;
    --bg-color: #000000;
    --card-bg: #111111;
    --secondary-text: #A0A0A0;
    --border-color: #222222;
    --danger-color: #E63946;
    --success-color: #2A9D8F;
    --container-max-width: 600px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
    width: 100%;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Layout */
header {
    background-color: #000;
    border-bottom: 2px solid var(--accent-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 900;
}

main {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem 1rem 80px;
}

/* Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0a0a0a;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
}

.bottom-nav a {
    text-decoration: none;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    font-weight: bold;
    flex: 1;
}

.bottom-nav a.active { color: var(--accent-color); }
.material-icons {
    font-family: 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

/* Grid Home */
.grid-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.menu-item {
    background-color: #111;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 1.5rem 0.5rem;
    text-align: center;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-item .material-icons {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.menu-item span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Emergency Trigger */
.emergency-trigger {
    background: linear-gradient(135deg, #d32f2f, #8B0000);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.emergency-trigger .label { font-weight: 900; font-size: 1.1rem; text-transform: uppercase; }

/* Global Components */
.card {
    background-color: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    width: 100%;
}

.card h2 {
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-bottom: 1px solid #222;
    padding-bottom: 0.5rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.5rem;
    background-color: var(--accent-color);
    color: black;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.emergency-call { background-color: var(--danger-color) !important; color: white !important; }

/* Image Fixed Sizes */
.member-photo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--accent-color);
}

.id-photo-large {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    border: 3px solid var(--accent-color);
    object-fit: cover;
    margin: 0 auto 1rem;
}

/* Responsive Desktop */
@media (min-width: 600px) {
    .grid-menu { grid-template-columns: repeat(4, 1fr); }
}

/* Toast */
#toast {
    visibility: hidden;
    min-width: 200px;
    background-color: var(--success-color);
    color: white;
    text-align: center;
    border-radius: 30px;
    padding: 12px;
    position: fixed;
    z-index: 2000;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 0.8rem;
}
#toast.show { visibility: visible; }
