/* CYRIUS Premium Light Orange — normalization layer
 * Applies ONLY to html[data-theme="light"].
 * Dark Orange Black theme is untouched.
 */

html[data-theme='light']{
  color-scheme:light!important;

  --cy-orange:#e96b00!important;
  --cy-orange-2:#ff8a00!important;
  --cy-orange-3:#f6ae55!important;
  --cy-orange-deep:#c85200!important;

  --cy22-primary:#e96b00!important;
  --cy22-cyan:#f3a13e!important;
  --cy-premium-blue:#e96b00!important;
  --cy-premium-blue-2:#ff8a00!important;
  --cy-premium-violet:#c85200!important;
  --cy-premium-cyan:#f3a13e!important;

  --bg:#f5f2ed!important;
  --bg2:#fbf9f6!important;
  --panel:#ffffff!important;
  --panel-strong:#ffffff!important;
  --panel-hover:#fffaf4!important;

  --line:rgba(78,57,40,.11)!important;
  --line-strong:rgba(78,57,40,.20)!important;

  --text:#201a15!important;
  --muted:#776b61!important;
  --blue:#e96b00!important;
  --violet:#c85200!important;
  --cyan:#e99128!important;
  --yellow:#bd7414!important;

  --surface:#ffffff!important;
  --surface-soft:#faf7f2!important;
  --surface-strong:#ffffff!important;
  --surface-hover:#fff8ef!important;
  --surface-border:rgba(78,57,40,.11)!important;
  --surface-border-strong:rgba(78,57,40,.20)!important;

  --accent-soft:rgba(233,107,0,.075)!important;
  --cy-design-accent:#e96b00!important;

  --cy-premium-bg:#f5f2ed!important;
  --cy-premium-panel:#ffffff!important;
  --cy-premium-panel-strong:#ffffff!important;
  --cy-premium-line:rgba(78,57,40,.11)!important;
  --cy-premium-line-hover:rgba(233,107,0,.28)!important;
  --cy-premium-shadow:0 16px 44px rgba(66,45,27,.07)!important;
  --cy-premium-shadow-hover:0 22px 58px rgba(66,45,27,.11)!important;

  --bs-body-bg:#f5f2ed!important;
  --bs-body-color:#201a15!important;
  --bs-secondary-color:#776b61!important;
  --bs-border-color:rgba(78,57,40,.11)!important;
}

/* Page canvas */
html[data-theme='light'],
html[data-theme='light'] body,
html[data-theme='light'] body.cy-premium-ui,
html[data-theme='light'] body.cy-page-account{
  background:
    radial-gradient(circle at 6% -10%,rgba(255,132,0,.09),transparent 30%),
    radial-gradient(circle at 98% 2%,rgba(255,191,103,.07),transparent 27%),
    linear-gradient(145deg,#f5f2ed 0%,#fbf9f6 46%,#f4f0ea 100%)!important;
  color:#201a15!important;
}

html[data-theme='light'] body:before,
html[data-theme='light'] body.cy-page-account:before{
  opacity:.28!important;
  background-image:
    linear-gradient(rgba(90,65,43,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(90,65,43,.025) 1px,transparent 1px)!important;
  background-size:42px 42px!important;
}

/* Ambient glow becomes subtle in light mode */
html[data-theme='light'] .cy-ambient-layer{opacity:.16!important}
html[data-theme='light'] .cy-ambient-layer::before{
  background:radial-gradient(circle,rgba(255,139,24,.28),rgba(255,139,24,.06) 42%,transparent 72%)!important;
}
html[data-theme='light'] .cy-ambient-layer::after{
  background:radial-gradient(circle,rgba(255,190,92,.20),rgba(255,190,92,.04) 45%,transparent 74%)!important;
}

/* Core surfaces */
html[data-theme='light'] .side{
  background:rgba(255,255,255,.94)!important;
  border-color:rgba(78,57,40,.10)!important;
  box-shadow:16px 0 46px rgba(65,44,27,.06)!important;
  color:#201a15!important;
}

html[data-theme='light'] .topx{
  background:rgba(255,255,255,.90)!important;
  border-color:rgba(78,57,40,.10)!important;
  box-shadow:0 12px 34px rgba(65,44,27,.055)!important;
  color:#201a15!important;
}

html[data-theme='light'] .cardx,
html[data-theme='light'] .card,
html[data-theme='light'] .metric-card,
html[data-theme='light'] .news-list,
html[data-theme='light'] .quick-actions,
html[data-theme='light'] .client-section,
html[data-theme='light'] .account-section,
html[data-theme='light'] .apps-platform,
html[data-theme='light'] .app-guide-card,
html[data-theme='light'] .payment-provider-card,
html[data-theme='light'] .cy-home-metric,
html[data-theme='light'] .cy-home-actions>a,
html[data-theme='light'] .status-tile,
html[data-theme='light'] .setup-step,
html[data-theme='light'] .support-cat,
html[data-theme='light'] .support-ticket{
  background:linear-gradient(145deg,#fff,#fcfaf7)!important;
  border-color:rgba(78,57,40,.105)!important;
  color:#201a15!important;
  box-shadow:0 14px 38px rgba(66,45,27,.055)!important;
}

html[data-theme='light'] .cardx:hover,
html[data-theme='light'] .metric-card:hover,
html[data-theme='light'] .apps-platform:hover,
html[data-theme='light'] body.cy-premium-ui .cy-hover-card:hover{
  border-color:rgba(233,107,0,.25)!important;
  box-shadow:0 20px 50px rgba(66,45,27,.09)!important;
}

/* Typography */
html[data-theme='light'] h1,
html[data-theme='light'] h2,
html[data-theme='light'] h3,
html[data-theme='light'] h4,
html[data-theme='light'] h5,
html[data-theme='light'] h6,
html[data-theme='light'] .cardx b,
html[data-theme='light'] .card b,
html[data-theme='light'] .metric-value,
html[data-theme='light'] .section-title,
html[data-theme='light'] .news-title{
  color:#201a15!important;
  text-shadow:none!important;
}

html[data-theme='light'] .muted,
html[data-theme='light'] .text-muted,
html[data-theme='light'] .metric-label,
html[data-theme='light'] .metric-meta,
html[data-theme='light'] .section-sub,
html[data-theme='light'] .news-body,
html[data-theme='light'] .news-time,
html[data-theme='light'] .empty-news{
  color:#776b61!important;
}

html[data-theme='light'] .text-white:not(.btn):not(.badge){
  color:#201a15!important;
}

/* Navigation */
html[data-theme='light'] .navx a{
  color:#665b52!important;
}

html[data-theme='light'] .navx a .nav-icon{
  color:#8b7c70!important;
}

html[data-theme='light'] .navx a:hover{
  color:#9b4300!important;
  background:rgba(233,107,0,.055)!important;
  border-color:rgba(233,107,0,.10)!important;
}

html[data-theme='light'] .navx a:hover .nav-icon{
  color:#dd6807!important;
}

html[data-theme='light'] .navx a.active{
  color:#a84900!important;
  background:linear-gradient(90deg,rgba(233,107,0,.11),rgba(255,255,255,.72))!important;
  border-color:rgba(233,107,0,.16)!important;
  box-shadow:inset 3px 0 0 #e96b00!important;
}

html[data-theme='light'] .navx a.active .nav-icon{
  color:#e96b00!important;
}

/* Header/balance */
html[data-theme='light'] .client-balance,
html[data-theme='light'] .statx{
  background:linear-gradient(145deg,rgba(255,143,26,.09),rgba(255,255,255,.94))!important;
  border-color:rgba(233,107,0,.14)!important;
  color:#201a15!important;
}
html[data-theme='light'] .client-balance .value,
html[data-theme='light'] .client-balance .label{
  color:#34271e!important;
}
html[data-theme='light'] .client-avatar,
html[data-theme='light'] .client-balance-icon,
html[data-theme='light'] .metric-icon,
html[data-theme='light'] .news-dot,
html[data-theme='light'] .apps-platform-icon,
html[data-theme='light'] .cy-home-actions i{
  background:#fff4e7!important;
  border-color:rgba(233,107,0,.14)!important;
  color:#dc6500!important;
}

/* Home hero */
html[data-theme='light'] body.cy-premium-ui .cy-home-hero,
html[data-theme='light'] .cy-home-hero{
  background:
    radial-gradient(circle at 92% 5%,rgba(255,142,23,.13),transparent 34%),
    radial-gradient(circle at 72% 100%,rgba(255,193,92,.08),transparent 35%),
    linear-gradient(145deg,#fff,#fff9f1)!important;
  border-color:rgba(233,107,0,.15)!important;
  color:#201a15!important;
  box-shadow:0 20px 55px rgba(66,45,27,.075)!important;
}
html[data-theme='light'] body.cy-premium-ui .cy-home-hero::before{
  background:radial-gradient(circle,rgba(255,139,24,.13),transparent 68%)!important;
}

/* Forms */
html[data-theme='light'] .form-control,
html[data-theme='light'] .form-select,
html[data-theme='light'] .input-group-text,
html[data-theme='light'] textarea,
html[data-theme='light'] input:not([type='checkbox']):not([type='radio']){
  background:#fff!important;
  color:#201a15!important;
  border-color:rgba(78,57,40,.16)!important;
  color-scheme:light!important;
}

html[data-theme='light'] .form-control::placeholder,
html[data-theme='light'] textarea::placeholder,
html[data-theme='light'] input::placeholder{
  color:#a3978d!important;
}

html[data-theme='light'] .form-control:focus,
html[data-theme='light'] .form-select:focus,
html[data-theme='light'] textarea:focus{
  background:#fff!important;
  color:#201a15!important;
  border-color:rgba(233,107,0,.55)!important;
  box-shadow:0 0 0 .19rem rgba(233,107,0,.09)!important;
}

html[data-theme='light'] .form-check-input{
  background-color:#fff!important;
  border-color:rgba(78,57,40,.25)!important;
}
html[data-theme='light'] .form-check-input:checked{
  background-color:#e96b00!important;
  border-color:#e96b00!important;
}

/* Buttons */
html[data-theme='light'] .btn-orange,
html[data-theme='light'] .btn-warning,
html[data-theme='light'] .btn-primary,
html[data-theme='light'] .btn-info{
  background:linear-gradient(135deg,#e85f00,#ff8700 58%,#f0a13e)!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 9px 23px rgba(194,80,0,.16)!important;
}
html[data-theme='light'] .btn-orange:hover,
html[data-theme='light'] .btn-warning:hover,
html[data-theme='light'] .btn-primary:hover,
html[data-theme='light'] .btn-info:hover{
  color:#fff!important;
  filter:brightness(.96)!important;
}

html[data-theme='light'] .btn-outline-light,
html[data-theme='light'] .btn-outline-info,
html[data-theme='light'] .btn-outline-secondary,
html[data-theme='light'] .btn-outline-warning{
  color:#5f5146!important;
  background:#fff!important;
  border-color:rgba(78,57,40,.20)!important;
  box-shadow:0 5px 15px rgba(65,44,27,.025)!important;
}
html[data-theme='light'] .btn-outline-light:hover,
html[data-theme='light'] .btn-outline-info:hover,
html[data-theme='light'] .btn-outline-secondary:hover,
html[data-theme='light'] .btn-outline-warning:hover{
  color:#a34600!important;
  background:#fff6ea!important;
  border-color:rgba(233,107,0,.30)!important;
}

/* Tables, menus, modals */
html[data-theme='light'] .table{
  --bs-table-bg:transparent!important;
  --bs-table-color:#2b211a!important;
  --bs-table-striped-color:#2b211a!important;
  --bs-table-striped-bg:#faf6f1!important;
  --bs-table-hover-bg:#fff4e7!important;
  color:#2b211a!important;
}
html[data-theme='light'] .table>:not(caption)>*>*{
  color:#2b211a!important;
  background-color:transparent!important;
  border-color:rgba(78,57,40,.085)!important;
}
html[data-theme='light'] .table thead th,
html[data-theme='light'] .table-secondary th{
  background:#f7f1e9!important;
  color:#6c5e53!important;
}

html[data-theme='light'] .modal-content,
html[data-theme='light'] .dropdown-menu,
html[data-theme='light'] .offcanvas,
html[data-theme='light'] .popover,
html[data-theme='light'] .list-group-item,
html[data-theme='light'] .accordion-item,
html[data-theme='light'] .accordion-button{
  background:#fff!important;
  color:#201a15!important;
  border-color:rgba(78,57,40,.12)!important;
}
html[data-theme='light'] .dropdown-item{
  color:#4f4339!important;
}
html[data-theme='light'] .dropdown-item:hover,
html[data-theme='light'] .dropdown-item:focus{
  background:#fff4e7!important;
  color:#a34600!important;
}
html[data-theme='light'] .accordion-button:not(.collapsed){
  background:#fff4e7!important;
  color:#a34600!important;
}

/* Alerts */
html[data-theme='light'] .alert{
  background:#fffaf4!important;
  color:#3b2d23!important;
  border-color:rgba(78,57,40,.12)!important;
}
html[data-theme='light'] .alert-info,
html[data-theme='light'] .alert-primary{
  background:#fff5e8!important;
  color:#744018!important;
  border-color:rgba(233,107,0,.18)!important;
}

/* Code / technical fields */
html[data-theme='light'] code,
html[data-theme='light'] pre,
html[data-theme='light'] .font-monospace{
  color:#7b3a09!important;
}
html[data-theme='light'] pre{
  background:#f7f3ee!important;
  border-color:rgba(78,57,40,.11)!important;
}

/* Playlist page V2 */
html[data-theme='light'] .pl2-card{
  background:linear-gradient(145deg,#fff,#fff9f1)!important;
  border-color:rgba(233,107,0,.15)!important;
  box-shadow:0 16px 42px rgba(66,45,27,.065)!important;
  color:#201a15!important;
}
html[data-theme='light'] .pl2-card:before{
  background:rgba(255,139,24,.11)!important;
}
html[data-theme='light'] .pl2-url,
html[data-theme='light'] .pl2-mirror,
html[data-theme='light'] .pl2-section,
html[data-theme='light'] .pl2-stat,
html[data-theme='light'] .pl2-session,
html[data-theme='light'] .pl2-history,
html[data-theme='light'] .pl2-format-row{
  background:#faf7f2!important;
  border-color:rgba(78,57,40,.105)!important;
  color:#201a15!important;
}
html[data-theme='light'] .pl2-mirror.active{
  background:linear-gradient(135deg,#fff1df,#fffaf3)!important;
  border-color:rgba(233,107,0,.34)!important;
}
html[data-theme='light'] .pl2-code{
  color:#75685d!important;
}

/* EDGE picker V2 */
html[data-theme='light'] .edge-server-panel,
html[data-theme='light'] .edge-choice,
html[data-theme='light'] .edge-choice-auto,
html[data-theme='light'] .edge-auto-result{
  background:linear-gradient(145deg,#fff,#fbf8f4)!important;
  border-color:rgba(78,57,40,.11)!important;
  color:#201a15!important;
  box-shadow:0 12px 34px rgba(66,45,27,.05)!important;
}
html[data-theme='light'] .edge-choice:hover{
  border-color:rgba(233,107,0,.28)!important;
}
html[data-theme='light'] .edge-choice.active,
html[data-theme='light'] .edge-radio:checked + .edge-choice{
  background:linear-gradient(145deg,#fff2e2,#fffaf4)!important;
  border-color:rgba(233,107,0,.38)!important;
}
html[data-theme='light'] .edge-current-badge{
  background:#fff0dc!important;
  color:#a84b00!important;
  border-color:rgba(233,107,0,.20)!important;
}

/* Playlist Builder */
html[data-theme='light'] .builder-period-box,
html[data-theme='light'] .builder-playlist-card,
html[data-theme='light'] .builder-qr-panel,
html[data-theme='light'] .builder-more-panel,
html[data-theme='light'] .builder-addcat-list label,
html[data-theme='light'] .builder-cat{
  background:#faf7f2!important;
  border-color:rgba(78,57,40,.11)!important;
  color:#201a15!important;
}
html[data-theme='light'] .builder-total{
  background:linear-gradient(145deg,#fff1df,#fffaf4)!important;
  border-color:rgba(233,107,0,.18)!important;
  color:#201a15!important;
}
html[data-theme='light'] .builder-period-tabs span,
html[data-theme='light'] .builder-periods span{
  background:#fff!important;
  color:#5c5046!important;
  border-color:rgba(78,57,40,.15)!important;
}
html[data-theme='light'] .builder-period-tabs input:checked+span,
html[data-theme='light'] .builder-periods input:checked+span{
  background:#fff0dc!important;
  color:#a84b00!important;
  border-color:rgba(233,107,0,.34)!important;
}
html[data-theme='light'] .builder-facts>div{
  background:#f8f4ef!important;
  color:#201a15!important;
}
html[data-theme='light'] .builder-check{
  background:#fff!important;
  border-color:rgba(78,57,40,.25)!important;
}
html[data-theme='light'] .builder-cat input:checked+.builder-check{
  background:linear-gradient(135deg,#e85f00,#ff8a00)!important;
  border-color:transparent!important;
}
html[data-theme='light'] .builder-empty i{
  color:#e96b00!important;
}

/* Premium customer playlist cards created in later Builder update */
html[data-theme='light'] .builder-premium-card,
html[data-theme='light'] .builder-premium-url,
html[data-theme='light'] .builder-renew-box,
html[data-theme='light'] .builder-premium-actions,
html[data-theme='light'] .builder-playlist-premium{
  background:linear-gradient(145deg,#fff,#fbf8f4)!important;
  border-color:rgba(78,57,40,.11)!important;
  color:#201a15!important;
}

/* Favorites V3 */
html[data-theme='light'] .fav-hero{
  background:
    radial-gradient(circle at 94% 4%,rgba(255,141,25,.13),transparent 36%),
    linear-gradient(145deg,#fff,#fff8ef)!important;
  border-color:rgba(233,107,0,.18)!important;
  color:#201a15!important;
  box-shadow:0 18px 50px rgba(66,45,27,.07)!important;
}
html[data-theme='light'] .fav-hero-glow{
  background:radial-gradient(circle,rgba(255,139,24,.14),rgba(255,139,24,0) 68%)!important;
}
html[data-theme='light'] .fav-hero-stats>div,
html[data-theme='light'] .fav-playlist-box,
html[data-theme='light'] .fav-toolbar,
html[data-theme='light'] .fav-category-panel,
html[data-theme='light'] .fav-channel-card,
html[data-theme='light'] .fav-view-tabs,
html[data-theme='light'] .fav-no-sub{
  background:#fff!important;
  border-color:rgba(78,57,40,.11)!important;
  color:#201a15!important;
  box-shadow:0 10px 28px rgba(66,45,27,.045)!important;
}
html[data-theme='light'] .fav-hero-stats b{
  color:#201a15!important;
}
html[data-theme='light'] .fav-channel-card{
  background:linear-gradient(145deg,#fff,#fbf8f4)!important;
}
html[data-theme='light'] .fav-channel-card.is-favorite{
  background:linear-gradient(145deg,#fff1df,#fffaf4)!important;
  border-color:rgba(233,107,0,.38)!important;
}
html[data-theme='light'] .fav-category-btn{
  color:#3b3028!important;
}
html[data-theme='light'] .fav-category-btn:hover{
  background:#fff5e8!important;
}
html[data-theme='light'] .fav-category-btn.active{
  background:linear-gradient(135deg,#fff0dc,#fff9ef)!important;
  border-color:rgba(233,107,0,.30)!important;
  color:#a84b00!important;
}
html[data-theme='light'] .fav-cat-total,
html[data-theme='light'] .fav-star{
  background:#f7f3ee!important;
  border-color:rgba(78,57,40,.12)!important;
  color:#75685d!important;
}
html[data-theme='light'] .fav-star[aria-pressed='true']{
  background:#fff0dc!important;
  border-color:rgba(233,107,0,.30)!important;
  color:#e96b00!important;
}
html[data-theme='light'] .fav-channel-icon{
  background:#fff1df!important;
  border-color:rgba(233,107,0,.17)!important;
  color:#d85f00!important;
}

/* Premium tariffs */
html[data-theme='light'] .cy-tariff-card,
html[data-theme='light'] .cy-tariff-period-form,
html[data-theme='light'] .cy-classic-period-form,
html[data-theme='light'] .cy-classic-date-row,
html[data-theme='light'] .cy-classic-total,
html[data-theme='light'] .cy-tariff-balance{
  background:linear-gradient(145deg,#fff,#fbf8f4)!important;
  border-color:rgba(78,57,40,.11)!important;
  color:#201a15!important;
  box-shadow:0 12px 34px rgba(66,45,27,.05)!important;
}
html[data-theme='light'] .cy-period-link,
html[data-theme='light'] .cy-period-days{
  background:#fff!important;
  border-color:rgba(78,57,40,.14)!important;
  color:#5d5046!important;
}
html[data-theme='light'] .cy-period-link.active,
html[data-theme='light'] .cy-period-days.active{
  background:#fff0dc!important;
  border-color:rgba(233,107,0,.34)!important;
  color:#a84b00!important;
}

/* Retail category fold if opened elsewhere */
html[data-theme='light'] .cy-retail-fold,
html[data-theme='light'] .cy-retail-cat{
  background:#fff!important;
  border-color:rgba(78,57,40,.11)!important;
  color:#201a15!important;
}
html[data-theme='light'] .cy-retail-fold>summary:hover,
html[data-theme='light'] .cy-retail-cat:hover{
  background:#fff5e8!important;
}

/* Payments */
html[data-theme='light'] .payment-provider-card,
html[data-theme='light'] .payment-method-card,
html[data-theme='light'] .provider-card,
html[data-theme='light'] .payment-box,
html[data-theme='light'] .payment-summary{
  background:linear-gradient(145deg,#fff,#fbf8f4)!important;
  border-color:rgba(78,57,40,.11)!important;
  color:#201a15!important;
  box-shadow:0 12px 34px rgba(66,45,27,.05)!important;
}

/* Auth */
html[data-theme='light'] .auth-screen{
  background:#f5f2ed!important;
}
html[data-theme='light'] .auth-panel{
  background:
    radial-gradient(circle at 100% 0,rgba(255,139,24,.08),transparent 31%),
    linear-gradient(155deg,#fff,#f5f2ed)!important;
  color:#201a15!important;
}
html[data-theme='light'] .auth-card{
  background:rgba(255,255,255,.96)!important;
  border-color:rgba(78,57,40,.11)!important;
  box-shadow:0 30px 80px rgba(66,45,27,.09)!important;
}
html[data-theme='light'] .auth-card h2,
html[data-theme='light'] .auth-card .form-label{
  color:#2b211a!important;
}
html[data-theme='light'] .auth-mini-trust div{
  background:#faf7f2!important;
  border-color:rgba(78,57,40,.08)!important;
  color:#74675d!important;
}

/* Theme toggle itself */
html[data-theme='light'] .theme-toggle,
html[data-theme='light'] .client-theme-toggle{
  background:#fff!important;
  color:#4e4137!important;
  border-color:rgba(78,57,40,.14)!important;
  box-shadow:0 7px 20px rgba(65,44,27,.05)!important;
}

/* Semantic badges remain readable */
html[data-theme='light'] .badge.bg-success,
html[data-theme='light'] .badge.text-bg-success{
  background:#e4f5ea!important;
  color:#17613e!important;
}
html[data-theme='light'] .badge.bg-danger,
html[data-theme='light'] .badge.text-bg-danger{
  background:#fde8e8!important;
  color:#9a2730!important;
}
html[data-theme='light'] .badge.bg-warning,
html[data-theme='light'] .badge.text-bg-warning{
  background:#fff0cf!important;
  color:#75500c!important;
}
html[data-theme='light'] .badge.bg-info,
html[data-theme='light'] .badge.text-bg-info{
  background:#fff0dc!important;
  color:#994500!important;
}

/* Remove remaining generic dark utility islands in customer area */
html[data-theme='light'] body.cy-premium-ui .bg-dark,
html[data-theme='light'] body.cy-premium-ui .text-bg-dark,
html[data-theme='light'] body.cy-premium-ui .bg-black{
  background:#f7f3ee!important;
  color:#201a15!important;
}

/* Scrollbars */
html[data-theme='light'] *{
  scrollbar-color:rgba(142,105,72,.35) transparent;
}

