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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

#pageWrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 0;
    border-radius: 0;
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5), rgba(102, 126, 234, 0.5), transparent);
    z-index: 10;
}

.container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5), rgba(102, 126, 234, 0.5), transparent);
    z-index: 10;
}

.header {
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.95) 0%, rgba(48, 43, 99, 0.95) 50%, rgba(36, 36, 62, 0.95) 100%);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8), rgba(102, 126, 234, 0.8), transparent);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.header h1.logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header p.tagline {
    opacity: 0.95;
    font-size: 1rem;
    font-weight: 300;
}

.header-left, .header-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.main-nav a:hover, .main-nav a.active {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.main-content {
    flex: 1;
    padding: 2rem;
    background: #f7fafc;
}

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

.page-header h2 {
    font-size: 1.8rem;
    color: #2d3748;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    border: 1px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

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

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    border-color: rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    color: white;
}

.btn-secondary:hover {
    box-shadow: 0 4px 20px rgba(113, 128, 150, 0.4);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-logout {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    box-shadow: 0 4px 20px rgba(229, 62, 62, 0.4);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.login-form, .register-form {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-form button[type="submit"],
.register-form button[type="submit"] {
    width: 100%;
    display: block;
    margin: 0 auto;
}

.login-form h2, .register-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.form-footer a {
    display: block;
    color: #667eea;
    text-decoration: none;
    margin: 0.5rem 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    color: #718096;
    line-height: 1.7;
}

.profile-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: grab;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-card:active {
    cursor: grabbing;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    padding: 2rem;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.like-overlay {
    background: rgba(255, 0, 0, 0.3);
    color: red;
}

.nope-overlay {
    background: rgba(0, 0, 255, 0.3);
    color: blue;
}

.card-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    background: #f5f5f5;
}

.profile-card:hover .card-image img {
    transform: scale(1.05);
}

.rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.age, .job {
    color: #718096;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tags {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 100px;
    overflow-y: auto;
}

.tag {
    display: inline-block;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.action-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: scale(1.1);
}

.nope-btn {
    background: linear-gradient(135deg, #e9ecef 0%, #cbd5e0 100%);
    color: #495057;
}

.like-btn {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
}

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    gap: 1rem;
}

.page-info {
    color: #718096;
    font-weight: 500;
}

.profile-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .profile-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .profile-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1400px) {
    .profile-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

.profile-cards-grid .profile-card {
    width: 100%;
    height: auto;
    min-height: 320px;
    max-height: 380px;
    position: relative;
    transform: none !important;
    -webkit-box-reflect: none;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
}

.profile-cards-grid .profile-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.profile-cards-grid .card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    background: #f5f5f5;
}

.profile-cards-grid .card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-cards-grid .card-content h3 {
    margin-bottom: 0.3rem;
    color: #1a202c;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-cards-grid .age {
    color: #64748b;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-cards-grid .rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.profile-cards-grid .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
    max-height: 60px;
    overflow: hidden;
}

.profile-cards-grid .tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .profile-cards-360-container {
        display: none;
    }
    
    .profile-cards-grid {
        display: grid;
    }
}

.forum-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    width: 100%;
}

.forum-sidebar {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 250px;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

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

.announcements-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.announcements-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.announcements-list a {
    color: #2d3748;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announcements-list a:hover {
    color: #667eea;
}

.date {
    font-size: 0.85rem;
    color: #a0aec0;
}

.search-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.search-box .btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.search-box .btn-secondary:hover {
    background: #edf2f7;
}

.announcement-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.announcement-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.announcement-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

.announcement-item p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.announcement-item .date {
    display: block;
    margin-top: 0.75rem;
}

.post-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 3px solid #e2e8f0;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.author-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-time {
    font-size: 0.85rem;
    color: #a0aec0;
}

.post-rating {
    color: #ffc107;
    font-weight: 600;
    flex-shrink: 0;
}

.post-content h3 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 600;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-title-link {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title-link:hover {
    color: #667eea;
}

.post-content h3:hover {
    color: #667eea;
}

.post-content p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    color: #a0aec0;
    font-size: 0.9rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 500;
}

.post-meta span:hover {
    color: #667eea;
}

.like-link:hover {
    color: #f56565 !important;
}

.comment-link:hover {
    color: #38b2ac !important;
}

.post-comments {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.comment-item {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.comment-author {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.comment-content {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.comment-time {
    font-size: 0.8rem;
    color: #a0aec0;
}

.add-comment {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.add-comment textarea {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    resize: vertical;
    min-height: 100px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.add-comment textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    width: 100%;
}

.profile-sidebar {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-card {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1.5rem 0;
}

.user-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    transition: all 0.3s ease;
}

.user-avatar:hover img {
    transform: scale(1.05);
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.user-avatar:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-overlay span {
    font-size: 0.9rem;
    text-align: center;
    padding: 0 10px;
    white-space: nowrap;
}

.user-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-level {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
    width: 100%;
}

.stat-item {
    text-align: center;
    flex: 0 0 auto;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.nav-item {
    padding: 0.8rem 1rem;
    color: #2d3748;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

.nav-item:hover, .nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.profile-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.profile-tab.active {
    display: block;
}

.my-profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .my-profile-cards {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .my-profile-cards {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1400px) {
    .my-profile-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

.my-profile-cards .profile-card {
    min-height: 320px;
    max-height: 380px;
}

.my-profile-cards .card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.my-profile-cards .card-actions .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

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

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

.detail-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
    align-items: center;
}

.detail-row:hover {
    background: #f7fafc;
}

.detail-label {
    flex: 1;
    font-weight: 600;
    color: #2d3748;
    min-width: 120px;
}

.detail-value {
    flex: 2;
    color: #4a5568;
    min-width: 200px;
}

.profile-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    table-layout: fixed;
}

.profile-table th,
.profile-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    vertical-align: middle;
}

.profile-table th {
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-width: 60px;
    max-width: none;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.75rem 0.25rem;
}

.profile-table td {
    color: #4a5568;
    min-width: 60px;
    max-width: 200px;
    font-size: 0.9rem;
    padding: 0.75rem 0.5rem;
}

.profile-table .action-column {
    min-width: 180px;
    max-width: 200px;
    text-align: center;
    padding: 0.5rem 0.25rem;
}

.profile-table .action-column .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    margin: 0.1rem;
    min-width: 50px;
}

.profile-table .long-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-table .long-text:hover {
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    position: relative;
    z-index: 10;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    border-radius: 8px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.user-avatar {
    /* width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid #e2e8f0; */
}

.user-info {
    flex: 1;
}

.user-info h4 {
    margin-bottom: 0.25rem;
    color: #2d3748;
    font-weight: 600;
}

.user-info p {
    color: #718096;
    font-size: 0.9rem;
}

.contact-date {
    color: #a0aec0;
    font-size: 0.9rem;
    min-width: 110px;
}

.settings-form .form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.settings-form .form-group:last-child {
    border-bottom: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.recharge-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    width: 100%;
}

.recharge-info {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 280px;
}

.current-balance {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.balance-amount {
    margin: 1rem 0;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    word-break: break-all;
}

.currency {
    font-size: 1.2rem;
    opacity: 0.9;
}

.membership-level {
    margin-top: 1rem;
}

.level.gold {
    color: #ffc107;
    font-weight: 600;
    font-size: 1.1rem;
}

.benefits-list {
    list-style-position: inside;
    color: #4a5568;
    margin-top: 1.5rem;
}

.benefits-list li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    word-wrap: break-word;
}

.recharge-form {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.amount-input {
    position: relative;
    margin: 2rem 0;
}

.currency-symbol {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: #718096;
    font-weight: 600;
}

#rechargeAmount {
    padding-left: 3rem;
    font-size: 1.5rem;
    height: 4rem;
    border-radius: 12px;
    width: 100%;
}

.conversion-note {
    text-align: center;
    color: #718096;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.payment-methods {
    margin-top: 2.5rem;
}

.payment-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.payment-option {
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.payment-option input {
    display: none;
}

.payment-icon {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-option input:checked + .payment-icon {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.customer-service-contacts {
    margin: 1.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    align-items: start;
    max-width: 800px;
}

.contact-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 320px;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item:hover::after {
    opacity: 1;
}

.contact-item:hover {
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px) scale(1.02);
    border-color: #667eea;
}

.contact-platform {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #667eea;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.contact-account {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-all;
    margin-bottom: 1rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-name {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-name::before {
    content: '👤';
    font-size: 1.2rem;
}

.contact-description {
    font-size: 0.95rem;
    color: #718096;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #e2e8f0;
    line-height: 1.8;
    font-style: italic;
}

.no-contacts, .error-message {
    text-align: center;
    padding: 3rem;
    color: #a0aec0;
    font-size: 1.1rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.no-contacts {
    font-style: italic;
}

.error-message {
    color: #e53e3e;
}

.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(102, 126, 234, 0.1) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(118, 75, 162, 0.1) 50%, transparent 60%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2d3748;
    font-weight: 700;
    text-align: center;
}

.hot-profiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    overflow: hidden;
}

@media (max-width: 1400px) {
    .hot-profiles {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 1100px) {
    .hot-profiles {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hot-profiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hot-profiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

.profile-card-small {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    cursor: pointer;
    position: relative;
}

.profile-card-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6), rgba(102, 126, 234, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card-small:hover::before {
    opacity: 1;
}

.profile-card-small:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
}

.profile-card-small img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #f7fafc;
}

.profile-card-small .profile-info {
    padding: 1.25rem;
}

.profile-card-small h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
}

.profile-card-small p {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.profile-card-small .rating {
    color: #f6ad55;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.profile-card-small .rating .star {
    font-size: 1rem;
    color: #f6ad55;
}

.profile-card-small .rating .star.empty {
    color: #e2e8f0;
}

.latest-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.post-preview {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.post-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-preview h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
    font-weight: 600;
}

.post-preview p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-preview .post-meta {
    display: flex;
    gap: 1rem;
    color: #a0aec0;
    font-size: 0.875rem;
}

.post-preview .post-meta .author {
    color: #667eea;
    font-weight: 500;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.filter-bar .filter-groups {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.filter-bar select,
.filter-bar input {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
    min-width: 100px;
    max-width: 180px;
}

.filter-bar select:focus,
.filter-bar input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-bar .filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-bar .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-bar .filter-group span {
    white-space: nowrap;
    font-weight: 500;
    color: #4a5568;
}

.footer {
    background: #2d3748;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer p {
    opacity: 0.8;
}

@media (max-width: 767px) {
    .container {
        margin: 10px auto;
        width: calc(100% - 20px);
        border-radius: 15px;
    }
    
    .header {
        padding: 1rem 1.5rem;
    }
    
    .header h1.logo {
        font-size: 1.5rem;
    }
    
    .header-left, .header-right {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav {
        margin-top: 1rem;
        width: 100%;
    }
    
    .main-nav a {
        margin: 0.25rem 0.5rem 0.25rem 0;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-logout {
        margin-top: 0.75rem;
        width: 100%;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .forum-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recharge-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-bar .filter-groups {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-bar .filter-group {
        width: 100%;
    }
    
    .filter-bar .filter-group select,
    .filter-bar .filter-group label {
        width: 100%;
    }
    
    .filter-bar .btn {
        width: 100%;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .profile-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .card-image img {
        height: 280px;
    }
    
    .payment-options {
        flex-direction: column;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section h2 {
        font-size: 1.6rem;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .main-content {
        padding: 1.75rem;
    }
    
    .forum-layout {
        grid-template-columns: 1fr 2fr;
        gap: 1.5rem;
    }
    
    .profile-layout {
        grid-template-columns: 1fr 2fr;
        gap: 1.5rem;
    }
    
    .recharge-layout {
        grid-template-columns: 1fr 1.5fr;
        gap: 1.5rem;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .main-content {
        padding: 2.5rem 3rem;
    }
    
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-dialog {
    max-width: 700px;
    margin: 1.75rem auto;
    width: 100%;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 90%;
    margin: 1.75rem auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    overflow: hidden;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.announcement-detail-content {
    max-width: 700px;
    padding: 2.5rem;
}

.announcement-detail-content h2 {
    margin: 0 0 1.5rem 0;
    color: #1a202c;
    font-size: 1.875rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.announcement-meta {
    padding: 1.25rem 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.announcement-meta::before {
    content: '📅';
    font-size: 1.25rem;
}

.announcement-date {
    color: #718096;
    font-size: 0.9375rem;
    font-weight: 500;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.announcement-body {
    padding: 1.5rem 0;
    color: #4a5568;
    line-height: 1.9;
    font-size: 1.0625rem;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin-bottom: 0.5rem;
}

.close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    line-height: 1;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.modal-title {
    color: white;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 2px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 0 0 16px 16px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

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

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination .page-link {
    color: #667eea;
    border: 2px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.pagination .page-item.disabled .page-link {
    color: #cbd5e0;
    border-color: #e2e8f0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.3em solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #667eea;
    animation: slideIn 0.3s ease;
}

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

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast.info {
    border-left-color: #17a2b8;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.post-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.post-detail {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-detail .post-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-detail .post-author-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.post-detail .post-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.post-detail .post-author-details {
    flex: 1;
}

.post-detail .post-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-detail .post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #718096;
    font-size: 0.9rem;
}

.post-detail .post-author {
    font-weight: 600;
    color: #4a5568;
}

.post-detail .post-time {
    color: #a0aec0;
}

.post-detail .post-views {
    color: #a0aec0;
}

.post-detail .post-content {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.post-detail .post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.post-detail .post-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.post-detail .post-actions .icon {
    font-size: 1.2rem;
}

.post-detail .post-actions .count {
    font-weight: 600;
}

.comments-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comments-section h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    resize: vertical;
    min-height: 120px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.comments-list {
    margin-top: 2rem;
}

.no-comments {
    text-align: center;
    color: #a0aec0;
    padding: 2rem;
    font-size: 1rem;
}

.comment-item {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

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

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.comment-time {
    font-size: 0.85rem;
    color: #a0aec0;
}

.comment-content {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
}

.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem;
    gap: 1rem;
}

.load-more-container .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 30px;
    min-width: 200px;
}

.loading {
    color: #667eea;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid #667eea;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-more-data {
    color: #a0aec0;
    font-size: 1rem;
    padding: 1rem 2rem;
    background: #f7fafc;
    border-radius: 8px;
}

.photo-upload-area {
    margin: 2rem 0;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.photo-upload-btn {
    position: relative;
    width: 150px;
    height: 150px;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.photo-upload-btn:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.photo-upload-btn input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-upload-btn label {
    font-size: 3rem;
    color: #667eea;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.photo-upload-btn p {
    font-size: 0.875rem;
    color: #718096;
    margin: 0;
}

.photo-item {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-photo {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remove-photo:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

.photo-preview-item {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.photo-delete-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

.upload-note {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.5rem;
}
