:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    animation: fadeInUp 0.5s ease;
}

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

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.logo i {
    font-size: 2rem;
    color: var(--white);
}

.login-header h1 {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--secondary-color);
    font-size: 1rem;
    transition: var(--transition);
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.password-input-wrapper input:focus ~ .lock-icon {
    color: var(--primary-color);
}

.input-wrapper input:focus + i {
    color: var(--primary-color);
}

.input-wrapper input.error {
    border-color: var(--danger-color);
}

.password-input-wrapper input.error ~ .lock-icon {
    color: var(--danger-color);
}

.input-wrapper input.error + i {
    color: var(--danger-color);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .lock-icon {
    left: 1rem;
    z-index: 1;
    pointer-events: none;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.password-input-wrapper .toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 2;
}

.password-input-wrapper .toggle-password:hover {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.password-input-wrapper .toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

.password-input-wrapper input:focus ~ .toggle-password {
    color: var(--primary-color);
}

.password-input-wrapper input.error ~ .toggle-password {
    color: var(--danger-color);
}

.error-message {
    font-size: 0.8rem;
    color: var(--danger-color);
    min-height: 1rem;
}

.login-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

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

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

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

.login-footer p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.login-footer a:hover {
    text-decoration: underline;
}

.status-message {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 1000;
    transition: transform 0.3s ease;
    opacity: 0;
}

.status-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.status-content {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-message.success .status-icon {
    color: var(--success-color);
}

.status-message.error .status-icon {
    color: var(--danger-color);
}

.status-message.info .status-icon {
    color: var(--info-color);
}

.status-text {
    font-size: 0.95rem;
    color: var(--dark-color);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.login-form.shake {
    animation: shake 0.5s ease;
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .login-header p {
        font-size: 0.85rem;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .logo i {
        font-size: 1.75rem;
    }
}

.dashboard-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f5e9 0%, #b2dfdb 50%, #e1bee7 100%);
    padding-bottom: 80px;
}

.dashboard-header {
    background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-small {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-small i {
    font-size: 1.25rem;
    color: #fff;
}

.header-title h1 {
    font-size: 1.25rem;
    color: #fff;
    margin: 0;
}

.header-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.header-right {
    display: flex;
    gap: 0.75rem;
}

.notification-btn,
.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.notification-btn:hover,
.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff5722;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.dashboard-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.section-header h2 {
    font-size: 1.1rem;
    color: #004d40;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: #00796b;
}

.view-all-btn {
    background: none;
    border: none;
    color: #00796b;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
}

.view-all-btn:hover {
    text-decoration: underline;
}

.points-account-section,
.bottle-recycling-section,
.points-history-section,
.ranking-section,
.community-section,
.personal-center-section {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.points-card {
    background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: #fff;
}

.current-points {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.points-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.points-icon i {
    font-size: 1.5rem;
}

.points-info {
    display: flex;
    flex-direction: column;
}

.points-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.points-value {
    font-size: 2rem;
    font-weight: 700;
}

.points-value small {
    font-size: 1rem;
    opacity: 0.8;
}

.points-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.stat-icon {
    font-size: 1.25rem;
    width: 30px;
    text-align: center;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

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

.recycling-description {
    margin-bottom: 1rem;
}

.recycling-description p {
    color: #6c757d;
    font-size: 0.9rem;
}

.scan-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 121, 107, 0.4);
}

.simulate-btn {
    width: 100%;
    padding: 0.875rem;
    background: #fff;
    color: #00796b;
    border: 2px solid #00796b;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

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

.simulate-hint {
    background: #ff5722;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.divider span {
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.history-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.history-icon.income {
    background: #d4edda;
    color: #28a745;
}

.history-icon.expense {
    background: #f8d7da;
    color: #dc3545;
}

.history-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.history-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #343a40;
}

.history-date {
    font-size: 0.75rem;
    color: #6c757d;
}

.history-amount {
    font-size: 0.95rem;
    font-weight: 600;
}

.history-amount.income {
    color: #28a745;
}

.history-amount.expense {
    color: #dc3545;
}

.ranking-update {
    font-size: 0.75rem;
    color: #28a745;
    background: #d4edda;
    padding: 2px 8px;
    border-radius: 10px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ranking-item.top-three {
    background: linear-gradient(135deg, #fff 0%, #fff9c4 100%);
    border: 1px solid #fff59d;
}

.ranking-item.current-user {
    background: #e3f2fd;
    border: 1px solid #90caf9;
}

.ranking-position {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: #e9ecef;
    color: #6c757d;
}

.ranking-position.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #fff;
}

.ranking-position.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #9e9e9e 100%);
    color: #fff;
}

.ranking-position.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    color: #fff;
}

.ranking-position i {
    font-size: 1rem;
}

.ranking-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.ranking-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ranking-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #343a40;
}

.ranking-country {
    font-size: 0.75rem;
    color: #6c757d;
}

.ranking-points {
    font-size: 0.9rem;
    font-weight: 600;
    color: #00796b;
}

.community-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: #f8f9fa;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: #6c757d;
}

.tab-btn.active {
    background: #00796b;
    color: #fff;
}

.tab-btn:hover:not(.active) {
    background: #e9ecef;
}

.tab-content {
    display: none;
}

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

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #343a40;
}

.chat-preview {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    font-size: 0.7rem;
    color: #adb5bd;
}

.create-post-btn {
    width: 100%;
    padding: 0.875rem;
    background: #fff;
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6c757d;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.create-post-btn:hover {
    border-color: #00796b;
    color: #00796b;
    background: #e0f2f1;
}

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

.post-item {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1rem;
}

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

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-author {
    font-size: 0.9rem;
    font-weight: 500;
    color: #343a40;
}

.post-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.post-content {
    margin-bottom: 0.75rem;
}

.post-content p {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
}

.post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.post-action-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.post-action-btn:hover {
    color: #00796b;
}

.post-action-btn.liked {
    color: #dc3545;
}

.profile-card {
    background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar {
    position: relative;
    width: 70px;
    height: 70px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00796b;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

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

.profile-basic-info {
    flex: 1;
}

.profile-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.profile-location {
    font-size: 0.85rem;
    opacity: 0.9;
}

.profile-location i {
    margin-right: 0.25rem;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.detail-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.detail-label i {
    margin-right: 0.5rem;
}

.detail-value {
    font-size: 0.85rem;
    font-weight: 500;
}

.notification-settings h3 {
    font-size: 1rem;
    color: #343a40;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-settings h3 i {
    color: #00796b;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: #e9ecef;
}

.notification-info {
    display: flex;
    flex-direction: column;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #343a40;
}

.notification-desc {
    font-size: 0.75rem;
    color: #6c757d;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: #00796b;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.bottom-nav.with-exchange {
    justify-content: space-around;
}

.nav-item {
    background: none;
    border: none;
    flex: 1;
    padding: 0.5rem 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.3s ease;
    max-width: 80px;
}

.nav-item i {
    font-size: 1.2rem;
}

.nav-item span {
    font-size: 0.65rem;
}

.nav-item.active {
    color: #00796b;
}

.nav-item:hover:not(.active) {
    color: #004d40;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h3 {
    font-size: 1.1rem;
    color: #343a40;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #dee2e6;
}

.modal-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background: #00796b;
    color: #fff;
    border: none;
}

.modal-btn.primary:hover {
    background: #004d40;
}

.modal-btn.secondary {
    background: #fff;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.modal-btn.secondary:hover {
    background: #f8f9fa;
}

.scanner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 2px dashed #dee2e6;
}

.scanner-placeholder i {
    font-size: 4rem;
    color: #00796b;
    margin-bottom: 1rem;
}

.scanner-placeholder p {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

.simulate-modal-content {
    text-align: center;
    padding: 2rem;
}

.simulate-animation {
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.bottle-animation {
    font-size: 4rem;
    color: #00796b;
    animation: bottleDrop 1s ease-in-out;
}

@keyframes bottleDrop {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    50% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.points-animation {
    position: absolute;
    top: 0;
    right: 25%;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff5722;
    animation: pointsFloat 1s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes pointsFloat {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

.simulate-message {
    font-size: 1.1rem;
    color: #343a40;
    font-weight: 500;
}

.post-input {
    width: 100%;
    min-height: 120px;
    padding: 0.875rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
}

.post-input:focus {
    outline: none;
    border-color: #00796b;
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
}

.post-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.post-option-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: all 0.3s ease;
}

.post-option-btn:hover {
    border-color: #00796b;
    color: #00796b;
    background: #e0f2f1;
}

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

    .header-title h1 {
        font-size: 1.1rem;
    }

    .points-value {
        font-size: 1.75rem;
    }

    .points-stats {
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

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

    .profile-avatar {
        margin: 0 auto;
    }

    .notification-item {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .toggle-switch {
        align-self: flex-end;
    }
}

.page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    display: flex;
    flex-direction: column;
}

.page-header {
    background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-header .header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.header-title h1 {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}

.edit-btn,
.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.edit-btn:hover,
.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.edit-btn.cancel-mode {
    background: rgba(220, 53, 69, 0.8);
}

.edit-btn.cancel-mode:hover {
    background: rgba(220, 53, 69, 1);
}

.page-main {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 100px;
}

.profile-card {
    background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-avatar-large {
    position: relative;
    width: 100px;
    height: 100px;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.avatar-camera-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00796b;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.profile-id {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.info-section {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1rem;
    color: #004d40;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #00796b;
}

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

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #343a40;
}

.form-group label .required {
    color: #dc3545;
}

.field-hint {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-group .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group .input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #6c757d;
    font-size: 1rem;
    z-index: 1;
}

.form-group .input-wrapper input,
.form-group .input-wrapper select {
    width: 100%;
    padding: 0.875rem 2.75rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group .input-wrapper input:focus,
.form-group .input-wrapper select:focus {
    outline: none;
    border-color: #00796b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
}

.form-group .input-wrapper input.error {
    border-color: #dc3545;
    background: #fff;
}

.form-group .input-wrapper input.error + i {
    color: #dc3545;
}

.form-group .input-wrapper input:focus + i {
    color: #00796b;
}

.form-group .input-wrapper input.editable {
    background: #fff;
    border-color: #00796b;
}

.form-group .input-wrapper input[readonly],
.form-group .input-wrapper select:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.form-group .input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.form-group .input-wrapper .select-arrow {
    position: absolute;
    right: 1rem;
    color: #6c757d;
    pointer-events: none;
}

.form-group .error-message {
    font-size: 0.8rem;
    color: #dc3545;
    min-height: 1rem;
    margin-top: 0.25rem;
}

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

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.security-item:hover {
    background: #e9ecef;
}

.security-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d4edda;
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.security-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.security-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #343a40;
}

.security-value {
    font-size: 0.8rem;
    color: #6c757d;
}

.security-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
}

.confirm-summary {
    padding: 0.5rem;
}

.change-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.change-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.change-field {
    font-size: 0.85rem;
    font-weight: 600;
    color: #343a40;
    display: block;
    margin-bottom: 0.5rem;
}

.change-values {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.old-value {
    color: #6c757d;
    text-decoration: line-through;
}

.change-values i {
    color: #00796b;
    font-size: 0.75rem;
}

.new-value {
    color: #00796b;
    font-weight: 500;
}

.success-modal {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-modal h3 {
    font-size: 1.25rem;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.success-modal p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.modal-btn.danger {
    background: #dc3545;
    color: #fff;
    border: none;
}

.modal-btn.danger:hover {
    background: #c82333;
}

.bottle-main-section {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bottle-instruction {
    margin-bottom: 1.5rem;
}

.instruction-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instruction-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.bottle-instruction h2 {
    font-size: 1.1rem;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.bottle-instruction p {
    font-size: 0.9rem;
    color: #6c757d;
}

.scan-main-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.scan-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 121, 107, 0.4);
}

.simulate-main-btn {
    width: 100%;
    padding: 1rem;
    background: #fff;
    color: #00796b;
    border: 2px solid #00796b;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.simulate-main-btn:hover {
    background: #e0f2f1;
    transform: translateY(-2px);
}

.reward-badge {
    background: #ff5722;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bottle-stats-section {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.blue {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-icon.green {
    background: #d4edda;
    color: #28a745;
}

.stat-icon.yellow {
    background: #fff3cd;
    color: #ffc107;
}

.stat-icon.orange {
    background: #ffe0b2;
    color: #ff5722;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #343a40;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.location-section {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.location-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.location-icon {
    width: 45px;
    height: 45px;
    border-radius: 0.5rem;
    background: #e3f2fd;
    color: #1976d2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.location-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.location-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #343a40;
}

.location-address {
    font-size: 0.8rem;
    color: #6c757d;
}

.location-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.location-distance,
.location-status {
    font-size: 0.75rem;
    color: #6c757d;
}

.location-status.available {
    color: #28a745;
}

.location-status.busy {
    color: #ff9800;
}

.location-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #00796b;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.location-nav-btn:hover {
    background: #004d40;
    transform: scale(1.1);
}

.bottle-guide-section {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guide-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00796b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 0.95rem;
    color: #343a40;
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

.community-tabs-section {
    background: #fff;
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.community-tabs {
    display: flex;
    gap: 0.5rem;
}

.community-tabs .tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: #f8f9fa;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: #6c757d;
}

.community-tabs .tab-btn.active {
    background: #00796b;
    color: #fff;
}

.community-tabs .tab-btn:hover:not(.active) {
    background: #e9ecef;
}

.tab-content {
    display: none;
}

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

.posts-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.post-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.post-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-author {
    font-size: 0.95rem;
    font-weight: 500;
    color: #343a40;
}

.post-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.post-more-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
}

.post-body {
    margin-bottom: 0.75rem;
}

.post-body p {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
}

.post-images {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    overflow-x: auto;
}

.post-images img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.post-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.post-stats .stat-item i {
    color: #6c757d;
}

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

.post-action-btn {
    flex: 1;
    padding: 0.5rem;
    background: #f8f9fa;
    border: none;
    border-radius: 0.5rem;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.post-action-btn:hover {
    background: #e9ecef;
    color: #00796b;
}

.post-action-btn.liked {
    color: #dc3545;
}

.chat-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-group-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-group-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.chat-group-avatar {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    background: #e3f2fd;
    color: #1976d2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.chat-group-avatar.blue {
    background: #e3f2fd;
    color: #1976d2;
}

.chat-group-avatar.green {
    background: #d4edda;
    color: #28a745;
}

.chat-group-avatar.orange {
    background: #ffe0b2;
    color: #ff5722;
}

.chat-group-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-group-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #343a40;
}

.chat-group-members {
    font-size: 0.75rem;
    color: #6c757d;
}

.chat-group-badge {
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.events-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-card.upcoming {
    background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
    color: #fff;
}

.event-card.upcoming .event-title,
.event-card.upcoming .event-desc,
.event-card.upcoming .event-meta {
    color: rgba(255, 255, 255, 0.9);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-width: 50px;
}

.event-month {
    font-size: 0.75rem;
    opacity: 0.8;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
}

.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.25rem;
}

.event-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.event-join-btn {
    align-self: center;
    padding: 0.5rem 1rem;
    background: #00796b;
    color: #fff;
    border: none;
    border-radius: 1.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-card.upcoming .event-join-btn {
    background: #fff;
    color: #00796b;
}

.event-join-btn:hover {
    transform: scale(1.05);
}

.event-join-btn.joined {
    background: #28a745;
    color: #fff;
}

.event-join-btn.joined:hover {
    transform: none;
    cursor: default;
}

.settings-section {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.settings-section.danger-zone {
    border: 1px solid #f8d7da;
}

.settings-section.danger-zone .section-title {
    color: #721c24;
}

.settings-section.danger-zone .section-title i {
    color: #dc3545;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-item:hover {
    background: #e9ecef;
}

.settings-item.danger {
    background: #fff5f5;
}

.settings-item.danger:hover {
    background: #ffe0e0;
}

.settings-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: #e3f2fd;
    color: #1976d2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.settings-item.danger .settings-icon {
    background: #f8d7da;
    color: #dc3545;
}

.settings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.settings-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #343a40;
}

.settings-desc {
    font-size: 0.75rem;
    color: #6c757d;
}

.settings-arrow {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.password-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #343a40;
}

.page-footer {
    background: #fff;
    padding: 1.5rem 1rem;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo i {
    color: #fff;
    font-size: 1.25rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #343a40;
}

.footer-subtitle {
    font-size: 0.75rem;
    color: #6c757d;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s ease;
}

.footer-link i {
    font-size: 1.25rem;
}

.footer-link span {
    font-size: 0.75rem;
}

.footer-link:hover {
    color: #00796b;
}

.footer-link.active {
    color: #00796b;
}

.footer-copyright {
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.footer-copyright p {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0.25rem 0;
}

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

    .header-title h1 {
        font-size: 1rem;
    }

    .page-main {
        padding: 0.75rem;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
        text-align: center;
    }

    .event-join-btn {
        width: 100%;
    }

    .community-tabs .tab-btn span {
        display: none;
    }

    .post-images {
        flex-wrap: wrap;
    }

    .post-images img {
        width: calc(50% - 0.25rem);
    }
}
