/* License Modal Styles */
.license-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.license-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.license-modal {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.license-modal-overlay.active .license-modal {
    transform: scale(1) translateY(0);
}

.license-modal-header {
    padding: 32px 32px 24px 32px;
    border-bottom: 1px solid #333;
}

.license-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.license-modal-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.license-modal-subtitle {
    color: #888;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.license-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.license-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.license-modal-content {
    padding: 24px 32px;
}

.license-features {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.license-features-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.license-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.license-features-list li {
    color: #cccccc;
    font-size: 13px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-features-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.license-input-group {
    margin-bottom: 16px;
}

.license-input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #cccccc;
    margin-bottom: 8px;
}

.license-input {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 2px solid #333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    transition: all 0.2s ease;
}

.license-input:focus {
    outline: none;
    border-color: #007aff;
    background: #333;
}

.license-input::placeholder {
    color: #666;
}

.license-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.license-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.license-modal-actions {
    display: flex;
    gap: 12px;
}

.license-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.license-btn-primary {
    background: #007aff;
    color: white;
}

.license-btn-primary:hover:not(:disabled) {
    background: #0056cc;
    transform: translateY(-1px);
}

.license-btn-primary:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

.license-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

.license-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Account Button Styles */
.account-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cccccc;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    position: relative;
}

.account-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.account-icon {
    width: 20px;
    height: 20px;
}

.account-status {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-status.trial {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.account-status.pro {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.3);
}

/* Account Dropdown */
.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.account-dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}

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

.account-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.account-info-value {
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
}

.account-info-value.pro {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-info-value.trial {
    color: #9ca3af;
}

.account-info-value.license-key {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 11px;
    color: #888;
}

.account-dropdown-divider {
    height: 1px;
    background: #333;
    margin: 4px 0;
}

.account-action {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.account-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.account-action svg {
    flex-shrink: 0;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e1e1e;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    z-index: 3000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    max-width: 400px;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.success {
    border-left: 4px solid #4ade80;
}

.toast-notification.info {
    border-left: 4px solid #007aff;
}

.toast-notification.error {
    border-left: 4px solid #ef4444;
}

/* Pro Badge for UI Elements */
.pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Light Theme Adjustments */
body.light-theme .license-modal {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

body.light-theme .license-modal-header {
    border-bottom: 1px solid #e0e0e0;
}

body.light-theme .license-modal-title {
    color: #333333;
}

body.light-theme .license-modal-subtitle {
    color: #666666;
}

body.light-theme .license-modal-close {
    color: #666666;
}

body.light-theme .license-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333333;
}

body.light-theme .license-features {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .license-features-title {
    color: #333333;
}

body.light-theme .license-features-list li {
    color: #666666;
}

body.light-theme .license-input {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #333333;
}

body.light-theme .license-input:focus {
    background: #ffffff;
    border-color: #007aff;
}

body.light-theme .license-input::placeholder {
    color: #999;
}

body.light-theme .license-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #666666;
}

body.light-theme .license-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .account-button {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #666666;
}

body.light-theme .account-button:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
    color: #333333;
}

body.light-theme .account-dropdown {
    background: #ffffff;
    border-color: #e0e0e0;
}

body.light-theme .account-dropdown-item {
    border-bottom-color: #e0e0e0;
}

body.light-theme .account-info-label {
    color: #666666;
}

body.light-theme .account-info-value {
    color: #333333;
}

body.light-theme .account-info-value.free {
    color: #666666;
}

body.light-theme .account-info-value.license-key {
    color: #999999;
}

body.light-theme .account-dropdown-divider {
    background: #e0e0e0;
}

body.light-theme .account-action {
    color: #666666;
}

body.light-theme .account-action:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333333;
}

body.light-theme .toast-notification {
    background: #ffffff;
    color: #333333;
    border-color: #e0e0e0;
}


/* Account Management Modal Styles */
.account-modal {
    max-width: 550px;
}

.account-modal-info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.account-modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-modal-info-label {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-modal-info-value {
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
}

.license-key-display {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 13px;
    color: #cccccc;
    letter-spacing: 0.5px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pro {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.3);
}

.account-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.account-modal-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.account-modal-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.account-modal-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.account-modal-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.account-modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.account-modal-btn svg {
    flex-shrink: 0;
}

/* Light Theme - Account Modal */
body.light-theme .account-modal-info-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .account-modal-info-label {
    color: #666666;
}

body.light-theme .account-modal-info-value {
    color: #333333;
}

body.light-theme .license-key-display {
    color: #666666;
}

body.light-theme .account-modal-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .account-modal-btn.danger {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

body.light-theme .account-modal-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

body.light-theme .account-modal-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #666666;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .account-modal-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333333;
    border-color: rgba(0, 0, 0, 0.15);
}


/* Thank You Message in Account Modal */
.account-thank-you {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 122, 255, 0.08);
    border-radius: 6px;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid rgba(0, 122, 255, 0.5);
}

.account-modal-info-item.status-item {
    padding-bottom: 8px;
}

/* Light Theme */
body.light-theme .account-thank-you {
    background: rgba(0, 122, 255, 0.05);
    color: #666666;
    border-left-color: rgba(0, 122, 255, 0.4);
}
