.module-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.module-nav .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.module-nav .nav-brand .logo-icon {
    font-size: 28px;
}

.module-nav .nav-brand a {
    color: white;
    text-decoration: none;
}

.module-nav .nav-links {
    display: flex;
    gap: 20px;
}

.module-nav .nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
}

.module-nav .nav-links a:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.module-nav .nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.module-nav .balance-display {
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.module-nav .logout-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.module-nav .logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

.sub-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #2d3436;
    gap: 16px;
    flex-wrap: wrap;
}

.sub-notice.notice-none {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-left: 4px solid #e17055;
}

.sub-notice.notice-pay-per-use {
    background: linear-gradient(135deg, #74b9ff 0%, #a29bfe 100%);
    color: white;
    border-left: 4px solid #6c5ce7;
}

.sub-notice button {
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s;
}

.sub-notice button:hover {
    transform: translateY(-1px);
}

.sub-notice .btn-subscribe {
    background: #d63031;
    color: white;
}

.sub-notice .btn-upgrade {
    background: white;
    color: #6c5ce7;
}

.mb-toast {
    position: fixed;
    top: 80px;
    right: 30px;
    padding: 14px 24px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: mb-slide-in 0.3s ease-out;
    max-width: 400px;
}

.mb-toast-success { background: #00b894; }
.mb-toast-error { background: #d63031; }
.mb-toast-info { background: #0984e3; }
.mb-toast-warning { background: #fdcb6e; color: #2d3436; }

@keyframes mb-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.mb-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.mb-modal {
    background: white;
    border-radius: 16px;
    padding: 28px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    animation: mb-modal-in 0.3s ease-out;
}

@keyframes mb-modal-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.mb-modal-header {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 16px;
    text-align: center;
}

.mb-modal-body {
    color: #636e72;
    margin-bottom: 24px;
    line-height: 1.6;
    white-space: pre-line;
    text-align: center;
}

.mb-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mb-btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mb-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mb-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

.mb-btn-secondary {
    background: #f0f0f0;
    color: #636e72;
}

.mb-btn-secondary:hover {
    background: #e0e0e0;
}

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

@media (max-width: 768px) {
    .module-nav {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .module-nav .nav-links {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .module-nav .nav-links a {
        padding: 4px 8px;
        font-size: 12px;
    }
}