/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6a0dad;
    --secondary: #00ff7f;
    --accent: #ff4081;
    --dark: #121212;
    --dark-gray: #1e1e1e;
    --medium-gray: #2d2d2d;
    --light-gray: #3d3d3d;
    --text: #ffffff;
    --text-light: #b0b0b0;
    --success: #00ff7f;
    --warning: #ffaa00;
    --error: #ff4081;
    --info: #2196f3;
    
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-dark: linear-gradient(135deg, var(--primary), #4a0080);
    --gradient-accent: linear-gradient(135deg, var(--accent), #ff6b9d);
    
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 32px rgba(106, 13, 173, 0.3);
    
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(106, 13, 173, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 127, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 64, 129, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text);
}

h1 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--secondary);
}

h3 {
    font-size: 1.5rem;
    color: var(--text);
}

h4 {
    font-size: 1.25rem;
    color: var(--text-light);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #00cc66;
    text-decoration: underline;
}

small {
    font-size: 0.875rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.logo i {
    color: var(--secondary);
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: rgba(0, 255, 127, 0.1);
    color: var(--secondary);
    text-decoration: none;
}

.nav-menu a.active {
    background: var(--gradient);
    color: var(--dark);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#userGreeting {
    color: var(--text-light);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #ff1a66;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: var(--dark);
}

.btn-success:hover {
    background: #00cc66;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(106, 13, 173, 0.2);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 255, 127, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    z-index: 1;
}

.input-group .form-control {
    padding-left: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    z-index: 1;
}

/* ===== AUTHENTICATION PAGES ===== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: var(--gradient);
}

.auth-card {
    background: var(--dark-gray);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-section {
    background: var(--gradient);
    padding: 2.5rem;
    text-align: center;
    color: var(--dark);
}

.logo-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    -webkit-text-fill-color: var(--dark);
}

.tagline {
    opacity: 0.9;
    font-size: 0.9rem;
    color: rgba(18, 18, 18, 0.8);
}

.form-container {
    padding: 2.5rem;
}

.form-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-light);
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn.active {
    color: var(--secondary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
    text-align: center;
    color: var(--text-light);
}

/* ===== HOME PAGE ===== */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 127, 0.1);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--secondary);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(106, 13, 173, 0.1);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.action-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* ===== COMMUNITY PAGE ===== */
.community-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
}

.community-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(106, 13, 173, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--primary);
    font-weight: 500;
}

.stat-badge i {
    color: var(--secondary);
}

.community-layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 1.5rem;
    margin-top: 2rem;
}

.sidebar-card {
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(106, 13, 173, 0.3);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 0.75rem;
    margin: 0.25rem 0;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.category-list li:hover,
.category-list li.active {
    background: var(--gradient);
    color: var(--dark);
}

.contributors-list,
.rules-list {
    margin-top: 1rem;
}

.contributor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.contributor:last-child {
    border-bottom: none;
}

.contributor-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.create-post-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.post-avatar {
    font-size: 2rem;
    color: var(--secondary);
    min-width: 40px;
}

.post-editor {
    flex: 1;
}

.post-editor textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(106, 13, 173, 0.5);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.post-editor textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-select,
.sort-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--text);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    min-width: 150px;
}

.section-title {
    color: var(--secondary);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.community-post {
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.community-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.community-post.pinned {
    border-left: 4px solid var(--secondary);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--light-gray);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark);
}

.author-info small {
    color: var(--text-light);
    display: block;
}

.pin-badge {
    background: var(--secondary);
    color: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-content h4 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.post-content h4:hover {
    color: #00cc66;
}

.read-more {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.post-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
}

.stat-btn:hover {
    color: var(--secondary);
    background: rgba(0, 255, 127, 0.1);
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow-y: auto;
    padding: 1rem;
}

.modal-content {
    background: var(--dark-gray);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    width: 100%;
    border: 2px solid var(--primary);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.comment-section {
    margin-top: 2rem;
}

.add-comment {
    margin: 1.5rem 0;
}

.add-comment textarea {
    width: 100%;
    min-height: 80px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(106, 13, 173, 0.5);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.comment {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin: 0.75rem 0;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-avatar {
    width: 30px;
    height: 30px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--dark);
}

/* ===== PAYMENT PAGE ===== */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.payment-card {
    text-align: center;
}

.payment-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.payment-header i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.wallet-address {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin: 1rem 0;
    border: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.wallet-address code {
    font-family: 'Courier New', monospace;
    color: var(--secondary);
    word-break: break-all;
    text-align: left;
    flex: 1;
}

.bank-details {
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-light);
    font-weight: 500;
}

.detail-value {
    color: var(--text);
    font-weight: 600;
}

.plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.plan {
    padding: 1.5rem;
    background: rgba(106, 13, 173, 0.1);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.plan:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.plan.featured {
    background: var(--gradient);
    color: var(--dark);
    border: none;
}

.plan.featured h4,
.plan.featured p,
.plan.featured li {
    color: var(--dark);
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 1rem 0;
}

.plan.featured .plan-price {
    color: var(--dark);
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features li i.fa-check {
    color: var(--success);
}

.plan.featured .plan-features li i.fa-check {
    color: var(--dark);
}

.plan-features li i.fa-times {
    color: var(--error);
}

.support-options {
    /* Quotes Page Styles */
.quote-display {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.quote-card {
    background: rgba(106, 13, 173, 0.1);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
}

.quote-card::after {
    content: '"';
    font-size: 4rem;
    color: var(--secondary);
    position: absolute;
    bottom: 10px;
    right: 20px;
    opacity: 0.3;
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.quote-author {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quote-anime {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.quote-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.loading-quote {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

.loading-quote i {
    margin-right: 10px;
    color: var(--secondary);
}

.quote-info {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .quote-text {
        font-size: 1.2rem;
    }
    
    .quote-card {
        padding: 2rem 1rem;
    }
    
    .quote-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .quote-controls button {
        width: 100%;
        max-width: 250px;
    }
}
