/* --- Core Variables & Theming --- */
:root {
    --bg-color: #161b26;
    --surface-color: #161b26;
    --text-primary: #ffffff;
    --text-secondary: #8e8e8e;
    --border-color: #262626;
    
    --primary-color: #6C3CF0;
    --primary-hover: #6a00d6;
    
    --nav-height: 65px;
    --header-height: 60px;
    --app-max-width: 480px;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-color: #f0f2f5;
    --surface-color: #ffffff;
    --text-primary: #000000;
    --text-secondary: #737373;
    --border-color: #dbdbdb;
}

 
/*support center start */

.support-dashboard-wrapper {
    padding: 20px 0;
    width: 100%;
}

.active-ticket-box, 
.create-ticket-box, 
.ticket-history-box {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.ticket-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- FontAwesome Input Group Core Architecture --- */
.support-dashboard-wrapper .input-group {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

.support-dashboard-wrapper .input-group i {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-secondary);
    z-index: 10;
    font-size: 1.1rem;
}

.support-dashboard-wrapper .input-group select,
.support-dashboard-wrapper .input-group input {
    padding-left: 48px !important;
}

/* --- Theme-Aware Responsive Textarea --- */
.support-dashboard-wrapper .input-group textarea.form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background-color: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.support-dashboard-wrapper .input-group textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 60, 240, 0.15);
}

/* --- Live Conversation Scroller Channel --- */
.ticket-chat-scroller {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 0.92rem;
}

.chat-bubble.sender-user {
    background-color: var(--border-color); /* Uses clean border boundaries for dark contrast contrast */
    color: var(--text-primary);
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

body.light-mode .chat-bubble.sender-user {
    background-color: #e4e6eb; /* Clean light mode bubble fallback */
}

.chat-bubble.sender-admin {
    background-color: rgba(108, 60, 240, 0.12);
    color: var(--text-primary);
    border: 1px solid rgba(108, 60, 240, 0.25);
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

.bubble-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* --- Framework Specific Badge Systems --- */
.badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge.status-open { 
    background: rgba(46, 213, 115, 0.15); 
    color: #2ed573; 
}

.badge.status-pending { 
    background: rgba(ffa502, 0.15); 
    color: #ffa502; 
}

.badge.status-closed { 
    background: rgba(142, 142, 142, 0.15); 
    color: var(--text-secondary); 
}

.badge.category-badge {
    background: var(--bg-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* --- Responsive List-Group Component For History Logs --- */
.responsive-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 20px 0 0 0;
    list-style: none;
}

.history-item-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    gap: 12px;
}

.history-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 200px;
}

.history-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-primary);
}

.history-meta-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
}

.history-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.empty-history-placeholder {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-secondary);
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    font-size: 0.9rem;
}

.placeholder-icon {
    font-size: 1.4rem; 
    margin-bottom: 8px; 
    display: block;
    color: var(--text-secondary);
}

.text-center-row {
    text-align: center;
}

/* --- Mobile-First Layout Rules For Large Screen Enforcements --- */
@media (min-width: 481px) {
    .support-dashboard-wrapper {
        max-width: var(--app-max-width);
        margin-left: auto;
        margin-right: auto;
    }
}
/*support center end */

/* QR Code Section */
.qr-code-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

#qr-canvas {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#qr-canvas svg, #qr-canvas canvas {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
}

.qr-code-subtext {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}
/* QR Code Section end */

/* Wallet Address Display & Copy Button */
.wallet-address-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wallet-address-text {
    word-break: break-all;
    margin: 0;
}

.copy-icon-btn {
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.copy-icon-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.copy-icon-btn.copied {
    color: #28a745;
}
/* Wallet Address Display & Copy Button end*/

/* --- Notification badge start --- */
.header-notification-anchor {
    position: relative;
}

/* Dynamic counter badge dot properties layout configuration vectors */
.badge-counter-dot {
    display: none;
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ff3333;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    padding: 2px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--header-bg-color, #1a1a1a);
}

/* Visibility state trigger class rule modification mapping scales */
.badge-counter-dot.active-badge {
    display: flex !important;
}
/* --- Notification badge end --- */

/* --- Base & Desktop Wrapper --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Desktop background */
body {
    background-color: var(--surface-color); 
    color: var(--text-primary);
    display: flex;
    justify-content: center;
}

/* The Mobile Viewport constraint */
#app-wrapper {
    width: 100%;
    max-width: var(--app-max-width);
    min-height: 100vh;
    background-color: var(--surface-color);
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    overflow-x: hidden;
    padding-top: var(--header-height);
    padding-bottom: var(--nav-height);
}



.back-arrow{
    margin-left: 20px;
}

/* Base class for all reusable images size*/
.icon-asset {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain; /* Ensures the SVG doesn't distort */
}

/* Specific size modifiers */
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 48px; height: 48px; }
.icon-lg { width: 120px; height: 120px; }
.icon-xl { width: 250px; height: 250px; }

/* Responsive option: Scale to container width */
.icon-fluid {
    width: 100%;
    height: auto;
    max-width: 500px; /* Limits growth on large screens */
}
/* Base class for all reusable images size */


/* --- welcome page Screen --- */
/* --- New Era Welcome Style --- */
 /* --- The "No-Gap" Fix --- */
.welcome-new-era {
    /* Instead of height: 100vh, we pin it to the edges of #app-wrapper */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    display: flex;
    flex-direction: column;
    background-color: #000000;
    overflow: hidden;
    z-index: 1000; /* Ensure it stays above headers/navs */
}

/* --- Captivating Visual Identity --- */
.hero-visual {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #000 100%);
}

.brand-orb {
    position: absolute;
    width: 280px;
    height: 280px;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.5;
    animation: float 6s infinite ease-in-out;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.glitch-text {
    font-size: 4rem; /* Larger and bolder */
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -3px;
    margin-bottom: 5px;
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- The Modern "Bento" Sheet --- */
.action-sheet {
    /* No flex: 1; we use specific height to keep it tight and non-scrollable */
    height: 45%; 
    background: #FFFFFF;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 20;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.6);
}

.sheet-handle {
    width: 35px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: -10px auto 20px;
}

.text-group h2 {
    color: #000;
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.text-group p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- High-Contrast Buttons --- */
.button-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.primary-action-btn {
    background: var(--primary-color);
    color: #FFF;
    border: none;
    padding: 18px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(108, 60, 240, 0.3);
}

.secondary-action-btn {
    background: #F2F2F7;
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1rem;
}

/* Animation for captivation */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}



/* --- Entrance Animation start --- */
.animate-in {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    filter: blur(10px);
    animation: eootleEntrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s; /* Slight delay for better feel */
}

@keyframes eootleEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        filter: blur(10px);
        letter-spacing: 10px; /* Text starts "spread out" */
    }
    60% {
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
        letter-spacing: -3px; /* Settles into your tight branding */
    }
}

/* Optional: Make the status pill slide up right after the text */
.status-pill {
    opacity: 0;
    transform: translateY(10px);
    animation: pillEntrance 0.8s ease-out forwards;
    animation-delay: 1s; /* Shows up after the title finishes */
}

@keyframes pillEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- Entrance Animation end --- */
/* --- welcome page Screen --- */
/* --- Splash Screen --- */
#splash-screen {
    position: fixed; 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%);
    width: 100%; 
    max-width: var(--app-max-width); 
    height: 100vh;
     display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 9999; 
    transition: opacity 0.5s ease;
}

.logo-container {
    display: flex;
    gap: 2px;
}

.logo-container span {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1); /* Start very dim */
    letter-spacing: -2px;
    position: relative;
    
    /* The Glow Animation */
    animation: neonReveal 2s infinite ease-in-out;
}

/* --- The Staggered Sequence --- */
.logo-container span:nth-child(1) { animation-delay: 0.0s; }
.logo-container span:nth-child(2) { animation-delay: 0.1s; }
.logo-container span:nth-child(3) { animation-delay: 0.2s; }
.logo-container span:nth-child(4) { animation-delay: 0.3s; }
.logo-container span:nth-child(5) { animation-delay: 0.4s; }
.logo-container span:nth-child(6) { animation-delay: 0.5s; }

@keyframes neonReveal {
    0%, 100% {
        color: rgba(255, 255, 255, 0.1);
        text-shadow: none;
        transform: scale(1);
    }
    50% {
        color: #FFFFFF;
        /* Using your primary purple for the neon glow */
        text-shadow: 0 0 10px var(--primary-color), 
                     0 0 20px var(--primary-color), 
                     0 0 40px var(--primary-color);
        transform: scale(1.1); /* Subtle "pop" toward the user */
    }
}


.icon-logo { font-size: 4rem; margin-bottom: 10px; }

a {
  color: inherit;              /* use parent text color */
  text-decoration: underline; /* keep underline */
}

a:visited {
  color: inherit;              /* no purple visited color */
}

a:hover,
a:focus {
  text-decoration-thickness: 2px; /* nicer underline on hover */
}


/* --- Top Header (Glassmorphism) --- */
.top-header {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--app-max-width); height: var(--header-height);
    background-color: var(--surface-color);
    backdrop-filter: blur(10px); /* Premium blur effect */
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 15px; z-index: 100;
    border-bottom: 1px solid var(--border-color);
}
body.light-mode .top-header { background-color: rgba(255, 255, 255, 0.85); }

.search-bar {
    display: flex; align-items: center;
    background-color: var(--bg-color);
    border-radius: 8px; padding: 6px 12px; width: 70%;
}
.search-bar i { color: var(--text-secondary); font-size: 0.9rem; margin-right: 8px; }
.search-bar input {
    background: none; border: none; color: var(--text-primary);
    width: 100%; outline: none; font-size: 0.95rem;
}

button { background: none; border: none; color: var(--text-primary); font-size: 1.3rem; cursor: pointer; }

/* --- Sidebar & Toggle Switch --- */
.sidebar-overlay {
    position: fixed; 
    top: 0; 
    /* Aligns perfectly on both mobile screens and centered desktop wrapper */
    left: max(0px, calc(50vw - (var(--app-max-width) / 2)));
    width: 100%; 
    max-width: var(--app-max-width); 
    height: 100vh;
    background: rgba(0,0,0,0.6); 
    z-index: 1000;
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s;
}
.sidebar-overlay.active { 
    opacity: 1; 
    pointer-events: all; 
}

#sidebar {
    position: fixed; 
    top: 0; 
    /* Lock to the left edge of the app view */
    left: max(0px, calc(50vw - (var(--app-max-width) / 2)));
    transform: translateX(-100%); /* Hide completely off-canvas to the left */
    width: 280px; 
    height: 100vh;
    background-color: var(--surface-color); 
    z-index: 1001;
    transition: transform 0.3s ease;
    border-right: 1px solid var(--border-color);
}
#sidebar.active { 
    transform: translateX(0); /* Slide smoothly into view */
}

.sidebar-header { padding: 20px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-color); }

.sidebar-links { list-style: none; padding: 20px; }
.sidebar-links li { margin-bottom: 25px; }
.sidebar-links a { color: var(--text-primary); text-decoration: none; font-size: 1.1rem; display: flex; align-items: center; gap: 15px;}
.sidebar-links a i { color: var(--text-secondary); font-size: 1.2rem; width: 20px;}

/* Toggle Switch CSS */
.theme-toggle-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid var(--border-color); font-weight: 500;
}
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(24px); }

/* --- Feed & Instagram Styles --- */
.post { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 10px; }

.post-header { display: flex; align-items: center; padding: 12px 15px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; margin-right: 12px; }
.author-info { display: flex; flex-direction: column; }
.author-name { font-weight: 600; font-size: 0.95rem; }
.post-time { font-size: 0.75rem; color: var(--text-secondary); }

.subscribe-btn {
    margin-left: auto; background-color: var(--border-color); color: var(--text-primary);
    padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
}
.subscribe-btn:hover { background-color: var(--primary-color); color: white;}

/* Reader */
.reader-container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reader-container::-webkit-scrollbar { display: none; }
.comic-page { min-width: 100%; scroll-snap-align: center; }
.comic-page img { width: 100%; display: block; object-fit: cover; }

/* Interactive Actions */
.post-actions { display: flex; justify-content: space-between; padding: 10px 15px 5px; }
.action-left { display: flex; gap: 18px; }
.action-btn { font-size: 1.5rem; transition: transform 0.1s, color 0.2s; }
.action-btn:active { transform: scale(0.9); }
.action-btn:hover { color: var(--text-secondary); }

.post-stats { padding: 0 15px; font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; }
.post-caption { padding: 0 15px; font-size: 0.9rem; line-height: 1.4; margin-bottom: 10px;}

/* Comment Input */
.comment-section {
    display: flex; align-items: center; padding: 5px 15px; margin-top: 5px;
}
.avatar-small { width: 28px; height: 28px; border-radius: 50%; margin-right: 12px; }
.comment-input {
    flex: 1; background: none; border: none; color: var(--text-primary);
    font-size: 0.9rem; outline: none;
}
.post-comment-btn {
    color: var(--primary-color); font-weight: 600; font-size: 0.9rem; margin-left: 10px;
}


/*fintech section start*/
/* --- Fintech Dashboard Components --- */
.fintech-dashboard {
    padding: 15px;
    background: var(--surface-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0 15px;
    padding: 0 5px;
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Wallet Card - Premium Gradient */
.wallet-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a00e0 100%);
    border-radius: 28px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(108, 60, 240, 0.3);
}

.wallet-inner { position: relative; z-index: 2; }

.wallet-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wallet-top .label {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.visibility-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1rem;
}

.balance-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.balance-display .currency { font-size: 1.5rem; font-weight: 400; }
.balance-display h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; }

.wallet-footer {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.tag-value { font-weight: 700; margin-left: 4px; }

.circle-deco {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.icon-box {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: transform 0.2s;
}

.icon-box.primary { color: var(--primary-color); background: rgba(108, 60, 240, 0.1); }
.icon-box.success { color: #2ecc71; background: rgba(46, 204, 113, 0.1); }
.icon-box.warning { color: #f1c40f; background: rgba(241, 196, 15, 0.1); }
.icon-box.info { color: #3498db; background: rgba(52, 152, 219, 0.1); }

.action-item span { font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); }

/* Asset Carousel */
.asset-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}
.asset-scroll::-webkit-scrollbar { display: none; }

.asset-scroll {
    display: flex;
    flex-direction: row; /* Aligns cards horizontally */
    gap: 16px;          /* Spacing between cards */
    width: 100%;
    overflow-x: auto;   /* Enables horizontal scrolling if cards overflow screen */
    padding: 10px 4px;  /* Small padding wrapper so card shadows don't clip */
    scrollbar-width: none; /* Hides default scrollbar on Firefox */
}

.asset-scroll::-webkit-scrollbar {
    display: none; /* Hides default scrollbar on Chrome/Safari */
}

.asset-card {
    flex: 1;            /* Cards will share space evenly */
    min-width: 140px;   /* Won't shrink past 140px */
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asset-info { display: flex; align-items: center; gap: 10px; }
.asset-info i { font-size: 1.5rem; }
.asset-info strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.asset-info span { font-size: 0.7rem; color: var(--text-secondary); }

.asset-price .price { display: block; font-weight: 700; color: var(--text-primary); }
.asset-price .change { font-size: 0.7rem; font-weight: 700; }
.change.positive { color: #2ecc71; }
.change.neutral { color: var(--text-secondary); }

/* Transaction List */
.transaction-list { display: flex; flex-direction: column; gap: 10px; }

.tx-item { 
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tx-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tx-icon.debit { background: rgba(255, 75, 75, 0.1); color: #ff4b4b; }
.tx-icon.credit { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }

.tx-main { flex: 1; }
.tx-main strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.tx-main span { font-size: 0.75rem; color: var(--text-secondary); }

.tx-amt { font-weight: 800; font-size: 0.95rem; }
.tx-amt.negative { color: var(--text-primary); }
.tx-amt.positive { color: #2ecc71; }
/* finetech section end */

/* --- Bottom Navigation (Glassmorphism + Icons) --- */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--app-max-width); height: var(--nav-height);
    background-color: var(--surface-color);
    backdrop-filter: blur(10px);
    display: flex; justify-content: space-around; align-items: center;
    border-top: 1px solid var(--border-color); z-index: 100;
}
body.light-mode .bottom-nav { background-color: rgba(255, 255, 255, 0.9); }

.nav-item {
    color: var(--text-secondary); text-decoration: none; font-size: 0.7rem;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 60px; transition: color 0.2s;
}
.nav-item i { font-size: 1.4rem; }
.nav-item.active { color: var(--text-primary); }



/* --- Auth Screen Styling site input style--- */
.auth-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
}

.auth-card {
    background-color: var(--surface-color);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
}

.hidden { display: none; }

.auth-header { margin-bottom: 30px; }
.auth-logo { font-size: 3rem; color: var(--primary-color); margin-bottom: 10px; }
.auth-header h2 { font-size: 1.5rem; margin-bottom: 5px; }
.auth-header p { color: var(--text-secondary); font-size: 0.9rem; }

/* Input & Select Common Group Styling */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none; /* Crucial: ensures clicking the icon opens the dropdown */
    z-index: 2;
}

/* Base style for both text inputs and select elements */
.input-group input,
.input-group select {
    width: 100%;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit; /* Ensures select matches input fonts */
    outline: none;
    transition: border-color 0.3s;
}

/* Base layout spacing for inputs */
.input-group input {
    padding: 14px 15px 14px 45px;
}

/* Dedicated styling to override native browser select quirks */
.input-group select {
    /* 45px padding on the left for your <i> icon, 40px on the right for our custom arrow */
    padding: 14px 40px 14px 45px; 
    cursor: pointer;

    /* Strips away the ugly default browser dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Injects a crisp custom SVG arrow on the right side using CSS variables for theme compatibility */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

/* Dark mode option styling override (Fixes default white dropdown lists on operating systems) */
.input-group select option {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

/* Global focus states */
.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-color);
}


/* ==========================================
   NEW: Custom Styling for input type="date"
   ========================================== */
.input-group input[type="date"] {
    /* 45px left for your custom icon, 15px right padding */
    padding: 14px 15px 14px 45px;
    cursor: pointer;
    text-transform: uppercase; /* Cleaner formatting layout for date text */
    font-size: 0.95rem;
}

/* Removes the default native browser calendar icon (Chrome, Safari, Edge) */
.input-group input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
    cursor: pointer;
}

/* Fixes Firefox specific default spacing/rendering bugs */
.input-group input[type="date"]::-moz-calendar-picker-indicator {
    opacity: 0;
    z-index: 3;
}

/* Global focus and active states */
.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-color);
}
/* input end */




/* Options & Buttons */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.forgot-link { color: var(--primary-color); text-decoration: none; font-weight: 600; }

.auth-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-btn:hover { background-color: var(--primary-hover); }

.auth-footer { margin-top: 25px; font-size: 0.9rem; color: var(--text-secondary); }
.link-text { color: var(--primary-color); font-weight: 700; cursor: pointer; margin-left: 5px; }

/* --- Auth Screen Styling site input style end--- */


/* --- Profile Page Styling --- */
.profile-container {
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header & Avatar */
.no-underline{
    text-decoration: none;
}

.display-off{
    display: none;
}
.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}
.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 3px;
    object-fit: cover;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface-color);
}

.user-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 2px; }
.user-email { color: var(--text-secondary); font-size: 0.9rem; }

/* Balance Card */
.balance-card {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), #4b0096);
    border-radius: 20px;
    padding: 25px;
    color: white;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(127, 0, 255, 0.3);
}

.card-content { position: relative; z-index: 2; }
.card-label { font-size: 0.85rem; opacity: 0.8; }
.balance-amount { font-size: 2rem; font-weight: 800; margin: 5px 0 15px 0; }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-circle {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

/* Profile Menu */
.menu-group {
    background-color: var(--surface-color);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    text-align: left;
    transition: background 0.2s;
}

.menu-item:last-child { border-bottom: none; }
.menu-item:active { background-color: var(--bg-color); }

.menu-icon {
    width: 35px;
    height: 35px;
    background-color: var(--bg-color);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1rem;
}

.menu-item span { flex: 1; font-weight: 500; }
.arrow { font-size: 0.8rem; color: var(--text-secondary); }

.logout-btn { color: #ff4b4b; }
.logout-btn .menu-icon { background-color: rgba(255, 75, 75, 0.1); color: #ff4b4b; }
/* --- profile page style end --- */

 /* Container padding for static labels */
.static-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.static-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 4px;
}

/* Inherits your native input layout variables cleanly */
.static-value {
    width: 100%;
    padding: 14px 15px;
    background-color: rgba(255, 255, 255, 0.03); /* Subtle backdrop tint */
    border: 1px dashed var(--border-color); /* Dashed implies un-editable field */
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
}

/* Compliance Alert Box Styling */
.support-cta-box {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.support-cta-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.support-cta-box p strong {
    color: #ef4444; /* Vivid alert focus colour */
}

/* Support Action Button */
.support-btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background-color: #ef4444;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.support-btn:hover {
    background-color: #dc2626;
}
/* Compliance Alert Box Styling end */

/*bank detail layout start */
 /* Bank Grid Container */
.bank-accounts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

/* Classy Token-Driven Bank Card */
.bank-card {
    padding: 24px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.2s ease;
    position: relative;
}

.bank-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(108, 60, 240, 0.15); /* Soft glowing aura from your exact --primary-color */
    border-color: var(--primary-color);
}

/* Top Header Layout Alignment */
.bank-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.bank-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bank-card-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* Minimalist Clean Status Badge */
.bank-badge {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    background-color: rgba(108, 60, 240, 0.1); /* 10% tint of your brand --primary-color */
    color: var(--primary-color);
    border-radius: 100px;
}

/* Classy Crimson Delete Button Icon */
.bank-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    background-color: transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bank-delete-btn:hover {
    background-color: rgba(239, 68, 68, 0.1); /* Soft warning tint */
    color: #ef4444; /* Vivid alert focus colour */
}

/* Card Metadata Grid Layout */
.bank-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bank-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-meta-row .meta-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bank-meta-row .meta-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

/* Monospace Typographic Masking for Account Numbers */
.bank-meta-row .meta-value.monospace {
    font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
}

/* Adaptive Fallback Empty State Box */
.bank-empty-state {
    margin-top: 25px;
    padding: 30px 20px;
    background-color: rgba(0, 0, 0, 0.02); 
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    text-align: center;
}

.bank-empty-state p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
}

.bank-empty-state p strong {
    color: var(--primary-color);
    font-weight: 600;
}
/*bank details layout end*/

/*flash message layout start*/
    /* Fixed Toast Container Placement */
.flash-popup-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 360px; /* Sits cleanly on desktop; responsive friendly */
}

/* Base Classy Popup Card */
.flash-popup {
    padding: 16px 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: slideInPopup 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Side Accent Border Color States */
.flash-popup.success {
    border-left: 4px solid #10b981; /* Premium Fintech Emerald Green */
}
.flash-popup.error {
    border-left: 4px solid #ef4444; /* Your custom vivid alert focus red */
}

/* Content Alignment Layout */
.flash-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* Vector Context State Icons */
.flash-icon {
    font-size: 1.15rem;
}
.success .flash-icon { color: #10b981; }
.error .flash-icon { color: #ef4444; }

/* Text Content Alignment */
.flash-popup p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Premium Minimalist Close Action Button */
.flash-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0 0 0 12px;
    line-height: 1;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-close-btn:hover {
    color: var(--text-primary);
}

/* Mobile Responsive Optimization Safeguard */
@media (max-width: var(--app-max-width, 480px)) {
    .flash-popup-container {
        top: 15px;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: none;
    }
}

/* Premium Entry Slide Animation */
@keyframes slideInPopup {
    from {
        transform: translateY(-15px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
/*flash message layout end*/

/*toggle switch 2 layout start*/
.pin-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 24px 0;
    user-select: none;
}

/* Dynamic Alert Error Prompt Container Box */
.pin-mismatch-notice {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ef4444; /* Standard vivid alert focus colour token */
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: -8px;
    margin-bottom: 16px;
    transition: opacity 0.2s ease;
}

/* Framework Helper Utility Modifiers */
.pin-mismatch-notice.hidden {
    display: none;
    opacity: 0;
}
/*toggle switch 2 layout end*/

/*kyc verification start*/
.kyc_video_notice{
    color: #666; 
    display: block; 
    margin-top: -10px; 
    margin-bottom: 15px; 
    padding-left: 10px;
}

/* ========================================== */
/* CUSTOM KYC LIVE RECORDER CONTAINMENT       */
/* ========================================== */

/* Use your input-group class for spacing, but stack items inside vertically */
.kyc-recorder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #111111; /* Dark contrasting background for camera frame isolation */
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Force the video wrapper into a neat, centered passport-photo box format */
.video-preview-wrap {
    position: relative;
    width: 160px;               /* Strict passport identity card width scaling */
    height: 200px;              /* Strict passport identity card height scaling */
    border-radius: 6px;
    overflow: hidden;           /* Cuts off any video feed spilling out of the rounded mask */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background-color: #000000;
    margin-bottom: 15px;        /* Spacing above the control buttons */
}

/* Make sure the raw video stream fills the passport frame neatly without stretching */
#webcamPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Crops the camera feed dynamically into the portrait frame */
    transform: scaleX(-1);      /* Mirrors the view so it functions naturally for the user */
}

/* Float the 5s timer badge elegantly inside the top-right corner of the video screen */
.recording-timer {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(255, 0, 0, 0.85); /* Highly visible warning red background */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Keep the trigger elements contained side-by-side or stacked cleanly */
.recorder-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 280px;           /* Prevents the buttons from stretching too wide on desktop screens */
}

/* Unified style overrides for your camera buttons */
.rec-control-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.rec-control-btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: #2b2b2b;
    color: #ffffff;
    border: 1px solid #444444;
}

.btn-secondary:hover {
    background-color: #383838;
}

.btn-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #bd2130;
}
/*kyc verification end */
/* copy-alert start */
.copy-alert-toast {
    display: inline-block;
    background-color: #10b981;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: opacity 0.3s ease;
    opacity: 0;
}
.copy-alert-toast.hidden {
    display: none;
}
/*copy-alert end */

/*rondom styling start*/
 .margin_class{
        padding-left: 5px;
    }
    .agreement_terms{
        margin: 15px;
        font-weight: 100;
        
    }
    .agreement_terms:hover{
        color: rgb(214, 233, 214);
        font-weight: 120;

    }
/*rondom styling end*/


/* --- Transaction History Layout --- */
.history-container {
    padding: 25px 20px;
    animation: fadeIn 0.4s ease;
}

/* Filter Chips */
.history-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.filter-chip {
    padding: 8px 18px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.filter-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Date Dividers */
.date-divider {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 25px 0 15px 5px;
}

/* Transaction Items */
.transaction-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tx-item {
    background: var(--surface-color);
    padding: 15px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-color);
}

.tx-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Transaction Icon Colors */
.tx-icon.sub { background: rgba(127, 0, 255, 0.1); color: var(--primary-color); }
.tx-icon.deposit { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.tx-icon.failed { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

.tx-details { flex: 1; }
.tx-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.tx-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Amount Styling */
.tx-amount {
    font-weight: 800;
    font-size: 0.95rem;
}
.tx-amount.negative { color: var(--text-primary); } /* Or #e74c3c if you want red */
.tx-amount.positive { color: #2ecc71; }
.tx-amount.neutral { color: var(--text-secondary); opacity: 0.5; }

.load-more-container {
    margin-top: 30px;
    padding-bottom: 50px;
    text-align: center;
}

.load-more-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.load-more-btn:active {
    transform: scale(0.95);
    background: var(--border-color);
}

/* Minimal Spinner */
.loader-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* --- Transaction History Layout  end --- */

/* --- Notifications Layout --- */
.notifications-container {
    padding: 25px 20px;
    animation: fadeIn 0.4s ease;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mark-read-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

/* Notification List */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.notif-item {
    background: var(--surface-color);
    padding: 15px;
    border-radius: 18px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: background 0.3s;
}

/* Unread State Styling */
.notif-item.unread {
    background: rgba(127, 0, 255, 0.03); /* Subtle purple tint */
    border-color: rgba(127, 0, 255, 0.2);
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Icon Styles */
.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.notif-icon.story { background: rgba(127, 0, 255, 0.1); color: var(--primary-color); }
.notif-icon.wallet { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.notif-icon.system { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.notif-icon.promo { background: rgba(241, 196, 15, 0.1); color: #f1c40f; }

/* Content Styling */
.notif-content { flex: 1; }

.notif-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notif-text strong { font-weight: 700; }

.notif-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
/* --- Notifications Layout end  --- */

/* --- Search & Discovery Hub --- */
.search-results-container {
    padding: 20px;
    animation: slideUp 0.3s ease-out;
}

.search-meta-section { margin-bottom: 30px; }

.meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tiny-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 800;
}

.clear-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Tag Cloud (Recent Searches) */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.btc-color-icon{
    color: #f7931a;
}
.usdt-color-icon{
    color: #26a17b;
} 

.search-chip {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Trending List Styling */
.trending-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trend-card {
    background: var(--surface-color);
    padding: 15px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: 0.2s;
}

.trend-rank {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.8;
}

.trend-info { flex: 1; }
.trend-title { display: block; color: var(--text-primary); font-weight: 700; font-size: 0.95rem; }
.trend-meta { font-size: 0.75rem; color: var(--text-secondary); }

.hot-icon { color: #ff4b4b; font-size: 0.9rem; }

/* --- Vertical Results View --- */
.results-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.search-result-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item img {
    width: 80px;
    height: 110px;
    border-radius: 10px;
    object-fit: cover;
}

.result-details { flex: 1; }
.result-title { color: var(--text-primary); font-size: 1rem; margin-bottom: 4px; }
.result-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.result-tags { display: flex; gap: 6px; }
.result-tags .tag {
    font-size: 0.65rem;
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 5px;
    color: var(--text-secondary);
}

/* --- Search & Discovery Hub end--- */

/*buy and sell button start*/

/* --- Trade Layout System --- */

.trade-buttons-container {
    width: 100%;
    max-width: var(--app-max-width);
    margin: 0 auto;
    padding: 12px 16px;
    background-color: var(--surface-color);
}

.trade-type {
    display: flex;
    justify-content: space-between; /* Pushes buy to the far left, sell to the far right */
    align-items: center;
    gap: 12px; /* Small layout spacing cushion for smaller viewports */
}

/* Base Link Buttons Style */
.trade-btn {
    flex: 1; /* Instructs both components to share horizontal real estate evenly */
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background-color: var(--surface-color);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Individual Context Action Hovers */
.trade-btn.btn-buy:hover {
    background-color: #10b981; /* Premium Deep Emerald Emerald Green */
    color: #ffffff;
    border-color: #059669;
}

.trade-btn.btn-sell:hover {
    background-color: #ef4444; /* Premium Deep Coral Red */
    color: #ffffff;
    border-color: #dc2626;
}

/* Context UI Divider lines matching current theme borders */
.trade-divider {
    border: 0;
    height: 1px;
    margin-top: 14px;
    background-color: var(--border-color);
}

.trade-btnbuy {
    flex: 1; /* Instructs both components to share horizontal real estate evenly */
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background-color: #10b981;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.trade-btnsell {
    flex: 1; /* Instructs both components to share horizontal real estate evenly */
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background-color: #ef4444;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* --- Mobile First Responsiveness Adjustment --- */
@media (max-width: 360px) {
    .trade-btn {
        padding: 8px 10px;
        font-size: 12px; /* Drops text scaling slightly so elements never stack or overflow */
    }
}

   /* --- Market Transaction List Component --- */

.market-alert {
    padding: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #856404;
    background-color: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid #ffeeba;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: var(--app-max-width);
    margin: 0 auto;
}

.tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: transform 0.15s ease;
}

/* Status Icon Indicators (Debit/Credit) */
.tx-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50px;
    font-size: 16px;
    margin-right: 14px;
}

.tx-icon.credit {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.tx-icon.debit {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Center Content Meta Classes */
.tx-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tx-asset-name {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.tx-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-link {
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.action-link.buy {
    color: #10b981;
}

.action-link.sell {
    color: #ef4444;
}

.action-divider {
    color: var(--text-secondary);
    font-size: 11px;
}

/* Right Side Pricing Meta Classes */
.tx-side {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tx-amt-fiat {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 15px;
}

.tx-trend {
    font-size: 12px;
    font-weight: 600;
}

.tx-trend.positive {
    color: #10b981;
}

.tx-trend.negative {
    color: #ef4444;
}

.trend-time {
    color: var(--text-secondary);
    font-weight: 400;
}

.market-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}
/*buy and sell button end*/


/* --- Desktop & Tablet Enhancements --- */
@media (min-width: 850px) {
    /* Dock the sidebar permanently to the left of the mobile view */
    #sidebar {
        transform: translateX(0) !important; /* Keep it always open */
        /* Position it right next to the 480px app wrapper */
        left: calc(50vw - (var(--app-max-width) / 2) - 280px) !important; 
        border-radius: 20px 0 0 20px; /* Optional: Gives it a smooth app-like corner */
    }

    /* Hide the mobile toggle buttons and overlay */
    #header-menu-btn, 
    #sidebar-close-btn {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }
}