/* ========================================
   ACCOUNT PAGE ENHANCED STYLING
   Feature-Rich Modern Design
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
    --thm-primary-color: #6bddd9;
    --thm-primary-color-rgb: 107, 221, 217;
    --thm-body-font-color: #758180;
    --thm-body-font-color-2: #b7ced4;
    --thm-heading-font-color: #152c2b;
    --thm-black: #152c2b;
    --thm-black-bg: #125c72;
    --thm-gray-bg: #f1f8f8;
    --thm-border-color: #e2eaea;
    --thm-accent-gold: #bb914a;
    --thm-success: #4ade80;
    --thm-warning: #fbbf24;
    --thm-danger: #ef4444;
    --thm-info: #3b82f6;
}

/* ========== SMOOTH ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(107, 221, 217, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(107, 221, 217, 0.8), 0 0 30px rgba(107, 221, 217, 0.6);
    }
}

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

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* ========== ENHANCED CARDS ========== */
.card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.6s ease-out;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 221, 217, 0.1), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(18, 92, 114, 0.2), 
                0 0 20px rgba(107, 221, 217, 0.1);
}

/* Enhanced Balance Card */
.card__price {
    font-size: 3rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, var(--thm-primary-color), var(--thm-black-bg));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 3s infinite;
}

/* ========== STATISTICS CARDS ========== */
.plans {
    position: relative;
}

.plans__item {
    position: relative;
    padding: 1.5rem !important;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(107, 221, 217, 0.05), rgba(18, 92, 114, 0.05));
    border: 1px solid var(--thm-border-color);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    overflow: hidden;
}

.plans__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--thm-primary-color), var(--thm-accent-gold));
    transition: width 0.4s ease;
}

.plans__item:hover::after {
    width: 100%;
}

.plans__item:hover {
    transform: translateX(10px);
    box-shadow: -5px 5px 20px rgba(107, 221, 217, 0.2);
    border-color: var(--thm-primary-color);
}

.plans__price {
    color: var(--thm-body-font-color) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.plans__title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: var(--thm-heading-font-color) !important;
}

/* ========== ENHANCED BUTTONS ========== */
.button, .card__button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--thm-primary-color), var(--thm-black-bg)) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(107, 221, 217, 0.3);
}

.button::before, .card__button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button:hover::before, .card__button:hover::before {
    width: 300px;
    height: 300px;
}

.button:hover, .card__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(107, 221, 217, 0.5);
}

.button:active, .card__button:active {
    transform: translateY(0);
}

/* ========== HEADER ENHANCEMENTS ========== */
.header__burger {
    color: #ffffff !important;
}

.header__burger svg,
.header__burger .icon {
    fill: #ffffff !important;
    color: #ffffff !important;
}

.header__burger:hover {
    opacity: 0.8;
}

.page__title {
    position: relative;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    animation: slideInLeft 0.8s ease-out;
}

.page__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--thm-primary-color), transparent);
    border-radius: 2px;
}

/* ========== NOTIFICATION BADGE ========== */
.badge {
    animation: pulse 2s infinite;
}

.anim-scale {
    animation: pulse 1.5s infinite;
}

/* ========== TRADING VIEW WIDGETS ========== */
.tradingview-widget-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(18, 92, 114, 0.15);
    transition: all 0.3s ease;
}

.tradingview-widget-container:hover {
    box-shadow: 0 15px 40px rgba(18, 92, 114, 0.25);
}

/* ========== LOGIN ACTIVITIES ========== */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-status {
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: glow 2s infinite;
}

.timeline-status::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--thm-primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ========== WITHDRAWAL TABLE ========== */
.nk-tb-list {
    border-radius: 12px;
    overflow: hidden;
}

.nk-tb-item {
    transition: all 0.3s ease;
}

.nk-tb-item:hover {
    background: linear-gradient(90deg, rgba(107, 221, 217, 0.05), transparent);
    transform: translateX(5px);
}

/* ========== FORM ENHANCEMENTS ========== */
.field__input, .drop__head, select {
    transition: all 0.3s ease;
    border: 2px solid var(--thm-border-color) !important;
}

.field__input:focus, .drop__head:focus, select:focus {
    border-color: var(--thm-primary-color) !important;
    box-shadow: 0 0 0 3px rgba(107, 221, 217, 0.1);
    transform: translateY(-2px);
}

/* Remove default select arrow */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23125c72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

select::-ms-expand {
    display: none;
}

/* ========== POPUP ENHANCEMENTS ========== */
.popup {
    animation: slideDown 0.4s ease-out;
}

.popup__head {
    background: linear-gradient(135deg, rgba(107, 221, 217, 0.1), rgba(18, 92, 114, 0.1));
    border-radius: 12px 12px 0 0;
    padding: 2rem;
}

.popup__title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: var(--thm-heading-font-color) !important;
}

/* ========== LOADING OVERLAY ========== */
.processload {
    backdrop-filter: blur(5px);
}

/* ========== ICON ANIMATIONS ========== */
.bi, .icon, em[class*="ni-"] {
    transition: all 0.3s ease;
}

.bi:hover, .icon:hover, em[class*="ni-"]:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--thm-primary-color) !important;
}

/* ========== NOTIFICATION DROPDOWN ========== */
.notification__body {
    box-shadow: 0 20px 50px rgba(18, 92, 114, 0.2);
    border-radius: 12px;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

.notification__item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.notification__item:hover {
    background: linear-gradient(90deg, rgba(107, 221, 217, 0.1), transparent);
    border-left-color: var(--thm-primary-color);
}

/* ========== USER DROPDOWN ========== */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 20px 50px rgba(18, 92, 114, 0.2) !important;
    border-radius: 16px !important;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

.user-card {
    background: linear-gradient(135deg, rgba(107, 221, 217, 0.1), rgba(18, 92, 114, 0.1));
    padding: 1.5rem;
    border-radius: 12px;
}

.user-avatar {
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(107, 221, 217, 0.3);
}

.link-list li a {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.link-list li a:hover {
    background: linear-gradient(90deg, rgba(107, 221, 217, 0.1), transparent);
    border-left-color: var(--thm-primary-color);
    padding-left: 1.5rem;
}

/* ========== PROGRESS BARS ========== */
.progress-bar {
    background: linear-gradient(90deg, var(--thm-primary-color), var(--thm-accent-gold));
    animation: shimmer 2s infinite;
    background-size: 1000px 100%;
}

/* ========== RESPONSIVE ENHANCEMENTS ========== */
@media (max-width: 768px) {
    .card__price {
        font-size: 2rem !important;
    }
    
    .page__title {
        font-size: 1.8rem !important;
    }
    
    .plans__title {
        font-size: 1.4rem !important;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--thm-gray-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--thm-primary-color), var(--thm-black-bg));
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--thm-black-bg), var(--thm-primary-color));
}

/* ========== ENHANCED SHADOWS ========== */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(18, 92, 114, 0.1) !important;
}

.shadow {
    box-shadow: 0 5px 15px rgba(18, 92, 114, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(18, 92, 114, 0.2) !important;
}

/* ========== GRADIENT BACKGROUNDS ========== */
.gradient-bg-1 {
    background: linear-gradient(135deg, #6bddd9 0%, #125c72 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, rgba(107, 221, 217, 0.1) 0%, rgba(18, 92, 114, 0.1) 100%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--thm-primary-color), var(--thm-accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== ANIMATED ICONS ========== */
.icon-bounce {
    animation: float 3s ease-in-out infinite;
}

.icon-spin {
    animation: rotate 2s linear infinite;
}

/* ========== HOVER EFFECTS ========== */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(18, 92, 114, 0.15);
}

/* ========== STATUS INDICATORS ========== */
.status-active {
    position: relative;
    padding-left: 20px;
}

.status-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--thm-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-pending::before {
    background: var(--thm-warning);
}

.status-failed::before {
    background: var(--thm-danger);
}

/* ========== DARK MODE ENHANCEMENTS ========== */
.dark-mode .card {
    background: linear-gradient(135deg, rgba(21, 44, 43, 0.9), rgba(18, 92, 114, 0.9));
    border-color: rgba(107, 221, 217, 0.2);
}

.dark-mode .plans__item {
    background: linear-gradient(135deg, rgba(21, 44, 43, 0.5), rgba(18, 92, 114, 0.5));
    border-color: rgba(107, 221, 217, 0.2);
}

.dark-mode .plans__price {
    color: #ffffff !important;
}

.dark-mode .plans__title {
    color: #ffffff !important;
}

.dark-mode .plans__title b {
    color: #ffffff !important;
}

.dark-mode .card__price {
    color: #ffffff !important;
}

.dark-mode .card__price b {
    color: #ffffff !important;
}

.dark-mode .card__info {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dark-mode .card__category {
    color: rgba(255, 255, 255, 0.7) !important;
}

.dark-mode .card h1,
.dark-mode .card h2,
.dark-mode .card h3,
.dark-mode .card h4,
.dark-mode .card h5,
.dark-mode .card h6 {
    color: #ffffff !important;
}

.dark-mode .card .title {
    color: #ffffff !important;
}

.dark-mode .plans__item h1,
.dark-mode .plans__item h2,
.dark-mode .plans__item h3,
.dark-mode .plans__item h4,
.dark-mode .plans__item h5,
.dark-mode .plans__item h6 {
    color: #ffffff !important;
}

.dark-mode .field__input,
.dark-mode .drop__head,
.dark-mode select {
    background: rgba(21, 44, 43, 0.5);
    border-color: rgba(107, 221, 217, 0.2) !important;
    color: var(--thm-body-font-color-2);
}

.dark-mode select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236bddd9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ========== SPECIAL EFFECTS ========== */
.glow-effect {
    box-shadow: 0 0 20px rgba(107, 221, 217, 0.5);
    animation: glow 2s infinite;
}

.shimmer-effect {
    background: linear-gradient(90deg, transparent, rgba(107, 221, 217, 0.2), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ========== ENHANCED CHART CONTAINERS ========== */
.chart-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(241, 248, 248, 0.5), rgba(255, 255, 255, 0.5));
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(18, 92, 114, 0.1);
}

/* ========== TICKER TAPE ENHANCEMENTS ========== */
.tradingview-widget-container {
    margin: 1rem 0;
}

/* ========== BREADCRUMB ENHANCEMENTS ========== */
.page__breadcrumbs {
    animation: slideInLeft 0.6s ease-out;
}

.page__text {
    color: #ffffff !important;
}

.page__breadcrumbs .page__text {
    color: #ffffff !important;
}

/* ========== WALLET ROW GRID ========== */
.wallet__row {
    gap: 2rem;
}

.wallet__col {
    animation: fadeIn 0.8s ease-out;
}

/* ========== ENHANCED LINKS ========== */
a {
    transition: all 0.3s ease;
}

a:hover {
    color: var(--thm-primary-color) !important;
}

/* ========== FLOATING ACTION BUTTON ========== */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--thm-primary-color), var(--thm-black-bg));
    box-shadow: 0 5px 20px rgba(107, 221, 217, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 30px rgba(107, 221, 217, 0.6);
}

/* ========== TOOLTIP ENHANCEMENTS ========== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--thm-black);
    color: white;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

[data-tooltip]:hover::after {
    opacity: 1;
    bottom: calc(100% + 10px);
}

/* ========== STAGGER ANIMATIONS ========== */
.plans__item:nth-child(1) { animation-delay: 0.1s; }
.plans__item:nth-child(2) { animation-delay: 0.2s; }
.plans__item:nth-child(3) { animation-delay: 0.3s; }
.plans__item:nth-child(4) { animation-delay: 0.4s; }
.plans__item:nth-child(5) { animation-delay: 0.5s; }
.plans__item:nth-child(6) { animation-delay: 0.6s; }

/* ========== GLASSMORPHISM EFFECT ========== */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

/* ========== ENHANCED MOBILE RESPONSIVENESS ========== */
@media (max-width: 576px) {
    .plans__item {
        padding: 1rem !important;
    }
    
    .card__price {
        font-size: 1.8rem !important;
    }
    
    .button, .card__button {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
.card, .plans__item, .button, .field__input {
    will-change: transform;
}

/* ========== ACCESSIBILITY ENHANCEMENTS ========== */
*:focus {
    outline: 2px solid var(--thm-primary-color);
    outline-offset: 2px;
}

/* ========== PRINT STYLES ========== */
@media print {
    .card, .plans__item {
        box-shadow: none !important;
        animation: none !important;
    }
}
