/* ========================================
   DEMO LAYOUT - Split screen with preview
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #1a1a1a;
    font-family: "Segoe UI", sans-serif;
    overflow: hidden;
}

#demo-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    gap: 0;
}

/* LEFT: Plugin UI (300px width like Photoshop) */
#plugin-ui {
    width: 300px;
    height: 100vh;
    overflow-y: auto;
    background: #323232;
    color: #e0e0e0;
    font-size: 10px;
}

/* RIGHT: Preview Panel */
#preview-panel {
    flex: 1;
    background: #252525;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: auto;
}

.preview-header {
    text-align: center;
    margin-bottom: 30px;
}

.preview-header h3 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #e0e0e0;
    font-weight: 600;
}

.preview-header p {
    font-size: 16px;
    color: #999;
    margin: 0;
}

/* Canvas for gradient preview */
#gradient-canvas {
    width: 500px;
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #000;
    margin-bottom: 30px;
}

/* Color info display */
.preview-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 8px;
}

.color-label {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.color-value {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 900px) {
    #demo-container {
        flex-direction: column;
    }
    
    #plugin-ui {
        width: 100%;
        height: 50vh;
    }
    
    #gradient-canvas {
        width: 300px;
        height: 300px;
    }
}

/* ========================================
   IMPORT ORIGINAL PLUGIN STYLES
   (Everything below is from original styles.css)
   ======================================== */
/* ========================================
   GRADIENT WHEEL PLUGIN - IMPROVED STYLES
   Fixed z-index hierarchy for modal/dropdown
   ======================================== */

/* CSS Variables */
:root {
    --bg: #323232;
    --panel-bg: #2b2b2b;
    --accent: #2680EB;
    --accent-hover: #1473E6;
    --text-main: #e0e0e0;
    --tab-bg: #252525;
    --tab-active: #2680EB;
}

/* Base Styles */
body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    box-sizing: border-box;
    text-align: center;
    font-size: 10px;
    height: 100vh;
}

/* ========================================
   Z-INDEX HIERARCHY (CRITICAL FOR LAYERING)
   ======================================== */

/* Base content layer */
#main-plugin-content {
    position: relative;
    z-index: 1;
}

/* Wheel handles */
.handle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    border-width: 2px;
    border-style: solid;
    box-shadow: 0 0 4px rgba(0, 0, 0, 1);
    cursor: pointer;
    z-index: 100;
}

/* Select dropdowns - BELOW modals */
.control-row select {
    position: relative;
    z-index: 500 !important;
}

/* Color picker modals - ABOVE everything except license */
/* Note: Inline styles in JS set z-index: 10000 */

/* License overlay - HIGHEST (already set in original) */
#license-overlay {
    z-index: 2147483647 !important;
}

.license-box {
    z-index: 2147483648 !important;
}

/* ========================================
   TAB NAVIGATION
   ======================================== */

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 4px;
    background: var(--tab-bg);
    border-bottom: 2px solid #1a1a1a;
    padding: 4px;
    margin: 0;
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button:hover {
    background: linear-gradient(180deg, #353535 0%, #2d2d2d 100%);
    border-color: #333;
    transform: translateY(-1px);
}

.tab-button.active {
    background: linear-gradient(180deg, #353535 0%, #2d2d2d 100%);
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(38, 128, 235, 0.3);
}

.tab-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

.tab-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #ccc;
    transition: color 0.2s;
}

.tab-button.active .tab-label {
    color: #e0e0e0;
}

.tab-button:hover .tab-label {
    color: #e0e0e0;
}

.tab-content {
    display: none;
    padding: 4px;
    animation: fadeIn 0.15s;
}

.tab-content.active {
    display: block;
}

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

/* ========================================
   COLLAPSIBLE SECTIONS
   ======================================== */

.collapsible-section {
    margin-bottom: 8px;
}

.section-header {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2d2d2d 100%);
    border: 1px solid #1a1a1a;
    border-radius: 2px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.section-header:hover {
    background: linear-gradient(180deg, #424242 0%, #353535 100%);
}

.section-header.expanded {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.section-arrow {
    font-size: 8px;
    color: #999;
    transition: transform 0.2s;
    margin-right: 8px;
    display: inline-block;
    width: 10px;
}

.section-header.expanded .section-arrow {
    transform: rotate(90deg);
}

.section-title {
    flex: 1;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #ddd;
    text-align: center;
}

.collapsible-section .section-content {
    display: none;
    background: #2b2b2b;
    border: 1px solid #1a1a1a;
    border-top: none;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    position: relative;
    z-index: 1;
}

.collapsible-section .section-content.expanded {
    display: block !important;
    padding: 4px !important;
    min-height: 60px !important;
    background: #2b2b2b !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ========================================
   PRESET GRID
   ======================================== */

.preset-grid {
    display: block !important;
    padding: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0 !important;
}

.preset-item {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: calc(33.333333% - 1px) !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    background: linear-gradient(180deg, #2a2a2a 0%, #222 100%) !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
    min-height: 32px !important;
    vertical-align: top !important;
    font-size: 8px !important;
}

.preset-item:hover {
    background: linear-gradient(180deg, #353535 0%, #2d2d2d 100%);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.preset-item:active {
    background: linear-gradient(180deg, #202020 0%, #181818 100%);
    transform: translateY(0);
}

.preset-icon {
    width: 20px !important;
    height: 20px !important;
    margin-right: 6px !important;
    border-radius: 3px !important;
    background: linear-gradient(135deg, #666, #999);
    display: block !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.preset-name {
    font-size: 8px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    color: #ccc !important;
    text-align: left !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ========================================
   CUSTOM PRESETS
   ======================================== */

.custom-presets-buttons {
    display: flex;
    gap: 4px;
    padding: 4px;
}

.custom-action-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
    border: 1px solid #1a1a1a;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-action-item:hover {
    background: linear-gradient(180deg, #353535 0%, #2d2d2d 100%);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.custom-action-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
    flex-shrink: 0;
}

.custom-action-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #e0e0e0;
}

.custom-presets-list {
    padding: 4px;
}

.custom-preset-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 6px;
    background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
    border: 1px solid #1a1a1a;
    border-radius: 3px;
    margin-bottom: 3px;
    transition: all 0.2s;
}

.custom-preset-item:hover {
    background: linear-gradient(180deg, #353535 0%, #2d2d2d 100%);
    border-color: var(--accent);
}

.custom-preset-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.custom-preset-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    flex-shrink: 0;
}

.custom-preset-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-preset-buttons {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.custom-btn {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    color: white;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.custom-btn-load {
    background: var(--accent);
}

.custom-btn-load:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.custom-btn-export {
    background: #555;
}

.custom-btn-export:hover {
    background: #666;
    transform: scale(1.1);
}

.custom-btn-delete {
    background: #764ba2;
}

.custom-btn-delete:hover {
    background: #8b5ab8;
    transform: scale(1.1);
}

/* ========================================
   HISTORY
   ======================================== */

.history-actions-grid {
    display: flex;
    gap: 4px;
    padding: 4px;
}

.history-action-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
    border: 1px solid #1a1a1a;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-action-item:hover {
    background: linear-gradient(180deg, #353535 0%, #2d2d2d 100%);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.history-action-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
}

.history-action-item.disabled:hover {
    transform: none;
    border-color: #1a1a1a;
}

.history-action-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
    flex-shrink: 0;
}

.history-action-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #e0e0e0;
}

.history-list {
    padding: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
    border: 1px solid #1a1a1a;
    border-radius: 3px;
    margin-bottom: 3px;
    transition: all 0.2s;
}

.history-item:hover {
    background: linear-gradient(180deg, #353535 0%, #2d2d2d 100%);
    border-color: var(--accent);
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-time {
    font-size: 8px;
    color: #888;
    margin-bottom: 3px;
}

.history-item-action {
    font-size: 9px;
    color: #e0e0e0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-restore-item {
    display: flex;
    align-items: center;
    padding: 3px 6px;
    background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
    border: 1px solid #1a1a1a;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.history-restore-item:hover {
    background: linear-gradient(180deg, #353535 0%, #2d2d2d 100%);
    border-color: var(--accent);
    transform: scale(1.05);
}

.history-restore-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 2px;
    background: linear-gradient(135deg, #2680EB, #1473E6);
    flex-shrink: 0;
}

.history-restore-label {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #e0e0e0;
}

.history-empty {
    padding: 20px 8px;
    color: #888;
    font-size: 9px;
    text-align: center;
}

/* ========================================
   POINT INFO & SLIDERS
   ======================================== */

.point-info-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4em;
    padding: 0.3em 0.5em;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.info-label {
    font-size: 11px;
    color: #888;
}

.point-name {
    color: #2680EB;
    font-weight: 600;
    font-size: 11px;
}

.slider-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.3em;
}

.slider-block:last-child {
    margin-bottom: 0;
}

.slider-left-column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.2em;
    text-align: left !important;
}

.slider-right-column {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.slider-label {
    font-size: 11px;
    font-weight: 500;
    color: #bbb;
}

.slider-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
}

.slider-input {
    flex-grow: 1;
    display: block;
}

.custom-slider {
    position: relative;
    flex-grow: 1;
    height: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #666;
    border-radius: 1px;
}

#hue-track {
    background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}

#sat-track {
    background: linear-gradient(to right, #444, #2680EB);
}

#opacity-track {
    background: linear-gradient(to right, #222, #fff);
}

.slider-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #888;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transform: translateX(-50%);
    left: 0%;
}

.slider-marker:active {
    cursor: grabbing;
}

/* Number input styling */
input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
    border: 0;
    outline: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

input[type="number"] {
    -moz-appearance: textfield !important;
}

.slider-value {
    width: 38px;
    padding: 3px 6px;
    background-color: #282828 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    box-shadow: none !important;
    color: #bbb !important;
    font-size: 0.9em;
    font-weight: 400;
    text-align: center;
    box-sizing: border-box !important;
    flex-shrink: 0;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
}

.slider-value:focus {
    outline: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #2a2a2a !important;
    color: #fff !important;
}

.slider-value:hover {
    border: 0 !important;
    box-shadow: none !important;
}

/* ========================================
   TYPOGRAPHY & SEPARATORS
   ======================================== */

h3 {
    margin: 0 0 4px 0;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    font-size: 10px;
}

.separator {
    height: 1px;
    background: #444;
    margin: 8px 5px;
}

/* ========================================
   COLOR WHEEL
   ======================================== */

#wheel-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(38, 128, 235, 0.15);
    background-color: #000;
    background-image: url('icons/wheel.png');
    background-size: cover;
    background-position: center;
    transition: box-shadow 0.3s ease;
}

#wheel-wrapper:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 40px rgba(38, 128, 235, 0.25);
}

.handle:hover {
    border-width: 3px;
}

.handle.active {
    border-width: 3px;
    box-shadow: 0 0 10px var(--accent), 0 0 4px rgba(0, 0, 0, 1);
}

#h-shadows {
    border-color: #000000;
}

#h-mids {
    border-color: #808080;
}

#h-lights {
    border-color: #ffffff;
}

/* ========================================
   CONTROL ROWS
   ======================================== */

.control-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
    padding: 0 4px;
}

.control-row label {
    font-size: 11px;
    color: #ccc;
    white-space: nowrap;
    min-width: 50px;
    text-align: left;
}

.control-row select {
    flex: 1;
    background-color: #1a1a1a;
    color: var(--text-main);
    border: 1px solid #444;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 9px;
    cursor: pointer;
}

.control-row select:hover {
    border-color: #555;
    background-color: #222;
}

.control-row select:focus {
    outline: none;
    border-color: var(--accent);
}

.slider-group {
    margin-bottom: 8px;
    text-align: left;
    padding: 0 4px;
}

.slider-group .slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    font-size: 11px;
    color: #ccc;
}

/* ========================================
   BUTTONS
   ======================================== */

.color-picker-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 12px;
    background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.color-picker-btn:hover {
    background: linear-gradient(180deg, #353535 0%, #2d2d2d 100%);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(38, 128, 235, 0.2);
}

.picker-icon-left,
.picker-icon-right {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    flex-shrink: 0;
}

.picker-label {
    flex: 1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-align: center;
    color: #e0e0e0;
    padding: 0 12px;
}

.generate-section {
    padding: 4px;
    margin-top: 4px;
}

.generate-noise-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 12px;
    background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.generate-noise-btn:hover {
    background: linear-gradient(180deg, #353535 0%, #2d2d2d 100%);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(38, 128, 235, 0.2);
}

.generate-icon-left,
.generate-icon-right {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(135deg, #764ba2, #8b5ab8);
    flex-shrink: 0;
}

.generate-label {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    color: #e0e0e0;
    padding: 0 16px;
}

/* ========================================
   STATUS & FOOTER
   ======================================== */

#status-msg {
    margin-top: 6px;
    font-size: 8px;
    color: #888;
    min-height: 10px;
    padding: 3px 6px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.3);
}

.footer {
    margin-top: 12px;
    padding: 8px 4px 4px 4px;
    border-top: 1px solid #444;
    text-align: center;
}

.footer-text {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.footer-version {
    font-size: 10px;
    color: #666;
    font-style: italic;
}

/* ========================================
   LICENSE OVERLAY
   ======================================== */

#license-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.98) !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 2147483647 !important;
    display: none !important;
}

#license-overlay.active {
    display: flex !important;
}

body.license-checking #main-plugin-content {
    visibility: hidden !important;
    pointer-events: none !important;
}

.license-box {
    position: relative;
    z-index: 2147483648 !important;
    background: #2b2b2b;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.license-input {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    box-sizing: border-box;
}

.license-input:focus {
    outline: none;
    border-color: #2680EB;
}

.license-input.error {
    border-color: #e74c3c;
}

.license-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2680EB 0%, #1473E6 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-button:hover {
    transform: translateY(-1px);
}

.license-button:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.5;
}

.license-message {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
    display: none;
}

.license-message.error {
    display: block;
}

.license-message.success {
    background: rgba(39, 174, 96, 0.2);
    border-color: #27ae60;
    color: #27ae60;
    display: block;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}