/* Body styles are now handled in style.css to avoid conflicts */

/* Hero Navigation Buttons - Responsive Design */
.hero-nav-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    overflow: visible !important; /* 버튼 잘림 방지 */
    padding-bottom: 1rem; /* 하단 패딩 추가 - 버튼 잘림 방지 */
}

.nav-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: visible !important; /* 버튼 잘림 방지 */
    width: 100%;
    min-width: 320px;
    max-width: 100%;
}

/* 빛나는 효과 제거 */
.nav-button::before {
    display: none !important; /* 빛나는 효과 제거 */
}

.nav-button:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.nav-button-content {
    flex: 1;
    overflow: visible !important; /* 텍스트 잘림 방지 */
    min-height: auto; /* 최소 높이 자동 */
}

.nav-button-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
    line-height: 1.5 !important; /* 텍스트 잘림 방지 */
    white-space: normal !important; /* 텍스트 줄바꿈 허용 */
    overflow: visible !important; /* 텍스트 잘림 방지 */
    word-wrap: break-word; /* 긴 단어 줄바꿈 */
}

.nav-button-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    line-height: 1.5 !important; /* 텍스트 잘림 방지 */
    white-space: normal !important; /* 텍스트 줄바꿈 허용 */
    overflow: visible !important; /* 텍스트 잘림 방지 */
    word-wrap: break-word; /* 긴 단어 줄바꿈 */
}

.nav-button-arrow {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.nav-button:hover .nav-button-arrow {
    color: white;
    transform: translateX(3px);
}

.profile-hero-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem auto;
    max-width: 800px;
}

/* Large screens - make buttons wider */
@media (min-width: 1200px) {
    .hero-nav-section {
        max-width: 600px;
    }
    
    .nav-button {
        min-width: 380px;
        padding: 1.5rem 2rem;
    }
    
    .nav-button-title {
        font-size: 1.2rem;
    }
    
    .nav-button-subtitle {
        font-size: 0.9rem;
    }
}

/* Extra large screens - even wider buttons */
@media (min-width: 1400px) {
    .hero-nav-section {
        max-width: 700px;
    }
    
    .nav-button {
        min-width: 450px;
        padding: 1.75rem 2.5rem;
    }
    
    .nav-button-title {
        font-size: 1.3rem;
    }
    
    .nav-button-subtitle {
        font-size: 1rem;
    }
}

/* Tablet responsive */
@media (max-width: 768px) {
    .hero-nav-section {
        min-width: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-button {
        padding: 1rem 1.25rem;
        width: 90%;
        max-width: 400px;
        min-width: 280px;
    }
    
    .nav-button-title {
        font-size: 1rem;
    }
    
    .nav-button-subtitle {
        font-size: 0.8rem;
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .nav-button {
        padding: 0.875rem 1rem;
        width: 95%;
        max-width: 350px;
        min-width: 250px;
    }
    
    .nav-button-title {
        font-size: 0.95rem;
    }
    
    .nav-button-subtitle {
        font-size: 0.75rem;
    }
}

/* Profile Edit Modal Styles - Financial Navy Theme */
.profile-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-edit-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.profile-edit-modal-content {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    width: 95%;
    max-width: 800px;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: slideInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.profile-edit-modal.show .profile-edit-modal-content {
    transform: scale(1);
}

.profile-edit-modal-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.profile-edit-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #10b981 100%);
}

.profile-edit-modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.profile-edit-modal-header h3 i {
    color: #10b981;
    font-size: 1.5rem;
}

.profile-edit-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.profile-edit-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.profile-edit-modal-body {
    padding: 2.5rem;
    max-height: calc(92vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8fafc;
    flex: 1;
    position: relative;
}

.profile-edit-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-field-group {
    display: flex;
    flex-direction: column;
}

.newsletter-field {
    grid-column: 1 / -1;
}

.newsletter-toggle-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.newsletter-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.newsletter-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.newsletter-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.newsletter-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.newsletter-switch input:checked + .newsletter-slider {
    background-color: #10b981;
}

.newsletter-switch input:focus + .newsletter-slider {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.newsletter-switch input:checked + .newsletter-slider:before {
    transform: translateX(20px);
}

.newsletter-description {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    flex: 1;
}

.profile-pic-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    grid-column: 1 / -1;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.profile-pic-preview {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.profile-pic-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.profile-pic-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-pic-preview .profile-pic-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    font-size: 3rem;
}

.profile-pic-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.profile-pic-overlay:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.profile-pic-upload-btn {
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    margin: 0;
    font-weight: 600;
}

.profile-edit-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.5rem 2.5rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.profile-edit-modal-actions-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 480px) {
    .profile-edit-modal-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        align-items: stretch;
    }
    
    .profile-edit-modal-actions-right {
        order: -1;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-financial-danger {
        order: 1;
        width: auto;
        min-width: auto;
        align-self: center;
        justify-content: center;
        padding: 0.375rem 0.75rem;
        font-size: 0.6875rem;
        margin-top: 0.5rem;
    }
}

/* Financial Form Styles for Modal */
.profile-edit-modal .financial-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.01em;
}

.profile-edit-modal .financial-form-input,
.profile-edit-modal .financial-form-select {
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #0f172a;
    font-weight: 500;
    width: 100%;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.profile-edit-modal .financial-form-input::placeholder {
    color: #94a3b8;
}

.profile-edit-modal .financial-form-input:focus,
.profile-edit-modal .financial-form-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1),
                0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.profile-edit-modal .financial-form-input:hover,
.profile-edit-modal .financial-form-select:hover {
    border-color: #cbd5e1;
}

.profile-edit-modal .btn-financial-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.profile-edit-modal .btn-financial-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    text-decoration: none;
}

.profile-edit-modal .btn-financial-secondary {
    background: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.profile-edit-modal .btn-financial-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .profile-edit-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 95vh;
    }
    
    .profile-edit-modal-header {
        padding: 1.5rem 1.5rem;
    }
    
    .profile-edit-modal-header h3 {
        font-size: 1.5rem;
    }
    
    .profile-edit-modal-body {
        padding: 2rem 1.5rem;
    }
    
    .profile-edit-form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-pic-upload-section {
        padding: 1.5rem;
    }
    
    .profile-pic-preview {
        width: 120px;
        height: 120px;
    }
    
    
    .profile-edit-modal .financial-form-input,
    .profile-edit-modal .financial-form-select {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .profile-edit-modal-content {
        width: 98%;
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    .profile-edit-modal-header {
        padding: 1rem 1rem;
    }
    
    .profile-edit-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .profile-edit-modal-body {
        padding: 1rem;
    }
    
    .profile-edit-form-grid {
        gap: 1rem;
    }
    
    .profile-pic-upload-section {
        padding: 1rem;
    }
    
    .profile-pic-preview {
        width: 100px;
        height: 100px;
    }
    
    .profile-pic-overlay {
        width: 32px;
        height: 32px;
    }
    
    .profile-edit-modal .financial-form-label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .profile-edit-modal .financial-form-input,
    .profile-edit-modal .financial-form-select {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .profile-edit-modal .btn-financial-primary,
    .profile-edit-modal .btn-financial-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .newsletter-toggle-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.875rem;
    }
    
    .account-type-badge {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }
}

/* Remove main-content override to avoid conflicts with base.css flexbox layout */
.profile-main-content {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 0;
  padding-top: 80px; /* Ensure enough space for fixed navbar */
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--navbar-height));
}

.profile-container {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  margin: 0 auto;
}

.page-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 2rem 0;
  margin: 0 -2rem 2rem -2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.summary-stats {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid #e9ecef;
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Container */
.section-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.section-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e9ecef;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
}

.section-stats .badge {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Profile Form Styles */
.profile-form {
  padding: 2rem;
}

.profile-picture-section {
  text-align: center;
  padding: 1rem;
}

.profile-pic-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.profile-pic-container:hover {
  border-color: #007bff;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 50%;
  color: #6c757d;
  font-size: 2.5rem;
}

.profile-pic-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 50%;
  color: #6c757d;
  font-size: 2rem;
}

.profile-pic-upload {
  text-align: center;
}

.profile-pic-upload .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.profile-pic-upload .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.profile-basic-info {
  margin-top: 1rem;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.profile-email {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* Form Fields */
.profile-fields {
  padding: 0;
}

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

.form-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
  background: #fff;
}

.form-control::placeholder {
  color: #adb5bd;
  font-style: italic;
}

/* Portfolio Modal Styles - Modern Financial Design */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

/* Hide navbar when any modal is open */
body.modal-open .navbar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

.portfolio-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-modal-content {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 1400px;
    width: 95%;
    max-height: 92vh;
    overflow: hidden;
    animation: slideInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.portfolio-modal-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.portfolio-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 50%, #f59e0b 100%);
}

.portfolio-modal-header h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.portfolio-modal-header h3 i {
    color: #f59e0b;
    font-size: 1.5rem;
}

.portfolio-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.portfolio-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.portfolio-modal-body {
    padding: 2.5rem;
    background: #f8fafc;
    flex: 1;
    overflow-y: auto;
}

/* Portfolio Stats Grid */
.portfolio-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.portfolio-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.portfolio-stat-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.portfolio-stat-card .stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

.portfolio-stat-card .stat-content {
    flex: 1;
    min-width: 0;
}

.portfolio-stat-card .stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.portfolio-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Portfolio Table */
.portfolio-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.table-header {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.table-header h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-update-prices {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-update-prices:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-update-prices:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.portfolio-table-wrapper {
    overflow-x: auto;
}

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
    color: #0f172a;
}

.portfolio-table th {
    background: #f1f5f9;
    color: #475569;
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.portfolio-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9375rem;
}

.portfolio-table tbody tr {
    transition: background-color 0.15s ease;
}

.portfolio-table tbody tr:hover {
    background: #f8fafc;
}

.stock-info .stock-ticker {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.stock-info .stock-name {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.quantity, .price, .total-value, .average-price {
    font-weight: 600;
    color: #0f172a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.profit.positive, .return.positive {
    color: #10b981;
    font-weight: 700;
}

.profit.negative, .return.negative {
    color: #ef4444;
    font-weight: 700;
}

.portfolio-table .action-cell {
    text-align: center;
    vertical-align: middle;
}

.portfolio-table .btn-trade {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.portfolio-table .btn-trade:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    color: #ffffff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-modal-content {
        width: 98%;
        margin: 1rem;
        max-height: 95vh;
    }
    
    .portfolio-modal-header {
        padding: 1.5rem 1.5rem;
    }
    
    .portfolio-modal-header h3 {
        font-size: 1.5rem;
    }
    
    .portfolio-modal-body {
        padding: 1.5rem;
    }
    
    .portfolio-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-stat-card {
        padding: 1.25rem;
    }
    
    .portfolio-stat-card .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .portfolio-stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1.25rem 1.5rem;
    }
    
    .btn-update-prices {
        width: 100%;
        justify-content: center;
    }
    
    .portfolio-table th,
    .portfolio-table td {
        padding: 0.875rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .portfolio-table .btn-trade {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .portfolio-modal-content {
        width: 98%;
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    .portfolio-modal-header {
        padding: 1rem 1rem;
    }
    
    .portfolio-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .portfolio-modal-body {
        padding: 1rem;
    }
    
    .portfolio-stats-grid {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .portfolio-stat-card {
        padding: 0.875rem;
    }
    
    .portfolio-stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .portfolio-stat-card .stat-label {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .portfolio-stat-card .stat-value {
        font-size: 1.25rem;
    }
    
    .table-header {
        padding: 0.75rem 0.875rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .table-header h4 {
        font-size: 0.875rem;
        font-weight: 600;
    }
    
    .btn-update-prices {
        font-size: 0.75rem;
        padding: 0.5rem 0.875rem;
    }
    
    .portfolio-table th,
    .portfolio-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.6875rem;
    }
    
    .portfolio-table th {
        font-size: 0.625rem;
        padding: 0.625rem 0.25rem;
        font-weight: 600;
    }
    
    .portfolio-table .btn-trade {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .portfolio-table .btn-trade i {
        display: none; /* 모바일에서는 아이콘 숨김 */
    }
    
    .stock-info .stock-ticker {
        font-size: 0.8125rem;
        font-weight: 600;
    }
    
    .stock-info .credit-info {
        font-size: 0.625rem;
    }
    
    .stock-info .credit-info small {
        font-size: 0.625rem;
    }
    
    .portfolio-table .quantity,
    .portfolio-table .average-price,
    .portfolio-table .price,
    .portfolio-table .total-value,
    .portfolio-table .return {
        font-size: 0.6875rem;
    }
}

/* Trading Journal Modal Styles - Modern Financial Design */
.trading-journal-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trading-journal-modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.trading-journal-modal-content {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.trading-journal-modal.show .trading-journal-modal-content {
  transform: scale(1);
}

.trading-journal-modal-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.trading-journal-modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #3b82f6 100%);
}

.trading-journal-modal-title {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
}

.trading-journal-modal-title i {
  color: #3b82f6;
  font-size: 1.5rem;
}

.trading-journal-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.trading-journal-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.trading-journal-modal-body {
  padding: 2.5rem;
  padding-bottom: 2rem;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  background: #f8fafc;
}

/* Trading Journal Statistics Grid */
.trading-journal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.trading-journal-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.trading-journal-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.trading-journal-stat-card .stat-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.trading-journal-stat-card .stat-content {
  flex: 1;
  min-width: 0;
}

.trading-journal-stat-card .stat-label {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.trading-journal-stat-card .stat-value {
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Trading Journal Table */
.trading-journal-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.trading-journal-table-container .table-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trading-journal-table-container .table-header h3 {
  color: #0f172a;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-download-excel {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  border: none;
  cursor: pointer;
}

.btn-download-excel:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.trading-journal-table-wrapper {
  overflow-x: auto;
  padding-bottom: 1rem;
}

.trading-journal-table {
  width: 100%;
  border-collapse: collapse;
  color: #0f172a;
}

.trading-journal-table th {
  background: #f1f5f9;
  color: #475569;
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.trading-journal-table td {
  padding: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 0.9375rem;
}

.trading-journal-table tbody tr {
  transition: background-color 0.15s ease;
}

.trading-journal-table tbody tr:hover {
  background: #f8fafc;
}

.trading-journal-table .date {
  color: #64748b;
  font-size: 0.875rem;
  white-space: nowrap;
}

.trading-journal-table .stock-info {
  min-width: 100px;
}

.trading-journal-table .stock-ticker {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.trading-journal-table .trade-type {
  text-align: center;
}

.trade-type-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.trade-type-badge.buy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.trade-type-badge.sell {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
}

.trading-journal-table .quantity,
.trading-journal-table .price,
.trading-journal-table .total-amount {
  text-align: right;
  color: #0f172a;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.trading-journal-table .return {
  text-align: right;
  font-weight: 600;
}

.trading-journal-table .return.positive {
  color: #10b981;
  font-weight: 700;
}

.trading-journal-table .return.negative {
  color: #ef4444;
  font-weight: 700;
}

/* Trading Journal Modal Reason Edit Styles */
.trading-journal-table .reason {
  min-width: 200px;
  max-width: 300px;
}

.trading-journal-table .reason .reason-container {
  position: relative;
}

.trading-journal-table .reason .reason-text {
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.trading-journal-table .reason .reason-meta {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: #64748b;
}

.trading-journal-table .actions {
  text-align: center;
  min-width: 80px;
}

.trading-journal-table .edit-reason-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  color: #ffffff;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.trading-journal-table .edit-reason-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.trading-journal-table .trading-reason-edit {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.trading-journal-table .trading-reason-edit textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.75rem;
  width: 100%;
  font-size: 0.875rem;
  font-family: inherit;
}

.trading-journal-table .trading-reason-edit textarea:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  color: #0f172a;
  outline: none;
}

.trading-journal-table .trading-reason-edit textarea::placeholder {
  color: #94a3b8;
}

.trading-journal-table .trading-reason-edit .btn {
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
}

.trading-journal-table .trading-reason-edit .btn-success {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border: none;
}

.trading-journal-table .trading-reason-edit .btn-success:hover {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.trading-journal-table .trading-reason-edit .btn-secondary {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  border: none;
}

.trading-journal-table .trading-reason-edit .btn-secondary:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

/* Daily Return Analysis Modal Styles - Modern Financial Design */
.daily-return-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.daily-return-modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.daily-return-modal-content {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  width: 95%;
  max-width: 1200px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.daily-return-modal.show .daily-return-modal-content {
  transform: scale(1);
}

.daily-return-modal-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.daily-return-modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #059669 50%, #10b981 100%);
}

.daily-return-modal-title {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
}

.daily-return-modal-title i {
  color: #10b981;
  font-size: 1.5rem;
}

#removeOutliersBtn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

#removeOutliersBtn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

#removeOutliersBtn.active,
#removeOutliersBtn.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

#removeOutliersBtn.active:hover,
#removeOutliersBtn.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  color: #ffffff;
}

.daily-return-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.daily-return-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.daily-return-modal-body {
  padding: 2.5rem;
  max-height: calc(92vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #f8fafc;
  flex: 1;
  position: relative;
}

/* Chart Controls Section */
.chart-controls-section {
  margin-bottom: 2rem;
}

.chart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chart-controls .btn-group {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  margin-right: auto;
}

.chart-controls .btn-check {
  display: none;
}

.chart-controls .btn {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.chart-controls .btn-check:checked + .btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.chart-controls .btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.chart-controls .btn-check:checked + .btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
}

/* Daily Return Statistics Overview */
.daily-return-stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stats-overview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  cursor: help;
  overflow: visible;
  z-index: 1;
}

.stats-overview-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.stats-overview-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.stats-overview-content {
  flex: 1;
  min-width: 0;
}

.stats-overview-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.stats-overview-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stats-overview-value.positive {
  color: #10b981;
}

.stats-overview-value.negative {
  color: #ef4444;
}

/* Modal Chart Container */
.modal-chart-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.modal-chart-container .card {
  background: transparent;
  border: none;
}

.modal-chart-container .card-body {
  background: transparent;
  padding: 2rem;
}

/* Daily Return Analysis Section */
.daily-return-analysis-section {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.daily-return-stats-overview {
  position: relative;
  z-index: 1;
}

.analysis-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.analysis-section-title i {
  color: #10b981;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.analysis-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  cursor: help;
  overflow: visible;
  z-index: 1;
}

.analysis-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.analysis-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.analysis-card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.analysis-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.analysis-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.analysis-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.metric-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.metric-value {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.metric-value.positive {
  color: #10b981;
}

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

/* Educational Tooltips for Daily Return Modal */
.daily-return-modal [data-tooltip],
.daily-return-modal [data-tooltip-i18n] {
  position: relative;
  cursor: help;
}

.daily-return-modal [data-tooltip]:hover::after,
.daily-return-modal [data-tooltip-i18n]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.98);
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: normal;
  width: 320px;
  max-width: 90vw;
  z-index: 10002 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 400;
}

.daily-return-modal [data-tooltip]:hover::before,
.daily-return-modal [data-tooltip-i18n]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.98);
  z-index: 10003 !important;
  pointer-events: none;
  margin-bottom: -6px;
}

/* Stats overview card tooltip positioning */
.stats-overview-card[data-tooltip]:hover::after,
.stats-overview-card[data-tooltip-i18n]:hover::after {
  bottom: auto;
  top: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.stats-overview-card[data-tooltip]:hover::before,
.stats-overview-card[data-tooltip-i18n]:hover::before {
  bottom: auto;
  top: 100%;
  border-top-color: transparent;
  border-bottom-color: rgba(15, 23, 42, 0.98);
  margin-top: -6px;
  margin-bottom: 0;
}

/* Analysis card tooltip positioning */
.analysis-card[data-tooltip]:hover::after,
.analysis-card[data-tooltip-i18n]:hover::after {
  bottom: auto;
  top: calc(100% + 0.5rem);
  margin-top: 0;
  margin-bottom: 0;
  left: 0;
  transform: none;
  width: 100%;
  max-width: none;
  z-index: 10002 !important;
}

.analysis-card[data-tooltip]:hover::before,
.analysis-card[data-tooltip-i18n]:hover::before {
  bottom: auto;
  top: 100%;
  border-top-color: transparent;
  border-bottom-color: rgba(15, 23, 42, 0.98);
  margin-top: 0;
  margin-bottom: 0;
  left: 20px;
  transform: none;
  z-index: 10003 !important;
}

/* Stats overview label tooltip */
.stats-overview-label[data-tooltip]:hover::after,
.stats-overview-label[data-tooltip-i18n]:hover::after {
  bottom: auto;
  top: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0;
  left: 0;
  transform: none;
  width: 280px;
}

.stats-overview-label[data-tooltip]:hover::before,
.stats-overview-label[data-tooltip-i18n]:hover::before {
  bottom: auto;
  top: 100%;
  border-top-color: transparent;
  border-bottom-color: rgba(15, 23, 42, 0.98);
  margin-top: -6px;
  margin-bottom: 0;
  left: 10px;
  transform: none;
}

/* Responsive Design for Daily Return Modal */
@media (max-width: 768px) {
  .daily-return-modal-content {
    width: 98%;
    max-height: 95vh;
  }
  
  .daily-return-modal-header {
    padding: 1.5rem 1.5rem;
  }
  
  .daily-return-modal-title {
    font-size: 1.5rem;
  }
  
  .daily-return-modal-body {
    padding: 1.5rem;
  }
  
  .daily-return-stats-overview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stats-overview-card {
    padding: 1.25rem;
  }
  
  .analysis-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .analysis-card {
    padding: 1.25rem;
  }
  
  .chart-controls .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
  
  .modal-chart-container canvas {
    height: 300px !important;
  }
  
  .modal-chart-container .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .daily-return-modal-content {
    width: 98%;
    max-height: 95vh;
  }
  
  .daily-return-modal-header {
    padding: 1rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .daily-return-modal-title {
    font-size: 1.25rem;
  }
  
  #removeOutliersBtn {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
  }
  
  #removeOutliersBtn span {
    display: none;
  }
  
  .daily-return-modal-body {
    padding: 1rem;
  }
  
  .daily-return-stats-overview {
    gap: 0.5rem;
  }
  
  .stats-overview-card {
    padding: 0.75rem;
    flex-direction: row;
    text-align: left;
  }
  
  .stats-overview-icon {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .stats-overview-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  .stats-overview-value {
    font-size: 1rem;
  }
  
  .analysis-section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .analysis-grid {
    gap: 0.75rem;
  }
  
  .analysis-card {
    padding: 0.875rem;
  }
  
  .analysis-card-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .analysis-card-icon {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .analysis-card-title {
    font-size: 0.9375rem;
  }
  
  .analysis-metric {
    padding: 0.5rem 0;
  }
  
  .metric-label {
    font-size: 0.75rem;
  }
  
  .metric-value {
    font-size: 0.875rem;
  }
  
  .chart-controls {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .chart-controls .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
  }
  
  .modal-chart-container {
    margin-bottom: 1rem;
  }
  
  .modal-chart-container canvas {
    height: 200px !important;
  }
  
  .modal-chart-container .card-body {
    padding: 0.75rem;
  }
}

/* Trading Analysis Modal Styles - Modern Financial Design */
.trading-analysis-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trading-analysis-modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.trading-analysis-modal-content {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.trading-analysis-modal.show .trading-analysis-modal-content {
  transform: scale(1);
}

.trading-analysis-modal-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.trading-analysis-modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 50%, #8b5cf6 100%);
}

.trading-analysis-modal-title {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
}

.trading-analysis-modal-title i {
  color: #8b5cf6;
  font-size: 1.5rem;
}

.trading-analysis-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.trading-analysis-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.trading-analysis-modal-body {
  padding: 2.5rem;
  padding-bottom: 2rem;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  background: #f8fafc;
}

/* Loading State */
.analysis-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: #0f172a;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

/* Analysis Content */
.analysis-content {
  color: #0f172a;
}

/* Tab Navigation */
.analysis-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.tab-btn.active {
  color: #8b5cf6;
  border-bottom-color: #8b5cf6;
  background: #f8fafc;
  font-weight: 600;
}

/* Tab Content */
.tab-content-wrapper {
  position: relative;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Analysis Sections */
.analysis-section {
  margin-bottom: 3rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.trading-analysis-modal .section-title {
  color: #0f172a !important;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.trading-analysis-modal .section-title i {
  color: #8b5cf6;
}

/* Tooltip Styles */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: normal;
  width: 280px;
  max-width: 90vw;
  z-index: 10002 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  margin-bottom: 0.5rem;
}

[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  z-index: 10003 !important;
  pointer-events: none;
  margin-bottom: -6px;
}

/* Section title tooltip positioning */
.section-title[data-tooltip]:hover::after {
  left: 0;
  transform: none;
}

.section-title[data-tooltip]:hover::before {
  left: 20px;
  transform: none;
}

/* Trading analysis modal tooltips - ensure they appear above modal content */
.trading-analysis-modal [data-tooltip]:hover::after {
  z-index: 10002 !important;
}

.trading-analysis-modal [data-tooltip]:hover::before {
  z-index: 10003 !important;
}

/* KPI card tooltip positioning */
.kpi-card[data-tooltip]:hover::after {
  bottom: auto;
  top: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.kpi-card[data-tooltip]:hover::before {
  bottom: auto;
  top: 100%;
  border-top-color: transparent;
  border-bottom-color: rgba(0, 0, 0, 0.9);
  margin-top: -6px;
  margin-bottom: 0;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.kpi-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.kpi-label {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.kpi-value {
  color: #0f172a;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kpi-value.positive {
  color: #10b981;
}

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

.kpi-description {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Chart Wrapper */
.chart-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  height: 400px;
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.chart-wrapper canvas {
  max-height: 100%;
}

/* Stock Stats Table */
.stock-stats-table {
  overflow-x: auto;
  margin-top: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.stock-stats-table table {
  width: 100%;
  border-collapse: collapse;
  color: #0f172a;
}

.stock-stats-table th {
  background: #f1f5f9;
  color: #475569;
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.stock-stats-table td {
  padding: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9375rem;
}

.stock-stats-table tbody tr {
  transition: background-color 0.15s ease;
}

.stock-stats-table tbody tr:hover {
  background: #f8fafc;
}

.stock-stats-table .positive {
  color: #10b981;
  font-weight: 700;
}

.stock-stats-table .negative {
  color: #ef4444;
  font-weight: 700;
}

/* Education Content */
.education-content {
  max-width: 900px;
}

.education-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.education-section h4 {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.education-section h4 i {
  color: #8b5cf6;
}

.education-section p {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.education-tip {
  background: #f0f9ff;
  border-left: 3px solid #8b5cf6;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #0f172a;
  margin-top: 0.75rem;
}

.education-tip strong {
  color: #8b5cf6;
}

/* Table Header Buttons */
.table-header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Analysis Actions */
.analysis-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.btn-download-pdf {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-download-pdf:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.comparison-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Ranking Table */
.ranking-table {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn-trading-analysis {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
}

.btn-trading-analysis:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive Design for Trading Analysis Modal */
@media (max-width: 768px) {
  .trading-analysis-modal-content {
    width: 98%;
    height: 90vh;
    max-height: 90vh;
  }
  
  .trading-analysis-modal-body {
    max-height: calc(90vh - 120px);
  }
  
  .trading-analysis-modal-header {
    padding: 1.5rem 1.5rem;
  }
  
  .trading-analysis-modal-title {
    font-size: 1.5rem;
  }
  
  .trading-analysis-modal-body {
    padding: 1.5rem;
  }
  
  .analysis-tabs {
    gap: 0.25rem;
    margin-bottom: 1.5rem;
  }
  
  .tab-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
  
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .kpi-card {
    padding: 1.25rem;
  }
  
  .kpi-value {
    font-size: 1.75rem;
  }
  
  .chart-wrapper {
    height: 300px;
    padding: 1rem;
  }
  
  .analysis-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .trading-analysis-modal .section-title {
    font-size: 1.15rem;
  }
  
  .table-header-buttons {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .btn-trading-analysis,
  .btn-download-excel {
    width: 100%;
    justify-content: center;
  }
  
  .analysis-actions {
    flex-direction: column;
  }
  
  .btn-download-pdf {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .trading-analysis-modal-content {
    width: 98%;
    max-height: 95vh;
  }
  
  .trading-analysis-modal-header {
    padding: 1rem 1rem;
  }
  
  .trading-analysis-modal-title {
    font-size: 1.25rem;
  }
  
  .trading-analysis-modal-body {
    padding: 1rem;
  }
  
  .analysis-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
  }
  
  .tab-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.6875rem;
  }
  
  .kpi-grid {
    gap: 0.75rem;
  }
  
  .kpi-card {
    padding: 1rem;
  }
  
  .kpi-label {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .kpi-value {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
  }
  
  .kpi-description {
    font-size: 0.75rem;
    margin-top: 0.375rem;
  }
  
  .chart-wrapper {
    height: 200px;
    padding: 0.75rem;
  }
  
  .analysis-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .trading-analysis-modal .section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

/* Responsive Design for Trading Journal Modal */
@media (max-width: 768px) {
  .trading-journal-modal-content {
    width: 98%;
    height: 90vh;
    max-height: 90vh;
  }
  
  .trading-journal-modal-body {
    max-height: calc(90vh - 100px);
  }
  
  .trading-journal-modal-header {
    padding: 1.5rem 1.5rem;
  }
  
  .trading-journal-modal-title {
    font-size: 1.5rem;
  }
  
  .trading-journal-modal-body {
    padding: 1.5rem;
  }
  
  .trading-journal-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .trading-journal-stat-card {
    padding: 1.25rem;
  }
  
  .trading-journal-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  
  .trading-journal-stat-card .stat-value {
    font-size: 1.5rem;
  }
  
  .trading-journal-table-container .table-header {
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .btn-download-excel {
    width: 100%;
    justify-content: center;
  }
  
  .trading-journal-table th,
  .trading-journal-table td {
    padding: 0.875rem 0.75rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .trading-journal-modal-content {
    width: 98%;
    max-height: 95vh;
  }
  
  .trading-journal-modal-header {
    padding: 1rem 1rem;
  }
  
  .trading-journal-modal-title {
    font-size: 1.25rem;
  }
  
  .trading-journal-modal-body {
    padding: 1rem;
  }
  
  .trading-journal-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .trading-journal-stat-card {
    flex-direction: row;
    text-align: left;
    padding: 0.875rem;
  }
  
  .trading-journal-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .trading-journal-stat-card .stat-label {
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
  }
  
  .trading-journal-stat-card .stat-value {
    font-size: 1.25rem;
  }
  
  .trading-journal-table-container .table-header {
    padding: 0.875rem 1rem;
  }
  
  .trading-journal-table-container .table-header h3 {
    font-size: 1rem;
  }
  
  .trading-journal-table th,
  .trading-journal-table td {
    padding: 0.625rem 0.375rem;
    font-size: 0.75rem;
  }
}

/* Form Actions */
.form-actions {
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  border-color: #6c757d;
  color: white;
  transform: translateY(-2px);
}

/* Trading Journal Styles */
.trading-journal-section {
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.journal-table-container {
  background: white;
  border-radius: 0;
  overflow-x: auto;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

/* Fix for sticky table header to avoid navbar overlap */
.table-responsive {
  position: relative;
  z-index: 1;
}

/* Ensure sticky table headers don't overlap with navbar */
.profile-portfolio-table thead.sticky-top {
  top: 0;
  z-index: 1020 !important;
  background-color: #f8f9fa !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-portfolio-table thead.sticky-top th {
  background-color: #f8f9fa !important;
  border-bottom: 2px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 1020 !important;
}

/* Additional fix for Bootstrap sticky-top class */
.sticky-top {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1020 !important; /* Higher than Bootstrap navbar z-index (1030) */
}

/* Ensure the table container has proper spacing from navbar */
.card-body {
  position: relative;
  z-index: 1;
}

/* Fix for any table that might overlap with navbar */
.table thead th {
  position: sticky;
  top: 0;
  z-index: 1020 !important;
  background-color: inherit;
}

/* Specific fix for table-light class */
.table-light {
  background-color: #f8f9fa !important;
}

/* Override any conflicting Bootstrap styles */
.table > :not(caption) > * > * {
  position: relative;
}

.table thead th.sticky-top,
.table thead.sticky-top th {
  position: sticky !important;
  top: 0 !important;
  z-index: 1020 !important;
  background-color: #f8f9fa !important;
}

.journal-table {
  margin-bottom: 0;
  font-size: 0.9rem;
  width: 100%;
}

.journal-table th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: none;
  font-weight: 600;
  color: #2c3e50;
  padding: 1rem 0.75rem;
  vertical-align: middle;
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.journal-table td {
  border: none;
  padding: 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.journal-table tbody tr:hover {
  background-color: #f8f9fa;
  transition: background-color 0.2s ease;
}

.transaction-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transaction-buy {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.transaction-sell {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.profit-positive {
  color: #28a745;
  font-weight: 600;
}

.profit-negative {
  color: #dc3545;
  font-weight: 600;
}

.profit-neutral {
  color: #6c757d;
  font-weight: 600;
}

.memo-display {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  color: #495057;
}

.memo-edit-form {
  display: none;
}

.memo-textarea {
  resize: vertical;
  min-height: 60px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.85rem;
  width: 100%;
}

.memo-char-count {
  font-size: 0.75rem;
  color: #6c757d;
  text-align: right;
  margin-top: 0.25rem;
}

.btn-edit-memo {
  background: none;
  border: none;
  color: #007bff;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-edit-memo:hover {
  background-color: #f8f9fa;
  color: #0056b3;
}

.btn-save-memo,
.btn-cancel-memo {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  margin: 0.125rem;
  transition: all 0.2s ease;
}

.btn-save-memo {
  background-color: #28a745;
  color: white;
}

.btn-save-memo:hover {
  background-color: #218838;
}

.btn-cancel-memo {
  background-color: #6c757d;
  color: white;
}

.btn-cancel-memo:hover {
  background-color: #545b62;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .profile-container {
    padding: 1.5rem;
  }
  
  .page-header {
    margin: 0 -1.5rem 1.5rem -1.5rem;
  }

}

@media (max-width: 768px) {
  .profile-container {
    padding: 1rem;
  }
  
  .page-header {
    margin: 0 -1rem 1rem -1rem;
    padding: 1.5rem 0;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .profile-form {
    padding: 1.5rem;
  }
  
  .summary-stats {
    padding: 1rem;
  }
  
  .stat-item {
    padding: 0.75rem;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
  }
  
  .stat-item:last-child {
    border-bottom: none;
  }
  
  .journal-table {
    font-size: 0.8rem;
  }
  
  .journal-table th,
  .journal-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .memo-display {
    max-width: 120px;
  }
  
  .form-actions .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

}

@media (max-width: 576px) {
  .profile-container {
    padding: 0.75rem;
  }
  
  .section-header {
    padding: 1rem;
  }
  
  .profile-form {
    padding: 1rem;
  }
  
  .form-actions .d-flex {
    flex-direction: column;
  }
  
  .form-actions .btn {
    margin-bottom: 0.5rem;
  }
}

/* Profile Edit Modal Actions */
.profile-edit-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1rem; /* 하단 패딩 추가 - 버튼 잘림 방지 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible !important; /* 텍스트/버튼 잘림 방지 */
    min-height: auto; /* 최소 높이 자동 */
}

.profile-edit-modal-actions-right {
    display: flex;
    gap: 1rem;
}

.btn-financial-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-financial-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    color: #ffffff;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: white;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Account Delete Modal */
.delete-account-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.delete-account-modal-overlay[style*="flex"] {
    display: flex !important;
    opacity: 1;
}

.delete-account-modal-content {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: slideInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.delete-account-modal-overlay[style*="flex"] .delete-account-modal-content {
    transform: scale(1);
}

.delete-account-modal-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.delete-account-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 50%, #ef4444 100%);
}

.delete-account-modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.delete-account-modal-header h3 i {
    color: #ffffff;
    font-size: 1.5rem;
}

.delete-account-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delete-account-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.delete-account-modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    flex: 1;
}

.delete-warning-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.delete-warning-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.delete-warning-icon i {
    color: #ffffff;
    font-size: 1.75rem;
}

.delete-warning-title {
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.delete-warning-message {
    color: #991b1b;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.delete-warning-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.delete-warning-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #991b1b;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.delete-warning-list li i {
    color: #ef4444;
    font-size: 1rem;
}

.delete-warning-final {
    color: #991b1b;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #fecaca;
}

.delete-confirmation-section {
    margin-top: 2rem;
}

.delete-confirmation-section .financial-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
    display: block;
    letter-spacing: 0.01em;
}

.delete-confirmation-text {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0 1.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.125rem;
    color: #10b981;
    text-align: center;
    letter-spacing: 0.05em;
}

.delete-confirmation-section .financial-form-input {
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #0f172a;
    font-weight: 500;
    width: 100%;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.delete-confirmation-section .financial-form-input::placeholder {
    color: #94a3b8;
}

.delete-confirmation-section .financial-form-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1),
                0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.delete-confirmation-section .financial-form-input:hover {
    border-color: #cbd5e1;
}

.delete-account-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem 2.5rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.delete-account-modal-actions .btn-financial-secondary {
    background: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.delete-account-modal-actions .btn-financial-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
}

#deleteAccountBtn:disabled {
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    opacity: 0.6;
}

#deleteAccountBtn:disabled:hover {
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
    transform: none;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

@media (max-width: 480px) {
    .delete-account-modal-content {
        width: 98%;
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    .delete-account-modal-header {
        padding: 1.5rem 1.5rem;
    }
    
    .delete-account-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .delete-account-modal-body {
        padding: 1.5rem;
    }
    
    .delete-warning-box {
        padding: 1.5rem;
    }
    
    .delete-warning-icon {
        width: 50px;
        height: 50px;
    }
    
    .delete-warning-icon i {
        font-size: 1.5rem;
    }
    
    .delete-warning-title {
        font-size: 1.25rem;
    }
    
    .delete-warning-message {
        font-size: 0.9375rem;
    }
    
    .delete-warning-list li {
        font-size: 0.875rem;
    }
    
    .delete-warning-final {
        font-size: 0.9375rem;
    }
    
    .delete-account-modal-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .delete-account-modal-actions .btn-financial-secondary,
    .delete-account-modal-actions .btn-financial-danger {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .delete-confirmation-section .financial-form-label {
        font-size: 0.8125rem;
        margin-bottom: 0.625rem;
    }
    
    .delete-confirmation-text {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        margin: 0.75rem 0 1rem;
    }
    
    .delete-confirmation-section .financial-form-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* Account Type Display */
.account-type-display {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
}

.account-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.account-type-badge.admin {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    border: none;
}

.account-type-badge.admin:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.account-type-badge.user {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
}

.account-type-badge.user:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.account-type-badge i {
    font-size: 0.8rem;
}

/* Portfolio Modal Credit Info */
.credit-info {
    margin-top: 0.25rem;
}

.credit-info small {
    font-size: 0.75rem;
    color: #0f172a !important;
}

.credit-info .text-warning {
    color: #0f172a !important;
}

.credit-info .text-info {
    color: #0f172a !important;
}

/* Hero Avatar and Profile Button Left Alignment */
/* 프로필 페이지 hero-section 하단 패딩 추가 - 버튼 잘림 방지 */
/* profile.css는 프로필 페이지에서만 로드되므로 안전하게 적용 가능 */
.hero-section.start {
    padding-bottom: 4rem !important; /* 하단 패딩 증가 - 버튼 잘림 방지 */
    min-height: auto !important; /* 최소 높이 자동 - 내용에 맞게 조정 */
    height: auto !important; /* 높이 자동 - 내용에 맞게 조정 (100dvh 오버라이드) */
    overflow: visible !important; /* 버튼 잘림 방지 */
}

.hero-main-layout {
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-bottom: 2rem !important; /* 하단 패딩 추가 - 버튼 잘림 방지 */
    overflow: visible !important; /* 버튼 잘림 방지 */
}

.hero-profile-section {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.profile-hero-info {
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
}

.profile-hero-avatar {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.hero-action-buttons.profile-edit-mobile,
.hero-action-buttons.profile-edit-desktop {
    margin-left: 0 !important;
    padding-left: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
}

.hero-action-buttons.profile-edit-desktop {
    margin-top: 1.5rem !important;
}

.hero-action-buttons.profile-edit-desktop .btn,
.hero-action-buttons.profile-edit-desktop .btn.start_b {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    padding: 0.5rem 1rem !important;
}

/* Mobile Profile Edit Button */
@media (max-width: 768px) {
    .profile-edit-mobile .btn,
    .hero-action-buttons.profile-edit-mobile .btn,
    .hero-action-buttons.profile-edit-mobile .btn.start_b,
    .profile-edit-mobile .btn.start_b {
        width: 100% !important;
        max-width: none !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
        padding: 0.5rem 1rem !important;
    }
    
    .hero-action-buttons.profile-edit-mobile {
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .profile-hero-info .hero-action-buttons.profile-edit-mobile {
        width: 100% !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .profile-edit-mobile .btn,
    .hero-action-buttons.profile-edit-mobile .btn,
    .hero-action-buttons.profile-edit-mobile .btn.start_b,
    .profile-edit-mobile .btn.start_b {
        width: 100% !important;
        max-width: none !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        padding: 0.5rem 1rem !important;
    }
    
    .hero-action-buttons.profile-edit-mobile {
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .profile-hero-info .hero-action-buttons.profile-edit-mobile {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Mobile: Fix height issues to prevent content clipping */
@media (max-width: 768px) {
    .hero-section.start {
        height: auto !important;
        min-height: auto !important;
        padding: calc(var(--navbar-height) + 1rem) 1rem 2rem 1rem !important;
    }
    
    .hero-main-layout {
        height: auto !important;
        min-height: auto !important;
    }
    
    .profile-main-content {
        min-height: auto !important;
        padding-top: 80px !important;
    }
    
    /* Mobile: Center align profile info */
    .hero-profile-section {
        text-align: center !important;
    }
    
    .profile-hero-info {
        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* Mobile: Center align profile name, email, and edit button */
    .profile-name {
        text-align: center !important;
    }
    
    .profile-email {
        text-align: center !important;
    }
    
    .profile-basic-info {
        text-align: center !important;
    }
    
    /* Mobile: Center align profile edit button */
    .profile-edit-btn {
        display: block !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    /* Mobile: Specific styling for hero-action-buttons profile-edit-mobile */
    .hero-action-buttons.profile-edit-mobile {
        width: 90% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    .hero-action-buttons.profile-edit-mobile .btn {
        width: 100% !important;
        max-width: none !important;
    }
    
    .profile-hero-avatar {
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    /* Mobile: Center align profile picture */
    .profile-picture {
        display: block !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    .profile-picture img {
        display: block !important;
        margin: 0 auto !important;
    }
    
    .profile-hero-details {
        text-align: center !important;
    }
    
    .hero-action-buttons {
        text-align: center !important;
    }
    
    .hero-action-buttons.profile-edit-mobile {
        text-align: center !important;
    }
}

/* ============================================
   Research Management Modal Styles
   금융적이고 깔끔한 리서치 관리 모달 디자인
   ============================================ */

/* Research Management Header */
.research-management-header .daily-return-modal-title i {
    color: #3b82f6;
}

.research-management-header::after {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #3b82f6 100%);
}

/* Research Management Body */
.research-management-body {
    background: #ffffff;
    padding: 0;
}

/* Research Table Container */
.research-table-container {
    max-height: calc(92vh - 180px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    width: 100%;
}

.research-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.research-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.research-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.research-table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Research Management Table */
.research-management-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    table-layout: fixed;
}

.research-management-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
}

.research-management-table thead tr {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

.research-management-table thead th {
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-bottom: 2px solid #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.research-management-table thead th:nth-child(1) {
    width: 40%;
}

.research-management-table thead th:nth-child(2) {
    width: 20%;
}

.research-management-table thead th:nth-child(3) {
    width: 20%;
}

.research-management-table thead th:nth-child(4) {
    width: 20%;
}

.research-management-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.research-management-table tbody tr:hover {
    background: #f8fafc;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.research-management-table tbody td {
    padding: 0.875rem 0.5rem;
    font-size: 0.8125rem;
    color: #334155;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Research Title Cell */
.research-title-cell {
    width: 100%;
}

.research-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.research-file-icon {
    color: #ef4444;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.research-title-text {
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Research Badges */
.research-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.research-category-badge {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.research-language-badge {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.2);
}

.research-status-badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
}

.research-status-published {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.research-status-draft {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.research-status-hidden {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2);
}

/* Research Stat Cell */
.research-stat-cell {
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
    color: #475569;
    font-size: 0.75rem;
}

.research-stat-icon {
    color: #94a3b8;
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.research-stat-cell .fa-eye {
    color: #3b82f6;
}

.research-stat-cell .fa-heart {
    color: #ef4444;
}

/* Research Date Cell */
.research-date-cell {
    color: #64748b;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Research Details Cell */
.research-details-cell {
    text-align: center;
    white-space: nowrap;
}

.research-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.research-details-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.research-details-btn i {
    font-size: 0.875rem;
}

/* Research Action Cell */
.research-action-cell {
    text-align: center;
    white-space: nowrap;
}

.research-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 0.125rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.research-edit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.research-edit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.research-delete-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.research-delete-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.research-share-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
}

.research-share-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

/* Research Empty State */
.research-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.research-empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.research-empty-icon i {
    font-size: 2.5rem;
    color: #94a3b8;
}

.research-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.research-empty-description {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 400px;
}

.research-empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.research-empty-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .research-table-container {
        padding: 0.5rem;
        max-height: calc(92vh - 140px);
    }
    
    .research-management-table {
        font-size: 0.75rem;
    }
    
    .research-management-table thead th {
        padding: 0.5rem 0.25rem;
        font-size: 0.625rem;
    }
    
    .research-management-table thead th:nth-child(1) {
        width: 40%;
    }
    
    .research-management-table thead th:nth-child(2) {
        width: 20%;
    }
    
    .research-management-table thead th:nth-child(3) {
        width: 20%;
    }
    
    .research-management-table thead th:nth-child(4) {
        width: 20%;
    }
    
    .research-details-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.6875rem;
        gap: 0.25rem;
    }
    
    .research-details-btn span {
        display: none;
    }
    
    .research-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .research-management-table tbody td {
        padding: 0.625rem 0.25rem;
        font-size: 0.6875rem;
    }
    
    .research-title-text {
        font-size: 0.75rem;
    }
    
    .research-file-icon {
        font-size: 0.75rem;
    }
    
    .research-badge {
        font-size: 0.625rem;
        padding: 0.1875rem 0.375rem;
    }
    
    .research-action-btn {
        width: 24px;
        height: 24px;
        font-size: 0.625rem;
        margin: 0 0.0625rem;
    }
    
    .research-date-cell {
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .research-table-container {
        padding: 0.5rem;
        max-height: calc(92vh - 120px);
    }
    
    .research-management-table {
        font-size: 0.6875rem;
    }
    
    .research-management-table thead th {
        padding: 0.375rem 0.125rem;
        font-size: 0.5625rem;
    }
    
    .research-management-table thead th:nth-child(1) {
        width: 35%;
    }
    
    .research-management-table thead th:nth-child(2) {
        width: 18%;
    }
    
    .research-management-table thead th:nth-child(3) {
        width: 22%;
    }
    
    .research-management-table thead th:nth-child(4) {
        width: 25%;
    }
    
    .research-management-table tbody td {
        padding: 0.5rem 0.125rem;
        font-size: 0.625rem;
    }
    
    .research-title-text {
        font-size: 0.6875rem;
    }
    
    .research-file-icon {
        font-size: 0.6875rem;
    }
    
    .research-details-btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.625rem;
    }
    
    .research-details-btn i {
        font-size: 0.6875rem;
    }
    
    .research-action-btn {
        width: 20px;
        height: 20px;
        font-size: 0.5625rem;
        margin: 0 0.0625rem;
    }
    
    .research-date-cell {
        font-size: 0.625rem;
    }
    
    .research-details-grid {
        gap: 0.75rem;
    }
    
    .research-details-label {
        font-size: 0.6875rem;
    }
    
    .research-details-value {
        font-size: 0.8125rem;
    }
    
    .research-empty-state {
        padding: 3rem 1.5rem;
    }
    
    /* Research Details Modal Mobile */
    #researchDetailsModal .daily-return-modal-content {
        width: 98%;
        max-width: 98%;
        margin: 0.5rem;
    }
    
    #researchDetailsModal .daily-return-modal-header {
        padding: 1rem;
    }
    
    #researchDetailsModal .daily-return-modal-title {
        font-size: 1rem;
    }
    
    #researchDetailsModal .daily-return-modal-body {
        padding: 1rem;
    }
    
    .research-details-loading {
        padding: 2rem 1rem;
    }
    
    .research-details-loading .loading-spinner {
        width: 30px;
        height: 30px;
    }
    
    .research-abstract-text {
        font-size: 0.8125rem;
        padding: 0.75rem;
    }
    
    .research-empty-icon {
        width: 64px;
        height: 64px;
    }
    
    .research-empty-icon i {
        font-size: 2rem;
    }
    
    .research-empty-title {
        font-size: 1.25rem;
    }
    
    .research-empty-description {
        font-size: 0.9375rem;
    }
}

/* Research Toast Message */
.research-toast-message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    max-width: 300px;
    word-wrap: break-word;
}

.research-toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

.research-toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.research-toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Research Details Modal Styles */
.research-details-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.research-details-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.research-details-loading p {
    color: #64748b;
    font-size: 0.9375rem;
}

.research-details-error {
    padding: 2rem;
    text-align: center;
    color: #ef4444;
}

.research-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.research-details-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.research-details-item.full-width {
    grid-column: 1 / -1;
}

.research-details-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.research-details-value {
    font-size: 0.9375rem;
    color: #0f172a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.research-abstract-text {
    line-height: 1.6;
    color: #475569;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 768px) {
    .research-toast-message {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        font-size: 0.875rem;
        padding: 0.875rem 1.25rem;
    }
}

/* Portfolio Analysis Button */
.btn-portfolio-analysis {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
  margin-right: 0.5rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.btn-portfolio-analysis:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

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

/* Portfolio Analysis Modal Styles - Similar to Trading Analysis Modal */
.portfolio-analysis-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-analysis-modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.portfolio-analysis-modal-content {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.portfolio-analysis-modal.show .portfolio-analysis-modal-content {
  transform: scale(1);
}

.portfolio-analysis-modal-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.portfolio-analysis-modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 50%, #f59e0b 100%);
}

.portfolio-analysis-modal-title {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
}

.portfolio-analysis-modal-title i {
  color: #f59e0b;
  font-size: 1.5rem;
}

.portfolio-analysis-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.portfolio-analysis-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.portfolio-analysis-modal-body {
  padding: 2.5rem;
  padding-bottom: 2rem;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  background: #f8fafc;
}

.portfolio-analysis-modal .section-title {
  color: #0f172a !important;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.portfolio-analysis-modal .section-title i {
  color: #f59e0b;
}

/* Stats Grid for Portfolio Analysis */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.stat-label {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.stat-value {
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 700;
}

.stat-value.positive {
  color: #10b981;
}

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

/* Analysis Table */
.analysis-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.analysis-table thead {
  background: #f1f5f9;
}

.analysis-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.875rem;
  border-bottom: 2px solid #e2e8f0;
}

.analysis-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.875rem;
}

.analysis-table tbody tr:hover {
  background: #f8fafc;
}

.analysis-table .positive {
  color: #10b981;
  font-weight: 600;
}

.analysis-table .negative {
  color: #ef4444;
  font-weight: 600;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

/* Responsive Design for Portfolio Analysis Modal */
@media (max-width: 768px) {
  .portfolio-analysis-modal-content {
    width: 98%;
    height: 90vh;
    max-height: 90vh;
  }
  
  .portfolio-analysis-modal-body {
    max-height: calc(90vh - 120px);
  }
  
  .portfolio-analysis-modal-header {
    padding: 1.5rem 1.5rem;
  }
  
  .portfolio-analysis-modal-title {
    font-size: 1.5rem;
  }
  
  .portfolio-analysis-modal-body {
    padding: 1.5rem;
  }
  
  .portfolio-analysis-modal .section-title {
    font-size: 1.15rem;
  }
  
  .table-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .btn-portfolio-analysis,
  .btn-update-prices {
    width: 100%;
    justify-content: center;
    margin-right: 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .portfolio-analysis-modal-content {
    width: 98%;
    max-height: 95vh;
  }
  
  .portfolio-analysis-modal-header {
    padding: 1rem 1rem;
  }
  
  .portfolio-analysis-modal-title {
    font-size: 1.25rem;
  }
  
  .portfolio-analysis-modal-body {
    padding: 1rem;
  }
  
  .table-actions {
    flex-direction: column;
  }
  
  .btn-portfolio-analysis {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}