/* Miami Vice embedded fonts */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/yMJMMIlzdpvBhQQL_SC3X9yhF25-T1ny_Cmxpg.ttf) format('truetype');
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/yMJMMIlzdpvBhQQL_SC3X9yhF25-T1nysimxpg.ttf) format('truetype');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/LDIxapCSOBg7S-QT7q4A.ttf) format('truetype');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/LDI2apCSOBg7S-QT7pbYF8Os.ttf) format('truetype');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/LDI2apCSOBg7S-QT7pa8FsOs.ttf) format('truetype');
}

/* ========================================
     LEAD PORTAL — RADICAL EDITION (DAYTIME)
     © 1987 OpenChoice Systems Corp.
     RADICAL. TUBULAR. TOTALLY AWESOME.
  ======================================== */

  

  body.theme-miami-vice{
    --neon-pink:    #E8006A;
    --neon-pink-lt: #FFD6EA;
    --neon-cyan:    #0099AA;
    --neon-cyan-lt: #D0F5F8;
    --neon-yellow:  #CC9900;
    --neon-yellow-lt: #FFF3CC;
    --neon-green:   #1A9900;
    --neon-green-lt: #D4F5CC;
    --neon-purple:  #8800CC;
    --neon-purple-lt: #EDD6FF;
    --neon-orange:  #CC5500;

    --white:   #FFFFFF;
    --off-white: #F5F5FA;
    --light:   #EEEEF8;
    --light2:  #E5E5F5;
    --light3:  #DCDCEF;
    --panel:   #F8F8FC;
    --panel2:  #F0F0F8;

    --text-primary:   #1A1A2E;
    --text-secondary: #44446A;
    --text-tertiary:  #8888AA;
    --border-color:   #C8C8E0;
    --border-strong:  #AAAACC;

    --bg-primary:   #FFFFFF;
    --bg-secondary: #F5F5FA;
    --bg-tertiary:  #EEEEF8;

    --primary:        var(--neon-pink);
    --primary-hover:  #BB0055;
    --success:        var(--neon-green);
    --warning:        var(--neon-yellow);
    --danger:         #CC0033;

    --shadow-xs: 2px 2px 0 rgba(136,0,204,0.12);
    --shadow-sm: 3px 3px 0 rgba(136,0,204,0.15), 0 1px 3px rgba(0,0,0,0.08);
    --shadow:    4px 4px 0 rgba(136,0,204,0.18), 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 5px 5px 0 rgba(136,0,204,0.2), 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 6px 6px 0 rgba(136,0,204,0.22);

    --font-display: 'Orbitron', 'Arial Black', sans-serif;
    --font-body:    'Rajdhani', 'Arial', sans-serif;
    --font-sans:    'Rajdhani', 'Arial', sans-serif;
    --font-mono:    'Courier New', monospace;

    --radius-sm: 0px;
    --radius:    2px;
    --radius-lg: 4px;
    --radius-xl: 6px;
    --radius-pill: 2px;
  }

  body.theme-miami-vice *, body.theme-miami-vice *::before, body.theme-miami-vice *::after{ box-sizing: border-box; margin: 0; padding: 0; }
  body.theme-miami-vice, body.theme-miami-vice{ height: 100%; }

  body.theme-miami-vice{
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--off-white);
    background-image:
      linear-gradient(rgba(136,0,204,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(136,0,204,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
  }

  body.theme-miami-vice::before{
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    background-size: 200% 100%;
    z-index: 9999;
  }

  body.theme-miami-vice .app{
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    opacity: 1;
    transition: none !important;
    transform: none !important;
  }

  body.theme-miami-vice.appLoading .app{ opacity: 0; pointer-events: none; }

  /* ==================== HEADER ==================== */
  body.theme-miami-vice .header{
    background: var(--white);
    border: 2px solid var(--border-color);
    border-top: 4px solid var(--neon-pink);
    border-radius: 0;
    padding: 16px 24px;
    margin-bottom: 4px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
  }

  body.theme-miami-vice .header::after{
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(136,0,204,0.04));
    pointer-events: none;
  }

  body.theme-miami-vice .brand{ display: flex; align-items: center; gap: 14px; }

  body.theme-miami-vice .brandLogo{
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: 2px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-weight: 900; font-size: 16px;
    font-family: var(--font-display);
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  }

  body.theme-miami-vice .brandText h1{
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
    color: var(--neon-pink);
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.theme-miami-vice .brandText .subtitle{
    font-size: 11px;
    color: var(--neon-purple);
    margin-top: 4px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
  }

  /* ==================== NAVIGATION ==================== */
  body.theme-miami-vice .nav{
    display: flex;
    gap: 2px;
    background: var(--light);
    padding: 4px;
    border: 2px solid var(--border-color);
    border-radius: 0;
  }

  body.theme-miami-vice .navBtn{
    padding: 8px 18px;
    background: transparent;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    transition: none;
  }

  body.theme-miami-vice .navBtn:hover{
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: var(--neon-cyan-lt);
  }

  body.theme-miami-vice .navBtn.active{
    background: var(--neon-pink);
    color: var(--white);
    border-color: var(--neon-pink);
    box-shadow: var(--shadow-xs);
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  }

  body.theme-miami-vice.crmLiteOff .navBtn[data-tab="tasks"]{ display: none; }
  body.theme-miami-vice.crmLiteOff #resultsCard{ display: none; }

  /* ==================== ACCOUNT MENU ==================== */
  body.theme-miami-vice .accountMenu{ position: relative; }

  body.theme-miami-vice .accountBtn{
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: var(--light);
    border: 2px solid var(--border-color);
    border-left: 3px solid var(--neon-purple);
    border-radius: 0;
    font-size: 12px; font-weight: 700;
    color: var(--text-primary);
    cursor: pointer; font-family: var(--font-display);
    letter-spacing: 0.06em;
    box-shadow: var(--shadow-xs);
  }

  body.theme-miami-vice .accountBtn:hover{ background: var(--neon-purple-lt); border-color: var(--neon-purple); }
  body.theme-miami-vice .accountStatus{ width: 8px; height: 8px; border-radius: 0; background: var(--neon-green); border: 1px solid rgba(0,0,0,0.2); }
  body.theme-miami-vice .accountBadge{ font-weight: 900; font-size: 13px; color: var(--neon-purple); font-family: var(--font-display); }
  body.theme-miami-vice .accountChevron{ width: 14px; height: 14px; color: var(--text-tertiary); }

  /* ==================== DROPDOWN ==================== */
  body.theme-miami-vice .dropdown{
    position: absolute; top: calc(100% + 4px); right: 0;
    min-width: 210px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-top: 3px solid var(--neon-pink);
    border-radius: 0;
    box-shadow: var(--shadow-md);
    padding: 4px;
    display: none; z-index: 1000;
  }
  body.theme-miami-vice .dropdown.open{ display: block; }

  body.theme-miami-vice .dropdownItem{
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; font-size: 12px; color: var(--text-secondary);
    cursor: pointer; text-decoration: none; font-family: var(--font-body);
    font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    border-left: 3px solid transparent;
  }
  body.theme-miami-vice .dropdownItem:hover{ color: var(--neon-cyan); background: var(--neon-cyan-lt); border-left-color: var(--neon-cyan); }
  body.theme-miami-vice .dropdownItem.danger{ color: var(--danger); }
  body.theme-miami-vice .dropdownItem.danger:hover{ background: var(--neon-pink-lt); border-left-color: var(--neon-pink); color: var(--neon-pink); }
  body.theme-miami-vice .dropdownDivider{ height: 2px; background: var(--border-color); margin: 4px 0; }

  body.theme-miami-vice .dropdownSubmenu{ background: var(--light); border: 1px solid var(--border-color); padding: 4px; margin: 2px 4px; display: none; }
  body.theme-miami-vice .dropdownSubmenu.open{ display: block; }
  body.theme-miami-vice .dropdownSubItem{ display: block; width: 100%; padding: 8px 12px; font-size: 11px; background: transparent; border: none; cursor: pointer; text-align: left; color: var(--text-secondary); font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-left: 3px solid transparent; }
  body.theme-miami-vice .dropdownSubItem:hover{ color: var(--neon-cyan); background: var(--neon-cyan-lt); border-left-color: var(--neon-cyan); }
  body.theme-miami-vice .dropdownChevron{ color: var(--text-tertiary); }

  body.theme-miami-vice .kbd{
    display: inline-flex; align-items: center; justify-content: center;
    padding: 2px 6px; background: var(--light2); border: 1px solid var(--border-color);
    font-size: 10px; font-family: var(--font-mono); color: var(--neon-purple);
    border-radius: 0; font-weight: 700; letter-spacing: 0.1em;
  }

  /* ==================== PAGES ==================== */
  body.theme-miami-vice .page{ display: none; }
  body.theme-miami-vice .page.active{ display: block; }
  body.theme-miami-vice .subpage{ display: none; }
  body.theme-miami-vice .subpage.active{ display: block; }

  /* ==================== CARDS ==================== */
  body.theme-miami-vice .card{
    background: var(--white);
    border: 2px solid var(--border-color);
    border-top: 3px solid var(--neon-cyan);
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
  }

  body.theme-miami-vice .cardHeader{
    padding: 14px 20px;
    border-bottom: 2px solid var(--border-color);
    background: var(--panel);
    position: relative;
  }

  body.theme-miami-vice .cardHeader::after{
    content: '';
    position: absolute;
    bottom: -2px; left: 20px;
    width: 40px; height: 3px;
    background: var(--neon-pink);
  }

  body.theme-miami-vice .cardTitle{
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 900;
    color: var(--neon-cyan);
    margin-bottom: 2px;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  body.theme-miami-vice .cardSubtitle{ font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600; }
  body.theme-miami-vice .cardBody{ padding: 18px 20px; }
  body.theme-miami-vice .cardHeaderRow{ display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }

  /* ==================== GRID ==================== */
  body.theme-miami-vice .grid{ display: grid; gap: 12px; }
  body.theme-miami-vice .grid > .card{ margin-bottom: 0; }
  body.theme-miami-vice .grid-2{ grid-template-columns: 1fr; }
  @media (min-width: 900px) { body.theme-miami-vice .grid-2{ grid-template-columns: 1.5fr 1fr; } }
  body.theme-miami-vice .stack{ display: flex; flex-direction: column; gap: 12px; }

  /* ==================== BUTTONS ==================== */
  body.theme-miami-vice .btn{
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 38px; padding: 0 20px;
    font-size: 11px; font-weight: 700; font-family: var(--font-display);
    border-radius: 0;
    cursor: pointer; border: 2px solid;
    letter-spacing: 0.1em; text-transform: uppercase;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    box-shadow: var(--shadow-xs);
  }

  body.theme-miami-vice .btnPrimary{ background: var(--neon-pink); color: var(--white); border-color: var(--primary-hover); }
  body.theme-miami-vice .btnPrimary:hover{ background: var(--primary-hover); box-shadow: var(--shadow-sm); }
  body.theme-miami-vice .btnSecondary{ background: var(--white); color: var(--neon-cyan); border-color: var(--neon-cyan); }
  body.theme-miami-vice .btnSecondary:hover{ background: var(--neon-cyan-lt); box-shadow: var(--shadow-sm); }
  body.theme-miami-vice .btnDanger{ background: var(--danger); color: var(--white); border-color: #AA0022; }
  body.theme-miami-vice .btnDanger:hover{ background: #AA0022; }
  body.theme-miami-vice .btnGroup{ display: flex; gap: 6px; flex-wrap: wrap; }

  body.theme-miami-vice .iconBtn{
    width: 34px; height: 34px;
    background: var(--neon-pink-lt); border: 2px solid var(--neon-pink);
    border-radius: 0; font-size: 18px; font-weight: 900; color: var(--neon-pink);
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-xs);
  }
  body.theme-miami-vice .iconBtn:hover{ background: var(--neon-pink); color: var(--white); }
  body.theme-miami-vice #addLeadRelationshipAddBtn{
    width: 34px; height: 34px;
    background: var(--neon-pink-lt); border: 2px solid var(--neon-pink);
    border-radius: 0; font-size: 18px; font-weight: 900; color: var(--neon-pink);
    box-shadow: var(--shadow-xs);
  }
  body.theme-miami-vice #addLeadRelationshipAddBtn:hover{ background: var(--neon-pink); color: var(--white); }

  /* ==================== FORM ELEMENTS ==================== */
  body.theme-miami-vice .input, body.theme-miami-vice .select, body.theme-miami-vice .textarea{
    width: 100%; height: 38px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-bottom: 3px solid var(--neon-cyan);
    border-radius: 0;
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  body.theme-miami-vice .input:focus, body.theme-miami-vice .select:focus{
    outline: none; border-color: var(--neon-pink); border-bottom-color: var(--neon-pink);
    box-shadow: 0 0 0 1px rgba(232,0,106,0.2);
  }
  body.theme-miami-vice .input::placeholder{ color: var(--text-tertiary); }
  body.theme-miami-vice .textarea{ min-height: 90px; height: auto; padding: 10px 12px; resize: vertical; }
  body.theme-miami-vice .textarea:focus{ outline: none; border-color: var(--neon-pink); box-shadow: 0 0 0 1px rgba(232,0,106,0.2); }
  body.theme-miami-vice .select{ height: 38px; appearance: auto; }

  /* ==================== TABLES ==================== */
  body.theme-miami-vice .tableContainer{ overflow-x: auto; }
  body.theme-miami-vice .tableScrollX{ overflow-x: auto; }

  body.theme-miami-vice .table{ width: 100%; border-collapse: collapse; font-size: 13px; }

  body.theme-miami-vice .table thead tr{ background: var(--text-primary); border-bottom: 3px solid var(--neon-pink); }

  body.theme-miami-vice .table th{
    padding: 11px 14px; text-align: left;
    color: var(--neon-cyan); font-weight: 700; font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.15em;
    font-family: var(--font-display); white-space: nowrap;
    border-right: 1px solid rgba(0,153,170,0.2);
  }
  body.theme-miami-vice .table th.sortable{ cursor: pointer; }
  body.theme-miami-vice .table th.sortable:hover{ color: var(--neon-yellow); background: rgba(255,255,255,0.05); }

  body.theme-miami-vice .table td{
    padding: 10px 14px; border-bottom: 1px solid var(--light2);
    color: var(--text-secondary); vertical-align: middle;
    border-right: 1px solid var(--light);
  }

  body.theme-miami-vice .table tr:hover td{ background: var(--neon-cyan-lt); color: var(--text-primary); }
  body.theme-miami-vice .table tr:nth-child(even) td{ background: var(--panel2); }
  body.theme-miami-vice .table tr:nth-child(even):hover td{ background: var(--neon-cyan-lt); color: var(--text-primary); }

  body.theme-miami-vice .tableEmpty{ padding: 24px; text-align: center; font-size: 12px; color: var(--text-tertiary); letter-spacing: 0.08em; font-family: var(--font-display); }

  /* ==================== FILTERS ==================== */
  body.theme-miami-vice .filters{ display: flex; gap: 10px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
  body.theme-miami-vice .searchInput{ position: relative; flex: 1; min-width: 200px; }
  body.theme-miami-vice .searchInput .input{ padding-left: 36px; }
  body.theme-miami-vice .searchIcon{ position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--neon-cyan); }

  /* ==================== BADGES ==================== */
  body.theme-miami-vice .badge{
    display: inline-block; padding: 3px 10px;
    border: 2px solid; font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-display);
    border-radius: 0;
    clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  }
  body.theme-miami-vice .badge.new{ background: var(--neon-cyan-lt); color: var(--neon-cyan); border-color: var(--neon-cyan); }
  body.theme-miami-vice .badge.contacted{ background: var(--neon-yellow-lt); color: var(--neon-yellow); border-color: var(--neon-yellow); }
  body.theme-miami-vice .badge.sold,
  body.theme-miami-vice .badge.won{ background: var(--neon-green-lt); color: var(--neon-green); border-color: var(--neon-green); }
  body.theme-miami-vice .badge.lost{ background: var(--neon-pink-lt); color: var(--neon-pink); border-color: var(--neon-pink); }

  body.theme-miami-vice .statusBadge{
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
    border: 2px solid; font-size: 10px; font-weight: 700; cursor: pointer;
    letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-display);
    border-radius: 0;
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  }
  body.theme-miami-vice .statusBadge.new{ background: var(--neon-cyan-lt); color: var(--neon-cyan); border-color: var(--neon-cyan); }
  body.theme-miami-vice .statusBadge.contacted{ background: var(--neon-yellow-lt); color: var(--neon-yellow); border-color: var(--neon-yellow); }
  body.theme-miami-vice .statusBadge.sold,
  body.theme-miami-vice .statusBadge.won{ background: var(--neon-green-lt); color: var(--neon-green); border-color: var(--neon-green); }
  body.theme-miami-vice .statusBadge.lost{ background: var(--neon-pink-lt); color: var(--neon-pink); border-color: var(--neon-pink); }
  body.theme-miami-vice .statusBadge:hover{ filter: brightness(0.92); }

  body.theme-miami-vice .statusDot{ width: 6px; height: 6px; border-radius: 0; background: currentColor; }

  body.theme-miami-vice .statusMenu{
    position: absolute; top: calc(100% + 4px); left: 0; min-width: 180px;
    background: var(--white); border: 2px solid var(--border-color);
    border-top: 3px solid var(--neon-pink);
    border-radius: 0; box-shadow: var(--shadow-md);
    padding: 4px; display: none; z-index: 100;
  }
  body.theme-miami-vice .statusMenu.open{ display: block; }
  body.theme-miami-vice .statusOption{
    display: flex; align-items: center; gap: 10px; padding: 9px 12px;
    font-size: 11px; font-weight: 700; cursor: pointer; letter-spacing: 0.08em;
    text-transform: uppercase; font-family: var(--font-display);
    border-left: 3px solid transparent; color: var(--text-secondary);
  }
  body.theme-miami-vice .statusOption:hover{ border-left-color: var(--neon-cyan); color: var(--neon-cyan); background: var(--neon-cyan-lt); }

  body.theme-miami-vice .priorityBadge{
    display: inline-flex; align-items: center; padding: 2px 8px;
    border: 2px solid; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-display); border-radius: 0;
  }
  body.theme-miami-vice .priorityBadge.high{ background: var(--neon-pink-lt); color: var(--neon-pink); border-color: var(--neon-pink); }
  body.theme-miami-vice .priorityBadge.medium{ background: var(--neon-yellow-lt); color: var(--neon-yellow); border-color: var(--neon-yellow); }
  body.theme-miami-vice .priorityBadge.low{ background: var(--light2); color: var(--text-tertiary); border-color: var(--border-color); }

  /* ==================== STAT CARDS ==================== */
  body.theme-miami-vice .statCard{ padding: 16px 20px; }
  body.theme-miami-vice .statCard.compact{ padding: 12px 20px; }
  body.theme-miami-vice .statLabel{
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    color: var(--neon-pink); margin-bottom: 6px; letter-spacing: 0.2em;
    font-family: var(--font-display);
  }
  body.theme-miami-vice .metricValue{
    font-family: var(--font-display);
    font-size: 32px; font-weight: 900; color: var(--neon-purple);
    line-height: 1; margin: 6px 0; letter-spacing: 0.05em;
  }
  body.theme-miami-vice .metricMeta{ font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

  /* ==================== LIVE VIEW ==================== */
  body.theme-miami-vice .liveViewList{
    max-height: 240px; overflow-y: auto;
    background: var(--text-primary);
    border: 2px solid var(--border-strong);
    border-left: 4px solid var(--neon-cyan);
    padding: 12px; font-family: var(--font-mono);
  }
  body.theme-miami-vice .liveViewEmpty{ color: var(--text-tertiary); font-size: 12px; }
  body.theme-miami-vice .liveViewItem{ padding: 4px 0; border-bottom: 1px solid rgba(0,245,255,0.08); font-size: 12px; color: var(--neon-cyan); letter-spacing: 0.04em; }
  body.theme-miami-vice .liveViewItem::before{ content: '> '; color: var(--neon-pink); font-weight: 700; }
  body.theme-miami-vice .liveViewNote{ font-size: 11px; color: var(--text-tertiary); margin-top: 10px; border-top: 1px solid var(--border-color); padding-top: 8px; letter-spacing: 0.06em; font-family: var(--font-body); }
  body.theme-miami-vice .liveViewTrack{ display: flex; flex-direction: column; gap: 0; }

  /* ==================== PAUSE ROW ==================== */
  body.theme-miami-vice .pauseRow{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  body.theme-miami-vice .pauseStatus{ font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--neon-green); letter-spacing: 0.1em; }
  body.theme-miami-vice .pauseStatus.paused{ color: var(--neon-pink); }
  body.theme-miami-vice .pauseControls{ display: flex; align-items: center; gap: 12px; }
  body.theme-miami-vice .pauseNote{ font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

  /* ==================== TOGGLE SWITCH ==================== */
  body.theme-miami-vice .toggleSwitch{ display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
  body.theme-miami-vice .toggleSwitch input[type="checkbox"]{ position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
  body.theme-miami-vice .toggleTrack{
    width: 44px; height: 22px;
    background: var(--light2); border: 2px solid var(--border-strong);
    border-radius: 0; position: relative; cursor: pointer;
  }
  body.theme-miami-vice .toggleTrack::after{
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; background: var(--border-strong);
  }
  body.theme-miami-vice .toggleSwitch input:checked + .toggleTrack{ border-color: var(--neon-cyan); background: var(--neon-cyan-lt); }
  body.theme-miami-vice .toggleSwitch input:checked + .toggleTrack::after{ left: calc(100% - 16px); background: var(--neon-cyan); }
  body.theme-miami-vice .toggleThumb{ display: none; }

  /* ==================== WINS / RECENT CONTACTS ==================== */
  body.theme-miami-vice .winsList{ display: flex; flex-direction: column; gap: 0; }
  body.theme-miami-vice .winsItem{
    display: flex; align-items: center; gap: 12px;
    padding: 9px 6px; border-bottom: 1px solid var(--light2); font-size: 13px;
    border-left: 3px solid transparent;
  }
  body.theme-miami-vice .winsItem:hover{ background: var(--neon-cyan-lt); border-left-color: var(--neon-cyan); }
  body.theme-miami-vice .winsAvatar{
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: var(--white); font-weight: 900; font-size: 13px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-family: var(--font-display);
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  }
  body.theme-miami-vice .winsName{ font-weight: 700; color: var(--text-primary); letter-spacing: 0.04em; }
  body.theme-miami-vice .winsMeta{ font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.06em; text-transform: uppercase; }
  body.theme-miami-vice .winsBadge{ margin-left: auto; }
  body.theme-miami-vice .winsChannelBadge{
    display: inline-block; padding: 2px 8px; border: 2px solid var(--neon-cyan);
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--neon-cyan); background: var(--neon-cyan-lt); font-family: var(--font-display);
  }

  /* ==================== SUBNAV ==================== */
  body.theme-miami-vice .subnav{
    display: flex; gap: 2px; background: var(--light2); padding: 3px;
    border: 2px solid var(--border-color);
  }
  body.theme-miami-vice .subnavBtn{
    padding: 6px 14px; background: transparent; border: 1px solid transparent;
    font-size: 10px; font-weight: 700; color: var(--text-tertiary);
    cursor: pointer; font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; border-radius: 0;
  }
  body.theme-miami-vice .subnavBtn.active{
    background: var(--neon-pink); color: var(--white); border-color: var(--primary-hover);
    box-shadow: var(--shadow-xs);
    clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  }
  body.theme-miami-vice .subnavBtn:hover:not(.active){ color: var(--neon-cyan); border-color: var(--neon-cyan); background: var(--neon-cyan-lt); }

  /* ==================== CONTACTS ==================== */
  body.theme-miami-vice .contactsHeaderRow{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  body.theme-miami-vice .contactsTitleRow{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  body.theme-miami-vice .crmLiteHint{ font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; }

  /* ==================== CONSOLE ==================== */
  body.theme-miami-vice .consoleHeader{ border-top-color: var(--neon-purple); }
  body.theme-miami-vice .consoleHeader .cardTitle{ color: var(--neon-purple); }
  body.theme-miami-vice .consoleHeader::after{ background: var(--neon-purple); }
  body.theme-miami-vice .optionsHeaderRow{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  body.theme-miami-vice .leadTypeToggle{ display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 12px; font-weight: 700; border-bottom: 2px solid var(--border-color); margin-bottom: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-display); color: var(--text-primary); }
  body.theme-miami-vice .leadTypeTabs{ margin-bottom: 12px; }
  body.theme-miami-vice .leadTypePanel{ display: none; }
  body.theme-miami-vice .leadTypePanel.active{ display: block; }

  /* ==================== TYPE CAP ==================== */
  body.theme-miami-vice .typeCapRow{ display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
  body.theme-miami-vice .typeCapLabel{ font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-display); }
  body.theme-miami-vice .typeCapEdit, body.theme-miami-vice .typeCapReset{
    padding: 5px 14px; background: var(--light); border: 2px solid var(--neon-cyan);
    font-size: 10px; font-weight: 700; cursor: pointer; font-family: var(--font-display);
    color: var(--neon-cyan); letter-spacing: 0.08em; text-transform: uppercase; border-radius: 0;
  }
  body.theme-miami-vice .typeCapEdit:hover{ background: var(--neon-cyan-lt); }
  body.theme-miami-vice .typeCapReset:hover{ background: var(--light2); }
  body.theme-miami-vice .currencyField{ position: relative; display: flex; align-items: center; gap: 8px; }
  body.theme-miami-vice .currencyField .input{ padding-left: 22px; max-width: 150px; height: 34px; }
  body.theme-miami-vice .currencySymbol{ position: absolute; left: 10px; font-size: 14px; color: var(--neon-green); font-weight: 900; pointer-events: none; }
  body.theme-miami-vice .typeCapControls{ display: flex; gap: 6px; }
  body.theme-miami-vice .typeCapWarn{ font-size: 12px; color: var(--neon-pink); font-weight: 700; }

  /* ==================== SCHEDULE ==================== */
  body.theme-miami-vice .scheduleHeaderRow{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  body.theme-miami-vice .scheduleTz{ font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; }
  body.theme-miami-vice .scheduleTableContainer{ overflow-x: auto; }
  body.theme-miami-vice .scheduleMainRow td{ background: transparent; }
  body.theme-miami-vice .scheduleMainRow.expanded td{ background: var(--neon-cyan-lt) !important; }
  body.theme-miami-vice .scheduleMainRow:hover td{ background: var(--panel2); }
  body.theme-miami-vice .scheduleDetailRow > td{ padding: 0 !important; }
  body.theme-miami-vice .scheduleDetailPane{ overflow: hidden; max-height: 0; transition: none; }
  body.theme-miami-vice .scheduleDetailPane.open{ max-height: 600px; }
  body.theme-miami-vice .scheduleDetailInner{ padding: 16px 20px 20px; border-top: 2px solid var(--border-color); background: var(--panel); }
  body.theme-miami-vice .scheduleDetailControls{ display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 14px; }
  body.theme-miami-vice .scheduleDetailGroup{ display: flex; flex-direction: column; gap: 4px; }
  body.theme-miami-vice .scheduleDetailGroupLabel{ font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--neon-cyan); font-family: var(--font-display); }
  body.theme-miami-vice .scheduleDetailTimeInput{ max-width: 140px; }
  body.theme-miami-vice .scheduleDayToggle{ display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
  body.theme-miami-vice .scheduleDayLabel{ font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-display); font-size: 11px; color: var(--text-primary); }
  body.theme-miami-vice .scheduleDayClickArea{ display: flex; align-items: center; gap: 8px; user-select: none; cursor: pointer; }
  body.theme-miami-vice .scheduleDayChevron{ color: var(--text-tertiary); display: inline-flex; }
  body.theme-miami-vice .scheduleMainRow.expanded .scheduleDayChevron{ color: var(--neon-cyan); }
  body.theme-miami-vice .scheduleDayToggleDisplay{ font-size: 10px; font-weight: 700; padding: 2px 8px; margin-left: 6px; border: 2px solid; font-family: var(--font-display); letter-spacing: 0.1em; }
  body.theme-miami-vice .scheduleDayToggleDisplay.on{ background: var(--neon-green-lt); color: var(--neon-green); border-color: var(--neon-green); }
  body.theme-miami-vice .scheduleDayToggleDisplay.off{ background: var(--light2); color: var(--text-tertiary); border-color: var(--border-color); }
  body.theme-miami-vice .scheduleCapInput{ max-width: 110px; }
  body.theme-miami-vice .scheduleSpendSummary{ font-size: 11px; color: var(--text-tertiary); line-height: 1.35; letter-spacing: 0.06em; }
  body.theme-miami-vice .scheduleTimeDisplay{ font-size: 13px; color: var(--neon-cyan); font-family: var(--font-mono); }
  body.theme-miami-vice .scheduleTimeDisplay.disabled{ color: var(--text-tertiary); }

  /* ==================== SCHEDULE TIMELINE ==================== */
  body.theme-miami-vice .scheduleTimeline{ border: 2px solid var(--border-color); border-top: 3px solid var(--neon-cyan); background: var(--white); }
  body.theme-miami-vice .scheduleTimelineHeader{ padding: 6px 12px; background: var(--panel); border-bottom: 1px solid var(--border-color); font-size: 10px; font-weight: 700; color: var(--neon-cyan); font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
  body.theme-miami-vice .scheduleTimelineTrack{ padding: 14px 12px 10px; position: relative; }
  body.theme-miami-vice .scheduleTimelineAxis{ display: flex; justify-content: space-between; margin-bottom: 6px; }
  body.theme-miami-vice .scheduleTimelineAxisTick{ font-size: 9px; color: var(--text-tertiary); text-align: center; flex: 1; letter-spacing: 0.06em; font-family: var(--font-display); }
  body.theme-miami-vice .scheduleTimelineBarSlot{ position: relative; height: 20px; background: var(--light2); margin-bottom: 3px; overflow: hidden; border: 1px solid var(--border-color); }
  body.theme-miami-vice .scheduleTimelineBar{ position: absolute; top: 0; height: 100%; display: flex; align-items: center; padding: 0 8px; overflow: hidden; }
  body.theme-miami-vice .scheduleTimelineBarLabel{ font-size: 9px; font-weight: 700; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); letter-spacing: 0.06em; }
  body.theme-miami-vice .scheduleTimelineLegend{ display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 12px; border-top: 1px solid var(--border-color); background: var(--panel); }
  body.theme-miami-vice .scheduleTimelineLegendItem{ display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
  body.theme-miami-vice .scheduleTimelineLegendDot{ width: 8px; height: 8px; flex-shrink: 0; }
  body.theme-miami-vice .scheduleTimelineEmpty{ padding: 10px; font-size: 11px; color: var(--text-tertiary); text-align: center; letter-spacing: 0.08em; }

  /* ==================== LEAD PROFILES ==================== */
  body.theme-miami-vice .leadProfilesGrid{ display: flex; gap: 8px; flex-wrap: wrap; }
  body.theme-miami-vice .leadProfileAddBtn{
    width: 64px; height: 64px; background: var(--neon-pink-lt); border: 2px dashed var(--neon-pink);
    font-size: 26px; font-weight: 900; cursor: pointer; color: var(--neon-pink);
    display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  }
  body.theme-miami-vice .leadProfileAddBtn:hover{ background: var(--neon-pink); color: var(--white); border-style: solid; }
  body.theme-miami-vice .leadProfileCard{
    width: 64px; height: 64px; background: var(--panel); border: 2px solid var(--border-color);
    cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.06em;
    font-family: var(--font-display); text-transform: uppercase;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  }
  body.theme-miami-vice .leadProfileCard.active{ border-color: var(--neon-cyan); color: var(--neon-cyan); background: var(--neon-cyan-lt); box-shadow: var(--shadow-xs); }
  body.theme-miami-vice .leadProfileCard:hover:not(.active){ border-color: var(--neon-cyan); background: var(--neon-cyan-lt); }

  /* ==================== LEAD PROFILE WIZARD ==================== */
  body.theme-miami-vice .leadProfileWizard{ display: grid; gap: 12px; }
  @media (min-width: 900px) { body.theme-miami-vice .leadProfileWizard{ grid-template-columns: 1fr 1fr; } }
  @media (max-width: 860px) { body.theme-miami-vice .leadProfileWizard{ grid-template-columns: 1fr; } }
  body.theme-miami-vice .leadProfileBody{ display: flex; flex-direction: column; gap: 12px; width: 100%; }
  body.theme-miami-vice .profileDayList{ display: grid; gap: 8px; }
  body.theme-miami-vice .profileDayRow{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  body.theme-miami-vice .profileDayLabel{ font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-display); color: var(--text-secondary); }
  body.theme-miami-vice .profileSpendTotal{ font-size: 11px; color: var(--text-tertiary); margin-top: 6px; letter-spacing: 0.08em; }
  body.theme-miami-vice .profileScheduleRow{ display: grid; grid-template-columns: minmax(110px, 1fr) 60px 130px 130px; align-items: center; gap: 10px; }

  /* ==================== MULTI-SELECT ==================== */
  body.theme-miami-vice .msRow{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
  body.theme-miami-vice .msRow.single{ grid-template-columns: 1fr; }
  body.theme-miami-vice .msWrap{ position: relative; }
  body.theme-miami-vice .msButton{
    width: 100%; height: 38px; display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 0 14px; background: var(--white); border: 2px solid var(--border-color);
    border-bottom: 3px solid var(--neon-cyan); cursor: pointer; font-size: 13px; font-weight: 700;
    color: var(--text-secondary); font-family: var(--font-body); letter-spacing: 0.04em;
  }
  body.theme-miami-vice .msButton:hover{ border-color: var(--neon-cyan); color: var(--neon-cyan); }
  body.theme-miami-vice .msCount{ font-size: 10px; font-weight: 900; color: var(--white); padding: 1px 8px; background: var(--neon-cyan); font-family: var(--font-display); letter-spacing: 0.06em; }

  body.theme-miami-vice .msMenu{ position: static; margin-top: 4px; background: var(--white); border: 2px solid var(--neon-cyan); box-shadow: var(--shadow-md); max-height: 260px; overflow: auto; display: none; z-index: 200; padding: 6px; }
  body.theme-miami-vice .msMenu.open{ display: block; }
  body.theme-miami-vice #profileStatePicker .msMenu{ position: absolute; top: calc(100% + 4px); left: 0; right: 0; margin-top: 0; z-index: 500; }
  body.theme-miami-vice .msSearch{ position: sticky; top: 0; background: var(--white); padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--border-color); }
  body.theme-miami-vice .msSearch input{ width: 100%; height: 34px; border: 2px solid var(--border-color); border-bottom: 3px solid var(--neon-cyan); padding: 0 12px; font-size: 13px; background: var(--white); color: var(--text-primary); font-family: var(--font-body); }
  body.theme-miami-vice .msSearch input:focus{ outline: none; border-color: var(--neon-pink); }
  body.theme-miami-vice .msItem{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; cursor: pointer; font-size: 12px; border-left: 3px solid transparent; }
  body.theme-miami-vice .msItem:hover{ background: var(--neon-cyan-lt); color: var(--neon-cyan); border-left-color: var(--neon-cyan); }
  body.theme-miami-vice .msItemLeft{ display: flex; align-items: center; gap: 10px; }
  body.theme-miami-vice .msCode{ font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--neon-cyan); width: 32px; letter-spacing: 0.06em; }
  body.theme-miami-vice .msSelectedBox{ min-height: 38px; border: 2px solid var(--border-color); background: var(--white); padding: 6px 12px; font-size: 13px; color: var(--text-tertiary); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  body.theme-miami-vice .msEmpty{ color: var(--text-tertiary); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

  /* ==================== STATE CAP TABLE ==================== */
  body.theme-miami-vice .stateCapTable{ margin-top: 10px; border: 2px solid var(--border-color); border-top: 3px solid var(--neon-cyan); overflow: hidden; background: var(--white); }
  body.theme-miami-vice .stateCapTable table{ width: 100%; border-collapse: collapse; }
  body.theme-miami-vice .stateCapTable th, body.theme-miami-vice .stateCapTable td{ padding: 8px 12px; border-bottom: 1px solid var(--light2); font-size: 12px; }
  body.theme-miami-vice .stateCapTable th{ text-align: left; background: var(--text-primary); color: var(--neon-cyan); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-display); }
  body.theme-miami-vice .stateSpendInput{ max-width: 100px; }
  body.theme-miami-vice .bizSpendInput{ max-width: 100px; }

  /* ==================== BILLING ==================== */
  body.theme-miami-vice .billingSection{ margin-bottom: 14px; }
  body.theme-miami-vice .billingRow{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--light2); font-size: 13px; }
  body.theme-miami-vice .billingLabel{ color: var(--text-secondary); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; font-family: var(--font-display); }
  body.theme-miami-vice .billingValue{ font-family: var(--font-display); font-weight: 900; color: var(--neon-green); font-size: 20px; }
  body.theme-miami-vice .billingActions{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
  body.theme-miami-vice .addFundsRow{ display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
  body.theme-miami-vice .referralBox{ border: 2px solid var(--neon-yellow); border-top: 3px solid var(--neon-yellow); padding: 14px; background: var(--neon-yellow-lt); margin-top: 12px; }

  /* ==================== SETTINGS ==================== */
  body.theme-miami-vice .settingsGrid{ display: grid; gap: 12px; }
  @media (min-width: 720px) { body.theme-miami-vice .settingsGrid{ grid-template-columns: 1fr 1fr; } }
  body.theme-miami-vice .formGroup{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
  body.theme-miami-vice .formLabel{ font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--neon-cyan); font-family: var(--font-display); }
  body.theme-miami-vice .formRow{ display: flex; gap: 10px; align-items: flex-start; }
  body.theme-miami-vice .formHint{ font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.06em; margin-top: 2px; }
  body.theme-miami-vice .formDivider{ height: 3px; background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple)); margin: 14px 0; }
  body.theme-miami-vice .totpQr{ display: inline-flex; padding: 10px; border: 2px solid var(--neon-cyan); background: var(--white); box-shadow: var(--shadow-xs); }

  /* ==================== TASK DRAWER ==================== */
  body.theme-miami-vice .taskDrawer{ position: fixed; inset: 0; z-index: 1200; pointer-events: none; }
  body.theme-miami-vice .taskDrawer.open{ pointer-events: auto; }
  body.theme-miami-vice .taskDrawerBackdrop{ position: absolute; inset: 0; background: rgba(26,26,46,0.5); display: none; }
  body.theme-miami-vice .taskDrawer.open .taskDrawerBackdrop{ display: block; }
  body.theme-miami-vice .taskDrawerPanel{ position: absolute; top: 0; right: 0; bottom: 0; width: 380px; background: var(--white); border-left: 3px solid var(--neon-pink); box-shadow: -4px 0 20px rgba(232,0,106,0.15); overflow-y: auto; transform: translateX(100%); transition: none; display: flex; flex-direction: column; }
  body.theme-miami-vice .taskDrawer.open .taskDrawerPanel{ transform: translateX(0); }
  body.theme-miami-vice .taskDrawerHeader{ display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--neon-pink); border-bottom: 3px solid var(--primary-hover); gap: 12px; }
  body.theme-miami-vice .taskDrawerTitle{ font-family: var(--font-display); font-size: 13px; font-weight: 900; color: var(--white); letter-spacing: 0.1em; text-transform: uppercase; }
  body.theme-miami-vice .taskDrawerSubtitle{ font-size: 11px; color: rgba(255,255,255,0.75); letter-spacing: 0.08em; text-transform: uppercase; }
  body.theme-miami-vice .taskDrawerBody{ flex: 1; overflow-y: auto; padding: 16px 20px; }
  body.theme-miami-vice .taskDrawerSection{ margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--light2); }
  body.theme-miami-vice .taskDrawerForm{ display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
  body.theme-miami-vice .taskDrawerRow{ display: flex; gap: 8px; }
  body.theme-miami-vice .taskDrawerActions{ display: flex; gap: 8px; }
  body.theme-miami-vice .taskCompleteRow{ display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 12px; cursor: pointer; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-display); }

  /* ==================== MODALS ==================== */
  body.theme-miami-vice .modal{ position: fixed; inset: 0; z-index: 1300; display: none; align-items: center; justify-content: center; background: rgba(26,26,46,0.55); }
  body.theme-miami-vice .modal.open{ display: flex; }
  body.theme-miami-vice .modalBox{ background: var(--white); border: 2px solid var(--border-color); border-top: 4px solid var(--neon-pink); box-shadow: var(--shadow-lg); max-width: 520px; width: 95%; max-height: 90vh; overflow-y: auto; }
  body.theme-miami-vice .modalHeader{ display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; background: var(--neon-pink); border-bottom: 2px solid var(--primary-hover); gap: 12px; }
  body.theme-miami-vice .modalTitle{ font-family: var(--font-display); font-size: 14px; font-weight: 900; color: var(--white); letter-spacing: 0.1em; text-transform: uppercase; }
  body.theme-miami-vice .modalClose{ width: 30px; height: 30px; background: rgba(255,255,255,0.25); border: 2px solid rgba(255,255,255,0.5); color: var(--white); font-size: 16px; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  body.theme-miami-vice .modalClose:hover{ background: rgba(255,255,255,0.4); }
  body.theme-miami-vice .modalBody{ padding: 20px 22px; }
  body.theme-miami-vice .modalFooter{ display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 2px solid var(--border-color); }

  /* ==================== MISC ==================== */
  body.theme-miami-vice .small{ font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.06em; }
  body.theme-miami-vice .mutedNote{ font-size: 11px; color: var(--text-tertiary); }
  body.theme-miami-vice .mb16{ margin-bottom: 14px; }
  body.theme-miami-vice .mt16{ margin-top: 14px; }
  body.theme-miami-vice .mb24{ margin-bottom: 18px; }
  body.theme-miami-vice .hidden{ display: none !important; }
  body.theme-miami-vice *, body.theme-miami-vice *::before, body.theme-miami-vice *::after{ transition: none !important; animation: none !important; }
  body.theme-miami-vice hr{ border: none; border-top: 2px solid var(--border-color); margin: 14px 0; }

  /* ==================== FOOTER ==================== */
  body.theme-miami-vice .footer{ margin-top: 20px; padding: 14px 0 8px; text-align: center; color: var(--text-tertiary); font-size: 10px; border-top: 2px solid var(--border-color); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; font-family: var(--font-display); }
  body.theme-miami-vice .footer a{ color: var(--neon-cyan); text-decoration: none; margin: 0 6px; }
  body.theme-miami-vice .footer a:hover{ color: var(--neon-pink); }

  /* ==================== MINI SELECT ==================== */
  body.theme-miami-vice .miniSelect{ height: 30px; font-size: 11px; padding: 0 8px; background: var(--white); border: 2px solid var(--border-color); border-bottom: 3px solid var(--neon-cyan); color: var(--neon-cyan); font-family: var(--font-display); letter-spacing: 0.06em; appearance: auto; }

  /* ==================== BODY TOOLTIP ==================== */
  body.theme-miami-vice .bodyTooltip{ position: fixed; z-index: 9999; background: var(--text-primary); border: 2px solid var(--neon-cyan); box-shadow: var(--shadow); padding: 8px 14px; font-size: 11px; color: var(--neon-cyan); pointer-events: none; display: none; max-width: 220px; letter-spacing: 0.06em; font-family: var(--font-display); }
  body.theme-miami-vice .bodyTooltipArrow{ display: none; }

  /* ==================== DASHBOARD ==================== */
  body.theme-miami-vice .dashboardCards{ display: flex; flex-direction: column; gap: 12px; }
  body.theme-miami-vice .takingSummary{ font-size: 13px; }
  body.theme-miami-vice .takingItem{ padding: 6px 0; border-bottom: 1px solid var(--light2); font-size: 13px; }

  /* ==================== STORE ==================== */
  body.theme-miami-vice .storeGrid{ display: flex; flex-direction: column; gap: 14px; }
  body.theme-miami-vice .storeCard{ border: 2px solid var(--border-color); border-top: 3px solid var(--neon-purple); background: var(--white); display: flex; gap: 16px; padding: 16px; align-items: stretch; box-shadow: var(--shadow-sm); }
  body.theme-miami-vice .storeImage{ flex: 0 0 220px; height: 170px; background: var(--light2); border: 2px solid var(--border-color); background-size: cover; background-position: center; }
  body.theme-miami-vice .storeBody{ display: flex; flex-direction: column; gap: 10px; flex: 1; }
  body.theme-miami-vice .storeTitle{ font-family: var(--font-display); font-size: 15px; font-weight: 900; color: var(--neon-purple); letter-spacing: 0.06em; text-transform: uppercase; }
  body.theme-miami-vice .storePrice{ font-size: 20px; font-weight: 900; color: var(--neon-green); font-family: var(--font-display); letter-spacing: 0.06em; }
  body.theme-miami-vice .storeDesc{ font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
  body.theme-miami-vice .storeDivider{ height: 2px; width: 100%; background: var(--border-color); margin: 4px 0; }
  body.theme-miami-vice .storeActions{ margin-top: auto; padding-top: 8px; }
  body.theme-miami-vice .storeBtn{ display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 40px; background: var(--neon-purple); color: var(--white); text-decoration: none; font-size: 11px; font-weight: 900; border: 2px solid #6600AA; font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%); box-shadow: var(--shadow-xs); }
  body.theme-miami-vice .storeBtn:hover{ background: #6600AA; }
  @media (max-width: 900px) { body.theme-miami-vice .storeCard{ flex-direction: column; } body.theme-miami-vice .storeImage{ width: 100%; flex: 0 0 auto; height: 180px; } }

  /* ==================== ACCOUNT ACTIONS ==================== */
  body.theme-miami-vice .accountActionsRow{ display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
  body.theme-miami-vice .accountActionsPrimary{ display: flex; flex-direction: column; gap: 10px; }
  body.theme-miami-vice .accountActionsDanger{ margin-left: auto; text-align: right; max-width: 320px; }
  @media (max-width: 720px) { body.theme-miami-vice .accountActionsRow{ flex-direction: column; align-items: stretch; } body.theme-miami-vice .accountActionsDanger{ margin-left: 0; text-align: left; } }

  /* ==================== ADVANCED SETTINGS ==================== */
  body.theme-miami-vice .advancedSettings{ margin-top: 18px; }
  body.theme-miami-vice .advancedToggle{ width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border: 2px solid var(--border-color); border-left: 4px solid var(--neon-cyan); background: var(--panel); cursor: pointer; font-size: 11px; font-weight: 700; color: var(--neon-cyan); font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
  body.theme-miami-vice .advancedToggle:hover{ background: var(--neon-cyan-lt); }
  body.theme-miami-vice .advancedPanel{ display: none; padding: 14px; border: 2px solid var(--border-color); border-top: none; background: var(--panel); }
  body.theme-miami-vice .advancedPanel.open{ display: block; }

  /* ==================== HEAT GRID ==================== */
  body.theme-miami-vice .hg-grid{ display: flex; gap: 2px; flex-wrap: wrap; }
  body.theme-miami-vice .hg-zone{ border-radius: 0; }
  body.theme-miami-vice .hg-zone-text{ font-size: 9px; font-weight: 700; color: var(--text-tertiary); text-align: center; margin-top: 4px; letter-spacing: 0.06em; font-family: var(--font-display); }
  body.theme-miami-vice .profileCapLegend{ display: flex; gap: 12px; flex-wrap: wrap; padding: 6px; border-bottom: 1px solid var(--border-color); }
  body.theme-miami-vice .profileCapLegendItem{ display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-secondary); letter-spacing: 0.06em; }
  body.theme-miami-vice .profileCapLegendSwatch{ width: 10px; height: 10px; flex-shrink: 0; }
  body.theme-miami-vice .profileCapLegendNote{ font-size: 11px; color: var(--text-tertiary); padding: 0 6px 4px; letter-spacing: 0.06em; }
  body.theme-miami-vice .profileCapLegendWrap{ margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
  body.theme-miami-vice .profileCapLegendDock{ width: 100%; border-bottom: none; padding-bottom: 2px; }
  body.theme-miami-vice .profileCapsAvg{ display: none; }

  /* ==================== BIZ ==================== */
  body.theme-miami-vice .bizTypeList{ display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
  body.theme-miami-vice .bizTypeItem{ display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--light2); font-size: 13px; }
  body.theme-miami-vice .bizTypeToggle{ display: flex; align-items: center; gap: 8px; cursor: pointer; flex: 1; }
  body.theme-miami-vice .leadBizRow{ display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--light2); font-size: 13px; }

  /* ==================== SOURCE COL ==================== */
  body.theme-miami-vice .sourceCol{ display: none; }
  @media (min-width: 900px) { body.theme-miami-vice .sourceCol{ display: table-cell; } }

  /* ==================== TASK REMINDER ==================== */
  body.theme-miami-vice .taskReminder{ position: fixed; bottom: 20px; right: 20px; display: flex; align-items: center; gap: 12px; background: var(--white); border: 2px solid var(--neon-yellow); border-top: 3px solid var(--neon-yellow); padding: 12px 16px; box-shadow: var(--shadow-md); max-width: 360px; opacity: 0; pointer-events: none; z-index: 1300; }
  body.theme-miami-vice .taskReminder.show{ opacity: 1; pointer-events: auto; }
  body.theme-miami-vice .taskReminderIcon{ width: 34px; height: 34px; background: var(--neon-yellow-lt); border: 2px solid var(--neon-yellow); color: var(--neon-yellow); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
  body.theme-miami-vice .taskReminderTitle{ font-weight: 700; color: var(--neon-yellow); font-size: 12px; font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
  body.theme-miami-vice .taskReminderMeta{ font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
  body.theme-miami-vice .taskReminderAction{ margin-left: auto; border: 2px solid var(--neon-yellow); background: var(--neon-yellow-lt); padding: 5px 12px; font-size: 10px; font-weight: 700; cursor: pointer; color: var(--neon-yellow); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; }
  body.theme-miami-vice .taskReminderAction:hover{ background: var(--neon-yellow); color: var(--white); }
  body.theme-miami-vice .taskReminderClose{ border: none; background: transparent; color: var(--text-tertiary); font-size: 16px; cursor: pointer; padding: 4px 6px; }

  /* ==================== INFO GRID ==================== */
  body.theme-miami-vice .infoGrid{ display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  body.theme-miami-vice .infoItem{ background: var(--panel); border: 2px solid var(--border-color); border-left: 4px solid var(--neon-cyan); padding: 12px 14px; }
  body.theme-miami-vice .infoLabel{ font-size: 9px; font-weight: 700; color: var(--neon-cyan); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.15em; font-family: var(--font-display); }
  body.theme-miami-vice .infoValue{ font-size: 14px; font-weight: 700; color: var(--text-primary); }

  /* ==================== ACTION GRID ==================== */
  body.theme-miami-vice .actionGrid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
  body.theme-miami-vice .actionBtn{ display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: var(--panel); border: 2px solid var(--border-color); border-left: 3px solid var(--neon-purple); font-size: 11px; font-weight: 700; cursor: pointer; color: var(--text-secondary); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; }
  body.theme-miami-vice .actionBtn:hover{ border-left-color: var(--neon-cyan); color: var(--neon-cyan); background: var(--neon-cyan-lt); }

  /* ==================== TIMELINE ==================== */
  body.theme-miami-vice .timeline{ margin-top: 12px; }
  body.theme-miami-vice .timelineItem{ display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--light2); }
  body.theme-miami-vice .timelineItem:last-child{ border-bottom: none; }
  body.theme-miami-vice .timelineIcon{ width: 38px; height: 38px; background: var(--neon-pink-lt); border: 2px solid var(--neon-pink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
  body.theme-miami-vice .timelineContent{ flex: 1; }
  body.theme-miami-vice .timelineTitle{ font-size: 11px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; }
  body.theme-miami-vice .timelineDesc{ font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
  body.theme-miami-vice .timelineTime{ font-size: 11px; color: var(--text-tertiary); font-family: var(--font-mono); letter-spacing: 0.06em; }

  /* NOTES */
  body.theme-miami-vice .notesList{ margin-top: 12px; }
  body.theme-miami-vice .note{ background: var(--panel); border: 2px solid var(--border-color); border-left: 4px solid var(--neon-purple); padding: 12px 14px; margin-bottom: 8px; }
  body.theme-miami-vice .noteHead{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  body.theme-miami-vice .noteAuthor{ font-size: 11px; font-weight: 700; color: var(--neon-purple); font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
  body.theme-miami-vice .noteTime{ font-size: 11px; color: var(--text-tertiary); font-family: var(--font-mono); }
  body.theme-miami-vice .noteText{ font-size: 14px; line-height: 1.5; color: var(--text-secondary); }

  /* ==================== PAGE-SPECIFIC HEADERS ==================== */
  body.theme-miami-vice #page-settings .cardHeader{ border-top-color: var(--neon-yellow); }
  body.theme-miami-vice #page-settings .cardTitle{ color: var(--neon-yellow); }
  body.theme-miami-vice #page-settings .cardHeader::after{ background: var(--neon-yellow); }
  body.theme-miami-vice #page-billing .cardHeader{ border-top-color: var(--neon-green); }
  body.theme-miami-vice #page-billing .cardTitle{ color: var(--neon-green); }
  body.theme-miami-vice #page-billing .cardHeader::after{ background: var(--neon-green); }
  body.theme-miami-vice .scheduleCard .cardHeader{ border-top-color: var(--neon-purple); }
  body.theme-miami-vice .scheduleCard .cardTitle{ color: var(--neon-purple); }
  body.theme-miami-vice .scheduleCard .cardHeader::after{ background: var(--neon-purple); }

  /* DIMMED THEME */
  body.theme-miami-vice.theme-dimmed{ background: var(--light2); }

  /* SCROLLBARS */
  body.theme-miami-vice ::-webkit-scrollbar{ width: 6px; height: 6px; }
  body.theme-miami-vice ::-webkit-scrollbar-track{ background: var(--light2); }
  body.theme-miami-vice ::-webkit-scrollbar-thumb{ background: var(--neon-pink); }
  body.theme-miami-vice ::-webkit-scrollbar-thumb:hover{ background: var(--neon-cyan); }

/* Miami Vice: keep account dropdown above cards */
body.theme-miami-vice .header {
  position: relative;
  z-index: 50;
  overflow: visible;
}
body.theme-miami-vice .accountMenu {
  position: relative;
  z-index: 60;
}
body.theme-miami-vice .accountMenu .dropdown {
  z-index: 70;
}
