/* ========== PAPERPOOL TRANSFER CREDITS - MODERN DASHBOARD THEME ========== */

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

:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;
    
    /* Light Accent Colors */
    --accent-red-light: #fef2f2;
    --accent-green-light: #f0fdf4;
    --accent-blue-light: #eff6ff;
    --accent-yellow-light: #fffbeb;
    --gradient-primary: linear-gradient(135deg, #000000 0%, #404040 100%);
    --gradient-secondary: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== PARTICLE BACKGROUND ========== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

/* ========== MOBILE MENU BUTTON ========== */
.mobile-menu-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2001;
    display: none;
    width: 48px;
    height: 48px;
    background: var(--primary-white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition);
}

.menu-bar {
    width: 18px;
    height: 2px;
    background: var(--primary-black);
    border-radius: 1px;
    transition: var(--transition);
}

.mobile-menu-btn.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========== LAYOUT ========== */
.transfer-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 280px;
    background: var(--primary-white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 2000;
    transform: translateX(-100%);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

/* Show sidebar by default on desktop */
@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-black);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-black);
    font-family: 'JetBrains Mono', monospace;
}

.sidebar-close {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: var(--transition);
}

.sidebar-close:hover {
    background: var(--gray-100);
    color: var(--primary-black);
}

/* ========== USER PROFILE ========== */
.sidebar-user {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
    flex-shrink: 0;
}

.user-avatar-container {
    margin-bottom: 1rem;
    position: relative;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid var(--gray-200);
    background: var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    border-color: var(--primary-black);
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: var(--accent-green);
    border: 3px solid var(--primary-white);
    border-radius: 50%;
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    opacity: 0;
    transition: var(--transition);
}

.user-avatar:hover .avatar-overlay {
    opacity: 1;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-black);
}

.user-university {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.user-level {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.level-badge {
    display: inline-block;
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.level-progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

/* ========== NAVIGATION MENU ========== */
.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    list-style: none;
}

.menu-item {
    margin-bottom: 0.25rem;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--gray-600);
    transition: var(--transition);
    position: relative;
    border-radius: 0;
}

.menu-link:hover {
    background: var(--gray-50);
    color: var(--primary-black);
}

.menu-item.active .menu-link {
    background: var(--gray-100);
    color: var(--primary-black);
    font-weight: 600;
}

.menu-icon {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
}

.menu-text {
    flex: 1;
}

.menu-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

.menu-badge.transfer-badge {
    background: var(--accent-green);
    color: var(--primary-white);
}

.menu-badge.coming-soon {
    background: var(--accent-yellow);
    color: var(--primary-white);
}

.menu-badge.chat-badge {
    background: var(--danger-color);
    color: var(--primary-white);
}

.menu-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-black);
    border-radius: 2px 0 0 2px;
    opacity: 0;
    transition: var(--transition);
}

.menu-item.active .menu-indicator {
    opacity: 1;
}

/* ========== SIDEBAR FOOTER ========== */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.credit-widget {
    background: var(--gradient-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    color: var(--primary-white);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.credit-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.credit-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.credit-icon {
    font-size: 1.5rem;
}

.credit-info {
    flex: 1;
}

.credit-amount {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.credit-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.credit-actions .btn-credit-buy {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--primary-white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.btn-credit-buy:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.logout-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--primary-white);
}

/* ========== MOBILE BACKDROP ========== */
.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    margin-left: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== HEADER ========== */
.transfer-header {
    background: var(--primary-white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-trigger {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: var(--transition);
}

.mobile-menu-trigger:hover {
    background: var(--gray-100);
    color: var(--primary-black);
}

.welcome-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary-black);
}

.greeting {
    color: var(--gray-500);
}

.user-name {
    color: var(--primary-black);
}

.welcome-subtitle {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-widgets {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credits-display {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.credits-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-black);
    display: block;
}

.credits-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.daily-progress {
    min-width: 140px;
}

.progress-info {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    text-align: center;
}

.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ========== TRANSFER CONTENT ========== */
.transfer-content {
    flex: 1;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: start;
    grid-template-rows: auto auto;
}

/* ========== DASHBOARD CARDS ========== */
.dashboard-card {
    background: var(--primary-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.card-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary-black);
}

.card-title .tokens-subtitle,
.card-title .progress-stats {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== TRANSFER FORM ========== */
.transfer-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 3.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--primary-white);
    color: var(--gray-800);
    font-weight: 500;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: var(--primary-white);
}

.input-wrapper input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.input-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.2rem;
    transition: var(--transition);
}

.input-wrapper:focus-within .input-icon {
    color: var(--accent-blue);
}

.form-group.error input {
    border-color: var(--accent-red);
}

.form-group input.valid {
    border-color: var(--accent-green);
}

.error-message {
    color: var(--accent-red);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

/* ========== RECIPIENT INFO ========== */
.recipient-info {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--accent-green-light);
    border: 1px solid var(--accent-green);
    border-radius: var(--border-radius-lg);
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.recipient-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-green);
}

.recipient-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recipient-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--accent-green);
    box-shadow: var(--shadow-sm);
}

.recipient-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipient-text {
    flex: 1;
}

.recipient-name {
    font-weight: 700;
    color: var(--primary-black);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.recipient-university {
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: 500;
}

.recipient-status {
    color: var(--accent-green);
    font-size: 1.25rem;
    background: var(--accent-green-light);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.recipient-course {
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.recipient-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.recipient-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 0.75rem;
    background: var(--primary-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.recipient-stats .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.recipient-stats .stat-value {
    font-size: 1.1rem;
    color: var(--primary-black);
    font-weight: 700;
}

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

/* ========== RECIPIENT LOADING & ERROR STATES ========== */
.recipient-loading,
.recipient-error {
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.recipient-loading {
    background: var(--accent-blue-light);
    border: 1px solid var(--accent-blue);
}

.recipient-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-blue);
}

.loading-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid var(--accent-blue-light);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.loading-text {
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 600;
}

.recipient-error {
    background: var(--accent-red-light);
    border: 1px solid var(--accent-red);
}

.recipient-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-red);
}

.error-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.error-icon {
    color: var(--accent-red);
    font-size: 1.25rem;
    flex-shrink: 0;
    background: var(--accent-red-light);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.error-text {
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ========== AMOUNT SELECTION ========== */
.amount-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.amount-btn {
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-200);
    background: var(--primary-white);
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-700);
    font-size: 1.1rem;
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

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

.amount-btn:hover::before {
    left: 100%;
}

.amount-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-blue-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.amount-btn.active {
    background: var(--accent-blue);
    color: var(--primary-white);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.amount-input-wrapper {
    position: relative;
}

.amount-input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ========== TEXTAREA ========== */
.textarea-wrapper {
    position: relative;
}

.textarea-wrapper textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: var(--transition);
    background: var(--primary-white);
    color: var(--primary-black);
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.char-counter {
    position: absolute;
    bottom: 0.875rem;
    right: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    background: var(--primary-white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

/* ========== TRANSFER SUMMARY ========== */
.transfer-summary {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: none;
}

.summary-row.fee-row {
    border-top: 1px solid var(--gray-200);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.summary-row.total-row {
    border-top: 2px solid var(--primary-color);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-weight: 600;
}

.fee-value {
    color: #ef4444;
}

.total-value {
    color: var(--primary-color);
    font-weight: 700;
}

.summary-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-row .label {
    color: var(--gray-500);
}

.summary-row .value {
    font-weight: 600;
    color: var(--primary-black);
}

.xp-reward {
    color: var(--accent-green);
}

/* ========== BUTTONS ========== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-white);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--primary-black);
}

.btn-ghost {
    background: none;
    color: var(--gray-600);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--primary-black);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.transfer-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--accent-blue);
    border: none;
    border-radius: var(--border-radius-lg);
    color: var(--primary-white);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.transfer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.transfer-btn:hover:not(:disabled)::before {
    left: 100%;
}

.transfer-btn:hover:not(:disabled) {
    background: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.transfer-btn:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.transfer-btn:disabled::before {
    display: none;
}

/* ========== PROGRESS CARDS ========== */
.progress-visual {
    padding: 2rem;
    text-align: center;
}

.progress-circle {
    margin-bottom: 2rem;
}

.circle-progress {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px solid var(--gray-200);
}

.circle-text {
    text-align: center;
}

.progress-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-black);
    display: block;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.progress-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-item {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.detail-item .label {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: block;
    margin-bottom: 0.5rem;
}

.detail-item .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-black);
}

/* ========== TRANSFER PROGRESS SECTION ========== */
.transfer-progress-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

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

.progress-label {
    font-weight: 600;
    color: var(--primary-black);
    font-size: 0.9rem;
}

.progress-stats {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.transfer-progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.transfer-progress-bar .progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ========== XP REWARDS SECTION ========== */
.xp-rewards-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.xp-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xp-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-green);
    color: var(--primary-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.xp-total {
    text-align: right;
}

.xp-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.xp-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-black);
}

/* ========== TRANSFER STATS GRID ========== */
.transfer-stats-grid {
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.transfer-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.transfer-stat:hover {
    background: var(--gray-100);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stat-icon.sent {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.stat-icon.received {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.stat-icon.credits {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-yellow);
}

.stat-icon.level {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-black);
    display: block;
    line-height: 1;
}

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

/* ========== HISTORY FILTERS ========== */
.history-filters {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary-black);
    color: var(--primary-black);
}

.filter-btn.active {
    background: var(--primary-black);
    border-color: var(--primary-black);
    color: var(--primary-white);
}

/* ========== HISTORY LIST ========== */
.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-empty {
    padding: 3rem 2rem;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--gray-400);
    font-size: 2rem;
}

.history-empty h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.history-empty p {
    color: var(--gray-500);
}

/* ========== HISTORY ITEMS ========== */
.history-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.history-item:hover {
    background: var(--gray-50);
}

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

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.history-item.sent .history-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.history-item.received .history-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.history-content {
    flex: 1;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.history-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-black);
    margin: 0;
}

.history-amount {
    font-weight: 700;
    font-size: 0.9rem;
}

.history-amount.sent {
    color: var(--accent-red);
}

.history-amount.received {
    color: var(--accent-green);
}

.history-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.history-message {
    background: var(--gray-50);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    font-style: italic;
    border: 1px solid var(--gray-200);
}

.history-message i {
    color: var(--gray-400);
    margin-right: 0.25rem;
}

.history-xp {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 600;
}

.history-fee {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 600;
}

/* ========== SUCCESS MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 90%;
    border: 1px solid var(--gray-200);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-white);
    font-size: 2rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--primary-black);
}

.modal-body {
    padding: 0 2rem 1rem;
    text-align: center;
}

.success-details p {
    color: var(--gray-500);
    margin-bottom: 1rem;
}

/* Paytm-like Success Animation */
.success-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkmarkPulse 2s ease-in-out;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.checkmark {
    width: 32px;
    height: 32px;
    border: 3px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: checkmarkDraw 0.8s ease-in-out 0.5s both;
}

@keyframes checkmarkPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmarkDraw {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    100% {
        width: 32px;
        height: 32px;
        opacity: 1;
    }
}

.success-details h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.fee-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #fef2f2;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #fecaca;
}

.fee-label {
    color: #991b1b;
    font-weight: 500;
}

.fee-amount {
    color: #dc2626;
    font-weight: 600;
}

.transaction-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #bae6fd;
}

.transaction-label {
    color: #0c4a6e;
    font-weight: 500;
}

.transaction-id {
    color: #0369a1;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.recipient-info {
    font-size: 1.1rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-weight: 600;
}

.amount-info {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.amount-info .amount {
    color: var(--primary-black);
}

.xp-earned {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    color: var(--accent-green);
    font-weight: 600;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
}

/* ========== LOADING OVERLAY ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--gray-600);
    font-weight: 500;
    margin: 0;
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.toast {
    background: var(--primary-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--accent-green);
}

.toast.error {
    border-left: 4px solid var(--accent-red);
}

.toast.info {
    border-left: 4px solid var(--accent-blue);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon {
    color: var(--accent-green);
}

.toast.error .toast-icon {
    color: var(--accent-red);
}

.toast.info .toast-icon {
    color: var(--accent-blue);
}

.toast-content {
    flex: 1;
}

.toast-message {
    color: var(--primary-black);
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
}

.toast-close:hover {
    background: var(--gray-100);
    color: var(--primary-black);
}

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

/* ========== RESPONSIVE DESIGN ========== */
@media (min-width: 1024px) {
    .sidebar {
        position: fixed;
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
        width: 280px;
    }
    
    .main-content {
        margin-left: 280px;
        position: relative;
        z-index: 1;
        overflow-x: hidden;
    }
    
    .mobile-menu-trigger {
        display: none;
    }
    
    .sidebar-close {
        display: none;
    }
    
    .mobile-backdrop {
        display: none;
    }

    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 1023px) {
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        position: relative;
        z-index: 1;
    }
    
    .transfer-content {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .sidebar-close {
        display: flex;
    }
    
    .transfer-header {
        padding: 1rem;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .header-widgets {
        gap: 0.75rem;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        position: relative;
        z-index: 1;
    }
    
    .transfer-header {
        padding: 0.75rem 1rem;
    }
    
    .welcome-section h1 {
        font-size: 1.5rem;
    }
    
    .credits-display {
        padding: 0.5rem 0.75rem;
    }
    
    .credits-amount {
        font-size: 1.1rem;
    }
    
    .transfer-form {
        padding: 1rem;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .history-header {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .history-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .history-filters {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
    }

    .transfer-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .progress-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        position: relative;
        z-index: 1;
    }
    
    .transfer-content {
        padding: 0.5rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .transfer-form {
        padding: 1rem;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .amount-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .progress-details {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .history-stats {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .welcome-section h1 {
        font-size: 1.25rem;
    }

    .header-widgets {
        flex-direction: column;
        gap: 0.5rem;
    }
}
