/* ============================================================
   Uru Trading — Frontend Stylesheet
   Brand: #959577 (primary), #333123 (dark), #000 (black)
   Default theme: light
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --ut-primary:       #959577;
    --ut-primary-dark:  #7a7a5e;
    --ut-primary-light: #b0b094;
    --ut-dark:          #333123;
    --ut-dark-deep:     #1e1d14;
    --ut-gradient:      linear-gradient(135deg, #333123 0%, #4a4735 100%);

    --ut-success:       #4ade80;
    --ut-danger:        #f87171;
    --ut-warning:       #fbbf24;
    --ut-info:          #60a5fa;

    --ut-sidebar-width: 260px;
    --ut-header-height: 64px;
    --ut-radius-sm:     0.375rem;
    --ut-radius:        0.5rem;
    --ut-radius-lg:     0.75rem;
    --ut-radius-xl:     1rem;
}

/* ── Light theme (default) ── */
.ut-app,
[data-theme="light"] {
    --ut-bg-main:       #f5f5f2;
    --ut-bg-card:       #ffffff;
    --ut-bg-input:      #ffffff;
    --ut-bg-hover:      #f0efe8;
    --ut-text-main:     #1a1a14;
    --ut-text-muted:    #6b7280;
    --ut-text-light:    #9ca3af;
    --ut-border:        #e5e4d8;
    --ut-border-light:  #f0efe8;
    --ut-shadow-sm:     0 1px 2px rgba(0,0,0,.05);
    --ut-shadow:        0 2px 8px rgba(0,0,0,.08);
    --ut-shadow-lg:     0 8px 24px rgba(0,0,0,.12);
}

/* ── Dark theme override ── */
[data-theme="dark"] {
    --ut-bg-main:       #0d0d0b;
    --ut-bg-card:       #18181a;
    --ut-bg-input:      #0d0d0b;
    --ut-bg-hover:      #222220;
    --ut-text-main:     #f0efe8;
    --ut-text-muted:    #9ca3af;
    --ut-text-light:    #6b7280;
    --ut-border:        #2a2a28;
    --ut-border-light:  #222220;
    --ut-shadow-sm:     0 1px 2px rgba(0,0,0,.4);
    --ut-shadow:        0 2px 8px rgba(0,0,0,.4);
    --ut-shadow-lg:     0 8px 24px rgba(0,0,0,.5);
}

/* ===== BASE RESET ===== */
.ut-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--ut-bg-main);
    color: var(--ut-text-main);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
}

.ut-app * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ut-border); border-radius: 3px; }

/* ===== SIDEBAR ===== */
.ut-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--ut-sidebar-width);
    background: var(--ut-bg-card);
    border-right: 1px solid var(--ut-border);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
}

.ut-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ut-sidebar-header {
    height: var(--ut-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--ut-border);
    flex-shrink: 0;
}

.ut-logo img {
    height: 30px;
    width: auto;
}

.ut-close-sidebar {
    background: none;
    border: none;
    color: var(--ut-text-muted);
    cursor: pointer;
    padding: .5rem;
    display: none;
    font-size: 1rem;
}
.ut-close-sidebar:hover { color: var(--ut-text-main); }

/* Nav */
.ut-nav-main {
    flex: 1;
    padding: 1rem .75rem;
    overflow-y: auto;
}

.ut-nav-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 1rem;
    border-radius: var(--ut-radius);
    font-size: .875rem;
    font-weight: 500;
    color: var(--ut-text-muted);
    text-decoration: none;
    transition: all .2s;
    margin-bottom: .2rem;
}
.ut-nav-item:hover {
    color: var(--ut-primary);
    background: var(--ut-bg-hover);
}
.ut-nav-item.active {
    color: var(--ut-primary);
    background: var(--ut-bg-hover);
    border-left: 2px solid var(--ut-primary);
}
.ut-nav-item i {
    width: 18px;
    text-align: center;
    font-size: .8rem;
    flex-shrink: 0;
}

.ut-nav-divider {
    padding: 1rem 1.25rem .4rem;
}
.ut-nav-divider span {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    color: var(--ut-text-light);
}

/* User block */
.ut-nav-user {
    padding: 1rem;
    border-top: 1px solid var(--ut-border);
    position: relative;
    flex-shrink: 0;
}

.ut-user-btn {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: none;
    border: none;
    width: 100%;
    padding: .5rem;
    border-radius: var(--ut-radius);
    cursor: pointer;
    color: var(--ut-text-main);
    transition: background .2s;
    text-align: left;
}
.ut-user-btn:hover { background: var(--ut-bg-hover); }

.ut-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--ut-gradient);
    color: #f0efe8;
    border-radius: var(--ut-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .75rem;
    flex-shrink: 0;
}

.ut-user-info { flex: 1; min-width: 0; }
.ut-user-name {
    font-weight: 500;
    font-size: .875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ut-user-plan { font-size: .75rem; color: var(--ut-text-muted); }
.ut-user-chevron {
    color: var(--ut-text-muted);
    font-size: .75rem;
    transition: transform .2s;
}
.ut-user-dropdown.active .ut-user-chevron { transform: rotate(180deg); }

.ut-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 1rem; right: 1rem;
    margin-bottom: .5rem;
    background: var(--ut-bg-card);
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius);
    box-shadow: var(--ut-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 1000;
    overflow: hidden;
}
.ut-user-dropdown.active .ut-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ut-dropdown-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--ut-border);
}
.ut-dropdown-header p { font-size: .75rem; color: var(--ut-text-muted); }
.ut-dropdown-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    color: var(--ut-text-main);
    text-decoration: none;
    font-size: .875rem;
    transition: background .2s;
}
.ut-dropdown-item:hover { background: var(--ut-bg-hover); }
.ut-dropdown-divider { height: 1px; background: var(--ut-border); }
.ut-logout { color: var(--ut-danger) !important; }
.ut-logout:hover { background: rgba(248,113,113,.1) !important; }

/* Overlay */
.ut-sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(2px);
    z-index: 190;
    display: none;
}
.ut-sidebar-overlay.active { display: block; }

/* ===== HEADER ===== */
.ut-header {
    background: var(--ut-bg-card);
    border-bottom: 1px solid var(--ut-border);
    height: var(--ut-header-height);
    position: fixed;
    top: 0;
    left: var(--ut-sidebar-width);
    right: 0;
    z-index: 100;
    transition: left .3s ease;
}
.ut-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 100%;
    gap: 1rem;
}
.ut-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.ut-header-right {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}
.ut-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ut-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: .5rem;
}
.ut-mobile-toggle:hover { color: var(--ut-text-main); }

.ut-breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--ut-text-muted);
    min-width: 0;
}
.ut-breadcrumb i { font-size: .6rem; }
.ut-current { color: var(--ut-text-main); font-weight: 500; }

/* ── Market Intelligence widget ── */
.ut-live-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ut-success);
    background: rgba(74,222,128,.1);
    border: 1px solid rgba(74,222,128,.25);
    border-radius: 2rem;
    padding: .2rem .7rem;
}
.ut-live-badge i {
    font-size: .5rem;
    animation: ut-pulse-dot 2s ease-in-out infinite;
}
@keyframes ut-pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

.ut-mi-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.ut-mi-input-wrap {
    display: flex;
    gap: .75rem;
    align-items: center;
}
.ut-mi-textarea {
    flex: 1;
    min-height: 64px;
    resize: none;
    align-self: stretch;
}

.ut-mi-result {
    margin-top: 1.25rem;
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius-lg);
    overflow: hidden;
}
.ut-mi-result-body {
    padding: 1.25rem;
    font-size: .9rem;
    line-height: 1.7;
}
.ut-mi-result-body p { margin-bottom: .75rem; }
.ut-mi-result-body p:last-child { margin-bottom: 0; }

.ut-mi-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    background: rgba(251,191,36,.08);
    border-top: 1px solid rgba(251,191,36,.2);
    padding: .875rem 1.25rem;
    font-size: .75rem;
    color: var(--ut-warning);
    line-height: 1.5;
}
.ut-mi-disclaimer i {
    flex-shrink: 0;
    margin-top: .15rem;
}


.ut-briefing-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.ut-briefing-time {
    font-size: .75rem;
    color: var(--ut-text-muted);
    font-style: italic;
}

.ut-briefing-notice {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--ut-text-muted);
    background: var(--ut-bg-hover);
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius);
    padding: .6rem .875rem;
    margin-bottom: 1rem;
}
.ut-briefing-notice i { color: var(--ut-primary); flex-shrink: 0; }
.ut-briefing-empty {
    text-align: center;
    padding: 2rem 1rem;
}
.ut-briefing-empty-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--ut-bg-hover);
    border: 1px solid var(--ut-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--ut-primary);
    font-size: 1.25rem;
    margin: 0 auto 1.25rem;
}
.ut-briefing-empty h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ut-text-main);
    margin-bottom: .75rem;
}
.ut-briefing-empty p {
    font-size: .9rem;
    color: var(--ut-text-muted);
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto .75rem;
}
.ut-briefing-empty-hint {
    font-size: .8rem !important;
    color: var(--ut-text-light) !important;
    font-style: italic;
}
.ut-briefing-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.ut-field-hint {
    display: block;
    font-size: .75rem;
    color: var(--ut-text-muted);
    margin-top: .3rem;
    line-height: 1.5;
}

.ut-required {
    color: var(--ut-danger);
    margin-left: 2px;
}

.ut-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--ut-border);
    color: var(--ut-text-muted);
    border-radius: 50%;
    font-size: .65rem;
    font-weight: 700;
    cursor: help;
    margin-left: 4px;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
    transition: background .2s;
}
.ut-tooltip:hover {
    background: var(--ut-primary);
    color: #fff;
}

/* Tooltip popup */
.ut-tooltip-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    transform: none;
    background: var(--ut-dark);
    color: #f0efe8;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.5;
    padding: .5rem .75rem;
    border-radius: var(--ut-radius);
    white-space: normal;
    width: 220px;
    box-shadow: var(--ut-shadow-lg);
    z-index: 999;
    pointer-events: none;
    text-align: left;
}
.ut-tooltip-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px;
    transform: none;
    border: 5px solid transparent;
    border-top-color: var(--ut-dark);
}


.ut-theme-btn {
    background: none;
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius);
    color: var(--ut-text-muted);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: .875rem;
    flex-shrink: 0;
}
.ut-theme-btn:hover {
    background: var(--ut-bg-hover);
    border-color: var(--ut-primary);
    color: var(--ut-primary);
}

/* Show sun on dark, moon on light */
.ut-theme-icon-light { display: none; }
.ut-theme-icon-dark  { display: block; }

[data-theme="light"] .ut-theme-icon-light { display: block; }
[data-theme="light"] .ut-theme-icon-dark  { display: none; }
[data-theme="dark"]  .ut-theme-icon-light { display: none; }
[data-theme="dark"]  .ut-theme-icon-dark  { display: block; }


    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .9rem;
    background: var(--ut-gradient);
    color: #f0efe8;
    border-radius: 2rem;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.ut-upgrade-badge:hover { opacity: .85; }

/* ===== MAIN CONTENT ===== */
.ut-main-content {
    flex: 1;
    margin-left: var(--ut-sidebar-width);
    overflow-y: auto;
    height: 100vh;
    background: var(--ut-bg-main);
}
.ut-main-content-inner {
    padding: 1.5rem;
    padding-top: calc(var(--ut-header-height) + 1.5rem);
    max-width: 1280px;
    margin: 0 auto;
}

/* ===== PAGE TITLE ===== */
.ut-page-title {
    margin-bottom: 1.5rem;
}
.ut-page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ut-text-main);
    margin-bottom: .25rem;
}
.ut-page-title p { color: var(--ut-text-muted); font-size: .9rem; }

/* ===== CARDS ===== */
.ut-card {
    background: var(--ut-bg-card);
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius-xl);
    box-shadow: var(--ut-shadow-sm);
    overflow: hidden;
    animation: ut-fade-in .3s ease-out;
}
@keyframes ut-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ut-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ut-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}
.ut-card-header h2, .ut-card-header h3 {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ut-text-main);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
}
.ut-card-header h2 i { color: var(--ut-primary); }
.ut-card-subtitle {
    font-size: .8rem;
    color: var(--ut-text-muted);
    margin-top: .3rem;
    font-weight: 400;
}
.ut-card-body { padding: 1.5rem; }
.ut-p-0 { padding: 0 !important; }

/* ===== BUTTONS ===== */
.ut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .5rem 1.1rem;
    border-radius: var(--ut-radius);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
    line-height: 1;
}
.ut-btn:disabled, .ut-btn-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}
.ut-btn-primary {
    background: var(--ut-primary);
    color: #fff;
}
.ut-btn-primary:hover { background: var(--ut-primary-dark); }

.ut-btn-outline {
    background: transparent;
    border: 1px solid var(--ut-border);
    color: var(--ut-text-main);
}
.ut-btn-outline:hover {
    background: var(--ut-bg-hover);
    border-color: var(--ut-primary);
    color: var(--ut-primary);
}
.ut-btn-sm { padding: .3rem .75rem; font-size: .8125rem; }
.ut-btn-block { width: 100%; }
.ut-btn-icon {
    background: none;
    border: none;
    color: var(--ut-text-muted);
    cursor: pointer;
    padding: .35rem;
    border-radius: var(--ut-radius-sm);
    transition: all .2s;
    font-size: .875rem;
}
.ut-btn-icon:hover { background: var(--ut-bg-hover); color: var(--ut-primary); }

.ut-btn-text {
    background: none;
    border: none;
    color: var(--ut-text-muted);
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: color .2s;
    padding: 0;
}
.ut-btn-text:hover { color: var(--ut-primary); }

/* ===== FORMS ===== */
.ut-form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 1;
    min-width: 140px;
}
.ut-form-group label {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--ut-text-muted);
}
.ut-form-group--wide { flex: 2; min-width: 260px; }
.ut-form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.ut-input {
    background: var(--ut-bg-input);
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius);
    padding: .55rem .875rem;
    font-size: .875rem;
    color: var(--ut-text-main);
    width: 100%;
    transition: border-color .2s;
    outline: none;
    font-family: inherit;
}
.ut-input:focus {
    border-color: var(--ut-primary);
    box-shadow: 0 0 0 3px rgba(149,149,119,.15);
}
.ut-input::placeholder { color: var(--ut-text-light); }
.ut-input-sm { font-size: .8125rem; padding: .4rem .75rem; }

textarea.ut-input {
    resize: vertical;
    min-height: 80px;
}

.ut-form-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Checkbox group */
.ut-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .25rem;
}
.ut-checkbox-option {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-size: .875rem;
    color: var(--ut-text-main);
    padding: .4rem .875rem;
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius);
    transition: all .2s;
    user-select: none;
}
.ut-checkbox-option:hover { border-color: var(--ut-primary); background: var(--ut-bg-hover); }
.ut-checkbox-option input { accent-color: var(--ut-primary); }

/* Messages */
.ut-message {
    padding: .75rem 1rem;
    border-radius: var(--ut-radius);
    font-size: .875rem;
    margin-top: .75rem;
}
.ut-message.success {
    background: rgba(74,222,128,.1);
    color: var(--ut-success);
    border: 1px solid rgba(74,222,128,.25);
}
.ut-message.error {
    background: rgba(248,113,113,.1);
    color: var(--ut-danger);
    border: 1px solid rgba(248,113,113,.25);
}

/* ===== LOADING & EMPTY STATES ===== */
.ut-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: .75rem;
    color: var(--ut-text-muted);
    font-size: .875rem;
}
.ut-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--ut-border);
    border-top-color: var(--ut-primary);
    border-radius: 50%;
    animation: ut-spin .7s linear infinite;
}
@keyframes ut-spin { to { transform: rotate(360deg); } }

.ut-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--ut-text-muted);
}
.ut-empty-state i {
    font-size: 2.5rem;
    color: var(--ut-border);
    margin-bottom: 1rem;
    display: block;
}
.ut-empty-state h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ut-text-main);
    margin-bottom: .5rem;
}
.ut-empty-state p { font-size: .875rem; }

/* ===== ACTION BAR ===== */
.ut-action-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.ut-action-bar > * {
    flex-shrink: 0;
}
.ut-action-bar .ut-input-sm {
    height: 36px;
    padding: 0 .75rem;
    font-size: .8125rem;
    border-radius: 2rem;
    min-width: 0;
    max-width: 160px;
}
.ut-action-bar .ut-btn {
    height: 36px;
    border-radius: 2rem;
    font-size: .8125rem;
    padding: 0 1rem;
    white-space: nowrap;
}
.ut-action-bar-divider {
    width: 1px;
    height: 24px;
    background: var(--ut-border);
    flex-shrink: 0;
    margin: 0 .25rem;
}
.ut-action-bar-filters {
    display: contents;
}

@media (max-width: 768px) {
    .ut-action-bar { gap: .5rem; }
    .ut-action-bar .ut-input-sm { max-width: 130px; }
    .ut-action-bar-divider { display: none; }
}
@media (max-width: 560px) {
    .ut-action-bar .ut-input-sm,
    .ut-action-bar select { width: 100%; max-width: none; }
}

/* ===== DASHBOARD ===== */

/* Greeting row with Log a Trade CTA */
.ut-dashboard-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ut-dashboard-greeting h1 { margin-bottom: .1rem; }

/* Market Intelligence card — full width, prominent */
.ut-mi-card {
    border: 1px solid var(--ut-primary);
    box-shadow: 0 0 0 1px rgba(149,149,119,.15), var(--ut-shadow);
}
.ut-mi-card .ut-card-header {
    background: linear-gradient(135deg, var(--ut-dark) 0%, #4a4735 100%);
    border-bottom-color: rgba(149,149,119,.2);
}
.ut-mi-card .ut-card-header h2 {
    color: #f0efe8;
}
.ut-mi-card .ut-card-header h2 i {
    color: var(--ut-primary);
}
.ut-mi-ask-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: .65rem 1.25rem !important;
}
.ut-mi-header-left {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* Two-column dashboard grid */
.ut-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}
.ut-dashboard-main { min-width: 0; }
.ut-dashboard-side { min-width: 0; }

/* Key stats — 2×2 grid inside sidebar card */
.ut-dashboard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.ut-dash-stat {
    padding: 1.25rem 1rem;
    text-align: center;
    border-right: 1px solid var(--ut-border);
    border-bottom: 1px solid var(--ut-border);
    cursor: default;
    transition: background .2s;
}
.ut-dash-stat:hover { background: var(--ut-bg-hover); }
.ut-dash-stat:nth-child(2n) { border-right: none; }
.ut-dash-stat:nth-last-child(-n+2) { border-bottom: none; }
.ut-dash-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ut-text-main);
    line-height: 1;
    margin-bottom: .3rem;
}
.ut-dash-stat-label {
    font-size: .7rem;
    color: var(--ut-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

/* Quick actions list */
.ut-quick-actions-list { display: flex; flex-direction: column; }
.ut-quick-action {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .875rem 1.25rem;
    text-decoration: none;
    color: var(--ut-text-main);
    border-bottom: 1px solid var(--ut-border);
    transition: background .2s;
}
.ut-quick-action:last-child { border-bottom: none; }
.ut-quick-action:hover {
    background: var(--ut-bg-hover);
    color: var(--ut-text-main);
}
.ut-quick-action-icon {
    width: 34px;
    height: 34px;
    background: var(--ut-bg-hover);
    border-radius: var(--ut-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ut-primary);
    font-size: .875rem;
    flex-shrink: 0;
    transition: background .2s;
}
.ut-quick-action:hover .ut-quick-action-icon {
    background: rgba(149,149,119,.15);
}
.ut-quick-action-body {
    flex: 1;
    min-width: 0;
}
.ut-quick-action-body strong {
    display: block;
    font-size: .875rem;
    font-weight: 600;
}
.ut-quick-action-body span {
    font-size: .75rem;
    color: var(--ut-text-muted);
}
.ut-quick-action-arrow {
    color: var(--ut-text-light);
    font-size: .7rem;
    flex-shrink: 0;
}

/* Upgrade nudge card */
.ut-upgrade-card {
    border-color: var(--ut-primary);
    background: rgba(149,149,119,.04);
}



/* Briefing */
.ut-briefing-content {
    font-size: .9rem;
    line-height: 1.7;
    color: var(--ut-text-main);
}
.ut-briefing-content p { margin-bottom: .75rem; }

/* Usage meters */
.ut-usage-item {
    margin-bottom: 1rem;
}
.ut-usage-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    color: var(--ut-text-muted);
    margin-bottom: .35rem;
}
.ut-usage-label i { color: var(--ut-primary); width: 14px; text-align: center; }
.ut-usage-count { margin-left: auto; color: var(--ut-text-main); font-weight: 500; }
.ut-usage-bar {
    height: 4px;
    background: var(--ut-border);
    border-radius: 2px;
    overflow: hidden;
}
.ut-usage-progress {
    height: 100%;
    background: var(--ut-primary);
    border-radius: 2px;
    transition: width .4s;
}
.ut-usage-warn  { background: var(--ut-warning); }
.ut-usage-full  { background: var(--ut-danger); }

/* Activity feed */
.ut-activity-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--ut-border);
}
.ut-activity-item:last-child { border-bottom: none; }
.ut-activity-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--ut-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    flex-shrink: 0;
}
.ut-activity-icon.success { background: rgba(74,222,128,.15); color: var(--ut-success); }
.ut-activity-icon.info    { background: rgba(96,165,250,.15); color: var(--ut-info); }
.ut-activity-icon.warning { background: rgba(251,191,36,.15); color: var(--ut-warning); }
.ut-activity-content { min-width: 0; }
.ut-activity-content strong { font-size: .8125rem; font-weight: 500; display: block; }
.ut-activity-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--ut-text-muted);
    margin-top: .15rem;
}

/* ===== JOURNAL ===== */
.ut-journal-list { padding: .5rem; }

.ut-trade-row {
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: .5rem;
    display: grid;
    grid-template-columns: 160px 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    transition: border-color .2s, background .2s;
}
.ut-trade-row:hover {
    border-color: var(--ut-primary);
    background: var(--ut-bg-hover);
}

.ut-trade-instrument {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.ut-trade-instrument strong { font-size: .9375rem; font-weight: 600; }

.ut-direction-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: .25rem;
    letter-spacing: .04em;
    width: fit-content;
}
.ut-long  { background: rgba(74,222,128,.15); color: var(--ut-success); }
.ut-short { background: rgba(248,113,113,.15); color: var(--ut-danger); }

.ut-trade-prices {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    font-size: .8125rem;
    color: var(--ut-text-muted);
}
.ut-label { font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; margin-right: .3rem; }

.ut-trade-result {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .2rem;
}
.ut-pnl {
    font-size: .9375rem;
    font-weight: 700;
}
.ut-positive { color: var(--ut-success); }
.ut-negative { color: var(--ut-danger); }
.ut-r-multiple { font-size: .75rem; color: var(--ut-text-muted); }

.ut-trade-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--ut-text-muted);
}

.ut-trade-actions {
    display: flex;
    gap: .3rem;
}
.ut-trade-notes {
    grid-column: 1 / -1;
    font-size: .8rem;
    color: var(--ut-text-muted);
    padding-top: .5rem;
    border-top: 1px solid var(--ut-border);
    margin-top: .25rem;
    font-style: italic;
}

.ut-load-more {
    text-align: center;
    padding: 1rem;
}

/* ===== MODALS ===== */
.ut-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ut-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(3px);
}
.ut-modal-dialog {
    position: relative;
    background: var(--ut-bg-card);
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--ut-shadow-lg);
    animation: ut-modal-in .25s ease-out;
}
.ut-modal-lg { max-width: 760px; }
@keyframes ut-modal-in {
    from { opacity: 0; transform: scale(.97) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ut-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ut-border);
}
.ut-modal-header h3 { font-size: 1rem; font-weight: 600; }
.ut-modal-close {
    background: none;
    border: none;
    color: var(--ut-text-muted);
    cursor: pointer;
    padding: .4rem;
    border-radius: var(--ut-radius-sm);
    font-size: .9rem;
    transition: all .2s;
}
.ut-modal-close:hover { background: var(--ut-bg-hover); color: var(--ut-danger); }
.ut-modal-body { padding: 1.5rem; }
.ut-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--ut-border);
}

/* Slide panel */
.ut-slide-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 440px;
    background: var(--ut-bg-card);
    border-left: 1px solid var(--ut-border);
    z-index: 400;
    box-shadow: var(--ut-shadow-lg);
    display: flex;
    flex-direction: column;
    animation: ut-slide-in .3s ease-out;
}
@keyframes ut-slide-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
.ut-slide-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ut-border);
}
.ut-slide-panel-header h3 { font-size: 1rem; font-weight: 600; }
.ut-slide-panel-close {
    background: none; border: none;
    color: var(--ut-text-muted); cursor: pointer;
    padding: .4rem; border-radius: var(--ut-radius-sm); font-size: .9rem;
}
.ut-slide-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Upload zone */
.ut-upload-zone {
    border: 2px dashed var(--ut-border);
    border-radius: var(--ut-radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}
.ut-upload-zone:hover, .ut-upload-zone.drag-over {
    border-color: var(--ut-primary);
    background: rgba(149,149,119,.05);
}
.ut-upload-zone i { font-size: 2rem; color: var(--ut-text-muted); display: block; margin-bottom: .75rem; }
.ut-upload-zone p  { font-size: .9rem; color: var(--ut-text-main); margin-bottom: .3rem; }
.ut-upload-zone small { font-size: .75rem; color: var(--ut-text-muted); }

/* ===== INSIGHTS ===== */
.ut-insight-item {
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius-lg);
    margin-bottom: .75rem;
    overflow: hidden;
    transition: border-color .2s;
}
.ut-insight-item:hover { border-color: var(--ut-primary); }
.ut-insight-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
}
.ut-insight-icon {
    width: 34px;
    height: 34px;
    background: var(--ut-gradient);
    color: #f0efe8;
    border-radius: var(--ut-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
}
.ut-insight-meta { flex: 1; min-width: 0; }
.ut-insight-title {
    font-size: .875rem;
    font-weight: 500;
    color: var(--ut-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ut-insight-time { font-size: .75rem; color: var(--ut-text-muted); margin-top: .15rem; }
.ut-insight-toggle {
    background: none; border: none; color: var(--ut-text-muted); cursor: pointer;
    padding: .4rem; transition: transform .2s;
}
.ut-insight-item.open .ut-insight-toggle { transform: rotate(180deg); }
.ut-insight-body {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.ut-insight-item.open .ut-insight-body {
    max-height: 2000px;
    padding: 0 1.25rem 1.25rem;
}
.ut-insight-body p { font-size: .875rem; line-height: 1.7; margin-bottom: .75rem; }
.ut-insight-body h3, .ut-insight-body h4, .ut-insight-body h5 {
    font-size: .875rem;
    font-weight: 600;
    margin: 1rem 0 .4rem;
    color: var(--ut-primary);
}
.ut-insight-body ul, .ut-insight-body ol {
    padding-left: 1.25rem;
    margin: .5rem 0 .75rem;
}
.ut-insight-body li { font-size: .875rem; line-height: 1.6; margin-bottom: .2rem; }
.ut-insight-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--ut-border);
}
.ut-question { font-weight: 600; margin-bottom: .75rem; font-size: .875rem; }

/* AI result area */
.ut-ai-result {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: var(--ut-bg-hover);
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius-lg);
    font-size: .875rem;
    line-height: 1.7;
}
.ut-ai-result p { margin-bottom: .5rem; }

/* ===== PERFORMANCE ===== */
.ut-perf-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.ut-perf-stat {
    background: var(--ut-bg-card);
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius-lg);
    padding: 1rem;
    text-align: center;
}
.ut-perf-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ut-primary);
}
.ut-perf-stat-label {
    font-size: .75rem;
    color: var(--ut-text-muted);
    margin-top: .2rem;
}

/* ===== RESEARCH ===== */
.ut-research-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}
.ut-prompt-chip {
    background: var(--ut-bg-hover);
    border: 1px solid var(--ut-border);
    border-radius: 2rem;
    padding: .35rem .875rem;
    font-size: .8125rem;
    color: var(--ut-text-muted);
    cursor: pointer;
    transition: all .2s;
}
.ut-prompt-chip:hover {
    border-color: var(--ut-primary);
    color: var(--ut-primary);
    background: rgba(149,149,119,.1);
}
.ut-research-input-wrap {
    display: flex;
    gap: .75rem;
    align-items: center;
}
.ut-research-textarea {
    flex: 1;
    min-height: 80px;
    resize: none;
    align-self: stretch;
}
.ut-badge {
    display: inline-block;
    padding: .2rem .6rem;
    background: rgba(149,149,119,.2);
    color: var(--ut-primary);
    border-radius: .25rem;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ===== PLAYBOOK ===== */
/* Playbook two-column layout */
.ut-playbook-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}
.ut-playbook-main { min-width: 0; }
.ut-playbook-side { min-width: 0; }
.ut-playbook-starters-card {
    position: sticky;
    top: 1.5rem;
}

.ut-playbook-group { margin-bottom: 1.5rem; }
.ut-playbook-group-title {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    color: var(--ut-text-light);
    padding: .5rem 0;
    border-bottom: 1px solid var(--ut-border);
    margin-bottom: .75rem;
}

.ut-playbook-rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .875rem 1rem;
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius);
    margin-bottom: .5rem;
    transition: border-color .2s;
}
.ut-playbook-rule.ut-active { border-left: 3px solid var(--ut-primary); }
.ut-playbook-rule.ut-inactive { opacity: .5; }
.ut-rule-text { font-size: .875rem; flex: 1; }
.ut-rule-actions { display: flex; gap: .3rem; flex-shrink: 0; }

.ut-rule-chips {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.ut-rule-chip {
    background: var(--ut-bg-hover);
    border: 1px dashed var(--ut-border);
    border-radius: var(--ut-radius);
    padding: .625rem .875rem;
    font-size: .8125rem;
    color: var(--ut-text-muted);
    cursor: pointer;
    transition: all .2s;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.ut-rule-chip:hover {
    border-color: var(--ut-primary);
    color: var(--ut-text-main);
    background: rgba(149,149,119,.08);
}
.ut-rule-chip-category {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ut-primary);
}

/* ===== PROFILE & BILLING ===== */
.ut-info-grid { display: flex; flex-direction: column; gap: .75rem; }
.ut-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 0;
    border-bottom: 1px solid var(--ut-border);
    font-size: .875rem;
}
.ut-info-item:last-child { border-bottom: none; }
.ut-info-label { color: var(--ut-text-muted); }
.ut-info-value { font-weight: 500; }

/* Plan status */
.ut-plan-status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.ut-plan-name-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ut-text-main);
    margin-bottom: .5rem;
}
.ut-guest-badge {
    font-size: .75rem;
    background: rgba(149,149,119,.2);
    color: var(--ut-primary);
    padding: .2rem .6rem;
    border-radius: .25rem;
    font-weight: 600;
    vertical-align: middle;
}
.ut-plan-badge {
    display: inline-block;
    padding: .2rem .75rem;
    border-radius: 2rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .75rem;
}
.ut-plan-badge--active  { background: rgba(74,222,128,.15); color: var(--ut-success); }
.ut-plan-badge--expired { background: rgba(248,113,113,.15); color: var(--ut-danger); }

.ut-plan-usage-summary h4 {
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .75rem;
    color: var(--ut-text-muted);
}
.ut-usage-row {
    display: flex;
    justify-content: space-between;
    font-size: .875rem;
    padding: .4rem 0;
    border-bottom: 1px solid var(--ut-border);
}
.ut-usage-row:last-child { border-bottom: none; }

/* License input */
.ut-license-form {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: .5rem;
}
.ut-license-form .ut-input {
    flex: 1;
    min-width: 240px;
    font-family: monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Pricing cards */
.ut-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.ut-price-card {
    background: var(--ut-bg-card);
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius-xl);
    padding: 1.75rem;
    position: relative;
    transition: border-color .2s;
}
.ut-price-card--popular {
    border-color: var(--ut-primary);
    box-shadow: 0 0 0 1px var(--ut-primary);
}
.ut-current-plan { background: var(--ut-bg-hover); }
.ut-popular-badge {
    position: absolute;
    top: -1px; right: 1.5rem;
    background: var(--ut-primary);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .25rem .75rem;
    border-radius: 0 0 .5rem .5rem;
}
.ut-plan-card-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.ut-plan-card-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ut-primary);
    margin-bottom: .25rem;
}
.ut-plan-card-price span { font-size: .875rem; color: var(--ut-text-muted); font-weight: 400; }
.ut-plan-card-desc { font-size: .875rem; color: var(--ut-text-muted); margin-bottom: 1.25rem; }
.ut-plan-features { list-style: none; margin-bottom: 1.5rem; }
.ut-plan-features li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .875rem;
    padding: .35rem 0;
    color: var(--ut-text-muted);
}
.ut-plan-features .fa-check { color: var(--ut-success); }
.ut-feature-no { color: var(--ut-text-light); }

/* ===== AUTH PAGE ===== */
.ut-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ut-bg-main);
    padding: 1.5rem;
}
.ut-auth-card {
    width: 100%;
    max-width: 900px;
    background: var(--ut-bg-card);
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius-xl);
    overflow: hidden;
    box-shadow: var(--ut-shadow-lg);
}
.ut-auth-layout {
    display: flex;
    min-height: 560px;
}
.ut-auth-form-column {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 340px;
}
.ut-auth-header { text-align: center; margin-bottom: 2rem; }
.ut-auth-logo {
    height: 44px;
    width: auto;
    margin: 0 auto 1.25rem;
    display: block;
}
.ut-auth-header h1 {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: .4rem;
}
.ut-auth-header p { font-size: .9rem; color: var(--ut-text-muted); }
.ut-auth-body { flex: 1; }
.ut-auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ut-border);
    margin-top: 1.75rem;
    font-size: .75rem;
    color: var(--ut-text-muted);
}
.ut-auth-footer a { color: var(--ut-primary); text-decoration: none; }
.ut-auth-footer a:hover { text-decoration: underline; }
.ut-auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: .875rem;
    color: var(--ut-text-muted);
}
.ut-auth-switch a { color: var(--ut-primary); text-decoration: none; font-weight: 600; }
.ut-auth-switch a:hover { text-decoration: underline; }
.ut-form-options { margin-bottom: .75rem; }

/* Auth brand column */
.ut-auth-brand-column {
    flex: 1.1;
    background: var(--ut-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.ut-auth-brand-content { color: #f0efe8; max-width: 360px; }
.ut-auth-brand-content h3 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.ut-auth-brand-content p {
    font-size: .9375rem;
    opacity: .8;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.ut-feature-list { display: flex; flex-direction: column; gap: .875rem; }
.ut-feature-item { display: flex; align-items: center; gap: .875rem; }
.ut-feature-item i { width: 36px; height: 36px; background: rgba(255,255,255,.12); border-radius: var(--ut-radius); display: flex; align-items: center; justify-content: center; font-size: .875rem; flex-shrink: 0; }
.ut-feature-item span { font-size: .9rem; font-weight: 500; }

/* ===== UTILITIES ===== */
.ut-text-muted  { color: var(--ut-text-muted) !important; }
.ut-text-sm     { font-size: .8125rem !important; }
.ut-text-danger { color: var(--ut-danger) !important; }
.ut-text-center { text-align: center !important; }
.ut-mt-2 { margin-top: .5rem; }
.ut-mt-4 { margin-top: 1rem; }
.ut-mt-6 { margin-top: 1.5rem; }
.ut-mb-4 { margin-bottom: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .ut-dashboard-grid { grid-template-columns: 1fr; }
    .ut-pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .ut-sidebar {
        transform: translateX(-100%);
        z-index: 210;
        box-shadow: 4px 0 20px rgba(0,0,0,.3);
    }
    .ut-sidebar.active { transform: translateX(0); }
    .ut-close-sidebar { display: block; }
    .ut-sidebar-overlay.active { z-index: 205; }

    .ut-header { left: 0; }
    .ut-main-content { margin-left: 0; }
    .ut-mobile-toggle { display: block; }

    .ut-main-content-inner { padding: 1rem; padding-top: calc(var(--ut-header-height) + 1rem); }

    .ut-dashboard-greeting { flex-direction: column; align-items: flex-start; }
    .ut-dashboard-stats { grid-template-columns: 1fr 1fr; }
    .ut-playbook-grid { grid-template-columns: 1fr; }
    .ut-trade-row { grid-template-columns: 1fr auto; gap: .5rem; }
    .ut-trade-prices, .ut-trade-meta { display: none; }

    .ut-plan-status { grid-template-columns: 1fr; }
    .ut-auth-brand-column { display: none; }
    .ut-auth-form-column { min-width: 100%; padding: 2rem 1.5rem; }
    .ut-auth-card { max-width: 440px; }
    .ut-auth-layout { min-height: auto; }

    .ut-research-input-wrap { flex-direction: column; align-items: stretch; }
    .ut-action-bar { gap: .4rem; }
    .ut-slide-panel { width: 100%; }

    .ut-modal-dialog { max-width: 100%; max-height: 95vh; }
    .ut-modal { padding: .5rem; align-items: flex-end; }
    .ut-modal-dialog { border-radius: var(--ut-radius-xl) var(--ut-radius-xl) 0 0; }
}

/* ===== SAMPLE DATA BANNER ===== */
.ut-sample-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--ut-radius-lg);
    padding: .75rem 1.25rem;
    margin-bottom: 1.25rem;
}
.ut-sample-banner-inner {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.ut-sample-banner-inner > i {
    color: #f59e0b;
    font-size: 1rem;
    flex-shrink: 0;
}
.ut-sample-banner-inner > span {
    flex: 1;
    font-size: .875rem;
    color: var(--ut-text-main);
    min-width: 0;
}
.ut-sample-banner-clear {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #b45309 !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.ut-sample-banner-clear:hover {
    background: rgba(245, 158, 11, 0.25) !important;
}

/* ===== SAMPLE DATA MODAL ===== */
.ut-modal-dialog--sm {
    max-width: 460px;
}
.ut-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--ut-border);
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
}
.ut-sample-preview {
    font-size: .8125rem;
    color: var(--ut-text-muted);
    background: var(--ut-bg-hover);
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius);
    padding: .625rem .875rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    line-height: 1.6;
}
.ut-sample-preview i {
    color: var(--ut-primary);
    margin-top: .15rem;
    flex-shrink: 0;
}
.ut-sample-preview strong {
    color: var(--ut-text-main);
}

@media (max-width: 768px) {
    .ut-sample-banner-inner { gap: .5rem; }
    .ut-sample-banner-inner > span { font-size: .8125rem; }
    .ut-modal-dialog--sm { max-width: 100%; }
    .ut-modal-footer { flex-direction: column-reverse; }
    .ut-modal-footer .ut-btn { width: 100%; justify-content: center; }
}