* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* PIN Authentication Overlay */
.pin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(20, 20, 20, 0.98) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(30px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.pin-container {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.2) 100%);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.pin-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.03) 50%, 
        transparent 70%);
    pointer-events: none;
}

.pin-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.pin-header i {
    font-size: 48px;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pin-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.pin-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.pin-input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.pin-input {
    flex: 1;
    padding: 15px 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #ffffff;
    font-size: 18px;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.pin-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(0, 0, 0, 0.05) 100%);
}

.pin-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.pin-submit-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}
}

.pin-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.pin-error {
    color: #ef4444;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    animation: shake 0.5s ease-in-out;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Glass Morphism Base - Updated for Black Theme */
.glass {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Header Styles - Black Theme */
.header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}



.header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
}

.header h1 i {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.header-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 40px 60px;
    border-radius: 24px;
    text-align: center;
    flex: 1;
    max-width: 500px;
    min-width: 300px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Fear & Greed Index Specific Styles */
.fear-greed-card {
    min-width: 280px;
}

.fear-greed-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fear-greed-value {
    font-size: 2.5rem !important;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 50%, #6bcf7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fear-greed-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.fear-greed-label.extreme-fear {
    color: #ff4757;
}

.fear-greed-label.fear {
    color: #ff6348;
}

.fear-greed-label.neutral {
    color: #ffa502;
}

.fear-greed-label.greed {
    color: #2ed573;
}

.fear-greed-label.extreme-greed {
    color: #1dd1a1;
}

/* BTC Dominance Specific Styles */
.btc-dominance-card {
    min-width: 250px;
}

.btc-dominance-value {
    color: #f39c12 !important;
    font-size: 2.3rem !important;
}

/* Controls */
.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-secondary {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(15, 15, 15, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.search-container {
    position: relative;
    margin-left: auto;
}

.search-container input {
    padding: 16px 50px 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    color: #ffffff;
    font-size: 1rem;
    width: 350px;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-container input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
        0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
}

.search-dropdown.active {
    display: block;
}

.dropdown-loading {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dropdown-item {
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.dropdown-crypto-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-crypto-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.dropdown-crypto-info span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.dropdown-crypto-price {
    margin-left: auto;
    text-align: right;
}

.dropdown-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

/* Portfolio Section - Black Theme */
.portfolio-section {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.portfolio-section h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.portfolio-section h2 i {
    color: rgba(255, 255, 255, 0.9);
}

.portfolio-table-container {
    overflow-x: auto;
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
}

.portfolio-table th,
.portfolio-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-table th {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    position: sticky;
    top: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.portfolio-table td {
    color: #ffffff;
    font-weight: 500;
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.crypto-details h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
}

.crypto-details span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.price-change {
    font-weight: 600;
}

.price-change.positive {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.price-change.negative {
    color: #f87171;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.3);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.btn-edit {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.btn-edit:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
}

.empty-message {
    padding: 60px 40px;
    color: rgba(255, 255, 255, 0.6);
}

.empty-message i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.empty-message p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modal Styles */
/* Modal Styles - Modern Glassmorphism Design */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.4), 
        transparent);
}

/* Modal Header */
.modal-header {
    padding: 32px 40px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.modal-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-icon i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.modal-title-text h3 {
    margin: 0 0 4px 0;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 400;
}

.close-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.close-btn i {
    font-size: 1.2rem;
}

/* Modal Body */
.modal-body {
    padding: 32px 40px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
}

.section-header i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Search Section */
.search-section {
    margin-bottom: 32px;
}

.search-container {
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 20px 24px 20px 56px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.search-container input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.1),
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    font-size: 1.1rem;
}

/* Selected Section */
.selected-section {
    margin-bottom: 32px;
}

.selected-crypto-card {
    display: flex;
    align-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.selected-crypto-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.selected-crypto-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.selected-crypto-info {
    flex: 1;
}

.selected-crypto-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.selected-crypto-symbol {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.selected-crypto-price {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

/* Input Section */
.inputs-section {
    margin-bottom: 24px;
}

.input-row {
    margin-bottom: 24px;
}

.input-group {
    position: relative;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.input-group label i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.input-group input {
    width: 100%;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    color: #ffffff;
    font-weight: 500;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.input-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* Currency Switcher */
.currency-switcher {
    display: flex;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 4px;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.currency-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.currency-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.currency-btn:hover::before {
    opacity: 1;
}

.currency-btn.active {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 4px 12px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.currency-btn:hover:not(.active) {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Modal Footer */
.modal-footer {
    padding: 24px 40px 32px;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-save {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
    margin-left: 12px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-save:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Loading States */
.loading {
    text-align: center;
    padding: 60px 40px;
    color: rgba(255, 255, 255, 0.6);
}

.loading i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.4);
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: #ffffff;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        padding: 30px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header-stats {
        flex-direction: column;
        width: 100%;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        margin-left: 0;
    }
    
    .search-container input {
        width: 100%;
    }
    
    .portfolio-table-container {
        overflow-x: scroll;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .modal-body {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

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

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

.dropdown-item {
    animation: fadeIn 0.3s ease-out;
}

.search-dropdown {
    animation: slideDown 0.3s ease-out;
}

.portfolio-table tr {
    animation: fadeIn 0.5s ease-out;
}

/* Currency Group Styles */
.currency-group {
    position: relative;
}

.currency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.currency-switcher {
    display: flex;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(0, 0, 0, 0.08) 100%);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.currency-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    position: relative;
    overflow: hidden;
}

.currency-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.03) 50%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.currency-btn:hover::before {
    opacity: 1;
}

.currency-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.06) 50%, 
        rgba(0, 0, 0, 0.04) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.currency-btn.active {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(0, 0, 0, 0.08) 100%);
    color: #ffffff;
    box-shadow: 
        0 3px 8px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Market badges for search results */
.market-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 4px;
}

.cex-badge {
    background-color: #4CAF50;
    color: white;
}

.dex-badge {
    background-color: #FF9800;
    color: white;
}

.price-change.neutral {
    color: #888;
    font-size: 11px;
}

/* P&L Card Modal - Black Theme */
.pnl-card-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.pnl-card-container {
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: min(400px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.pnl-card {
    background: url('https://res.cloudinary.com/dlsrvldwz/image/upload/v1759830068/New_Project_sqmylo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: auto;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

/* P&L Card Header Styles */
.pnl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.pnl-card-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

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

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

.username {
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
    cursor: text;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 80px;
    outline: none;
}

.username.editable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.username.editable:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

.date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.profile-upload-section {
    display: flex;
    align-items: center;
}

.upload-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.upload-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
}

.pnl-card-stats-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.multiplier {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(34, 197, 94, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.trend-arrow {
    color: #22c55e;
    font-weight: bold;
}

.trend-text {
    color: #22c55e;
    font-weight: 500;
}

.pnl-roi-section {
    margin-bottom: 25px;
}

.roi-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
    font-weight: 500;
}

.roi-value {
    font-size: 36px;
    font-weight: 700;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pnl-chart-area {
    margin-bottom: 25px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profit-chart {
    width: 100%;
    height: 100%;
}

.chart-line {
    filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.3));
}

.chart-dot {
    filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.5));
}

.pnl-price-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.price-item {
    flex: 1;
    text-align: center;
}

.price-label {
    font-size: 10px;
    color: #9ca3af;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
}

.price-value {
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.pnl-share-button {
    margin-top: 15px;
}

.share-btn {
    width: 100%;
    background: #22c55e;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.pnl-total-label {
    margin-top: 15px;
    text-align: center;
}

.total-profit-loss {
    font-size: 24px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    transition: all 0.3s ease;
}

/* Smaller font for IDR values */
.total-profit-loss.idr-value {
    font-size: 18px;
}

.total-profit-loss.negative {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Color classes for profit/loss */
.positive {
    color: #22c55e !important;
}

.negative {
    color: #ef4444 !important;
}

.roi-value.negative {
    color: #ef4444;
}

.trend-indicator.negative {
    background: rgba(239, 68, 68, 0.2);
}

.trend-indicator.negative .trend-arrow,
.trend-indicator.negative .trend-text {
    color: #ef4444;
}

.chart-line.negative {
    stroke: #ef4444;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.3));
}

.chart-dot.negative {
    fill: #ef4444;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
}



.pnl-card-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.pnl-card-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pnl-card-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pnl-card-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pnl-card-actions .btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.pnl-card-actions .btn-primary:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.pnl-card-holdings {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.pnl-holding-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.pnl-holding-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pnl-holding-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.pnl-holding-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.pnl-holding-details span {
    font-size: 12px;
    opacity: 0.8;
}

.pnl-holding-pnl {
    text-align: right;
}

.pnl-holding-pnl .pnl-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.pnl-holding-pnl .pnl-percent {
    font-size: 12px;
    opacity: 0.9;
}

.pnl-card-footer {
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pnl-card-footer p {
    margin: 0;
    font-size: 12px;
    opacity: 0.7;
}

.pnl-card-watermark {
    font-size: 24px;
    opacity: 0.3;
}

.pnl-card-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0 0 0;
}

.btn-accent {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-accent:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(0, 0, 0, 0.05) 50%, 
        rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: rgba(255, 255, 255, 1);
}

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

/* Responsive P&L Card */
@media (max-width: 768px) {
    .pnl-card-modal {
        padding: 10px;
    }
    
    .pnl-card-container {
        padding: 20px;
        max-width: calc(100vw - 20px);
        border-radius: 16px;
    }
    
    .pnl-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .pnl-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .pnl-card-user {
        width: 100%;
    }
    
    .profile-upload-section {
        align-self: flex-end;
    }
    
    .roi-value {
        font-size: 28px !important;
    }
    
    .pnl-chart-area {
        height: 60px;
        margin-bottom: 20px;
    }
    
    .pnl-price-details {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .price-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .price-item:last-child {
        border-bottom: none;
    }
    
    .price-label {
        text-align: left;
        margin-bottom: 0;
    }
    
    .price-value {
        font-size: 14px;
    }
    
    .total-profit-loss {
        font-size: 20px;
        padding: 10px 16px;
    }
    
    .pnl-card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .pnl-card-actions .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pnl-card-modal {
        padding: 5px;
    }
    
    .pnl-card-container {
        padding: 15px;
        max-width: calc(100vw - 10px);
        border-radius: 12px;
    }
    
    .pnl-card {
        padding: 12px;
        border-radius: 8px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .username {
        font-size: 12px;
    }
    
    .date {
        font-size: 10px;
    }
    
    .roi-value {
        font-size: 24px !important;
    }
    
    .pnl-chart-area {
        height: 50px;
    }
    
    .total-profit-loss {
        font-size: 18px;
        padding: 8px 12px;
    }
    
    .upload-btn {
        padding: 6px;
        font-size: 12px;
    }
}

@media (max-height: 600px) {
    .pnl-card-container {
        max-height: calc(100vh - 20px);
        padding: 15px;
    }
    
    .pnl-card {
        padding: 12px;
    }
    
    .pnl-card-header {
        margin-bottom: 10px;
    }
    
    .pnl-roi-section {
        margin-bottom: 15px;
    }
    
    .roi-value {
        font-size: 24px !important;
    }
    
    .pnl-chart-area {
        height: 40px;
        margin-bottom: 15px;
    }
    
    .pnl-price-details {
        margin-bottom: 10px;
    }
    
    .total-profit-loss {
        font-size: 16px;
        padding: 6px 10px;
    }
    
    .pnl-card-actions {
        padding: 10px 0 0 0;
    }
    
    .pnl-card-actions .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}