/* ===== DRAGONHOOD GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* ===== NAVIGATION ===== */
.dragonhood-nav {
    background: #1a1a2e;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.nav-brand h1 {
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 0.2rem;
}

.nav-brand p {
    font-size: 0.9rem;
    color: #ccc;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-links a.active {
    background: #d4af37;
    color: #1a1a2e;
}

.nav-links .premium-link {
    background: #e74c3c;
    color: white;
    font-weight: bold;
}

.nav-links .premium-link:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.nav-links .auth-link {
    background: #3498db;
    color: white;
}

/* ===== AUTH FORMS ===== */
.auth-form {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.auth-form input,
.auth-form textarea,
.auth-form select {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.auth-form textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.auth-form small {
    display: block;
    margin-top: -5px;
    margin-bottom: 15px;
    color: #666;
    font-size: 12px;
}

.auth-form .btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-form .btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.auth-form .btn-admin {
    background: #e74c3c;
}

.auth-form .btn-admin:hover {
    background: #c0392b;
}

#message {
    margin: 15px 0;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== DASHBOARD ===== */
.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.membership-status {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.membership-status h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.status-active {
    color: #27ae60;
    font-weight: 600;
}

.status-pending {
    color: #f39c12;
}

.lifelong-countdown {
    background: #2c3e50;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin: 0.5rem 0;
    font-weight: 600;
}

.messages-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.message-header {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.message-thread {
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.message-bubble {
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    max-width: 70%;
    position: relative;
}

.message-user {
    background: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.message-admin {
    background: #f5f5f5;
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

.message-form {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.message-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 1rem;
    font-family: inherit;
}

.message-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.message-form button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ===== ADMIN PANEL ===== */
.admin-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.admin-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.admin-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.user-card {
    border: 1px solid #eee;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.user-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.user-card.pending {
    border-left: 4px solid #f39c12;
    background: #fffbf0;
}

.user-card.active_monthly {
    border-left: 4px solid #3498db;
    background: #f0f8ff;
}

.user-card.lifelong {
    border-left: 4px solid #27ae60;
    background: #f0fff4;
}

.user-info {
    flex: 1;
}

.user-info strong {
    color: #2c3e50;
}

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

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #219653;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #d68910;
}

.payment-card {
    border: 1px solid #eee;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.payment-card.pending {
    border-left: 4px solid #f39c12;
}

.payment-card.verified {
    border-left: 4px solid #27ae60;
}

.payment-card.rejected {
    border-left: 4px solid #e74c3c;
}

/* ===== SOVEREIGN STACK STYLES ===== */
.sovereign-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

.intro-box {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    text-align: center;
}

.intro-box h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.intro-box .subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    font-style: italic;
}

.law, .pillar, .module {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-left: 4px solid;
}

.law h3, .pillar h3, .module h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.key-principle {
    font-weight: bold;
    color: #2c3e50;
    background-color: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.principle-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #3498db;
    border-left: 3px solid #3498db;
    padding-left: 1rem;
    margin: 1.5rem 0;
}

.sovereign-stack-nav {
    background: #2c3e50;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.sovereign-stack-nav h3 {
    color: #d4af37;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stack-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
}

.stack-links li {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.stack-links li:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.stack-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: block;
}

.stack-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.conclusion-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin: 3rem 0;
    text-align: center;
}

.conclusion-box h2 {
    color: white;
    margin-bottom: 1.5rem;
}

/* ===== MEMBERSHIP PAGE ===== */
.membership-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.membership-tier {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 3rem auto;
    max-width: 800px;
    border: 3px solid #d4af37;
}

.membership-tier h2 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 2rem;
}

.price-display {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin: 2rem 0;
}

.price-period {
    font-size: 1.2rem;
    color: #666;
}

.payment-instructions {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.bitcoin-address {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 1rem;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 1.1rem;
    text-align: center;
    border-radius: 5px;
    word-break: break-all;
}

.benefits-list {
    list-style: none;
    margin: 2rem 0;
}

.benefits-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.benefits-list li:before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
.dragonhood-footer {
    background: #1a1a2e;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-brand h3 {
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-legal {
    color: #888;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .damian-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .sovereign-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-sections {
        grid-template-columns: 1fr;
    }
    
    .stack-links {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .dragonhood-nav,
    .dragonhood-footer,
    .dragonhood-cta {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .sovereign-content {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .law, .pillar, .module {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
/* Fix Language Switcher Position */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.language-selector {
    margin-left: auto;
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Fix container width */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Ensure no horizontal scroll */
body {
    overflow-x: hidden;
}

/* Fix navigation */
.dragonhood-nav {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language selector position */
.language-selector {
    margin-left: auto;
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}
