/* ==========================================================================
   ELITE SHARE TRADE CSS
   Glassmorphism, SVG Chart Generation, Social Feed
   ========================================================================== */

/* Layout & Globals */
.sht-container { margin-left: 20px; padding: 32px; min-height: 100vh; color: #ffffff; font-family: 'Inter', sans-serif; position: relative; overflow-x: hidden; }
.sht-content-wrapper { display: flex; flex-direction: column; gap: 24px; }
.sht-layout-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Utilities */
.hidden { display: none !important; opacity: 0; pointer-events: none; }
.hidden-mobile { display: flex; }
@media (max-width: 768px) { .hidden-mobile { display: none !important; } .sht-layout-2col { grid-template-columns: 1fr; } }
.m-0 { margin: 0; } .mx-auto { margin-left: auto; margin-right: auto; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.p-0 { padding: 0 !important; } .p-16 { padding: 16px; } .pt-16 { padding-top: 16px; } .pb-16 { padding-bottom: 16px; } .border-top { border-top: 1px solid rgba(255,255,255,0.1); } .border-bottom { border-bottom: 1px solid rgba(255,255,255,0.1); }
.text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.85rem; } .text-muted { color: rgba(255,255,255,0.6); } .w-full { width: 100%; } .text-center { text-align: center; } .text-right { text-align: right; }
.uppercase { text-transform: uppercase; } .letter-spacing { letter-spacing: 1px; } .font-bold { font-weight: 700; } .tabular-nums { font-variant-numeric: tabular-nums; }
.flex-between { display: flex; justify-content: space-between; align-items: center; } .flex-align-center { display: flex; align-items: center; } .gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }

/* Palette */
.text-purple { color: #c084fc; } .text-cyan { color: #06b6d4; } .text-gold { color: #fbbf24; } .text-red { color: #ef5350; } .text-green { color: #22c55e; } .text-orange { color: #fb923c; } .text-white { color: #ffffff; }
.bg-purple { background: #c084fc; color: #000; } .bg-gold { background: #fbbf24; color: #000; } .bg-green { background: #22c55e; color: #000; } .bg-cyan { background: #06b6d4; color: #000; }
.border-green { border-color: rgba(34,197,94,0.4) !important; } .border-red { border-color: rgba(239,83,80,0.4) !important; } .border-cyan { border-color: rgba(6,182,212,0.4) !important; } .border-gold { border-color: rgba(251,191,36,0.4) !important; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(168,85,247,0.4); } 70% { box-shadow: 0 0 0 15px rgba(168,85,247,0); } 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); } }
@keyframes heartBurst { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.pulse-btn { animation: pulseGlow 2s infinite; border-radius: 12px; }

/* Buttons & Inputs */
.sht-btn { padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; border: none; text-transform: uppercase; font-family: inherit; }
.sht-btn--primary { background: linear-gradient(135deg, #a855f7, #7e22ce); color: white; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.sht-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5); }
.sht-btn--secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.sht-btn--secondary:hover:not(:disabled) { background: rgba(255,255,255,0.1); border-color: #c084fc; color: #c084fc; }
.sht-btn-icon { background: transparent; border: none; color: rgba(255,255,255,0.6); cursor: pointer; transition: 0.2s; font-size: 1.2rem; }
.sht-btn-icon:hover { color: white; transform: scale(1.1); }

.sht-input, .sht-select { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; transition: 0.3s; font-family: inherit; font-size: 0.85rem; outline: none; }
.sht-input:focus, .sht-select:focus { border-color: #c084fc; box-shadow: 0 0 0 2px rgba(192,132,252,0.2); }
.sht-form-group { margin-bottom: 16px; }
.sht-form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.sht-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Switch Toggle */
.sht-switch-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 8px; background: rgba(0,0,0,0.2); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); transition: 0.2s; }
.sht-switch-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(192,132,252,0.3); }
.sht-switch { position: relative; display: inline-block; width: 36px; height: 18px; flex-shrink: 0; }
.sht-switch input { opacity: 0; width: 0; height: 0; }
.sht-slider-toggle { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 24px; }
.sht-slider-toggle:before { position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
.sht-switch input:checked + .sht-slider-toggle { background-color: #a855f7; }
.sht-switch input:checked + .sht-slider-toggle:before { transform: translateX(18px); }

/* Header & Tabs */
.sht-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; }
.sht-header__title { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px 0; letter-spacing: 1px; text-transform: uppercase; }
.sht-header__subtitle { color: #c084fc; margin: 0; font-size: 1rem; }
.sht-header__stats { display: flex; gap: 24px; }
.sht-stat-card { text-align: center; }
.sht-stat-val { display: block; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sht-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.sht-header__actions { display: flex; gap: 16px; align-items: center; }

.sht-nav-tabs { display: flex; gap: 8px; background: rgba(0,0,0,0.3); padding: 6px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.sht-tab-btn { background: transparent; border: none; color: rgba(255,255,255,0.5); padding: 8px 16px; border-radius: 12px; font-weight: 700; font-size: 0.8rem; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.sht-tab-btn:hover { color: white; }
.sht-tab-btn.active { background: rgba(255,255,255,0.1); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.sht-tab-content { animation: fadeInUp 0.4s forwards; }

/* Filters */
.sht-filters { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: rgba(255,255,255,0.03); padding: 12px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.sht-search-box { position: relative; flex-grow: 1; min-width: 250px; }
.sht-search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); }
.sht-search-box input { width: 100%; padding: 10px 14px 10px 36px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; outline: none; }
.sht-filter-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sht-pill { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; transition: 0.3s; white-space: nowrap; font-weight: 600; }
.sht-pill:hover { color: white; background: rgba(255,255,255,0.05); }
.sht-pill.active { background: rgba(192,132,252,0.2); color: #c084fc; border-color: rgba(192,132,252,0.4); }

/* Feed Grid & Cards */
.sht-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 24px; }
@media (max-width: 900px) { .sht-grid { grid-template-columns: 1fr; } }
.sht-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 20px; transition: 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.sht-card:hover { transform: translateY(-2px); border-color: rgba(192,132,252,0.3); box-shadow: 0 12px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); background: rgba(255,255,255,0.04); }

.c-auth { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; pointer-events: none; }
.c-auth-info { display: flex; align-items: center; gap: 12px; }
.c-avt { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #06b6d4); display: flex; align-items: center; justify-content: center; font-weight: 800; border: 2px solid #0d0b12; }
.c-name { font-weight: 700; font-size: 0.95rem; margin: 0 0 2px 0; display: flex; align-items: center; gap: 6px; }
.c-time { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.sht-chart-wrapper { width: 100%; height: 200px; background: rgba(0,0,0,0.5); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); overflow: hidden; margin-bottom: 16px; position: relative; pointer-events: none; }
.sht-chart-svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: rgba(255,255,255,0.05); stroke-width: 1; }
.chart-candle-wick { stroke: rgba(255,255,255,0.3); stroke-width: 1; }
.chart-candle-body { rx: 2; }
.chart-entry-zone { fill: rgba(34,197,94,0.1); stroke: rgba(34,197,94,0.3); stroke-width: 1; }
.chart-sl-line { stroke: #ef5350; stroke-width: 1.5; stroke-dasharray: 4; }
.chart-tp-line { stroke: #22c55e; stroke-width: 1.5; stroke-dasharray: 4; }
.chart-watermark { font-family: 'Inter'; font-weight: 800; font-size: 1.5rem; fill: rgba(255,255,255,0.05); font-style: italic; }

.c-stats-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; pointer-events: none; }
.c-stat-chip { font-size: 0.75rem; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); padding: 4px 8px; border-radius: 6px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.c-r-chip { background: rgba(34,197,94,0.15); color: #4ade80; border-color: rgba(34,197,94,0.3); }
.c-r-chip.neg { background: rgba(239,83,80,0.15); color: #ef5350; border-color: rgba(239,83,80,0.3); }

.c-caption { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; pointer-events: none; }
.c-hashtag { color: #c084fc; font-weight: 600; }
.c-mention { color: #06b6d4; font-weight: 600; }

.c-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px; margin-top: 16px; z-index: 2; position: relative; }
.c-act-left { display: flex; gap: 16px; }
.sht-action-btn { background: transparent; border: none; color: rgba(255,255,255,0.5); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
.sht-action-btn:hover { color: white; }
.sht-action-btn i { font-size: 1.1rem; }
.btn-like.liked { color: #ef5350; animation: heartBurst 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-like.liked i { font-weight: 900; }
.btn-save.saved { color: #fbbf24; }
.btn-save.saved i { font-weight: 900; }

/* Modals & Wizard */
.sht-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.sht-modal__overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.sht-modal__content { position: relative; background: #0d0b12; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: popIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards; }
.sht-modal__close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; transition: 0.3s; z-index: 10; }
.sht-modal__close:hover { color: white; }

.sht-composer-wrapper { max-width: 800px; padding: 32px; display: flex; flex-direction: column; }
.sht-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.sht-progress-bar .fill { height: 100%; border-radius: 3px; transition: width 0.3s ease; }
.sht-composer-body { min-height: 350px; padding: 16px 0; }
.sht-step { animation: fadeInUp 0.3s forwards; }

.sht-trade-picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-height: 300px; overflow-y: auto; padding-right: 8px; }
.tp-card { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); padding: 16px; border-radius: 12px; cursor: pointer; transition: 0.2s; display: flex; justify-content: space-between; align-items: center; }
.tp-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(192,132,252,0.3); }
.tp-card.selected { border-color: #c084fc; background: rgba(192,132,252,0.1); }

.sht-preview-card { transform: scale(0.9); transform-origin: top left; pointer-events: none; }
.sht-chk-row { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.9rem; color: rgba(255,255,255,0.8); background: rgba(0,0,0,0.2); padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); transition: 0.2s; }
.sht-chk-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(251,191,36,0.3); }
.sht-chk-row input { accent-color: #fbbf24; width: 18px; height: 18px; cursor: pointer; }

/* Detail Slide Panel */
.sht-slide-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 999; transition: opacity 0.4s; }
.sht-slide-panel { position: fixed; top: 0; right: 0; width: 100%; max-width: 600px; height: 100vh; background: #0d0b12; border-left: 1px solid rgba(255,255,255,0.1); z-index: 1000; box-shadow: -10px 0 30px rgba(0,0,0,0.5); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; }
.sht-slide-panel.open { transform: translateX(0); }
.sht-slide-header { padding: 32px 32px 16px 32px; border-bottom: 1px solid rgba(255,255,255,0.05); flex-shrink: 0; }
.sht-avatar { width: 48px; height: 48px; border-radius: 50%; background: #333; border: 2px solid #c084fc; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }

.sht-slide-body { padding: 32px; overflow-y: auto; flex-grow: 1; }
.sht-det-chart-wrapper { width: 100%; height: 300px; background: #000; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); position: relative; }
.sht-dir-chip { position: absolute; top: 12px; right: 12px; background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.4); padding: 4px 10px; border-radius: 8px; font-weight: 800; font-size: 0.75rem; letter-spacing: 1px; }

.sht-det-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: rgba(0,0,0,0.3); padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.d-stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.d-stat .lbl { font-size: 0.65rem; color: rgba(255,255,255,0.5); text-transform: uppercase; margin-bottom: 4px; }
.d-stat .val { font-size: 1rem; font-weight: 700; tabular-nums: tabular-nums; }

.sht-det-caption { font-size: 1rem; color: rgba(255,255,255,0.9); line-height: 1.6; }
.sht-tags-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Comments */
.sht-comments-list { display: flex; flex-direction: column; gap: 16px; }
.sht-comment { display: flex; gap: 12px; }
.cmt-avt { width: 32px; height: 32px; border-radius: 50%; background: #444; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.cmt-content { background: rgba(255,255,255,0.03); padding: 12px 16px; border-radius: 0 16px 16px 16px; border: 1px solid rgba(255,255,255,0.05); flex-grow: 1; }
.cmt-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.cmt-name { font-weight: 700; font-size: 0.85rem; color: #fff; }
.cmt-txt { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.4; }

.sht-comment-input-box { display: flex; gap: 8px; position: sticky; bottom: -32px; background: #0d0b12; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.05); margin-bottom: -32px; }