* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0e27;
    --card-bg: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    direction: rtl;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.8); }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

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

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

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

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-pulse {
    animation: pulse 2s infinite;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    text-align: center;
}

.input-container {
    width: 100%;
    max-width: 350px;
    margin-bottom: 2rem;
    position: relative;
}

#usernameInput {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

#usernameInput:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

#usernameInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.gender-selection {
    width: 100%;
    max-width: 350px;
    margin-bottom: 2rem;
}

.gender-label {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.gender-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gender-btn {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.gender-btn:hover, .gender-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.gender-icon {
    font-size: 2rem;
}

.primary-btn {
    width: 100%;
    max-width: 350px;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

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

.primary-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
}

.pulse-btn {
    animation: pulse 2s infinite;
}

.terms {
    margin-top: 2rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.terms-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.terms-link {
    color: #fff;
    text-decoration: underline;
}

/* ===== HOME PAGE ===== */
.home-container {
    min-height: 100vh;
    background: var(--dark-bg);
    padding-bottom: 80px;
}

.app-header {
    background: rgba(26, 31, 58, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
}

.user-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.user-status.online::before {
    content: '●';
    color: #10b981;
    margin-left: 0.3rem;
    animation: pulse 2s infinite;
}

.coins-display {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.3), rgba(254, 225, 64, 0.3));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(250, 112, 154, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.coins-display:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.4), rgba(254, 225, 64, 0.4));
}

.coin-amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.main-content {
    padding: 1rem;
}

.stats-bar {
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-icon {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.search-section {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.search-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    animation: pulse 2s infinite;
    box-shadow: 0 0 40px rgba(245, 87, 108, 0.4);
}

.search-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 60px rgba(245, 87, 108, 0.6);
}

.search-icon {
    font-size: 3rem;
    animation: bounce 1s infinite;
}

.search-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.search-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: ripple 2s infinite;
}

.live-streams-section {
    margin-top: 2rem;
}

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

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.live-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.stream-card {
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.stream-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(26, 31, 58, 0.7);
}

.stream-thumbnail {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ef4444;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse 1s infinite;
}

.stream-info {
    padding: 0.75rem;
}

.stream-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.stream-viewers {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== FLOATING ACTION BUTTON ===== */
.fab {
    position: fixed;
    bottom: 100px;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(245, 87, 108, 0.4);
    transition: all 0.3s;
    z-index: 99;
}

.fab:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(245, 87, 108, 0.6);
}

.fab:active {
    animation: pulse 0.3s;
}

.fab-menu {
    position: fixed;
    bottom: 180px;
    right: 1.5rem;
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    z-index: 98;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease;
    display: none;
}

.fab-menu.active {
    display: block;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    background: none;
    border: none;
    width: 100%;
    text-align: right;
}

.fab-menu-item:last-child {
    border-bottom: none;
}

.fab-menu-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

.fab-menu-icon {
    font-size: 1.5rem;
}

.fab-menu-text {
    font-weight: 600;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 31, 58, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.5rem 0;
    z-index: 100;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    position: relative;
}

.nav-btn.active {
    color: var(--text-primary);
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    width: 30px;
    height: 3px;
    background: var(--secondary-gradient);
    border-radius: 2px;
}

.nav-btn.active .nav-icon {
    transform: scale(1.3);
    animation: bounce 0.5s ease;
}

.nav-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.nav-label {
    font-size: 0.7rem;
}

/* ===== CALL PAGE ===== */
.call-container {
    min-height: 100vh;
    background: #000;
    position: relative;
    padding-bottom: 80px;
}

.video-container {
    width: 100%;
    height: calc(100vh - 80px);
    position: relative;
}

.remote-video {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.searching-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.search-pulse {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 1.5s infinite;
}

.search-text {
    font-size: 1.2rem;
    color: white;
}

.local-video {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 100px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.video-placeholder-small {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.call-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.call-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.call-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.call-status {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.call-controls {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 350px;
    padding: 0 1rem;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0.5rem;
}

.control-btn:hover {
    transform: scale(1.2);
}

.control-btn:active {
    animation: shake 0.3s;
}

.control-icon {
    font-size: 2.5rem;
    transition: all 0.3s;
}

.control-label {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 600;
}

.end-btn:hover .control-icon {
    color: #ef4444;
}

.gift-btn:hover .control-icon {
    animation: heartBeat 0.6s;
    color: #f5576c;
}

.add-btn:hover .control-icon {
    color: #00f2fe;
}

.next-btn:hover .control-icon {
    color: #667eea;
}

/* ===== WALLET PAGE ===== */
.wallet-container, .contacts-container, .profile-container {
    min-height: 100vh;
    background: var(--dark-bg);
    padding-bottom: 2rem;
}

.page-header {
    background: rgba(26, 31, 58, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.back-btn:hover {
    transform: scale(1.2);
}

.page-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.balance-card {
    margin: 2rem 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.balance-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 3rem;
    font-weight: 700;
}

.coin-icon-large {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

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

.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.wallet-btn {
    padding: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-weight: 600;
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
}

.charge-btn {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.3), rgba(0, 242, 254, 0.3));
    border-color: rgba(79, 172, 254, 0.5);
}

.charge-btn:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.5), rgba(0, 242, 254, 0.5));
    transform: translateY(-5px);
}

.withdraw-btn {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.3), rgba(254, 225, 64, 0.3));
    border-color: rgba(250, 112, 154, 0.5);
}

.withdraw-btn:hover {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.5), rgba(254, 225, 64, 0.5));
    transform: translateY(-5px);
}

.wallet-btn-icon {
    font-size: 2rem;
}

.wallet-btn-text {
    font-weight: 600;
}

.transactions-section {
    padding: 0 1rem;
}

.transactions-list {
    margin-top: 1rem;
}

.transaction-item {
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.transaction-item:hover {
    background: rgba(26, 31, 58, 0.7);
    transform: translateX(-5px);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: float 3s ease-in-out infinite;
}

.transaction-icon.receive {
    background: rgba(16, 185, 129, 0.2);
}

.transaction-icon.send {
    background: rgba(239, 68, 68, 0.2);
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.transaction-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.transaction-amount.positive {
    color: #10b981;
}

.transaction-amount.negative {
    color: #ef4444;
}

/* ===== CONTACTS PAGE ===== */
.search-bar {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.search-id-btn {
    width: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

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

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

.empty-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-subtext {
    color: var(--text-secondary);
}

/* ===== PROFILE PAGE ===== */
.profile-card {
    margin: 2rem 1rem;
    padding: 2rem;
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-align: center;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
    animation: float 3s ease-in-out infinite;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.profile-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.id-label {
    font-size: 0.9rem;
}

.id-value {
    font-family: monospace;
    font-size: 1rem;
}

.copy-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    transform: scale(1.3);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(26, 31, 58, 0.7);
    transform: translateY(-5px);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.profile-actions {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-action-btn {
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.profile-action-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(-5px);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

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

.modal-header h2 {
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-text {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.modal-text.small {
    font-size: 0.9rem;
}

.user-id-display {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.5);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    text-align: center;
}

.modal-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-input::placeholder {
    color: var(--text-secondary);
}

.modal-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* ===== GIFTS GRID ===== */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gift-item {
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.gift-item:hover {
    background: rgba(26, 31, 58, 0.8);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.08);
}

.gift-item:active {
    animation: shake 0.3s;
}

.gift-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: float 2s ease-in-out infinite;
}

.gift-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.gift-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== CHARGE PACKAGES ===== */
.charge-packages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.package-card {
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-card:hover {
    background: rgba(26, 31, 58, 0.8);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(-5px);
}

.package-info {
    text-align: right;
}

.package-amount {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.package-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.package-select-btn {
    background: var(--secondary-gradient);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.package-select-btn:hover {
    transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .streams-grid {
        grid-template-columns: 1fr;
    }
    
    .search-btn {
        width: 180px;
        height: 180px;
    }
    
    .gifts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 1rem 0.5rem;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 31, 58, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}
