/* ============================================================
   ADVENTURE OF CLAIR — NATION CSS (COMPLETE)
   ============================================================ */

/* No Nation Screen */
.nation-no-nation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    min-height: 60vh;
}
.nation-hero i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: var(--space-md);
}
.nation-hero h2 {
    margin-bottom: var(--space-sm);
}
.nation-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    max-width: 300px;
    margin-top: var(--space-xl);
}

/* Dashboard Header */
.nation-dashboard {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.nation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}
.nation-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.nation-header-left i {
    font-size: 1.8rem;
}
.nation-header-left h2 {
    margin: 0;
    font-size: 1.2rem;
}
.nation-members {
    background: var(--color-bg-elevated);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.nation-members:hover {
    background: var(--color-border-hover);
}

/* Tabs */
.nation-tabs {
    display: flex;
    gap: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-xs);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.nation-tab {
    background: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}
.nation-tab.active {
    background: rgba(255,215,0,0.1);
    color: var(--gold);
}
.nation-tab:hover {
    color: var(--text-primary);
}

/* Tab Content */
.nation-tab-content {
    margin-top: var(--space-md);
    min-height: 50vh;
}

/* Feed Items */
.nation-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.nation-feed-item {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.feed-type {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.feed-type.announcement {
    background: rgba(245,200,66,0.2);
    color: var(--gold);
}
.feed-type.poll {
    background: rgba(124,77,255,0.2);
    color: #a855f7;
}
.feed-type.system_event {
    background: rgba(46,204,113,0.2);
    color: #2ecc71;
}
.feed-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.nation-feed-item h4 {
    margin: 8px 0 4px;
    font-size: 0.95rem;
}
.feed-content {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

/* Poll Options */
.poll-options {
    margin: var(--space-sm) 0;
}
.poll-option {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    margin-bottom: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}
.poll-option.voted {
    border-left: 3px solid var(--gold);
}
.poll-option-text {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
}
.poll-option-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(255,215,0,0.15);
    z-index: 1;
    transition: width 0.3s ease;
}
.poll-option-stats {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    position: relative;
    z-index: 2;
}

/* Reactions */
.feed-reactions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}
.reaction-btn {
    background: var(--color-bg-elevated);
    border: none;
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.reaction-btn:hover {
    background: rgba(255,215,0,0.2);
    transform: scale(1.05);
}

.floating-emoji {
    position: fixed;
    pointer-events: none;
    font-size: 2.5rem;
    animation: float-up 1s ease-out forwards;
    z-index: 10000;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
}
@keyframes float-up {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -80px) scale(1.2);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -150px) scale(0.8);
        opacity: 0;
    }
}
/* Leaderboard */
.leaderboard-controls {
    margin-bottom: var(--space-md);
}
.period-selector {
    display: flex;
    gap: var(--space-sm);
}
.period-btn {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.period-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}
.leaderboard-ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
.leaderboard-ol li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}
.leaderboard-ol li.me {
    background: rgba(255,215,0,0.08);
    border-radius: var(--radius-md);
    padding: 10px;
    margin: 4px 0;
}
.rank {
    font-weight: 800;
    width: 40px;
    color: var(--gold);
}
.name {
    flex: 1;
}
.xp {
    font-weight: 700;
    color: var(--gold);
}

/* Discover Screen */
.discover-search {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
.discover-search input {
    flex: 1;
    padding: 10px 12px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: white;
}
.discover-search button {
    background: var(--gold);
    border: none;
    border-radius: var(--radius-md);
    padding: 0 16px;
    cursor: pointer;
    color: #000;
}
.discover-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
}
.discover-icon i {
    font-size: 2rem;
}
.discover-info {
    flex: 1;
}
.discover-info h4 {
    margin: 0;
    font-size: 1rem;
}
.discover-info p {
    margin: 4px 0 0;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.join-nation, .cancel-request {
    background: rgba(255,215,0,0.15);
    border: 1px solid rgba(255,215,0,0.3);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    color: var(--gold);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.join-nation:hover, .cancel-request:hover {
    background: rgba(255,215,0,0.3);
}
.btn-sm.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Members Tab */
.members-subtabs {
    display: flex;
    gap: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
}
.members-subtab {
    background: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.members-subtab.active {
    background: rgba(255,215,0,0.1);
    color: var(--gold);
}
.member-card, .pending-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    transition: all var(--transition-fast);
}
.member-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.member-avatar, .pending-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-inverse);
    flex-shrink: 0;
}
.member-details, .pending-details {
    flex: 1;
}
.member-name, .pending-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}
.member-stats, .pending-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.member-view-btn {
    background: none;
    color: var(--gold);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}
.member-view-btn:hover {
    background: rgba(255,215,0,0.1);
}
.pending-actions {
    display: flex;
    gap: 8px;
}
.btn-approve, .btn-deny {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}
.btn-approve {
    background: rgba(46,204,113,0.2);
    color: #2ecc71;
}
.btn-approve:hover {
    background: rgba(46,204,113,0.4);
}
.btn-deny {
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
}
.btn-deny:hover {
    background: rgba(231,76,60,0.4);
}

/* Profile Modal */
.profile-modal {
    text-align: center;
    padding: var(--space-md);
}
.profile-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto var(--space-md);
    color: var(--text-inverse);
}
.profile-stats {
    display: flex;
    justify-content: space-around;
    margin: var(--space-md) 0;
}
.profile-stats div {
    text-align: center;
}
.profile-stats span {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

/* Settings Section */
.nation-settings {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}
.settings-section {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
}
.settings-section h3 {
    margin-bottom: var(--space-md);
    font-size: 1rem;
}
.settings-section input, .settings-section textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: white;
    margin-bottom: var(--space-sm);
}
.settings-section textarea {
    min-height: 80px;
    resize: vertical;
}
.icon-picker {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}
.icon-picker label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}
.btn-danger {
    background: rgba(231,76,60,0.2);
    border: 1px solid rgba(231,76,60,0.5);
    color: #e74c3c;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-fast);
}
.btn-danger:hover {
    background: rgba(231,76,60,0.4);
}

/* FAB (Floating Action Button) */
.nation-fab {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: transform var(--transition-fast);
}
.nation-fab:hover {
    transform: scale(1.05);
}
.nation-fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--color-bg-2);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}
.nation-fab-menu.hidden {
    display: none;
}
.nation-fab-menu button {
    background: none;
    padding: 8px 12px;
    text-align: left;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nation-fab-menu button:hover {
    background: var(--color-bg-elevated);
}

/* Loading & Empty States */
.nation-loading, .nation-error, .nation-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}
.nation-error {
    color: var(--accent-red);
}

/* Full Screen Modal for Create/Edit */
.modal-full {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    animation: modal-slide-up 0.3s ease;
}
.modal-full-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-2);
}
.modal-full-header h3 {
    margin: 0;
}
.modal-full-close {
    background: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}
.modal-full-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}
.modal-full-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
}
@keyframes modal-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (min-width: 768px) {
    .nation-fab {
        bottom: 24px;
        right: 24px;
    }
    .modal-full {
        max-width: 600px;
        margin: 0 auto;
        border-radius: var(--radius-xl);
        top: 10%;
        bottom: 10%;
        left: auto;
        right: auto;
        box-shadow: var(--shadow-lg);
    }
}
/* Full screen portal for announcement/poll */
.fullscreen-portal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: portal-fade-in 0.2s ease;
}
@keyframes portal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.portal-container {
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
}
.portal-card {
    background: var(--color-bg-2);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}
.portal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}
.portal-close:hover {
    background: rgba(255,255,255,0.2);
    color: var(--text-primary);
}
.portal-header {
    text-align: center;
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--color-border);
}
.portal-header i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 8px;
}
.portal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--gold);
}
.portal-body {
    padding: 24px 20px;
}
.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(255,215,0,0.2);
}
.input-group textarea {
    resize: vertical;
    font-family: inherit;
}
#poll-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.poll-option-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}
.portal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px 24px;
    border-top: 1px solid var(--color-border);
}
.portal-footer button {
    flex: 1;
}
/* Back button for discover screen */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: var(--space-md);
    transition: all var(--transition-fast);
}
.btn-back:hover {
    background: var(--color-border-hover);
}
.portal-body select {
    width: 100%;
    padding: 12px 14px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}
.portal-body select option {
    background: var(--color-bg-2);
    color: var(--text-primary);
}
.portal-body small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}
/* War Vote Face-off */
.war-faceoff {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    margin: 15px 0;
    padding: 15px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
}
.war-nation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.war-nation i {
    font-size: 2.5rem;
}
.war-nation span {
    font-weight: 600;
    font-size: 0.8rem;
}
.war-vs {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
}
.war-stake {
    font-size: 0.85rem;
    color: var(--gold);
    text-align: center;
    margin: 8px 0;
}
.war-deadline {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 12px;
}
.war-vote-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 10px 0;
}
.war-vote-yes, .war-vote-no {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}
.war-vote-yes {
    background: rgba(46,204,113,0.2);
    color: #2ecc71;
}
.war-vote-yes:hover {
    background: rgba(46,204,113,0.4);
}
.war-vote-no {
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
}
.war-vote-no:hover {
    background: rgba(231,76,60,0.4);
}
.war-vote-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.75rem;
    margin: 8px 0;
}
.war-expired {
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
    margin: 10px 0;
}
.war-info-btn {
    background: none;
    border: 1px solid var(--color-border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 8px;
}
/* Pending badge */
.pending-badge {
    background: var(--accent-red);
    color: white;
    border-radius: var(--radius-full);
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 5px;
    vertical-align: middle;
}

/* Nation XP display */
.nation-xp {
    background: var(--color-bg-elevated);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    margin-left: 8px;
}
.nation-xp i {
    color: var(--gold);
    margin-right: 4px;
}

/* Clickable nation card */
.clickable-nation-card {
    cursor: pointer;
    transition: transform 0.2s;
}
.clickable-nation-card:hover {
    transform: translateY(-2px);
}

/* Pending inline list */
.pending-list-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}
.pending-inline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-elevated);
    padding: 8px 12px;
    border-radius: var(--radius-md);
}
.btn-approve-sm, .btn-deny-sm {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin-left: 5px;
}
.btn-approve-sm {
    background: rgba(46,204,113,0.2);
    color: #2ecc71;
}
.btn-deny-sm {
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
}

/* Member item in modal */
.member-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
}
.member-item:hover {
    background: var(--color-bg-elevated);
}
.member-joined {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Clickable nation in war vote */
.clickable-nation {
    cursor: pointer;
}
.clickable-nation:hover {
    opacity: 0.8;
}
.fullscreen-members-modal .modal-sheet-full {
    max-width: 90%;
    width: 90%;
    height: 80vh;
    overflow-y: auto;
    border-radius: var(--radius-xl);
}
.members-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.members-tab {
    background: none;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
}
.members-tab.active {
    background: rgba(255,215,0,0.1);
    color: var(--gold);
}
.members-list-fullscreen {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.member-full-item, .pending-full-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    cursor: pointer;
}
.member-avatar-small {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-inverse);
}
.member-info {
    flex: 1;
}
.member-name {
    font-weight: 700;
}
.member-stats {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.member-join-date {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.pending-actions-full {
    display: flex;
    gap: 8px;
}
.challenge-faceoff {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 12px 0;
    font-weight: bold;
}
.challenge-faceoff .vs {
    font-size: 1.2rem;
    color: var(--gold);
}
.challenge-stake, .challenge-deadline {
    font-size: 0.8rem;
    margin: 6px 0;
}
.challenge-actions-feed {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.btn-accept-challenge, .btn-decline-challenge {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.btn-accept-challenge {
    background: rgba(46,204,113,0.2);
    color: #2ecc71;
}
.btn-decline-challenge {
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
}
.challenge-faceoff {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 12px 0;
    font-weight: bold;
}
.challenge-faceoff .vs {
    font-size: 1.2rem;
    color: var(--gold);
}
.challenge-stake, .challenge-deadline, .challenge-powers {
    font-size: 0.8rem;
    margin: 6px 0;
}
.challenge-actions-feed {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.btn-accept-challenge, .btn-decline-challenge {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.btn-accept-challenge {
    background: rgba(46,204,113,0.2);
    color: #2ecc71;
}
.btn-decline-challenge {
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
}
.btn-play-challenge {
    margin-top: 10px;
    background: var(--gold);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
}
/* ── Create Nation Modal ─────────────────────────────────── */
.create-nation-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
}
.cn-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: -4px;
}
.cn-label small { font-weight: 400; color: var(--text-muted); }
.req { color: #e74c3c; }
.cn-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
}
.cn-input:focus { border-color: rgba(245,200,66,0.5); }
.cn-icon-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.5;
    background: rgba(245,200,66,0.06);
    border-left: 3px solid rgba(245,200,66,0.35);
    padding: 7px 10px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: -4px 0 0;
}
.cn-icon-hint code {
    background: rgba(0,0,0,0.3);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.68rem;
    color: var(--gold);
}
.cn-icon-hint em { color: rgba(245,200,66,0.7); }
.cn-icon-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.cn-icon-row .cn-icon-input { flex: 1; }
.cn-icon-preview {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.cn-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cn-color-picker {
    width: 44px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
    cursor: pointer;
    padding: 2px;
}
#cn-color-val {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}
.cn-textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 68px;
}
.cn-textarea:focus { border-color: rgba(245,200,66,0.5); }
.cn-help-btn {
    background: none;
    border: none;
    color: rgba(245,200,66,0.7);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}
.cn-help-btn:hover { color: var(--gold); }

/* ── Icon Help Modal ─────────────────────────────────────── */
.icon-help-body { display: flex; flex-direction: column; gap: 12px; }
.icon-help-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.icon-help-step strong { color: var(--text-primary); }
.icon-help-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(245,200,66,0.18);
    border: 1px solid rgba(245,200,66,0.45);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.icon-help-prompt {
    margin-top: 5px;
    padding: 7px 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}
.icon-help-step code {
    background: rgba(0,0,0,0.3);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.68rem;
    color: var(--gold);
}
.icon-examples-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.icon-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.icon-chip:hover {
    border-color: rgba(245,200,66,0.5);
    color: var(--gold);
}
.icon-chip i { color: var(--gold); font-size: 0.78rem; }
.icon-examples-wrap .icon-chip i { color: var(--gold); }
/* ==================== GOALS ==================== */
.goals-tab { padding: 12px; }

.goals-king-actions {
    margin-bottom: 16px;
}

.goal-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}

.goal-card.goal-completed {
    border-color: rgba(46, 204, 113, 0.4);
    background: rgba(46, 204, 113, 0.05);
}

.goal-card.goal-expired {
    border-color: rgba(231, 76, 60, 0.3);
    opacity: 0.7;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.goal-icon-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.goal-icon-title i {
    color: var(--color-gold, #FFD700);
    font-size: 1.1rem;
}

.goal-title {
    font-size: 0.95rem;
}

.goal-reward {
    font-size: 0.8rem;
    color: var(--color-gold, #FFD700);
    font-weight: 700;
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}

.goal-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 4px 0 10px;
}

.goal-progress-wrap {
    margin-bottom: 10px;
}

.goal-progress-bar {
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.goal-card.goal-completed .goal-progress-fill {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.goal-progress-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

.goal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.goal-status.goal-completed { color: #2ecc71; }
.goal-status.goal-expired   { color: #e74c3c; }
.goal-status.goal-active    { color: var(--text-muted); }

/* Goal templates grid */
.goal-templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.goal-template-card {
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.goal-template-card i {
    font-size: 1.4rem;
    color: var(--color-gold, #FFD700);
}

.goal-template-card span {
    font-size: 0.8rem;
    font-weight: 600;
}

.goal-template-card small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.goal-template-card:hover,
.goal-template-card.selected {
    border-color: var(--color-gold, #FFD700);
    background: rgba(255, 215, 0, 0.08);
}

/* Goal feed item */
.goal-feed-item {
    background: var(--color-bg-elevated);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}

.goal-feed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.goal-feed-header i {
    color: var(--color-gold, #FFD700);
}

.goal-feed-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 4px 0 10px;
}

.feed-type.goal {
    background: rgba(255, 215, 0, 0.15);
    color: var(--color-gold, #FFD700);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}