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

:root {
    --bg-dark: #1a1a1a;
    --bg-card: #242424;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-dark: #1f2937;
    --blue: #3b82f6;
    --blue-dark: #2563eb;
    --green: #22c55e;
    --red: #ef4444;
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    line-height: 1.5;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 16px;
    max-width: 480px;
    margin: 0 auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--red);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
.main {
    padding: 24px 16px 100px;
    max-width: 480px;
    margin: 0 auto;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.avatar-container {
    position: relative;
    margin-bottom: 16px;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-dark);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-username {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-gray);
    font-size: 14px;
}

.verified-badge-small {
    width: 16px;
    height: 16px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

/* Description */
.description {
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 32px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-btn {
    width: 100%;
    background: var(--white);
    color: var(--text-dark);
    border: none;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

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

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

/* Chat FAB */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--blue);
    border: none;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    z-index: 50;
}

.chat-fab:hover {
    transform: scale(1.05);
    background: var(--blue-dark);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-dark);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

.modal-content-white {
    background: var(--white);
    color: var(--text-dark);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content-white .modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.text-dark {
    color: var(--text-dark);
}

.modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.text-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.text-red {
    color: var(--red);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    max-height: 50vh;
}

.modal-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content-white .modal-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.btn-primary {
    width: 100%;
    background: var(--white);
    color: var(--text-dark);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #f3f4f6;
}

/* Menu Items */
.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 12px;
    color: var(--text-white);
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item svg {
    color: var(--text-gray);
    flex-shrink: 0;
}

/* About Section */
.about-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
}

.about-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 16px;
}

.about-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-version {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.about-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 280px;
}

/* Payment Method Items */
.payment-method-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.payment-method-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.payment-method-info p {
    font-size: 14px;
    color: var(--text-gray);
    font-family: monospace;
}

.copy-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-btn.copied {
    color: var(--green);
}

/* Activity Items */
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 12px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.activity-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.activity-info p {
    font-size: 12px;
    color: #9ca3af;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-state svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Chat */
.chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-icon {
    color: var(--blue);
}

.chat-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-out;
}

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

.chat-message.bot {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-message.user {
    background: var(--blue);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.topic-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.topic-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.topic-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.topic-btn svg {
    color: var(--text-gray);
    flex-shrink: 0;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--green);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease-out;
    z-index: 300;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (min-width: 480px) {
    .modal {
        align-items: center;
    }
    
    .modal-content {
        border-radius: 24px;
        max-height: 600px;
    }
}
