:root {
    --primary: #3aaeb3;
    --secondary: #00cec9;
    --dark: #0f0f1a;
    --darker: #080811;
    --light: #f8f9fa;
    --success: #00b894;
    --danger: #d63031;
    --warning: #fdcb6e;
    --text-primary: #0f0f1a;
    --text-secondary: rgba(15, 15, 26, 0.7);
    --nav-active: #00cec9;
    --btc: #f7931a;
    --eth: #627eea;
    --sol: #00ffa3;
    --usdt: #26a17b;
    --avax: #e84142;
    --ton: #0088cc;
    --bg: #ffffff;
    --card-bg: #f8f9fa;
    --border: rgba(15, 15, 26, 0.1);
    --primary-color: #0f3460;
    --secondary-color: #00b894;
    --text-color: #333;
    --bg-color: #f5f6fa;
    --section-title-color: #2d3436;
    --see-all-color: #0984e3;
    --category-bg: #ffffff;
    --modal-bg: #ffffff;
    --modal-content-bg: #f5f6fa;
}

.dark-mode {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --bg: #0f0f1a;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.1);
    --primary-color: #1e272e;
    --secondary-color: #00cec9;
    --text-color: #f5f6fa;
    --bg-color: #2d3436;
    --section-title-color: #dfe6e9;
    --see-all-color: #74b9ff;
    --category-bg: #2d3436;
    --modal-bg: #1e272e;
    --modal-content-bg: #2d3436;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    max-width: 450px;
    margin: 0 auto;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 80px;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(108, 92, 231, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(0, 206, 201, 0.15) 0%, transparent 30%);
    animation: gradientShift 15s ease infinite;
}

.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, rgba(15, 52, 96, 0) 70%);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 206, 201, 0.6);
    border-radius: 50%;
    animation: floatParticle 8s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(0, 206, 201, 0.3);
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
    50% { opacity: 0.7; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
    padding-bottom: 70px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeInDown 0.5s ease-out;
}

.dark-mode .header {
    background: rgb(11 11 30);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(15deg) scale(1.1);
}

.logo h1 {
    font-size: 20px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    gap: 18px;
}

.header-actions i {
    font-size: 22px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.header-actions i:hover {
    color: var(--secondary);
    transform: translateY(-2px) scale(1.1);
    text-shadow: 0 0 8px rgba(0, 206, 201, 0.5);
}

.header-actions .fa-bell::after {
    content: '0';
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseGlow 2s infinite;
}

.header-actions .fa-user-circle {
    color: var(--primary);
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 20px;
}

.wallet-card {
    background: linear-gradient(135deg, #4a4178 0%, #000000 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 12px 40px rgba(123, 92, 250, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.wallet-card:hover {
    transform: translateY(-5px);
}

.wallet-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: rotateGlow 20s linear infinite;
}

.wallet-content {
    position: relative;
    z-index: 2;
}

.wallet-title {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
}

.wallet-balance {
    font-size: 32px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    animation: countUp 1.5s ease-out;
}

.wallet-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 12px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--light);
}

.stat-label {
    font-size: 12px;
    color: #ffffff;
    opacity: 0.8;
    font-weight: 500;
}

.section-title {
    font-size: 18px;
    margin: 25px 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--section-title-color);
    text-transform: capitalize;
    animation: fadeIn 0.8s ease-out;
}

.see-all {
    font-size: 14px;
    color: var(--see-all-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.see-all:hover {
    transform: translateX(5px);
    text-shadow: 0 0 5px rgba(0, 206, 201, 0.5);
}

.see-all::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.see-all:hover::after {
    transform: translateX(3px);
}

.categories-container {
    display: flex;
    overflow-x: auto;
    padding: 0;
    gap: 10px;
    scrollbar-width: none;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.category-item {
    min-width: 120px;
    height: 80px;
    background-color: var(--category-bg);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.category-item:nth-child(1)::before { background-color: #00b894; }
.category-item:nth-child(2)::before { background-color: #0984e3; }
.category-item:nth-child(3)::before { background-color: #3aaeb3; }
.category-item:nth-child(4)::before { background-color: #e84393; }
.category-item:nth-child(5)::before { background-color: #fd79a8; }
.category-item:nth-child(6)::before { background-color: #fdcb6e; }
.category-item:nth-child(7)::before { background-color: #e17055; }
.category-item:nth-child(8)::before { background-color: #00cec9; }
.category-item:nth-child(9)::before { background-color: #a29bfe; }
.category-item:nth-child(10)::before { background-color: #55efc4; }

.category-item:hover {
    transform: translateY(-3px);
}

.category-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.category-item:nth-child(1) i { color: #00b894; }
.category-item:nth-child(2) i { color: #0984e3; }
.category-item:nth-child(3) i { color: #3aaeb3; }
.category-item:nth-child(4) i { color: #e84393; }
.category-item:nth-child(5) i { color: #fd79a8; }
.category-item:nth-child(6) i { color: #fdcb6e; }
.category-item:nth-child(7) i { color: #e17055; }
.category-item:nth-child(8) i { color: #00cec9; }
.category-item:nth-child(9) i { color: #a29bfe; }
.category-item:nth-child(10) i { color: #55efc4; }

.category-item span {
    font-size: 12px;
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
}

.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.doctor-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
    backdrop-filter: blur(5px);
}

.doctor-details {
    flex: 1;
}

.doctor-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.doctor-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.doctor-info {
    flex: 1;
}

.doctor-name {
    font-weight: 600;
    margin: 0 0 5px 0;
    font-size: 17px;
    color: var(--text-color);
}

.doctor-specialty {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0 0 5px 0;
}

.dark-mode .doctor-specialty {
    color: #b2bec3;
}

.doctor-rating {
    color: #f1c40f;
    font-size: 14px;
}

.book-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin: 25px 0;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.btn {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 0;
}

.btn:hover::before {
    width: 200px;
    height: 200px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #5a4bc6);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 1px solid rgba(0, 206, 201, 0.4);
}

.btn-outline:hover {
    background: rgba(0, 206, 201, 0.1);
    border-color: var(--secondary);
}

.btn-warning {
    background: transparent;
    color: var(--warning);
    border: 1px solid rgba(255, 214, 0, 0.4);
}

.btn-warning:hover {
    background: rgba(255, 214, 0, 0.1);
    border-color: var(--warning);
}

.banner-placeholder {
    height: auto;
    background: var(--card-bg);
    border-radius: 16px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    border: 1px dashed var(--border);
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    backdrop-filter: blur(5px);
}

.banner-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    animation: chartLoading 2s linear infinite;
}

.banner-placeholder i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}
.banner-imgs {
    width: 100%;
}
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(0, 206, 201, 0.2);
    color: var(--secondary);
    margin-left: 8px;
    animation: pulseGlow 2s infinite;
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 10px;
}

.page-btn {
    background-color: var(--card-bg);
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--text-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-btn.active {
    background-color: var(--secondary-color);
    color: white;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--modal-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.all-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.all-category-item {
    padding: 15px;
    border-radius: 8px;
    background-color: var(--modal-content-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.all-category-item i {
    font-size: 24px;
    margin-bottom: 8px;
}

.all-category-item span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: var(--text-color);
}

.theme-switcher {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { 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 countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulseGlow { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }
@keyframes chartLoading { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes priceUp { 0% { color: var(--success); transform: translateY(0); } 50% { transform: translateY(-5px); } 100% { color: inherit; transform: translateY(0); } }
@keyframes priceDown { 0% { color: var(--danger); transform: translateY(0); } 50% { transform: translateY(5px); } 100% { color: inherit; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    