/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    overflow: hidden;
    user-select: none;
}

/* Splash Screen (Disabled for Web Version) */
.splash-screen {
    display: none !important;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    animation: splashAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.splash-logo svg {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.5));
    animation: splashPulse 2.5s ease-in-out infinite alternate;
}

.splash-title {
    font-size: 40px;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: -0.5px;
    text-shadow: 0 0 24px rgba(59, 130, 246, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.splash-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 220px;
}

.splash-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.splash-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    border-radius: 4px;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.splash-loading-text {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes splashAppear {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes splashPulse {
    0% {
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 22px rgba(59, 130, 246, 0.7));
    }
}

/* Custom Title Bar */
.titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    -webkit-app-region: drag;
    padding: 0 16px;
}

.titlebar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.titlebar-toggle-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #60a5fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-app-region: no-drag;
}

.titlebar-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.45);
    color: #93c5fd;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

.titlebar-toggle-btn:active {
    transform: scale(0.95);
}

.titlebar-toggle-btn.active {
    background: rgba(59, 130, 246, 0.28);
    border-color: rgba(59, 130, 246, 0.6);
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    color: #60a5fa;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: -0.2px;
    user-select: none;
}

.titlebar-right {
    display: flex;
    gap: 4px;
    -webkit-app-region: no-drag;
}

.titlebar-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.titlebar-btn:hover {
    background: #334155;
    color: #e2e8f0;
}

.titlebar-btn.close-btn:hover {
    background: #ef4444;
    color: white;
}

/* Container */
.container {
    display: flex;
    height: calc(100vh - 40px);
    position: relative;
    overflow: hidden;
}

/* Floating Expand Sidebar Button (Appears when sidebar is hidden) */
.floating-sidebar-toggle {
    position: absolute;
    top: 18px;
    left: 14px;
    z-index: 999;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(59, 130, 246, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-app-region: no-drag;
}

.floating-sidebar-toggle:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.08) translateX(2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.6);
}

.floating-sidebar-toggle:active {
    transform: scale(0.95);
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    background: #1e293b;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

/* Hidden sidebar state */
.container.sidebar-hidden .sidebar {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border-right: 1px solid transparent !important;
}

.container.sidebar-hidden .floating-sidebar-toggle {
    display: flex;
    animation: fadeInFloating 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInFloating {
    from {
        opacity: 0;
        transform: translateX(-12px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 10px 16px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #64748b;
    text-transform: uppercase;
}

.sidebar-collapse-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-collapse-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    transform: scale(1.06);
}

.sidebar-collapse-btn:active {
    transform: scale(0.92);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    background: #334155;
    color: #e2e8f0;
}

.nav-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.nav-item svg {
    flex-shrink: 0;
}

.badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 12px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-info:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.user-avatar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.avatar-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(2px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.user-avatar-wrapper:hover .avatar-edit-overlay {
    opacity: 1;
}

.user-avatar-wrapper:hover .user-avatar {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #10b981;
    font-weight: 500;
}

.status-indicator {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid #10b981;
    animation: statusPulse 2s infinite;
    opacity: 0.7;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.sidebar-copyright {
    padding: 0 4px;
    text-align: left;
}

.sidebar-copyright p {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    font-weight: 500;
}

.sidebar-copyright .copyright-sub {
    font-size: 10px;
    color: #475569;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 32px;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container.sidebar-hidden .main-content {
    padding-left: 56px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 14px;
    color: #94a3b8;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-export {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-export:active {
    transform: scale(0.98);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px 12px;
}

.search-box svg {
    color: #64748b;
    flex-shrink: 0;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-size: 14px;
    width: 200px;
}

.search-box input::placeholder {
    color: #64748b;
}

/* Stock Info Cards */
.stock-info {
    display: flex;
    gap: 14px;
    align-items: center;
}

.realtime-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.indicator-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.indicator-text {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.stock-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    padding: 12px 18px;
    min-width: 155px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stock-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

.stock-card.sold-card {
    border-color: rgba(239, 68, 68, 0.25);
}

.stock-card.sold-card:hover {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.15);
}

.stock-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    flex-shrink: 0;
}

.stock-card.sold-card .stock-card-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.stock-card-content {
    display: flex;
    flex-direction: column;
}

.stock-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 2px;
}

.stock-number {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    line-height: 1.1;
}

.stock-card.sold-card .stock-number {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Marketplace Clean Toolbar */
.marketplace-toolbar {
    margin: 10px 0 20px;
    max-width: 960px;
}

.search-box-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

.search-box-premium:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 8px 24px rgba(0, 0, 0, 0.3);
    background: rgba(15, 23, 42, 0.95);
}

.search-box-premium svg {
    color: #818cf8;
    flex-shrink: 0;
}

.search-box-premium input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 13.5px;
    font-family: inherit;
}

.search-box-premium input::placeholder {
    color: #64748b;
}

/* ============ SHOP HERO BANNER ============ */
.shop-hero-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 18px;
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.shop-hero-banner::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.shop-hero-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #60a5fa;
    text-transform: uppercase;
}

.shop-hero-title {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.shop-hero-features {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.hero-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-weight: 500;
}

/* ============ MODERN SHOP PRODUCT CARD GRID ============ */
.notes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    align-items: stretch;
}

.note-item,
.note-card {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    height: 100%;
}

.note-item:hover:not(.sold),
.note-card:hover:not(.sold) {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.2);
}

.note-item.sold,
.note-card.sold {
    opacity: 0.6;
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Card Banner / Thumbnail Header */
.note-card-banner {
    position: relative;
    height: 135px;
    width: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.note-card-banner.theme-account {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.22) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.note-card-banner.theme-app {
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.22) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.note-card-banner.theme-game {
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.22) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.note-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.note-item:hover:not(.sold) .note-card-img,
.note-card:hover:not(.sold) .note-card-img {
    transform: scale(1.06);
}

.note-card-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    transition: all 0.3s ease;
}

.note-item:hover:not(.sold) .note-card-icon-fallback,
.note-card:hover:not(.sold) .note-card-icon-fallback {
    transform: scale(1.08);
}

.note-card-badges-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}

.badge-instant-delivery {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 10.5px;
    font-weight: 700;
}

/* Card Body */
.note-card-body {
    padding: 16px 18px 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.note-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
}

.note-desc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 2px;
}

.note-card-desc {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-line;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.note-card-desc.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 36px;
    cursor: pointer;
}

.note-card-desc.is-clamped:hover {
    color: #cbd5e1;
}

.note-card-desc.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow-y: auto;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.65);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 180px;
    font-size: 12.5px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.note-card-desc.is-expanded::-webkit-scrollbar {
    width: 4px;
}

.note-card-desc.is-expanded::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.45);
    border-radius: 4px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    margin-top: 1px;
    width: fit-content;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
}

.btn-read-more:hover {
    filter: brightness(1.25);
    background: rgba(255, 255, 255, 0.04);
}

.btn-read-more svg {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-read-more.expanded svg {
    transform: rotate(180deg);
}

.note-card-seller-info {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.seller-avatar-mini {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
    overflow: hidden;
    flex-shrink: 0;
}

.seller-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.seller-name-label {
    font-weight: 600;
    color: #cbd5e1;
}

.note-card-date {
    font-size: 11px;
    color: #64748b;
}

/* Card Footer */
.note-card-footer {
    padding: 12px 18px 14px 18px;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.note-price-container {
    display: flex;
    flex-direction: column;
}

.price-prefix {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.note-price-amount {
    font-size: 17px;
    font-weight: 800;
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
    letter-spacing: -0.3px;
}

.note-item.sold .note-price-amount,
.note-card.sold .note-price-amount {
    color: #64748b;
    text-shadow: none;
}

.btn-buy-note {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    white-space: nowrap;
}

.btn-buy-note:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.btn-buy-note:active:not([disabled]) {
    transform: scale(0.96);
}

.btn-buy-note:disabled {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-buy-note:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.status-badge.available {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.status-badge.sold-out {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.badge-dot.dot-available {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.badge-dot.dot-sold {
    background: #ef4444;
}

/* Purchase Info in Modal */
.purchase-info {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.purchase-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.purchase-item .label {
    color: #94a3b8;
}

.purchase-item .value {
    color: #f1f5f9;
    font-weight: 600;
}

/* Packages Grid - Remove if not needed */
.packages-grid {
    display: none;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state svg {
    color: #334155;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.empty-state p {
    color: #64748b;
    font-size: 14px;
}

/* Settings */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
}

.setting-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
}

.setting-card h3 {
    font-size: 18px;
    color: #f1f5f9;
    margin-bottom: 20px;
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.setting-item input {
    width: 100%;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 10px 12px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.setting-item input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.setting-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.setting-toggle label {
    color: #e2e8f0;
    margin-bottom: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-in;
}

.modal-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid #334155;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 18px;
    color: #f1f5f9;
}

.modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #334155;
    color: #e2e8f0;
}

.modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 65px);
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

.qris-container {
    text-align: center;
}

.qris-code {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: inline-block;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    border-radius: 8px;
}

.qris-instruction {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 20px;
}

.payment-amount {
    background: #334155;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.payment-amount .label {
    color: #94a3b8;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.payment-amount .amount {
    color: #3b82f6;
    font-size: 28px;
    font-weight: 700;
}

.payment-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
}

.payment-timer {
    background: #334155;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 10px;
}

.timer-icon {
    font-size: 20px;
}

.timer-value {
    color: #3b82f6;
    font-weight: 700;
    font-size: 18px;
}

.timer-value.warning {
    color: #f59e0b;
}

.timer-value.danger {
    color: #ef4444;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #334155;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Accounts List */
.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.account-card:hover {
    border-color: #3b82f6;
    transform: translateX(4px);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.account-type {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
}

.account-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-copy {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-copy:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-copy:active {
    transform: scale(0.98);
}

.btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-download:active {
    transform: scale(0.98);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-delete:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-delete:active {
    transform: scale(0.98);
}

.account-date {
    font-size: 12px;
    color: #64748b;
}

.account-content {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #cbd5e1;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    user-select: text;
    -webkit-user-select: text;
}

.account-content::-webkit-scrollbar {
    width: 6px;
}

.account-content::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}


/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.history-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.history-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.history-info p {
    font-size: 14px;
    color: #94a3b8;
}

.history-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.history-status.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.history-status.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.history-status.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.history-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.history-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-detail-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-detail-value {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 500;
}

.history-amount {
    font-size: 20px;
    font-weight: 700;
    color: #3b82f6;
}

/* Account Card Item (My Sales & Accounts) */
.account-card-item {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
}

.account-card-item:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.account-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.account-title {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ================= NEW FEATURES STYLES ================= */

.btn-sidebar-seller-auth {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    transition: all 0.2s ease;
}

.btn-sidebar-seller-auth:hover {
    background: rgba(99, 102, 241, 0.3);
    color: white;
    transform: translateY(-1px);
}

.btn-sidebar-seller-auth.logged-in {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.btn-sidebar-seller-auth.logged-in:hover {
    background: rgba(239, 68, 68, 0.25);
    color: white;
}

/* Primary Action Button (Marketplace Header) */
.btn-primary-action {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transition: all 0.25s;
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Category Filter Tabs Bar */
.category-tabs-wrapper {
    display: flex;
    gap: 8px;
    margin: 16px 0 24px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.cat-tab-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cat-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.cat-tab-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Sell Modal & Forms */
.modal-content-large {
    max-width: 600px;
    width: 90%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.form-group-item {
    margin-bottom: 14px;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    user-select: text;
}

select.form-input {
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
    user-select: auto;
    color: #f8fafc;
    background-color: #0f172a;
}

select.form-input option {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 10px;
    font-size: 13px;
}

.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.price-lock-tag {
    padding: 10px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px dashed #6366f1;
    border-radius: 8px;
    color: #a5b4fc;
    font-weight: 700;
    font-size: 13px;
}

.btn-cancel-modal {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel-modal:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-submit-modal {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-submit-modal:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}

/* Star Seller Special Badges & Effects */
.badge-star-seller-gold {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #1e1b4b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
    animation: starPulse 2.5s infinite alternate;
}

.star-icon-sparkle {
    display: inline-block;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
    animation: starTwinkle 1.8s infinite ease-in-out;
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.25) rotate(15deg); }
}

@keyframes starPulse {
    0% { box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35); }
    100% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.65); }
}

.note-item.star-seller-card {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(40, 26, 12, 0.45));
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
}

.note-item.star-seller-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 26px rgba(245, 158, 11, 0.25);
}

.badge-blocked-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Buyer Report Styles */
#report-photo-dropzone:hover,
#report-photo-dropzone.dragover {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

#btn-remove-report-photo:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
    transform: scale(1.04);
}

/* =========================================================
   LANGUAGE SELECTOR & DROPDOWN (i18n)
   ========================================================= */
.lang-switcher-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 6px;
    -webkit-app-region: no-drag;
}

.lang-selector-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 5px 10px;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-app-region: no-drag;
}

.lang-selector-btn:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(99, 102, 241, 0.45);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.lang-flag-current {
    display: flex;
    align-items: center;
}

.flag-icon {
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    display: inline-block;
    vertical-align: middle;
}

.lang-name-current {
    font-size: 12px;
    letter-spacing: 0.2px;
}

.lang-chevron {
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #171b20;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 6px;
    min-width: 145px;
    z-index: 100000;
    display: none;
    flex-direction: column;
    gap: 3px;
    backdrop-filter: blur(16px);
    animation: langDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-app-region: no-drag;
}

.lang-dropdown-menu.show {
    display: flex;
}

@keyframes langDropdownFade {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    user-select: none;
}

.lang-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

.lang-dropdown-item.active {
    background: #272a2e;
    color: #ffffff;
    font-weight: 700;
}

.lang-item-flag {
    display: flex;
    align-items: center;
}

.lang-item-name {
    flex: 1;
}

.lang-item-check {
    font-size: 11px;
    color: #38bdf8;
    font-weight: 800;
}

/* Settings Language Grid Selection */
.settings-lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.settings-lang-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.settings-lang-tile:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
}

.settings-lang-tile.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.settings-lang-tile .lang-tile-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
    flex: 1;
}

.settings-lang-tile.active .lang-tile-name {
    color: #a5b4fc;
    font-weight: 700;
}

.settings-lang-tile .lang-tile-radio {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Buyer Report Styles */
#report-photo-dropzone:hover,
#report-photo-dropzone.dragover {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

#btn-remove-report-photo:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
    transform: scale(1.04);
}

/* =========================================================
   LANGUAGE SELECTOR & DROPDOWN (i18n)
   ========================================================= */
.lang-switcher-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 6px;
    -webkit-app-region: no-drag;
}

.lang-selector-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 5px 10px;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-app-region: no-drag;
}

.lang-selector-btn:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(99, 102, 241, 0.45);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.lang-flag-current {
    display: flex;
    align-items: center;
}

.flag-icon {
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    display: inline-block;
    vertical-align: middle;
}

.lang-name-current {
    font-size: 12px;
    letter-spacing: 0.2px;
}

.lang-chevron {
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #171b20;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 6px;
    min-width: 145px;
    z-index: 100000;
    display: none;
    flex-direction: column;
    gap: 3px;
    backdrop-filter: blur(16px);
    animation: langDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-app-region: no-drag;
}

.lang-dropdown-menu.show {
    display: flex;
}

@keyframes langDropdownFade {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    user-select: none;
}

.lang-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

.lang-dropdown-item.active {
    background: #272a2e;
    color: #ffffff;
    font-weight: 700;
}

.lang-item-flag {
    display: flex;
    align-items: center;
}

.lang-item-name {
    flex: 1;
}

.lang-item-check {
    font-size: 11px;
    color: #38bdf8;
    font-weight: 800;
}

/* Settings Language Grid Selection */
.settings-lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.settings-lang-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.settings-lang-tile:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
}

.settings-lang-tile.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.settings-lang-tile .lang-tile-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
    flex: 1;
}

.settings-lang-tile.active .lang-tile-name {
    color: #a5b4fc;
    font-weight: 700;
}

.settings-lang-tile .lang-tile-radio {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

/* =========================================================
   PAYMENT METHOD SELECTION & DUAL GATEWAY MODAL
   ========================================================= */
.pay-product-summary-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
}

.pay-summary-label {
    font-size: 11px;
    font-weight: 700;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.pay-summary-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.4;
}

.pay-summary-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #94a3b8;
}

.pay-summary-price {
    font-size: 17px;
    font-weight: 800;
    color: #38bdf8;
}

/* Method Selection Cards */
.payment-selection-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pay-select-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.pay-select-card:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.pay-select-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qris-icon-box {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.crypto-icon-box {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pay-select-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pay-select-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
}

.pay-badge-instant {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    border-radius: 20px;
}

.pay-badge-crypto {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    border-radius: 20px;
}

.pay-select-sub {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.3;
}

.pay-select-arrow {
    font-size: 16px;
    color: #818cf8;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.pay-select-card:hover .pay-select-arrow {
    transform: translateX(4px);
    color: #a5b4fc;
}

/* Back navigation bar */
.pay-back-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.btn-pay-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-pay-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border-color: rgba(99, 102, 241, 0.4);
}

/* Crypto View Specifics */
.crypto-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
}

.crypto-coins-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.crypto-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    letter-spacing: 0.2px;
}

.crypto-amount-box {
    width: 100%;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 12px;
    text-align: center;
}

.crypto-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #cbd5e1;
}

.crypto-amount-val {
    font-size: 16px;
    font-weight: 800;
    color: #34d399;
}

.btn-plisio-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
    filter: brightness(1.08);
}
