.search-container {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  width: 100%;
}

.search-input {
  flex: 1;
  background: rgba(18,21,29,0.75);
  border: 1px solid rgba(143,156,255,0.18);
  color: var(--text-color);
  padding: 0.58rem 0.94rem;
  font-size: 1rem;
  height: 41px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(143,156,255,0.08);
}

.search-input:focus {
  outline: none;
  border-color: rgba(143,156,255,0.45);
  box-shadow: 0 0 0 3px rgba(143,156,255,0.18);
  background: rgba(21,24,33,0.92);
}

.search-input::placeholder {
  white-space: normal;
  text-align: left;
  line-height: 21px;
}

.search-btn {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  background: transparent;
  color: var(--search-btn);
  padding: 10px 31px;
  border: 1px solid var(--search-btn);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  
  z-index: 1;
  
  min-width: 136px;
  
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(143, 156, 255, 0.1);
  transition: left 0.3s ease;
  z-index: -1;
}

.search-btn:hover::before {
  left: 0;
}

.search-btn:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 0 20px rgba(143, 156, 255, 0.35);
  transform: translateY(-1px);
}

.search-btn:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.search-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(143, 156, 255, 0.4);
}

.search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.file-upload-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.file-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.file-input-label {
  display: inline-block;
  padding: 0.55rem 0.90rem;
  background: rgba(143, 156, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(143, 156, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
  flex-grow: 1;
  text-align: center;
  font-size: 0.78rem;
  transition: all 0.3s ease;
}

.file-input-label:hover {
  background: rgba(143, 156, 255, 0.2);
  border-color: var(--primary);
  color: var(--primary);
}

.file-input-label i {
  margin-right: 8px;
}

.hash {
  font-family: var(--monospace-font);
  width: 100%;
}

.map-note {
  font-size: 0.8em;
  color: #7bffee;
  margin-top: 5px;
  text-align: center;
  width: 100%;
}

.input-with-suggestions {
  position: relative;
  flex-grow: 1;
  width: 100%;
}

.search-container .input-with-suggestions .search-input {
  width: 100%;
}

.suggestions-container {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: #1c2b3a;
  border: 1px solid #52687a;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 100;
  display: none;
  margin-top: 5px;
}

.suggestion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid rgba(123,255,238,0.1);
  transition: background 0.2s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(123,255,238,0.05);
}

.suggestion-password {
  font-family: var(--monospace-font);
  font-weight: bold;
}

.suggestion-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-rank {
  color: #7bffee;
  font-size: 0.8em;
}


.probe-toggle-row {
    margin: 0 0 8px 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 11px 6px;
    overflow: visible;
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.probe-option {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
}

.probe-toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.probe-toggle-switch .probe-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.probe-item-checkbox {
    transition: all 0.2s ease;
}

.probe-item-checkbox:hover {
    background: rgba(143, 156, 255, 0.2) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 8px rgba(0, 255, 163, 0.2);
}

.probe-checkbox {
    accent-color: var(--primary);
    cursor: pointer;
}

.probe-toggle-slider {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: .3s;
    margin-right: 6px;
}

.probe-toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: .3s;
}

.probe-toggle-switch .probe-checkbox:checked + .probe-toggle-slider {
    background-color: var(--primary);
}

.probe-toggle-switch .probe-checkbox:checked + .probe-toggle-slider:before {
    transform: translateX(16px);
    background-color: var(--terminal-bg);
}

.probe-toggle-switch .probe-checkbox:disabled + .probe-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.probe-toggle-label {
    color: var(--text-color);
    font-size: 12px;
    line-height: 28px;
}

.email-mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    height: 41px;
}

.email-mode-toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.email-mode-toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.email-mode-toggle-slider {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: rgba(180, 40, 40, 0.5);
    border-radius: 34px;
    transition: .3s;
}

.email-mode-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: .3s;
}

.email-mode-toggle-switch input[type="checkbox"]:checked + .email-mode-toggle-slider {
    background-color: var(--primary);
}

.email-mode-toggle-switch input[type="checkbox"]:checked + .email-mode-toggle-slider:before {
    transform: translateX(20px);
    background-color: var(--terminal-bg);
}

.email-mode-toggle-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    user-select: none;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.email-mode-label-left {
    order: 1;
}

.email-mode-toggle-switch {
    order: 2;
}

.email-mode-label-right {
    order: 3;
}

.email-mode-toggle-label.active {
    color: var(--text-color);
    font-weight: 600;
}

.email-mode-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    order: 4;
    margin-left: 4px;
}

.email-mode-help i {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease;
}

.email-mode-help i:hover {
    color: var(--primary);
}

.email-mode-tooltip {
    visibility: hidden;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.95);
    color: var(--text-color);
    text-align: left;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 99999;
    top: 125%;
    right: 0;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 12px;
    line-height: 1.5;
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(143, 156, 255, 0.3);
    pointer-events: none;
}

.email-mode-tooltip strong {
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
    margin-top: 8px;
}

.email-mode-tooltip strong:first-child {
    margin-top: 0;
}

.email-mode-help:hover i,
.email-mode-help.active i {
    color: var(--primary);
}

.email-mode-help:hover .email-mode-tooltip,
.email-mode-help.active .email-mode-tooltip {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .email-mode-tooltip {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%);
        padding: 12px !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
    }
}

@media (max-width: 480px) {
    .email-mode-tooltip {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        left: 50% !important;
        transform: translateX(-50%);
        padding: 10px !important;
        font-size: 11px !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
    }
}

.probe-tooltip {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.6);
    cursor: help;
    height: 32px;
    display: flex;
    align-items: center;
    z-index: 1001;
}

.probe-tooltip i {
    font-size: 12px;
}

.probe-tooltip .probe-tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.95);
    color: var(--text-color);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 99999;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(143, 156, 255, 0.3);
    pointer-events: none;
}

.probe-tooltip:hover .probe-tooltiptext {
    visibility: visible;
    opacity: 1;
}

.probe-usage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    background: rgba(143, 156, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--primary);
    font-family: var(--monospace-font);
    margin-left: 8px;
}

.probe-period-tag {
    font-size: 0.7em;
    opacity: 0.7;
}

.input-toggle-header {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.55rem 0.90rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.input-toggle-header:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.input-toggle-header i.fas.fa-edit {
    color: var(--primary);
    font-size: 0.9rem;
}

.input-toggle-header span {
    flex: 1;
    color: var(--text-color);
    font-size: 0.78rem;
}

.toggle-icon {
    color: var(--text-color-dimmed);
    transition: transform 0.3s ease;
}

.input-toggle-header.active .toggle-icon {
    transform: rotate(180deg);
}

.input-container-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.input-container-collapsible.expanded {
    max-height: 500px;
    border-color: var(--border-color);
    padding: 20px;
}

.header-textarea {
    width: 100%;
    min-height: 255px;
    background: var(--terminal-bg);
    border: 1px solid var(--terminal-border);
    border-radius: 6px;
    color: var(--text-color);
    font-family: var(--monospace-font);
    font-size: 0.77rem;
    line-height: 1.4;
    padding: 15px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.header-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 163, 0.1);
}

.header-textarea::placeholder {
    color: var(--text-color-dimmed);
    opacity: 0.7;
}

.header-input-container {
    flex-direction: column;
    gap: 15px;
}

.header-textarea {
    width: 100%;
    min-height: 170px;
    background: rgba(10, 15, 24, 0.8);
    border: 1px solid var(--terminal-border);
    border-radius: 8px;
    padding: 12.75px;
    color: var(--text-color);
    font-family: var(--monospace-font);
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
}

#powershell-input {
    min-height: 40px;
    max-height: 40px;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    padding: 10px 15px;
    font-size: 1rem;
}

#powershell-input:focus {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
}

.header-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(143, 156, 255, 0.3);
}

.header-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.dork-options-panel {
    margin: 0 0 8px 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    height: 50px;
    overflow: visible;
    position: relative;
    z-index: 1000;
}

.dork-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 0;
    height: 100%;
    align-items: center;
}

.dork-option {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
}

.dork-toggle {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dork-toggle input[type="radio"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.dork-toggle-slider {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: .3s;
    margin-right: 6px;
}

.dork-toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: .3s;
}

.dork-toggle input[type="radio"]:checked + .dork-toggle-slider {
    background-color: var(--primary);
}

.dork-toggle input[type="radio"]:checked + .dork-toggle-slider:before {
    transform: translateX(16px);
    background-color: var(--terminal-bg);
}

.dork-toggle-label {
    color: var(--text-color);
    font-size: 12px;
    line-height: 28px;
}

.dork-mobile-dropdown {
    display: none;
}

.dork-dropdown-toggle {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 10px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dork-dropdown-toggle:hover {
    background: rgba(0, 0, 0, 0.4);
}

.dork-dropdown-toggle .dropdown-chevron,
.dork-dropdown-toggle i.fa-angle-down {
    margin-left: 6px;
    font-size: 0.9rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.dork-dropdown-toggle.active .dropdown-chevron,
.dork-dropdown-toggle.active i.fa-angle-down {
    transform: rotate(180deg);
}

.dork-dropdown-content {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 6px;
    margin-top: -1px;
}

.dork-dropdown-content.active {
    display: block;
}

.dork-mobile-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dork-mobile-option:last-child {
    border-bottom: none;
}

.dork-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

.dork-mobile-toggle input[type="radio"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.dork-mobile-toggle-slider {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: .3s;
}

.dork-mobile-toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: .3s;
}

.dork-mobile-toggle input[type="radio"]:checked + .dork-mobile-toggle-slider {
    background-color: var(--primary);
}

.dork-mobile-toggle input[type="radio"]:checked + .dork-mobile-toggle-slider:before {
    transform: translateX(16px);
    background-color: var(--terminal-bg);
}

.dork-mobile-toggle-label {
    color: var(--text-color);
    font-size: 14px;
}

.dorks-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dorks-category {
    background: var(--content-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dorks-category:hover {
    border-color: var(--primary);
}

.category-header {
    background: var(--darker);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.category-header:hover {
    background: rgba(143, 156, 255, 0.05);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.category-title i {
    color: var(--primary);
    font-size: 1.2em;
}

.category-name {
    font-weight: 600;
    font-size: 1.1em;
}

.category-count {
    color: var(--text-color-dimmed);
    font-size: 0.9em;
    font-weight: normal;
}

.category-description {
    color: var(--text-color-dimmed);
    font-size: 0.9em;
    margin-top: 5px;
}

.toggle-icon {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.category-content {
    display: block;
    padding: 20px;
}

.dorks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
}

.dork-group {
    background: var(--darker);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.dork-group:last-child {
    margin-bottom: 0;
}

.dork-group:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(159, 122, 234, 0.2);
}

.dork-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.dork-group-title {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--monospace-font);
}

.dork-group-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.dork-group-content {
    margin-top: 15px;
}

.dork-item {
    background: var(--terminal-bg);
    border: 1px solid var(--terminal-border);
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

.dork-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(159, 122, 234, 0.2);
}

.dork-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.dork-title {
    color: var(--text-color);
    font-size: 1em;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.dork-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 10px;
}

.dork-copy-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color-dimmed);
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.dork-copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dork-search-btn {
    background: var(--darker);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dork-search-btn:hover,
.dork-search-btn:focus,
.dork-search-btn:visited {
    text-decoration: none !important;
}

.dork-search-btn:hover {
    background: var(--content-bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.dork-description {
    color: var(--text-color-dimmed);
    font-size: 0.85em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.dork-query {
    background: var(--darker);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 10px;
    font-family: var(--monospace-font);
    font-size: 0.8em;
    word-break: break-all;
}

.dork-query code {
    color: var(--primary);
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}


@media (max-width: 1500px) {
    .dork-options-grid {
        display: none;
    }
    
    .dork-mobile-dropdown {
        display: block;
    }
    
    .dork-options-panel {
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .dorks-grid {
        grid-template-columns: 1fr;
    }
    
    .dork-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dork-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .toggle-icon {
        align-self: flex-end;
        margin-top: -20px;
    }
}

.ps-code-block-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ps-code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-code-block-lang {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: none;
}

.ps-code-block-actions {
    display: flex;
    gap: 4px;
}

.ps-code-block-wrapper .ps-code-icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 12px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ps-code-block-wrapper .ps-code-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
}

.ps-code-block-wrapper .ps-code-icon-btn:active {
    background: rgba(255, 255, 255, 0.08);
}

.ps-code-icon-btn i {
    margin: 0;
}

.ps-code-pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
    padding: 12px 52px 0 12px;
    margin: 0;
    background: #1e1e1e;
    border: none;
    border-radius: 0 0 8px 8px;
    color: #d4d4d4;
    font-size: 13px;
    line-height: 1.5;
}

.ps-code-pre code {
    background: transparent;
    color: inherit;
}

.powershell-options-panel {
    margin: 0 0 12px 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    min-height: 50px;
    height: auto;
    overflow: visible;
    position: relative;
    z-index: 1000;
}

.ps-options-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
    margin-bottom: 0;
}

.ps-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    height: 28px;
    min-width: 0;
}

.ps-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ps-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ps-toggle-slider {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: .3s;
    margin-right: 0;
}

.ps-toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: .3s;
}

.ps-toggle input:checked + .ps-toggle-slider {
    background-color: var(--primary);
}

.ps-toggle input:checked + .ps-toggle-slider:before {
    transform: translateX(16px);
    background-color: var(--terminal-bg);
}

.ps-toggle-label {
    color: var(--text-color);
    font-size: 12px;
    line-height: 28px;
}

.ps-option-conditional .ps-toggle-label,
.ps-mobile-option-conditional .ps-mobile-toggle-label {
    white-space: nowrap;
}

.ps-tooltip {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.6);
    cursor: help;
    height: 32px;
    display: flex;
    align-items: center;
    z-index: 1001;
}

.ps-tooltip .ps-tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.95);
    color: var(--text-color);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 99999;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(143, 156, 255, 0.3);
    pointer-events: none;
}

.ps-tooltip:hover .ps-tooltiptext {
    visibility: visible;
    opacity: 1;
}

.powershell-password-container {
    display: none;
    grid-column: span 1;
    align-self: center;
    height: 100%;
}

#powershell-super:checked ~ .powershell-password-container,
#powershell-super:checked ~ * .powershell-password-container {
    display: block;
}

.ps-password-field {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 8px;
    max-width: 280px;
    min-width: 280px;
    height: 32px;
    margin-top: 2px;
}

.ps-password-field i {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 6px;
    font-size: 0.8rem;
}

.ps-password-field input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 5.1px 0;
    font-family: var(--monospace-font);
    font-size: 0.72rem;
}

.ps-password-field input:focus {
    outline: none;
}

.ps-password-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 3px;
    font-size: 0.8rem;
}

.ps-password-toggle:hover {
    color: var(--primary);
}

.powershell-btn {
    padding: 0.51rem 1.02rem !important;
    font-size: 0.77rem !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    align-self: flex-start !important;
}

.powershell-btn i {
    font-size: 0.9rem !important;
}

.ps-mobile-dropdown {
    display: none;
}

.ps-dropdown-toggle {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 10px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    transition: all 0.2s ease;
}

.ps-dropdown-toggle:hover {
    background: rgba(0, 0, 0, 0.4);
}

.ps-dropdown-toggle .dropdown-chevron,
.ps-dropdown-toggle i.fa-angle-down {
    margin-left: 6px;
    font-size: 0.9rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.ps-dropdown-toggle.active .dropdown-chevron,
.ps-dropdown-toggle.active i.fa-angle-down {
    transform: rotate(180deg);
}

.ps-dropdown-content {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 6px;
    margin-top: -1px;
}

.ps-dropdown-content.active {
    display: block;
}

.ps-mobile-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-mobile-option:last-child {
    border-bottom: none;
}

.ps-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}

.ps-mobile-toggle-slider {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: .3s;
    cursor: pointer;
}

.ps-mobile-toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: .3s;
}

.ps-mobile-toggle-slider.active {
    background-color: var(--primary);
}

.ps-mobile-toggle-slider.active:before {
    transform: translateX(16px);
    background-color: var(--terminal-bg);
}

.ps-mobile-toggle-label {
    color: var(--text-color);
    font-size: 12px;
}

.ps-mobile-tooltip {
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    cursor: help;
}

.ps-mobile-tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.95);
    color: var(--text-color);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 99999;
    bottom: 125%;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 163, 0.3);
    pointer-events: none;
}

.ps-mobile-tooltip:hover .ps-mobile-tooltiptext {
    visibility: visible;
    opacity: 1;
}

.powershell-password-container-mobile {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-password-field-mobile {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 8px;
    max-width: 100%;
    height: 32px;
}

.ps-password-field-mobile input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 5.1px 0;
    font-family: var(--monospace-font);
    font-size: 0.72rem;
}

.ps-password-field-mobile i {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 6px;
    font-size: 0.8rem;
}

.ps-password-toggle-mobile {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 3px;
    font-size: 0.8rem;
}

.ps-conditional-container {
    display: none;
    position: relative;
    margin-top: 8px;
    padding: 10px 12px;
    padding-right: 36px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
}

.ps-conditional-container.ps-conditional-visible {
    display: grid;
}

.ps-conditional-help-trigger {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    box-sizing: border-box;
}

.ps-conditional-help-trigger:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(143, 156, 255, 0.5);
    background: rgba(143, 156, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.ps-conditional-help-trigger i {
    font-size: 0.55rem;
    -webkit-text-stroke: 0.5px var(--primary);
    font-weight: 900;
}

.ps-conditional-help-trigger:hover i {
    -webkit-text-stroke: 0.5px #fff;
}

.ps-conditional-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ps-conditional-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.ps-conditional-field input {
    width: 100%;
    height: 28px;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--text-color);
    font-family: var(--monospace-font, inherit);
    font-size: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ps-conditional-field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.ps-conditional-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(143, 156, 255, 0.2);
}

.ps-conditional-field-readonly input {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    font-weight: 500;
    cursor: default;
}

.ps-conditional-field-readonly input:focus {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.ps-conditional-container-mobile {
    display: none;
    position: relative;
    margin-top: 8px;
    padding: 10px 12px;
    padding-right: 36px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
}

.ps-conditional-container-mobile.ps-conditional-visible {
    display: grid;
}

.ps-conditional-field-mobile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ps-conditional-label-mobile {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.ps-conditional-field-mobile input {
    width: 100%;
    height: 28px;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--text-color);
    font-family: var(--monospace-font, inherit);
    font-size: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ps-conditional-field-mobile input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.ps-conditional-field-mobile input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(143, 156, 255, 0.2);
}

.ps-conditional-field-readonly-mobile input {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    font-weight: 500;
    cursor: default;
}

.ps-conditional-field-readonly-mobile input:focus {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

@media (max-width: 768px) {
    .powershell-options-panel {
        display: none;
    }
    
    .ps-mobile-dropdown {
        display: block;
    }

    .ps-mobile-option {
        align-items: center;
    }

    .ps-mobile-tooltip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 28px;
        width: 28px;
        min-width: 28px;
        height: 28px;
        margin-left: 8px;
    }

    .ps-mobile-tooltip i {
        font-size: 13px;
        line-height: 1;
    }

    .ps-mobile-tooltiptext {
        visibility: hidden !important;
        opacity: 0 !important;
        position: fixed;
        left: 50%;
        right: auto;
        bottom: 12px;
        transform: translateX(-50%);
        width: calc(100vw - 24px);
        max-width: 360px;
        box-sizing: border-box;
        padding: 10px 12px;
        white-space: normal;
        text-align: left;
        line-height: 1.35;
        z-index: 100001;
        pointer-events: auto;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }

    .ps-mobile-tooltip:hover .ps-mobile-tooltiptext {
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .ps-mobile-tooltip.ps-mobile-tooltip-open .ps-mobile-tooltiptext {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

input, textarea, select {
    font-size: 1rem !important;
}

input::placeholder, textarea::placeholder {
    text-align: left !important;
    line-height: 21px !important;
}
