/* CSS Variables */
:root {
    /* Colors */
    --primary-red: #DC2626;
    --secondary-silver: #C0C0C0;
    --background-dark: #111111;
    --surface-dark: #1A1A1A;
    --surface-darker: #0F0F0F;
    --text-gray: #888888;
    --text-light-gray: #666666;
    --border-color: #444444;
    --success-green: #10B981;
    --error-red: #EF4444;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-dark);
    color: var(--secondary-silver);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-silver);
    text-shadow: 2px 2px 4px #000;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 32rem;
    margin: 0 auto;
}

/* Layout */
.container {
    max-width: none;
    margin: 0;
    padding: 0 2rem;
}

.main-content {
    min-height: calc(100vh - 4rem - 6rem); /* Subtract header and footer */
    padding: 2rem 0;
    background-color: var(--background-dark);
}

/* Header */
.header {
    background-color: var(--surface-dark);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: none;
    margin: 0;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: hidden;
    margin-right: -0.1rem;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-silver);
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* Navigation */
.navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--secondary-silver);
    transition: all 0.2s ease;
    border-radius: 0;
}

.nav-link:hover {
    color: white;
    background-color: #333;
}

.nav-link.active {
    background-color: var(--primary-red);
    color: white;
}

.nav-link span {
    display: none;
}

@media (min-width: 640px) {
    .nav-link span {
        display: inline;
    }
}

.pulsechain-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    margin-left: 0.5rem;
}

.pulsechain-icon {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .pulsechain-info {
        display: flex;
    }
}

.pulsechain-info i {
    color: var(--primary-red);
    font-size: 1rem;
}

.chain-id {
    background-color: rgba(185, 28, 28, 0.2);
    color: var(--primary-red);
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
}

.connect-btn {
    background-color: var(--primary-red);
    color: white;
    border: 1px solid var(--primary-red);
    border-radius: 0;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: 0.5rem;
}

.connect-btn:hover {
    background-color: #991B1B;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header.text-center {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

/* Buttons */
.submit-comment-btn {
    background-color: var(--primary-red);
    color: white;
    border: 1px solid var(--primary-red);
    border-radius: 0;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    min-width: auto;
}

.submit-comment-btn:hover {
    background-color: #991B1B;
}

.submit-comment-btn:disabled {
    background-color: var(--border-color);
    border-color: var(--border-color);
    color: var(--text-gray);
    cursor: not-allowed;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.stat-card:hover {
    border-color: var(--primary-red);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 0.1rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

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

/* User Stats Grid */
.user-stats-grid {
    display: grid;
    grid-template-columns: 1fr repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-items: end;
    padding-right: 1rem;
}

@media (max-width: 768px) {
    .user-stats-grid {
        grid-template-columns: 1fr;
    }
}

.user-info-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    text-align: center;
}

.user-avatar {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.user-avatar i {
    color: white;
    font-size: 1.5rem;
}

.user-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-silver);
    margin-bottom: 0.25rem;
}

.user-email {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Controls Section */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .controls-section {
        flex-direction: row;
    }
}

.search-container {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light-gray);
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--secondary-silver);
    font-size: 1rem;
}

.search-input::placeholder {
    color: var(--text-light-gray);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.sort-buttons {
    display: flex;
    gap: 0.5rem;
}

.sort-btn {
    padding: 0.75rem 1rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--secondary-silver);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-btn:hover {
    background-color: var(--primary-red);
    color: white;
}

.sort-btn.active {
    background-color: var(--primary-red);
    color: white;
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 3rem 0;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(185, 28, 28, 0.3);
    border-top: 2px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.loading-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
}

.loading-thumbnail {
    width: 100%;
    height: 12rem;
    background-color: #444;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loading-content {
    padding: 1rem;
}

.loading-title {
    height: 1.5rem;
    background-color: #444;
    margin-bottom: 1rem;
    width: 75%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loading-subtitle {
    height: 1rem;
    background-color: #444;
    margin-bottom: 1.5rem;
    width: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loading-comments {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.loading-comment {
    height: 2.5rem;
    background-color: #444;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Comments Grid */
.comments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Comments Feed */
.comments-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: all 0.2s ease;
}

.comment-card:hover {
    border-color: var(--primary-red);
}

.comment-content {
    padding: 1.5rem;
}

.comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.125rem;
    font-weight: 500;
}

.badge.user {
    background-color: rgba(185, 28, 28, 0.2);
    color: var(--primary-red);
    border: 1px solid rgba(185, 28, 28, 0.3);
}

.badge.date {
    background-color: #444;
    color: var(--secondary-silver);
    border: 1px solid #555;
}

.badge.success {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.comment-video-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-video-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--secondary-silver);
    line-height: 1.4;
}

.comment-text {
    color: var(--secondary-silver);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Video Comment Card */
.video-comment-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-comment-card:hover {
    border-color: var(--primary-red);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 10rem;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-thumbnail:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    color: var(--primary-red);
    font-size: 2.5rem;
}

.video-content {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-silver);
    margin-bottom: 0.375rem;
    line-height: 1.3;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.comments-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
}

.comment-item {
    font-size: 0.875rem;
    border-left: 2px solid var(--border-color);
    padding-left: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-item-text {
    font-size: 0.875rem;
    border-left: 2px solid var(--border-color);
    padding-left: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.comment-item-text:hover {
    color: var(--primary-red);
    border-left-color: var(--primary-red);
    transform: translateX(2px);
}

.comment-item-text::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-red);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.comment-item-text:hover::before {
    transform: scaleY(1);
}

.comment-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--secondary-silver);
}

.modal-body {
    padding: 1.5rem;
}

/* Forms */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--secondary-silver);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light-gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.submit-btn {
    background-color: var(--primary-red);
    color: white;
    border: 1px solid var(--primary-red);
    border-radius: 0;
    padding: 0.75rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background-color: #991B1B;
}

.submit-btn:disabled {
    background-color: var(--border-color);
    border-color: var(--border-color);
    color: var(--text-gray);
    cursor: not-allowed;
}

/* Video Preview */
.video-preview {
    background-color: var(--background-dark);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.video-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-info img {
    width: 5rem;
    height: 3.5rem;
    object-fit: cover;
}

.video-detected {
    color: var(--secondary-silver);
    font-weight: 500;
}

.video-id {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0;
    margin-top: 1rem;
}

.alert.success {
    background-color: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert.success i {
    color: var(--success-green);
    margin-top: 0.125rem;
}

.alert.success a {
    color: var(--success-green);
    text-decoration: none;
    display: block;
    margin-top: 0.25rem;
}

.alert.success a:hover {
    text-decoration: underline;
}

.alert.error {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert.error i {
    color: var(--error-red);
    margin-top: 0.125rem;
}

/* Authentication */
.auth-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--primary-red);
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    max-width: 28rem;
}

.auth-icon {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-silver);
    margin-bottom: 1rem;
}

.auth-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.signin-btn {
    background-color: var(--primary-red);
    color: white;
    border: 1px solid var(--primary-red);
    border-radius: 0;
    padding: 0.75rem 2rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.signin-btn:hover {
    background-color: #991B1B;
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-silver);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* View All Links */
.view-all-section {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.view-all-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #991B1B;
}

/* Atropa Dev Comments Section */
.atropa-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.atropa-section .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

/* Video Detail Page Styles */
.video-section {
    margin-bottom: 3rem;
}

.video-container {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 0;
    overflow: hidden;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
}

.video-container iframe {
    display: block;
    width: 100%;
    height: 500px;
}

.video-info {
    padding: 1.5rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.video-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-silver);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.video-id {
    color: var(--text-gray);
    font-size: 1rem;
}

.comment-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.125rem;
}

/* Comment Submission Section */
.comment-submission-section {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 3rem;
}

.comment-submission-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-silver);
    margin-bottom: 1.5rem;
}

.video-comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Comments Section */
.comments-section {
    margin-bottom: 3rem;
}

.comments-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-silver);
    margin-bottom: 1.5rem;
}

.video-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-comments-list .video-comment-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: all 0.2s ease;
}

.video-comments-list .video-comment-card:hover {
    border-color: var(--primary-red);
}

.video-comments-list .comment-content {
    padding: 1.5rem;
}

.video-comments-list .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.video-comments-list .comment-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.video-comments-list .comment-text {
    color: var(--secondary-silver);
    line-height: 1.6;
    font-size: 1rem;
}

.external-link {
    color: var(--text-gray);
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.external-link:hover {
    color: var(--primary-red);
}



/* Notifications */
.success-notification,
.error-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.success-notification {
    background-color: rgba(16, 185, 129, 0.9);
    color: white;
    border: 1px solid var(--success-green);
}

.error-notification {
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
    border: 1px solid var(--error-red);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page i {
    font-size: 4rem;
    color: var(--error-red);
    margin-bottom: 1.5rem;
}

.error-page h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-silver);
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.back-btn {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: #991B1B;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 0;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-light-gray);
    margin-bottom: 1rem;
}

.empty-state h2,
.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light-gray);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--surface-dark);
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

.footer-content {
    max-width: none;
    margin: 0;
    padding: 2rem 2rem;
    text-align: center;
}

.footer-content p:first-child {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-content p:last-child {
    color: var(--text-light-gray);
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.125rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .controls-section {
        flex-direction: column;
    }
    
    .sort-buttons {
        justify-content: center;
    }
    
    .comments-grid {
        grid-template-columns: 1fr;
    }
    
    .atropa-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .footer-content {
        padding: 2rem 1rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo-text h1 {
        font-size: 1.125rem;
    }
    
    .logo-text p {
        display: none;
    }
}

/* Responsive adjustments for video page */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .video-container iframe {
        height: 300px;
    }
    
    .video-detail-title {
        font-size: 1.5rem;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Leaderboard Page Styles */
.leaderboard-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.stat-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-red);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-silver);
    line-height: 1;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Leaderboard Controls */
.leaderboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-section {
    flex: 1;
    min-width: 300px;
}

.search-input-wrapper {
    position: relative;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--secondary-silver);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.filter-section {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.75rem 1rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.filter-btn:hover {
    border-color: var(--primary-red);
    color: var(--secondary-silver);
}

.filter-btn.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

/* Refresh Button */
.refresh-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-red);
    border: 1px solid var(--primary-red);
    border-radius: 0;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.refresh-btn:hover {
    background-color: #B91C1C;
    border-color: #B91C1C;
    transform: translateY(-1px);
}

.refresh-btn:disabled {
    background-color: var(--text-light-gray);
    border-color: var(--text-light-gray);
    cursor: not-allowed;
    transform: none;
}

.refresh-btn i {
    font-size: 0.875rem;
}

/* Leaderboard Section */
.leaderboard-section {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 2rem;
}

.leaderboard-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.leaderboard-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-silver);
    margin: 0;
}

.refresh-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.total-holders-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-silver);
    font-weight: 500;
}

.total-holders-display i {
    color: var(--primary-red);
    font-size: 1rem;
}

#header-total-holders {
    font-weight: 600;
    color: var(--primary-red);
}

/* Leaderboard Table */
.leaderboard-table {
    overflow-x: auto;
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    background-color: var(--surface-darker);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--secondary-silver);
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.holder-row:hover {
    background-color: var(--surface-darker);
}

.holder-row.top-3 {
    background-color: rgba(220, 38, 38, 0.05);
}

/* Rank Column */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
}

.rank-badge.rank-1 {
    background-color: #FFD700;
    color: #000;
}

.rank-badge.rank-2 {
    background-color: #C0C0C0;
    color: #000;
}

.rank-badge.rank-3 {
    background-color: #CD7F32;
    color: #000;
}

.rank-badge.rank-1 i,
.rank-badge.rank-2 i,
.rank-badge.rank-3 i {
    font-size: 1.25rem;
}

/* Wallet Column */
.wallet-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--secondary-silver);
}

.wallet-info-with-token {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.token-contract-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--primary-red);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    max-width: fit-content;
}

.token-contract-badge i {
    font-size: 0.625rem;
}

.token-name {
    font-weight: 600;
}

.token-symbol {
    opacity: 0.9;
    font-weight: 400;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.copy-btn:hover {
    color: var(--primary-red);
}

/* Token and Comment Columns */
.token-count,
.comment-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-silver);
    font-weight: 500;
}

.token-count i {
    color: #FFD700;
}

.comment-count i {
    color: var(--primary-red);
}

/* Last Active Column */
.last-active {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Actions Column */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* Pagination */
.pagination-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-number {
    padding: 0.5rem 0.75rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 2.5rem;
}

.page-number:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.page-number.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.page-ellipsis {
    padding: 0.5rem 0.25rem;
    color: var(--text-gray);
}

/* Notifications */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success-notification {
    background-color: var(--success-green);
}

.notification.error-notification {
    background-color: var(--error-red);
}

.notification.info-notification {
    background-color: var(--primary-red);
}

.notification i {
    font-size: 1.125rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Primary Button */
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-red);
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.primary-btn:hover {
    background-color: #991B1B;
    color: white;
}

/* My Comments Section */
.my-comments-section {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 2rem;
}

/* Responsive adjustments for profile page */
@media (max-width: 768px) {
    .profile-actions {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-buttons {
        justify-content: center;
    }
}

/* Profile page specific stat card styles */
.user-stats-grid .stat-card {
    padding: 12px;
    margin-left: 20px;
}

.user-stats-grid .stat-card .stat-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.user-stats-grid .stat-card .stat-number {
    font-size: 16px;
    margin-bottom: 4px;
}

/* FAQ Page Styles */
.faq-buttons-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.faq-red-btn {
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: 2px solid;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    text-align: center;
}

/* Treasury System Button - Green Theme */
.faq-red-btn:first-child {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-color: #10B981;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.faq-red-btn:first-child:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    border-color: #059669;
}

/* Qinger Button - Black and Silver Theme */
.faq-red-btn:last-child {
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    color: #E5E7EB;
    border-color: #6B7280;
    box-shadow: 0 3px 10px rgba(31, 41, 55, 0.3);
}

.faq-red-btn:last-child:hover {
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 41, 55, 0.4);
    border-color: #9CA3AF;
    color: white;
}

.faq-red-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.faq-red-btn:hover::before {
    left: 100%;
}

.faq-red-btn:active {
    transform: translateY(0);
}

/* FAQ Content */
.faq-content {
    margin-bottom: 3rem;
}

.faq-item {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-red);
}

.faq-button {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: inherit;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.faq-button:hover {
    background-color: var(--surface-darker);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-silver);
    margin: 0;
    flex: 1;
    text-align: left;
}

.faq-icon {
    color: var(--text-gray);
    transition: transform 0.3s ease;
    font-size: 1rem;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--surface-darker);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 1rem 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-silver);
    margin-bottom: 1rem;
}

.contact-section p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--surface-darker);
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background-color: var(--surface-dark);
}

.contact-btn i {
    font-size: 1rem;
}

/* FAQ Animations */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item.highlight {
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}

/* Search Highlight */
.search-highlight {
    background-color: rgba(220, 38, 38, 0.2);
    color: var(--secondary-silver);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Responsive adjustments for FAQ page */
@media (max-width: 768px) {
    .faq-categories {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-btn {
        justify-content: center;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem;
        font-size: 0.875rem;
    }
}

/* Wallet Connection Modal */
.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.wallet-modal-content {
    background-color: #000;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.wallet-modal-header {
    margin-bottom: 2rem;
    position: relative;
}

.wallet-modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.wallet-modal-header .close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.wallet-modal-header .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.wallet-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.wallet-btn {
    background-color: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    font-weight: 500;
}

.wallet-btn:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

/* Connected wallet button styling */
.connect-btn.connected {
    background-color: #dc2626 !important;
    color: #fff !important;
}

.connect-btn.connected:hover {
    background-color: #b91c1c !important;
}

.wallet-btn i {
    font-size: 1.5rem;
}

.wallet-btn span {
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .wallet-options {
        flex-direction: column;
        align-items: center;
    }
    
    .wallet-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Success and Error Notifications */
.success-notification,
.error-notification,
.warning-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.success-notification {
    background-color: #10b981;
}

.error-notification {
    background-color: #ef4444;
}

.warning-notification {
    background-color: #f59e0b;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Profile Page Styles */
.profile-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-actions .action-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    min-width: fit-content;
}

.profile-actions .action-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.profile-actions .action-btn.primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.profile-actions .action-btn.primary:hover {
    background-color: #991B1B;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-silver);
    margin: 0;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-search-wrapper {
    position: relative;
    min-width: 250px;
}

.video-search-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    z-index: 1;
}

.video-search-wrapper .search-input {
    padding-left: 2.5rem;
    width: 100%;
}

.clear-btn {
    padding: 0.75rem 1rem;
    background-color: var(--text-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--secondary-silver);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.clear-btn:hover {
    background-color: var(--text-gray);
    border-color: var(--text-gray);
    color: white;
}

.clear-btn i {
    font-size: 0.75rem;
}

/* Profile Page Styles */
.back-navigation {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--surface-dark);
    border-radius: 0;
    transition: all 0.2s ease;
}

.back-btn:hover {
    color: var(--secondary-silver);
    border-color: var(--text-gray);
    background-color: var(--surface-darker);
}

.back-btn i {
    font-size: 0.75rem;
}

/* Profile Header */
.profile-header {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
}

.profile-avatar {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-red), #991B1B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.profile-details {
    flex: 1;
}

.profile-wallet {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-silver);
    margin-bottom: 0.25rem;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.profile-subtitle {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0;
}

.profile-badges .badge.verified {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-badges .badge.token-holder {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--primary-red);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.profile-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.profile-actions .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--surface-darker);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--secondary-silver);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-actions .action-btn:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

/* Profile Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Profile Sections */
.profile-section {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 2rem;
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-silver);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary-red);
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-controls .search-container {
    position: relative;
    min-width: 200px;
}

.section-controls .search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    background-color: var(--surface-darker);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--secondary-silver);
    font-size: 0.875rem;
}

.section-controls .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 0.75rem;
}

/* Profile Comments Feed */
.profile-comments-feed {
    padding: 1.5rem;
}

.profile-comment-card {
    background-color: var(--surface-darker);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.profile-comment-card:hover {
    border-color: var(--primary-red);
}

.profile-comment-card:last-child {
    margin-bottom: 0;
}

.comment-video-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comment-video-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.comment-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-video-thumbnail .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.comment-video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.comment-video-details {
    flex: 1;
    min-width: 0;
}

.comment-video-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary-silver);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-video-id {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-family: 'Courier New', monospace;
}

.profile-comment-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--secondary-silver);
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--surface-dark);
    border-left: 3px solid var(--primary-red);
}

.profile-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-gray);
    gap: 1rem;
}

.comment-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.comment-action-btn {
    padding: 0.25rem 0.5rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.comment-action-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* Profile Videos Grid */
.profile-videos-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.profile-video-card {
    background-color: var(--surface-darker);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.profile-video-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.profile-video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.profile-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-video-thumbnail .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.profile-video-thumbnail:hover .video-overlay {
    opacity: 1;
}

.profile-video-content {
    padding: 1rem;
}

.profile-video-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary-silver);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-video-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.profile-video-comment-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.profile-video-id {
    font-family: 'Courier New', monospace;
}

.profile-video-last-comment {
    font-size: 0.75rem;
    color: var(--text-light-gray);
    padding: 0.5rem;
    background-color: var(--surface-dark);
    border-left: 2px solid var(--primary-red);
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-wallet {
        font-size: 1.25rem;
        word-break: break-all;
    }

    .profile-actions {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .section-controls {
        justify-content: center;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .profile-videos-grid {
        grid-template-columns: 1fr;
    }

    .comment-video-info {
        flex-direction: column;
        align-items: stretch;
    }

    .comment-video-thumbnail {
        width: 100%;
        height: 120px;
        align-self: center;
        max-width: 160px;
    }

    .profile-comment-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 1rem;
    }

    .profile-wallet {
        font-size: 1rem;
    }

    .profile-actions .action-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .profile-videos-grid {
        padding: 1rem;
    }

    .profile-comments-feed {
        padding: 1rem;
    }
}

/* Clickable Wallet Links */
.wallet-link {
    color: var(--primary-red) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.wallet-link:hover {
    color: white !important;
    border-bottom-color: var(--primary-red);
    text-shadow: 0 0 4px rgba(220, 38, 38, 0.5);
}

/* Leaderboard Wallet Actions */
.wallet-display-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.wallet-actions {
    display: flex;
    gap: 0.25rem;
}

.profile-btn {
    padding: 0.25rem 0.5rem;
    background-color: var(--surface-darker);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.profile-btn:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}
