/*============================================================
   FAKE CHAT FUN — styles.css v12.4.3 (Full Fixed)
   ============================================================ */

:root {
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-2xl: 28px;

  --transition-fast:   0.14s ease-out;
  --transition-normal: 0.22s ease-out;

  --success: #10b981;
  --danger:  #ef4444;
  --warning: #f59e0b;

  /* LIGHT THEME */
  --bg-page:      #f1f5f4;
  --bg-primary:   #ffffff;
  --bg-secondary: #f6faf9;
  --bg-tertiary:  #eaf3f1;
  --bg-input:     #ffffff;

  --text-primary:   #111c1a;
  --text-secondary: #6b7c79;
  --text-inverse:   #ffffff;

  --border-color:        #dde8e5;
  --border-color-strong: #c8d9d5;

  --accent:       #0d9488;
  --accent-dark:  #0a7a6f;
  --accent-light: #2dd4bf;
  --accent-subtle: rgba(13,148,136,0.08);
  --accent-glow:  rgba(13,148,136,0.22);

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:   0 14px 36px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-accent: 0 4px 16px var(--accent-glow);

  --overlay-rgb: 246, 250, 249;
  --header-h: 64px;
  --sidebar-w: 340px;
}

body[data-theme="dark"] {
  --bg-page:      #0b1210;
  --bg-primary:   #131f1d;
  --bg-secondary: #0b1210;
  --bg-tertiary:  #1c2c29;
  --bg-input:     #0f1a18;

  --text-primary:   #e0eeeb;
  --text-secondary: #9cb4b0;
  --text-inverse:   #000000;

  --border-color:        #233330;
  --border-color-strong: #2e4440;

  --accent:       #2dd4bf;
  --accent-dark:  #14b8a6;
  --accent-light: #5eead4;
  --accent-subtle: rgba(45,212,191,0.09);
  --accent-glow:  rgba(45,212,191,0.25);

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg:   0 14px 36px rgba(0,0,0,0.55);

  --overlay-rgb: 19, 31, 29;
  color-scheme: dark;

  /* Bootstrap Variables Overrides for Dark Mode */
  --bs-body-color:        var(--text-primary);
  --bs-secondary-color:   var(--text-secondary);
  --bs-tertiary-color:    var(--text-secondary);
  --bs-heading-color:     var(--text-primary);
  
  --bs-body-bg:           var(--bg-secondary);
  --bs-card-bg:           var(--bg-primary);
  --bs-card-border-color: var(--border-color);
  --bs-border-color:      var(--border-color);
  
  --bs-modal-bg:          var(--bg-primary);
  --bs-modal-color:       var(--text-primary);
  --bs-modal-border-color:var(--border-color);
  --bs-modal-footer-bg:   var(--bg-secondary);
  --bs-modal-header-border-color: var(--border-color);
  
  --bs-nav-tabs-border-color: var(--border-color);
  --bs-nav-tabs-link-active-bg: var(--bg-primary);
  --bs-nav-tabs-link-active-color: var(--text-primary);
  --bs-nav-tabs-link-active-border-color: var(--border-color) var(--border-color) var(--bg-primary);
  
  --bs-list-group-bg: var(--bg-primary);
  --bs-list-group-border-color: var(--border-color);
  --bs-list-group-color: var(--text-primary);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100vh; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'DM Sans', 'Inter', 'Noto Sans', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s, color 0.2s;
}

/* ========================================================
   UTILITIES & CLS FIXES
   ======================================================== */
i.fas, i.fab, i.far, i.fa-solid {
    display: inline-block;
    text-align: center;
    min-width: 1.25em; 
}
.app-header__brand i { width: 32px; min-width: unset; }
.chat-msg__status { min-width: unset; }

.text-accent { color: var(--accent) !important; }
.bg-secondary-box { background-color: var(--bg-secondary) !important; }
.text-muted { color: var(--text-secondary) !important; }
.text-dark  { color: var(--text-primary) !important; }
.border, .border-top, .border-bottom, .border-start, .border-end { border-color: var(--border-color) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.rounded-4 { border-radius: var(--radius-xl) !important; }

/* BOOTSTRAP TEXT OVERRIDES (DARK MODE FIXES) */
body[data-theme="dark"] .text-muted,
body[data-theme="dark"] .form-text,
body[data-theme="dark"] .small,
body[data-theme="dark"] small {
    color: var(--text-secondary) !important;
}
body[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}
body[data-theme="dark"] .form-label {
    color: var(--text-secondary);
}

/* GLOBAL PRELOADER */
.global-app-loader { position: fixed; inset: 0; z-index: 99999; background-color: var(--bg-page); display: flex; align-items: center; justify-content: center; transition: opacity 0.4s ease, visibility 0.4s ease; }
.global-app-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.global-app-loader__inner { display: flex; flex-direction: column; align-items: center; }

/* APP HEADER & MODE SWITCHER */
.app-header {
  position: sticky; top: 0; z-index: 1020; min-height: var(--header-h);
  background: var(--bg-primary); border-bottom: 1px solid var(--border-color);
  padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 1px 0 var(--border-color);
  transform: translateZ(0);
}
.app-header__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em; color: var(--text-primary); white-space: nowrap; flex-shrink: 0; }
.app-header__brand i { width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.app-header__actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; padding-bottom: 0; }

.mode-switcher {
    display: flex;
    background: var(--bg-secondary);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
.mode-switcher__btn {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.mode-switcher__btn.active {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 6px var(--accent-glow);
}
.mode-switcher__btn.premium-btn.active {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.app-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  background-color: var(--bg-secondary); color: var(--text-secondary);
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast); text-decoration: none; white-space: nowrap; line-height: 1; height: 34px;
}
@media (hover: hover) {
  .app-btn:hover { background-color: var(--accent-subtle); border-color: var(--accent); color: var(--accent); text-decoration: none; }
  .app-btn.btn-close-app:hover { background-color: rgba(239,68,68,0.08); border-color: var(--danger); color: var(--danger); }
}
.app-btn:active { background-color: var(--bg-tertiary); transform: translateY(1px); }
.app-btn i { font-size: 0.88rem; }

#mobile-more-btn { min-width: 44px; padding: 6px; justify-content: center; }

/* THEME TOGGLE ICON LOGIC */
body[data-theme="light"] .js-toggle-site-theme .light-icon { display: none !important; }
body[data-theme="light"] .js-toggle-site-theme .dark-icon { display: inline-block !important; color: #4b5563; }
body[data-theme="dark"] .js-toggle-site-theme .dark-icon { display: none !important; }
body[data-theme="dark"] .js-toggle-site-theme .light-icon { display: inline-block !important; color: #facc15; }

#activation-counter { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; font-size: 0.78rem; font-weight: 700; height: 34px; color: var(--accent); background-color: var(--accent-subtle); border: 1px solid var(--accent); border-radius: var(--radius-md); }

/* QUICK TOOLBAR */
.quick-toolbar-header { display: flex; gap: 4px; }
.quick-toolbar-header .quick-btn { height: 34px; min-height: unset; flex-direction: row; padding: 0 10px; font-size: 0.75rem; border-radius: var(--radius-md); }
.quick-toolbar-header .quick-btn span { display: none; }
@media (min-width: 1300px) { .quick-toolbar-header .quick-btn span { display: inline; } }

/* MAIN LAYOUT */
.generator-main { min-height: calc(100vh - var(--header-h)); }
#controls-panel, #results-panel { display: flex; flex-direction: column; }
#results-panel .results-panel-content { display: flex; flex-direction: column; position: relative; }

/* CARDS */
.card { border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background-color: var(--bg-primary); margin-bottom: 0.875rem; }
.card-body { padding: 1.1rem; }

/* ========================================================
   MOCKUP CONTAINER (ОТВЯЗАН ОТ ТЕМЫ САЙТА)
   ======================================================== */
.mockup-wrap { margin-bottom: 0.875rem; }
.mockup-container { 
    background-color: #ffffff; 
    border: 2px solid var(--border-color-strong); 
    border-radius: var(--radius-2xl); 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    min-height: 750px; 
    box-shadow: var(--shadow-lg); 
    transition: border-color 0.3s, background-color 0.3s; 
}
body[data-theme="dark"] .mockup-container { border-color: var(--bg-tertiary); }
.mockup-container[data-phone-theme="light"] { color-scheme: light; }
.mockup-container[data-phone-theme="dark"] { color-scheme: dark; }

.mockup-statusbar { 
    position: absolute; top: -5px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; 
    padding: 11px 50px; z-index: 10; cursor: pointer; font-weight: 600; font-size: 0.88rem; 
    transition: background-color var(--transition-fast), color var(--transition-fast); 
    color: #000000; 
}
.mockup-statusbar:hover { background-color: rgba(0,0,0,0.04); }

.mockup-time { font-family: -apple-system, sans-serif; font-size: 1.5rem; }
.mockup-icons { display: flex; align-items: center; gap: 4px; }
.mockup-icons img { height: 20px; width: auto; transition: filter var(--transition-fast); filter: none; }
#mockup-network-preview { aspect-ratio: 22 / 15; }
#mockup-wifi-preview { aspect-ratio: 20 / 15; }
#mockup-battery-preview { aspect-ratio: 30 / 15; }

.mockup-appheader { 
    display: flex; justify-content: space-between; align-items: center; padding: 70px 14px 11px; 
    background-color: #ffffff; 
    border-bottom: 1px solid #e0e0e0; 
    cursor: pointer; z-index: 5; 
    transition: background-color var(--transition-fast), border-color var(--transition-fast); 
}
.mockup-appheader:hover { background-color: #f5f5f5; }

.header-left { color: var(--live-bluecirclebg, var(--accent)); font-size: 1.5rem; display: flex; align-items: center; min-width: 56px; transition: color var(--transition-fast); }

.mockup-unread-text { 
    background-color: var(--live-bluecirclebg, var(--accent)); 
    color: #ffffff; 
    font-size: 0.72rem; 
    padding: 2px 7px; 
    border-radius: 10px; 
    margin-left: 5px; 
    font-weight: 700; 
}

/* Просто делаем текст тёмным для любой тёмной темы мокапа */
.mockup-container[data-phone-theme="dark"] .mockup-unread-text {
    color: #121212 !important;
}

.header-center { min-width: 0; height: 70px; display: flex; flex-direction: column; justify-content: center; text-align: center; flex-grow: 1; }
.mockup-name { font-size: 1.5rem; color: #000000; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 175px; margin: 0 auto; transition: color var(--transition-fast); }

.mockup-status { font-size: 1rem; color: var(--live-ucolor, var(--text-secondary)); transition: color var(--transition-fast); }

.header-right { min-width: 56px; display: flex; justify-content: flex-end; }
.mockup-avatar-container { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; background-color: #e0e0e0; flex-shrink: 0; }
.mockup-avatar-container img { width: 100%; height: 100%; object-fit: cover; }
.cursor-pointer { cursor: pointer; }

/* ТЕМНАЯ ТЕМА МОКАПА */
.mockup-container[data-phone-theme="dark"] { background-color: #121212; }
.mockup-container[data-phone-theme="dark"] .mockup-statusbar { color: #ffffff; }
.mockup-container[data-phone-theme="dark"] .mockup-statusbar:hover { background-color: rgba(255,255,255,0.06); }
.mockup-container[data-phone-theme="dark"] .mockup-icons img:not([src*="battery-low"]) { filter: invert(1); }
.mockup-container[data-phone-theme="dark"] .mockup-appheader { background-color: #1c1c1d; border-bottom-color: #000000; }
.mockup-container[data-phone-theme="dark"] .mockup-appheader:hover { background-color: #2c2c2e; }
.mockup-container[data-phone-theme="dark"] .mockup-name { color: #ffffff; }
.mockup-container[data-phone-theme="dark"] .mockup-avatar-container { background-color: #2c2c2e; }

/* CHAT PREVIEW */
.chat-preview-container { 
    flex-grow: 1; background-color: #e6eeec; padding: 10px; overflow-y: auto; 
    display: flex; flex-direction: column; gap: 8px; min-height: 320px; 
}
@media (prefers-reduced-motion: no-preference) { .chat-preview-container { scroll-behavior: smooth; } }
.mockup-container[data-phone-theme="dark"] .chat-preview-container { background-color: #0b1411; }
.chat-preview-container.has-bg-image { background-color: transparent !important; background-size: cover; background-position: center; background-attachment: local; }

/* CHAT MESSAGES */
.chat-msg { display: flex; flex-direction: column; width: 100%; position: relative; }
.chat-msg--me  { align-items: flex-end; }
.chat-msg--you { align-items: flex-start; }

.chat-msg__bubble { max-width: 85%; padding: 8px 12px; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); font-size: 0.95rem; line-height: 1.4; position: relative; word-wrap: break-word; word-break: break-word; }

.chat-msg--you .chat-msg__bubble { background-color: var(--live-gradientyoutop, #fff); color: var(--live-youtextcolor, #000); border-bottom-left-radius: 4px; transition: background-color var(--transition-fast), color var(--transition-fast); }
.chat-msg--me  .chat-msg__bubble { background-color: var(--live-gradientmetop, #d1fae5); color: var(--live-metextcolor, #000); border-bottom-right-radius: 4px; transition: background-color var(--transition-fast), color var(--transition-fast); }

.chat-msg__text { margin-bottom: 2px; }
.chat-msg__meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 0.7rem; opacity: 0.6; margin-top: 2px; float: right; margin-left: 8px; }
.chat-msg__status.fa-check-double { color: #0d9488; }
body[data-theme="dark"] .chat-msg--me .chat-msg__status.fa-check-double { color: #2dd4bf; }

.chat-msg__image { width: 200px; min-height: 100px; background-color: var(--bg-tertiary); border-radius: 12px; margin-bottom: 4px; display: block; object-fit: contain; max-height: 250px; margin: auto; }
.chat-msg__reply-box { border-left: 3px solid var(--accent); background-color: rgba(0,0,0,0.05); padding: 4px 8px; border-radius: 4px; margin-bottom: 6px; font-size: 0.85rem; display: flex; gap: 8px; overflow: hidden; }
body[data-theme="dark"] .chat-msg__reply-box { background-color: rgba(255,255,255,0.06); border-left-color: var(--accent); }
.chat-msg__reply-content { flex-grow: 1; overflow: hidden; }
.chat-msg__reply-name { color: var(--accent); font-weight: 700; font-size: 0.8rem; margin-bottom: 2px; }
.chat-msg__reply-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-msg__reply-image { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; }

.chat-msg--file .chat-msg__bubble { min-width: 180px; }
.chat-msg__file-box  { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.chat-msg__file-icon { width: 40px; height: 40px; background-color: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.chat-msg__file-info { overflow: hidden; flex-grow: 1; }
.chat-msg__file-name { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-msg__file-size { font-size: 0.75rem; opacity: 0.8; }

.chat-msg__call-box { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.chat-msg__call-title { font-weight: 700; font-size: 0.95rem; }
.chat-msg__call-desc { font-size: 0.8rem; opacity: 0.7; display: flex; align-items: center; gap: 4px; }
.chat-msg__call-arrow.text-success { color: var(--success) !important; }
.chat-msg__call-arrow.text-danger  { color: var(--danger) !important; }
.chat-msg__call-icon { width: 36px; height: 36px; background-color: var(--success); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.chat-msg--sticker .chat-msg__bubble { background-color: transparent !important; box-shadow: none !important; padding: 0; }
.chat-msg__sticker-box { position: relative; display: inline-block; max-width: 85%; }
.chat-msg__sticker-img { max-width: 140px; height: auto; }
.chat-msg__sticker-meta { position: absolute; bottom: 0; right: 0; background-color: rgba(0,0,0,0.3); color: #fff; padding: 2px 6px; border-radius: 10px; font-size: 0.7rem; display: flex; align-items: center; gap: 4px; }

.chat-msg__reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chat-msg__reaction { background-color: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 2px 6px; font-size: 0.8rem; display: flex; align-items: center; gap: 4px; }
.chat-msg__reaction-avatar { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; }

.chat-msg--data { align-items: center; margin: 8px 0; }
.chat-msg__date-badge { background-color: var(--live-chatdatebg, rgba(0,0,0,0.28)); color: var(--live-chatdatecolor, #fff); padding: 4px 12px; border-radius: 12px; font-size: 0.78rem; font-weight: 600; text-align: center; transition: background-color var(--transition-fast), color var(--transition-fast); }

.chat-msg--warning-notify, .chat-msg--warning-card { align-items: center; cursor: default; }
.chat-msg--warning-notify .chat-msg__notify-text { background-color: #fef3c7; color: #54656f; font-size: 0.75rem; text-align: center; padding: 6px 10px; border-radius: 8px; margin: 0 auto; display: inline-block; max-width: 70%; }
body[data-theme="dark"] .chat-msg--warning-notify .chat-msg__notify-text { background-color: #182229; color: #fef3c7; }
.chat-msg--warning-card .chat-msg__card-box { background-color: #fff; border-radius: 12px; padding: 12px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,0.1); margin: 0 auto; min-width: 300px; width: 100%; max-width: 85%; }
body[data-theme="dark"] .chat-msg--warning-card .chat-msg__card-box { background-color: #111b21; color: #e9edef; }
.chat-msg__card-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.chat-msg__card-phone { font-size: 1rem; font-weight: bold; margin-bottom: 2px; }
.chat-msg__card-info1, .chat-msg__card-info2 { font-size: 0.8rem; color: #667781; margin-bottom: 2px; }
.chat-msg__card-safety { background-color: #f0f2f5; padding: 4px; border-radius: 6px; font-size: 0.75rem; color: #54656f; margin: 8px 0; }
body[data-theme="dark"] .chat-msg__card-safety { background-color: #202c33; color: #8696a0; }
.chat-msg__card-actions { display: flex; gap: 8px; }
.chat-msg__card-btn { flex: 1; border: none; padding: 6px; border-radius: 16px; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.chat-msg__card-btn--danger { background-color: transparent; border: 1px solid #ef4444; color: #ef4444; }
.chat-msg__card-btn--primary { background-color: #10b981; color: #fff; }

.chat-msg__footer { display: flex; margin-top: 4px; opacity: 1; max-width: 85%; }
.chat-msg--me .chat-msg__footer { justify-content: flex-end; }
.chat-msg--you .chat-msg__footer { justify-content: flex-start; }
.chat-msg--data .chat-msg__footer, .chat-msg--warning-card .chat-msg__footer, .chat-msg--warning-notify .chat-msg__footer { justify-content: center; }

.chat-msg__footer .btn-group { background-color: var(--bg-primary) !important; border: 1px solid var(--border-color) !important; border-radius: var(--radius-sm) !important; overflow: hidden !important; box-shadow: var(--shadow-sm) !important; padding: 0 !important; gap: 0 !important; }
.chat-msg__footer .btn { padding: 5px 10px !important; font-size: 1rem !important; border-radius: 0 !important; border: none !important; border-right: 1px solid var(--border-color) !important; background-color: transparent !important; color: var(--text-secondary) !important; min-height: unset !important; }
.chat-msg__footer .btn:last-child { border-right: none !important; }
.chat-msg__footer .btn:hover { background-color: var(--bg-secondary) !important; color: var(--text-primary) !important; }
.chat-msg__footer .btn-start-id { color: var(--warning-text) !important; font-weight: bold !important; background-color: var(--warning) !important; opacity: 0.5; }
.chat-msg__footer .btn-start-id.btn-start-active { opacity: 1; }
.chat-msg__footer .btn-swap-role:hover { color: var(--accent) !important; }

/* TYPE BUTTONS */
.msg-type-card { margin-bottom: 0.875rem; }
.msg-type-header { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 12px; }
.msg-type-header i { color: var(--accent); font-size: 0.88rem; }
.msg-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.msg-type-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background-color: var(--bg-secondary); color: var(--text-secondary); font-family: inherit; font-size: 0.7rem; font-weight: 600; cursor: pointer; transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); min-height: 64px; text-transform: uppercase; letter-spacing: 0.2px; }
.msg-type-btn i { font-size: 1.15rem; transition: transform var(--transition-fast); }
@media (hover: hover) {
  .msg-type-btn:not(.locked):hover { background-color: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-accent); }
  .msg-type-btn:not(.locked):hover i { transform: scale(1.1); }
  .msg-type-btn.wa-only-btn:not(.locked):hover { background-color: #25D366; border-color: #25D366; color: #fff; box-shadow: 0 4px 12px rgba(37,211,102,0.3); }
}
.msg-type-btn:active { transform: translateY(0) scale(0.96); background-color: var(--bg-tertiary); }
.msg-type-btn.wa-only-btn { border-color: rgba(37,211,102,0.4); color: #16a34a; background-color: rgba(37,211,102,0.05); }

/* INFO HINT */
.info-hint { display: flex; align-items: flex-start; gap: 10px; background-color: var(--accent-subtle); border: 1px solid rgba(13,148,136,0.18); border-radius: var(--radius-md); padding: 11px 14px; margin-bottom: 0.875rem; }
.info-hint__icon { color: var(--accent); font-size: 0.95rem; flex-shrink: 0; margin-top: 2px; }
.info-hint__text { font-size: 0.81rem; color: var(--text-secondary); line-height: 1.5; }
.info-hint__link { color: var(--accent); font-weight: 700; text-decoration: none; }
.info-hint__link:hover { text-decoration: underline; }

/* ========================================================
   PREMIUM CARD — Variant D
   ======================================================== */
.premium-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  margin-bottom: 0.875rem;
}

.pc-body { padding: 14px; }

.pc-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.pc-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.pc-title {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.3;
}

.pc-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.pc-features { margin-bottom: 12px; }

.pc-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-color);
}

.pc-feat:last-child { border-bottom: none; }

.pc-feat-check {
  width: 16px; height: 16px;
  flex-shrink: 0;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.pc-feat-check i {
  font-size: 0.52rem;
  color: #fff;
  min-width: unset;
}

.pc-buy {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  width: 100%;
  padding: 11px 14px;
  font-size: 0.87rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 12px var(--accent-glow);
}

.pc-buy:hover { transform: translateY(-1px); box-shadow: 0 5px 18px var(--accent-glow); }
.pc-buy:active { transform: scale(0.98); }

.pc-buy-ico {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.2);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.pc-buy-ico i { min-width: unset; }

.pc-buy-txt { flex: 1; line-height: 1.2; }
.pc-buy-sub { font-size: 0.67rem; opacity: 0.75; font-weight: 400; display: block; margin-top: 1px; }
.pc-buy .pc-chevron { opacity: 0.5; font-size: 0.75rem; flex-shrink: 0; }

.premium-key-row { display: flex; gap: 8px; align-items: center; }
.premium-key-input-wrap { position: relative; flex-grow: 1; }
.premium-key-icon { position: absolute; top: 50%; transform: translateY(-50%); left: 14px; color: var(--text-secondary); font-size: 0.85rem; z-index: 5; pointer-events: none; }
.premium-key-input { padding-left: 2.75rem !important; background-color: var(--bg-secondary) !important; }
.btn-apply { flex-shrink: 0; white-space: nowrap; display: flex; align-items: center; gap: 5px; }

/* ACTIONS CARD — Variant 5 */
.ac5__main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    width: 100%;
    padding: 13px 16px;
    cursor: pointer;
    margin-bottom: 10px;
    box-shadow: var(--shadow-accent);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: left;
    font-family: inherit;
}
.ac5__main:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}
.ac5__main:active { transform: scale(0.98); }

.ac5__cam {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.2);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.ac5__label { font-size: 0.97rem; font-weight: 700; line-height: 1.2; color: #fff; }
.ac5__hint { font-size: 0.67rem; opacity: 0.7; display: block; font-weight: 400; color: #fff; }
.ac5__badge {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.67rem;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
    flex-shrink: 0;
}

.ac5__row { display: flex; gap: 8px; }
.ac5__sqr {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color-strong);
    border-radius: 10px;
    padding: 10px 6px;
    font-size: 0.71rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
    font-family: inherit;
    min-height: 58px;
}
.ac5__sqr i { font-size: 1.1rem; }

.ac5__sqr--dl i  { color: var(--accent); }
.ac5__sqr--dl:hover { background: var(--accent-subtle); border-color: var(--accent); color: var(--accent); }

.ac5__sqr--del i { color: var(--danger); }
.ac5__sqr--del:hover { background: rgba(239,68,68,0.07); border-color: var(--danger); color: var(--danger); }

.ac5__sqr--gal i { color: #d78d04; }
.ac5__sqr--gal:hover { background: rgba(215,141,4,0.09); border-color: #d78d04; color: #b87800; }

/* PREVIEW CARD */
.preview-wrap { display: flex; gap: 10px; min-height: 280px; }
.preview-image-area { flex-grow: 1; background-color: var(--bg-tertiary); border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); position: relative; aspect-ratio: 9/19; min-height: 380px; }
.preview-image { width: 100%; height: 100%; object-fit: contain; display: block; }
.vertical-slider-container { background-color: var(--bg-primary); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--border-color); position: relative; padding: 10px 0; min-width: 35px; flex-shrink: 0; }
.slider-track { height: 100%; width: 6px; border-radius: 3px; background-color: var(--bg-tertiary); position: relative; margin: 0 auto; }
:root { --thumb-top: 0px; }
.custom-slider-thumb { width: 33px; height: 33px; border-radius: 50%; background-color: var(--accent); position: absolute; left: 50%; transform: translateX(-50%); top: var(--thumb-top, 0px); box-shadow: var(--shadow-accent); cursor: grab; border: 3px solid var(--bg-primary); user-select: none; touch-action: none; transition: background-color var(--transition-fast), transform 0.1s; display: flex; align-items: center; justify-content: center; }
.custom-slider-thumb:active, .custom-slider-thumb.grabbing { cursor: grabbing; background-color: var(--accent-dark); transform: translateX(-50%) scale(1.1); }
.slider-id-indicator { color: #fff; font-weight: 800; font-size: 0.72rem; }

/* FORMS */
.form-control, .form-select, textarea { 
    border: 1px solid var(--border-color-strong); 
    border-radius: var(--radius-md); 
    padding: 0.6rem 1rem; 
    background-color: var(--bg-input); 
    color: var(--text-primary); 
    font-family: inherit; 
    font-size: 0.92rem; 
    box-shadow: none !important; 
    transition: border-color var(--transition-fast), background-color var(--transition-fast); 
}
.form-control:focus, .form-select:focus, textarea:focus { 
    border-color: var(--accent); 
    background-color: var(--bg-input); 
    color: var(--text-primary); 
    box-shadow: 0 0 0 3px var(--accent-subtle) !important; 
}
.form-label { font-weight: 600; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.35rem; }
.input-group-text { background-color: var(--bg-tertiary); border-color: var(--border-color-strong); color: var(--text-secondary); font-family: inherit; }

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select,
body[data-theme="dark"] textarea {
    background-color: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color);
}

body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-select:focus,
body[data-theme="dark"] textarea:focus { 
    background-color: var(--bg-input) !important; 
    color: var(--text-primary) !important; 
}

body[data-theme="dark"] .form-control::placeholder,
body[data-theme="dark"] textarea::placeholder { color: var(--text-secondary); opacity: 0.6; }

/* BUTTONS */
.btn { border-radius: var(--radius-md); font-family: inherit; font-weight: 600; padding: 0.58rem 1.15rem; transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); border: 1px solid transparent; box-shadow: none !important; min-height: 38px; }
.btn:active { transform: scale(0.98); }
.btn-primary { background-color: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-outline-secondary { border-color: var(--border-color-strong); color: var(--text-primary); background-color: transparent; }
.btn-outline-secondary:hover { background-color: var(--bg-tertiary); border-color: var(--border-color-strong); color: var(--text-primary); }
.btn-outline-primary { border-color: var(--accent); color: var(--accent); background-color: transparent; }
.btn-outline-primary:hover { background-color: var(--accent); border-color: var(--accent); color: #fff; }

.btn-warning { background-color: #f59e0b; border-color: #f59e0b; color: #fff; }
.btn-warning:hover { background-color: #d97706; border-color: #d97706; color: #fff; }
.btn-action  { background-color: var(--accent); border-color: var(--accent); color: #fff; }
.btn-action:hover { background-color: var(--accent-dark); color: #fff; }
.btn-gallery {
    background-color: transparent;
    color: #d78d04;
    border: 1px solid var(--border-color-strong) !important;
    font-weight: 700;
    box-shadow: none !important;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

body[data-theme="dark"] .btn-gallery { color: #f5c842; }
.btn-outline-danger { border-color: #fecaca; color: var(--danger); background-color: transparent; }
.btn-outline-danger:hover { background-color: rgba(239,68,68,0.08); border-color: var(--danger); color: var(--danger); }
.btn-outline-success { border-color: #6ee7b7; color: var(--success); background-color: transparent; }
.btn-outline-success:hover { background-color: rgba(16,185,129,0.08); border-color: var(--success); color: var(--success); }

/* SEGMENTED CONTROLS */
.btn-group:has(.btn-check) { background-color: var(--bg-tertiary); border-radius: var(--radius-md); padding: 3px; gap: 3px; border: none !important; box-shadow: none !important; }
.btn-group .btn-check + .btn { border-radius: 8px !important; border: none !important; background-color: transparent !important; color: var(--text-secondary) !important; padding: 7px 12px !important; font-size: 0.83rem !important; font-weight: 600 !important; margin: 0 !important; box-shadow: none !important; min-height: unset !important; transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast) !important; }
.btn-group .btn-check:checked + .btn { background-color: var(--bg-primary) !important; color: var(--accent) !important; box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important; }
.btn-group .btn-check:disabled + .btn, .btn-group .btn-check[disabled] + .btn { opacity: 0.4 !important; cursor: not-allowed !important; }
.btn-group-sm .btn-check + .btn { padding: 5px 10px !important; font-size: 0.8rem !important; }
.btn-group > .btn:not(:last-child):not(.dropdown-toggle), .btn-group > .btn-group:not(:last-child) > .btn { border-top-right-radius: 8px !important; border-bottom-right-radius: 8px !important; }
.btn-group > .btn:nth-child(n+3), .btn-group > :not(.btn-check) + .btn, .btn-group > .btn-group:not(:first-child) > .btn { border-top-left-radius: 8px !important; border-bottom-left-radius: 8px !important; }

/* CHAT BG CONTROL */
.chat-bg-control-wrap { display: flex; align-items: center; gap: 15px; background-color: var(--bg-secondary); padding: 12px; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.chat-bg-actions { flex-grow: 1; display: flex; gap: 4px; }
.chat-bg-actions .btn { flex: 1; padding: 0.5rem 0.25rem; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: var(--radius-sm) !important; }
.chat-bg-preview-circle { width: 100px; height: 100px; border-radius: 50%; background-color: var(--bg-tertiary); border: 2px dashed var(--border-color-strong); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color var(--transition-fast); }
.chat-bg-preview-circle.has-image { border-style: solid; border-color: var(--accent); }
.chat-bg-preview-circle img { width: 100%; height: 100%; object-fit: cover; display: none; }
.chat-bg-preview-circle.has-image img { display: block; }
.chat-bg-preview-circle .placeholder-icon { color: var(--text-secondary); font-size: 1.5rem; }
.chat-bg-preview-circle.has-image .placeholder-icon { display: none; }

/* MODALS */
.modal-content { border: 1px solid var(--border-color); border-radius: var(--radius-xl); background-color: var(--bg-primary); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border-color); padding: 1.2rem 1.4rem 0.6rem; background-color: var(--bg-primary); }
.modal-body { padding: 1.25rem 1.4rem; background-color: var(--bg-primary); }
.modal-footer { border-top: 1px solid var(--border-color); padding: 0.9rem 1.4rem; background-color: var(--bg-primary); }
.modal-title { font-weight: 700; color: var(--text-primary); font-size: 1rem; }
.btn-close { filter: none; opacity: 0.5; }
.btn-close:hover { opacity: 1; }
body[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

#settingsTabsContent { min-height: 50vh; max-height: 60vh; overflow-y: auto; overflow-x: hidden; padding-right: 5px; }
#settings-sidebar-body #settingsTabsContent { min-height: unset; max-height: unset; overflow: visible; padding-right: 0; }
#settingsTabsContent::-webkit-scrollbar { width: 5px; }
#settingsTabsContent::-webkit-scrollbar-track { background-color: transparent; }
#settingsTabsContent::-webkit-scrollbar-thumb { background-color: var(--border-color-strong); border-radius: 3px; }

.modal-backdrop { z-index: 1050; }
.modal { z-index: 1055; }
#emojiModal, #stickerModal, #networkModal, #wifiModal, #batteryModal, #backgroundGalleryModal, #languageModal { z-index: 1070 !important; }
#confirmModal, #activationConfirmModal { z-index: 1080 !important; } 

/* CUSTOM TABS FOR DESKTOP MODAL */
#settingsTabsModal { display: flex; gap: 4px; padding: 0; border-bottom: none; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
#settingsTabsModal::-webkit-scrollbar { display: none; }
#settingsTabsModal .nav-link { padding: 0.7rem 0.9rem; font-size: 0.84rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; border: none; border-bottom: 2.5px solid transparent; border-radius: 0; background-color: transparent; transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast); flex-shrink: 0; }
#settingsTabsModal .nav-link:hover { color: var(--text-primary); border-color: transparent; }
#settingsTabsModal .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; background-color: transparent; }

#modal-live-preview { background-color: var(--bg-secondary); border: 1px dashed var(--border-color-strong); border-radius: var(--radius-md); padding: 1rem; display: flex; align-items: flex-start; justify-content: center; min-height: 180px; max-height: 300px; overflow-y: auto; transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
#modal-live-preview .chat-msg { cursor: default; }
#modal-live-preview .chat-msg__footer { display: none; }

/* LANGUAGE MODAL */
.language-modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (max-width: 767.98px) { .language-modal-grid { grid-template-columns: repeat(2, 1fr); } }
.language-modal-btn { display: flex; align-items: center; gap: 12px; padding: 1rem; border-radius: var(--radius-lg); border: 1px solid var(--border-color); background-color: var(--bg-secondary); cursor: pointer; transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); text-decoration: none; font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
@media (hover: hover) { .language-modal-btn:hover { background-color: var(--accent-subtle); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-accent); } }
.language-modal-btn.active { background-color: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }

/* THEME MESSENGERS */
.messenger-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.messenger-card { background-color: var(--bg-secondary); border: 1.5px solid transparent; border-radius: var(--radius-lg); padding: 11px 13px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background-color 0.2s; }
@media (hover: hover) { .messenger-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--border-color); } }
.messenger-card .icon-circle { width: 38px; height: 38px; border-radius: 10px; background-color: var(--bg-primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: 0 1px 4px rgba(0,0,0,0.07); flex-shrink: 0; }
.messenger-card span { font-weight: 600; font-size: 0.87rem; color: var(--text-primary); }
.messenger-card.t-telegram .icon-circle  { color: #229ED9; }
.messenger-card.t-whatsapp .icon-circle  { color: #25D366; }
.messenger-card.t-legacy .icon-circle    { color: #64B5F6; }
.messenger-card.t-insta .icon-circle     { color: #E1306C; }
.messenger-card.disabled                 { opacity: 0.5; cursor: not-allowed; }
.btn-check:checked + .messenger-card { background-color: var(--bg-primary); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* THEME APPEARANCE */
.visual-toggle-wrapper { display: flex; gap: 8px; background-color: var(--bg-secondary); padding: 4px; border-radius: 14px; }
.visual-toggle { flex: 1; text-align: center; padding: 10px; border-radius: 10px; cursor: pointer; font-size: 0.87rem; font-family: inherit; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background-color 0.2s; border: 1.5px solid transparent; }
.btn-check:checked + .visual-toggle.light-mode { border-color: var(--accent); box-shadow: 0 2px 8px var(--accent-glow); transform: scale(1.02); }
.btn-check:checked + .visual-toggle.dark-mode  { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.3); transform: scale(1.02); }
.chat-type-wrapper { display: flex; gap: 8px; }
.chat-type-pill { flex: 1; background-color: var(--bg-secondary); padding: 10px; border-radius: 12px; text-align: center; font-size: 0.87rem; font-family: inherit; font-weight: 600; color: var(--text-secondary); cursor: pointer; border: 1px solid transparent; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.btn-check:checked + .chat-type-pill { background-color: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }

.appearance-section { background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 1.25rem; }
.modern-range { height: 5px; border-radius: 3px; background-color: var(--border-color-strong); outline: none; -webkit-appearance: none; width: 100%; }
.modern-range::-webkit-slider-thumb { -webkit-appearance: none; width: 19px; height: 19px; background-color: var(--accent); border-radius: 50%; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.2); border: 3px solid var(--bg-primary); transition: transform 0.1s; }
.modern-range::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* CONTEXT COLOR PICKERS */
.context-color-picker {
    width: 38px;
    height: 38px;
    padding: 4px;
    cursor: pointer;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color-strong);
    background-color: var(--bg-input);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}
.context-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.context-color-picker::-webkit-color-swatch { border: none; border-radius: calc(var(--radius-md) - 2px); }
@media (max-width: 767.98px) {
    .context-color-picker { width: 44px; height: 44px; }
}
.context-color-picker:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 2px 8px var(--accent-glow);
}

.context-color-picker-sm {
    width: 31px;
    height: 31px;
    padding: 2px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color-strong);
    background-color: var(--bg-input);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}
.context-color-picker-sm::-webkit-color-swatch-wrapper { padding: 0; }
.context-color-picker-sm::-webkit-color-swatch { border: none; border-radius: calc(var(--radius-sm) - 1px); }
.context-color-picker-sm:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* COLORS PANEL */
.colors-panel { background-color: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 16px; }
.colors-group { background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px; }
.colors-group__title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 10px; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-color); padding-bottom: 6px; }
.colors-panel__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.colors-panel__title { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); display: flex; align-items: center; gap: 7px; }
.colors-panel__title i { color: var(--accent); }
.btn-reset-colors { background-color: transparent; border: none; padding: 4px 8px; font-size: 0.78rem; font-weight: 600; color: var(--danger); cursor: pointer; font-family: inherit; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 4px; transition: background-color var(--transition-fast); }
.btn-reset-colors:hover { background-color: rgba(239,68,68,0.08); }
.colors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.color-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.color-swatch { width: 100%; height: 38px; border-radius: var(--radius-md); border: 2px solid var(--border-color); cursor: pointer; padding: 3px; background-color: var(--bg-primary); transition: border-color var(--transition-fast), transform var(--transition-fast); -webkit-appearance: none; appearance: none; }
@media (hover: hover) { .color-swatch:hover { border-color: var(--accent); transform: scale(1.05); box-shadow: 0 4px 10px var(--accent-glow); } }
.color-item__label { font-size: 0.67rem; font-weight: 600; color: var(--text-secondary); text-align: center; line-height: 1.2; }

/* ICON MODALS */
.icon-settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.icon-setting-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.75rem; background-color: var(--bg-secondary); border-radius: var(--radius-md); cursor: pointer; transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); border: 1px solid var(--border-color); }
@media (hover: hover) { .icon-setting-item:hover { background-color: var(--accent-subtle); border-color: var(--accent); transform: translateY(-2px); } }
.icon-setting-item:active { transform: translateY(0); background-color: var(--bg-tertiary); }
.icon-setting-item__img   { width: 28px; height: 28px; object-fit: contain; margin-bottom: 0.4rem; }
.icon-setting-item__label { font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); }
body[data-theme="dark"] .icon-setting-item__img { filter: invert(1); }

.icon-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 0.75rem; }
.icon-gallery__item { display: flex; flex-direction: column; align-items: center; padding: 0.875rem 0.5rem; border-radius: var(--radius-md); cursor: pointer; transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast); border: 1px solid var(--border-color); background-color: var(--bg-primary); }
.icon-gallery__item:hover { border-color: var(--accent); background-color: var(--accent-subtle); }
.icon-gallery__item.is-selected { border-color: var(--accent); background-color: var(--accent-subtle); box-shadow: var(--shadow-accent); }
.icon-gallery__item img { max-width: 34px; margin-bottom: 0.4rem; }
.icon-gallery__item span { font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); text-align: center; }

/* GALLERY & STICKERS */
.bg-gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; display: block; box-shadow: var(--shadow-card); transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.bg-gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.bg-gallery-item__img { width: 100%; display: block; aspect-ratio: 9/16; object-fit: cover; }
.bg-gallery-item__overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.55); display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; opacity: 0; visibility: hidden; transition: opacity var(--transition-fast), visibility var(--transition-fast); text-align: center; padding: 1rem; }
.bg-gallery-item:hover .bg-gallery-item__overlay { opacity: 1; visibility: visible; }
.bg-gallery-item__name { font-weight: 700; margin-bottom: 1rem; font-size: 0.88rem; }

.stickers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 0.875rem; max-height: 60vh; overflow-y: auto; padding: 0.5rem; }
.sticker-option { padding: 0.5rem; border-radius: var(--radius-md); cursor: pointer; transition: background-color var(--transition-fast), border-color var(--transition-fast); display: flex; align-items: center; justify-content: center; aspect-ratio: 1/1; border: 1px solid transparent; }
.sticker-option:hover { background-color: var(--accent-subtle); border-color: var(--accent); }
.sticker-option img { max-width: 100%; height: auto; max-height: 78px; object-fit: contain; }

.screenshots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.screenshot-card { background-color: var(--bg-primary); border-radius: var(--radius-md); box-shadow: var(--shadow-card); border: 1px solid var(--border-color); padding: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.screenshot-card__img-wrapper { aspect-ratio: 9/19; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-color); }
.screenshot-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screenshot-card__actions { display: flex; gap: 0.5rem; }

/* IMAGE PREVIEW BOX */
.image-preview-box { width: 100%; height: 120px; background-color: var(--bg-secondary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border: 1.5px dashed var(--border-color-strong); }
.image-preview-box__image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity var(--transition-fast); }
.image-preview-box.has-image .image-preview-box__image { opacity: 1; visibility: visible; }
.image-preview-box.has-image { border-style: solid; border-color: var(--accent); }
.image-preview-box.is-circle { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto; }
.image-preview-box__placeholder { color: var(--text-secondary); font-size: 1.5rem; }

/* DROPDOWN */
.dropdown-menu { background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 5px; }
.dropdown-item { color: var(--text-primary); font-size: 0.87rem; font-family: inherit; padding: 0.48rem 0.875rem; border-radius: var(--radius-sm); transition: background-color var(--transition-fast), color var(--transition-fast); }
@media (hover: hover) { .dropdown-item:hover, .dropdown-item:focus { background-color: var(--accent-subtle); color: var(--accent); } }
.dropdown-divider { border-color: var(--border-color); margin: 4px 0; }

/* LOADER */
.loading-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(var(--overlay-rgb), 0.85);
  display: flex; justify-content: center; align-items: center;
  z-index: 999; border-radius: inherit;
  transition: opacity 0.2s ease-in-out;
}
body[data-theme="dark"] .loading-overlay { background-color: rgba(0, 0, 0, 0.8); }
.loading-overlay--small { background-color: rgba(var(--overlay-rgb), 0.6); }
.custom-loader { width: 44px; height: 44px; border-radius: 50%; position: relative; animation: rotate 1s linear infinite; }
.custom-loader::before, .custom-loader::after { content: ""; box-sizing: border-box; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; border: 4px solid var(--accent); animation: prixClipFix 2s linear infinite; }
.custom-loader::after { border-color: var(--accent-light); animation: prixClipFix 2s linear infinite reverse; top: 6px; left: 6px; right: 6px; bottom: 6px; }
@keyframes rotate { 0% {transform: rotate(0deg)} 100% {transform: rotate(360deg)} }
@keyframes prixClipFix { 0% {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)} 50% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)} 75% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)} 100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)} }

/* SETTINGS SIDEBAR */
.settings-sidebar-overlay { position: fixed; inset: 0; z-index: 1040; background-color: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.settings-sidebar-overlay.is-open { opacity: 1; pointer-events: all; }
.settings-sidebar { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1041; width: var(--sidebar-w); background-color: var(--bg-primary); border-left: 1px solid var(--border-color); box-shadow: -8px 0 32px rgba(0,0,0,0.1); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; }
.settings-sidebar.is-open { transform: translateX(0); }
@media (min-width: 992px) { .settings-sidebar, .settings-sidebar-overlay { display: none !important; } }
.settings-sidebar__header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 56px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.settings-sidebar__title { font-weight: 700; font-size: 0.97rem; color: var(--text-primary); display: flex; align-items: center; gap: 9px; }
.settings-sidebar__title i { color: var(--accent); font-size: 0.9rem; }
.settings-sidebar__close { width: 30px; height: 30px; border-radius: var(--radius-sm); border: none; background-color: transparent; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: background-color var(--transition-fast), color var(--transition-fast); }
.settings-sidebar__close:hover { background-color: var(--bg-tertiary); color: var(--text-primary); }
.settings-sidebar__tabs { display: flex; gap: 4px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; border-bottom: 1px solid var(--border-color); }
.settings-sidebar__tabs::-webkit-scrollbar { display: none; }
.settings-sidebar__tabs .nav-link { padding: 0.7rem 0.9rem; font-size: 0.84rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; border: none; border-bottom: 2.5px solid transparent; border-radius: 0; background-color: transparent; transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast); flex-shrink: 0; }
.settings-sidebar__tabs .nav-link:hover { color: var(--text-primary); border-color: transparent; }
.settings-sidebar__tabs .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.settings-sidebar__body { flex-grow: 1; overflow-y: auto; padding: 20px; }
.settings-sidebar__body::-webkit-scrollbar { width: 5px; }
.settings-sidebar__body::-webkit-scrollbar-track { background-color: transparent; }
.settings-sidebar__body::-webkit-scrollbar-thumb { background-color: var(--border-color-strong); border-radius: 3px; }
.settings-sidebar__footer { padding: 16px 20px; border-top: 1px solid var(--border-color); background-color: var(--bg-primary); flex-shrink: 0; margin-top: auto; }

/* MOBILE BOTTOM NAV */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; background-color: var(--bg-primary); border-top: 1px solid var(--border-color); padding: 8px 0 max(8px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,0.06); }
.mobile-bottom-nav__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.mobile-nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; border: none; background-color: transparent; color: var(--text-secondary); font-family: inherit; font-size: 0.65rem; font-weight: 600; cursor: pointer; transition: color var(--transition-fast); text-transform: uppercase; letter-spacing: 0.2px; }
.mobile-nav-btn i { font-size: 1.2rem; }
.mobile-nav-btn.is-active { color: var(--accent); }
.mobile-nav-btn--accent { color: var(--accent-dark); margin: 0 4px; border-radius: var(--radius-md); border: 1px solid transparent; }
.mobile-nav-btn--accent.is-active { background-color: var(--accent-subtle); color: var(--accent); }
.mobile-nav-btn:active { opacity: 0.7; }

/* TOAST CONTAINER */
.toast-container {
    position: fixed !important;
    z-index: 1090;
    bottom: 1rem;
    right: 1rem;
    pointer-events: none;
    max-width: calc(100vw - 2rem);
}
.toast-container .toast {
    pointer-events: auto;
}
body[data-theme="dark"] .toast { background-color: var(--bg-primary); color: var(--text-primary); border-color: var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; }
body[data-theme="dark"] .toast-header { background-color: var(--bg-tertiary); color: var(--text-primary); border-bottom: 1px solid var(--border-color); }
body[data-theme="dark"] .toast .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* MOBILE PANEL SYSTEM */
@media (max-width: 991.98px) {
  .mobile-bottom-nav { display: block; }
  .generator-main { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  
  .generator-main .container > .row {
      display: flex;
      flex-direction: column;
  }
  
  #controls-panel, #results-panel {
      display: none !important;
  }
  
  #controls-panel.is-active, #results-panel.is-active {
      display: flex !important;
      flex-direction: column;
      animation: tabFadeIn 0.2s ease-in-out;
  }

  @keyframes tabFadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
  }

  .app-header { padding: 8px 12px; }
  .settings-sidebar { width: min(var(--sidebar-w), 100vw); }
}

@media (max-width: 767.98px) {
  :root { --sidebar-w: 100vw; }
  .app-header__brand { display: none !important; }
  .app-header__actions { margin-left: auto; }
  .quick-btn--ai { display: none !important; }
  #open-theme-sidebar-btn { display: none !important; }
  #open-settings-sidebar-btn { display: none !important; }
  .form-control, .form-select, textarea, input { font-size: 16px !important; }
  .btn, .form-control, .form-select { min-height: 44px; }
  .quick-btn { min-height: 58px; font-size: 0.7rem; }
  .msg-type-btn { min-height: 62px; }
  .card-body { padding: 0.875rem; }
  
  .mockup-container { min-height: 600px; border-radius: 22px; border-width: 2px; }
  
  .chat-preview-container { min-height: 300px; }
  .mockup-appheader { padding-top: 34px; }
  .messenger-grid { grid-template-columns: 1fr 1fr; }
  .preview-wrap { min-height: 240px; }
  .card { margin-bottom: 0.75rem; }
  .mockup-wrap, .msg-type-card, .info-hint { margin-bottom: 0.75rem; }
  .colors-grid { gap: 7px; }
  .color-swatch { height: 36px; }
  .results-panel-content { padding-bottom: 20px; }
  .chat-msg__footer .btn { padding: 8px 12px !important; }
  .settings-sidebar { top: auto; height: 90vh; transform: translateY(100%); border-left: none; border-top: 1px solid var(--border-color); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .settings-sidebar.is-open { transform: translateX(0) translateY(0); }
  .mode-switcher__btn { font-size: 0.7rem; padding: 4px 8px; }
  body.is-free-mode .mobile-bottom-nav__inner { grid-template-columns: repeat(3, 1fr); }
  
  #modal-live-preview { max-height: 180px; min-height: 120px; }
}

@media (max-width: 575.98px) {
  .hide-on-micro { display: none !important; }
  .app-header__actions { gap: 4px; }
  .app-btn { padding: 4px 8px; font-size: 0.75rem; }
  .mode-switcher__btn { padding: 4px 8px; }
}

@media (max-width: 400px) {
  .quick-btn i { font-size: 1rem; }
  .quick-btn { gap: 4px; padding: 10px 6px; }
  .msg-type-btn { font-size: 0.66rem; }
  .colors-grid { gap: 5px; }
  .color-swatch { height: 32px; }
  .color-item__label { font-size: 0.62rem; }
}

@media (max-width: 360px) {
  .mode-switcher__btn { font-size: 0.65rem; padding: 4px 6px; }
  .app-btn { padding: 4px 5px; font-size: 0.7rem; }
  .app-header__actions { gap: 4px; }
}

/* DARK THEME EXTRA PATCHES */
body[data-theme="dark"] #modal-live-preview { background-color: var(--bg-tertiary) !important; border: 1px dashed var(--border-color-strong) !important; }
body[data-theme="dark"] .btn-light { background-color: var(--bg-tertiary) !important; color: var(--text-primary) !important; border-color: var(--border-color-strong) !important; }
body[data-theme="dark"] .btn-light:hover { background-color: var(--border-color-strong) !important; border-color: var(--accent) !important; }
body[data-theme="dark"] input[type="file"]::file-selector-button { background-color: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color-strong); border-radius: var(--radius-sm); padding: 0.2rem 0.6rem; cursor: pointer; }
body[data-theme="dark"] input[type="file"]::file-selector-button:hover { background-color: var(--border-color-strong); }
body[data-theme="dark"] emoji-picker { --background: var(--bg-primary); --border-color: var(--border-color); }

/* PRICING MODAL */
.pricing-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--bg-primary);
    text-align: center;
}
.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15) !important;
}
.pricing-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin: 0 auto;
}
.pricing-card .d-flex.justify-content-between {
    justify-content: center !important;
    position: relative;
}
.pricing-card .d-flex.justify-content-between > .d-flex.flex-column,
.pricing-card .d-flex.justify-content-between > .badge {
    position: absolute;
    right: 0;
    top: 0;
}
.pricing-card .mt-auto > .d-flex {
    justify-content: center !important;
}

.pricing-card--popular {
    border-width: 2px !important;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(16, 185, 129, 0.03) 100%);
}
@media (min-width: 992px) {
    .pricing-card--popular {
        transform: scale(1.05);
        z-index: 2;
    }
    .pricing-card--popular:hover {
        transform: scale(1.05) translateY(-3px);
    }
}
body[data-theme="dark"] .pricing-card--popular {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(45, 212, 191, 0.05) 100%);
}

/* NATIVE EMOJI PICKER */
.native-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 5px; padding: 15px; max-height: 400px; overflow-y: auto; background-color: var(--bg-primary); }
.emoji-item-btn { background-color: transparent; border: 1px solid transparent; font-size: 1.6rem; padding: 5px; cursor: pointer; border-radius: 8px; transition: background-color 0.1s ease, border-color 0.1s ease, transform 0.1s ease; display: flex; align-items: center; justify-content: center; aspect-ratio: 1/1; }
.emoji-item-btn:hover { background-color: var(--accent-subtle); border-color: var(--accent); transform: scale(1.15); }
.emoji-item-btn:active { transform: scale(0.9); }
#emoji-picker-container::-webkit-scrollbar { width: 6px; }
#emoji-picker-container::-webkit-scrollbar-thumb { background-color: var(--border-color-strong); border-radius: 10px; }

/* SYSTEM STATUS ITEMS */
.small-status-item { font-size: 0.75rem !important; padding: 4px 16px !important; pointer-events: none; opacity: 1 !important; }
.small-status-item.text-success { color: var(--success) !important; }
.small-status-item.text-warning { color: var(--warning) !important; }
.small-status-item.text-secondary { color: var(--text-secondary) !important; }
.btn-premium { background-color: #278146; border-color:#278146; color:#fff;}
.btn-premium:hover {background-color: #1f6b38; border-color:#1f6b38; color:#fff;}

/* INLINE AI PANEL STYLES */
.ai-panel-card { border: 1px solid var(--border-color); transition: border-color 0.3s, box-shadow 0.3s; }
.ai-panel-card .card-header { border: none; background-color: transparent; font-size: 0.9rem; cursor: pointer; transition: background-color var(--transition-fast); }
.ai-panel-card .card-header:hover { background-color: var(--bg-tertiary) !important; }
.ai-panel-card .card-header:not(.collapsed) { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; border-bottom: 1px solid var(--border-color); }
.ai-panel-card .card-header:not(.collapsed) .fa-chevron-down { transform: rotate(180deg); }
.transition-transform { transition: transform 0.3s ease; }

/* FREE MODE LOCKS & BLURS */
body.is-free-mode .locked-zone {
    position: relative;
    overflow: hidden;
}
body.is-free-mode .locked-zone::after {
    content: "\f023";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    background-color: rgba(var(--overlay-rgb), 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-secondary);
    z-index: 10;
    cursor: pointer;
    border-radius: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
}
body.is-free-mode .locked-zone:hover::after {
    background-color: rgba(var(--overlay-rgb), 0.8);
    color: var(--accent);
}

body.is-free-mode .free-lock-icon { display: inline-block !important; }
body.is-free-mode .premium-card { display: none; }
body.is-free-mode #nav-btn-ai { display: none !important; }

/* FREE MODE NON-DESTRUCTIVE VISUAL FILTERING */
body.is-free-mode .chat-msg--file,
body.is-free-mode .chat-msg--call,
body.is-free-mode .chat-msg--sticker,
body.is-free-mode .chat-msg--warning-notify,
body.is-free-mode .chat-msg--warning-card,
body.is-free-mode .chat-msg__image,
body.is-free-mode .chat-msg__reply-image,
body.is-free-mode .chat-msg__reactions,
body.is-free-mode .nickname img {
    display: none !important;
}

/* PREVIEW IMAGE ISOLATION */
#preview-image-free { display: none; }
#preview-image-premium { display: block; }
body.is-free-mode #preview-image-premium { display: none; }
body.is-free-mode #preview-image-free { display: block; }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}