* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', 'Inter', BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

/* Full screen layout */
html, body {
    height: 100%;
    width: 100%;
}

/* Animated Background Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.4), transparent);
    top: -150px;
    left: -150px;
    animation: float 20s ease-in-out infinite;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88, 86, 214, 0.3), transparent);
    bottom: -200px;
    right: -200px;
    animation: float 25s ease-in-out infinite reverse;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 45, 85, 0.2), transparent);
    top: 40%;
    left: -100px;
    animation: float 18s ease-in-out infinite 2s;
}

.blob-4 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.15), transparent);
    bottom: 10%;
    right: -100px;
    animation: float 22s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    z-index: 1;
    pointer-events: none;
}

/* macOS Window Bar */
.mac-window-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: rgba(20, 20, 30, 0.75);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.mac-window-controls {
    display: flex;
    gap: 10px;
    min-width: 80px;
}

.mac-btn {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.mac-btn-red { background: #ff5f56; }
.mac-btn-yellow { background: #ffbd2e; }
.mac-btn-green { background: #27c93f; }

.mac-btn:hover {
    transform: scale(1.1);
    filter: brightness(0.95);
}

.mac-window-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.mac-window-actions {
    display: flex;
    gap: 16px;
    min-width: 80px;
    justify-content: flex-end;
}

.mac-action {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.mac-action:hover {
    color: #007aff;
    transform: scale(1.05);
}

/* Main Container - Full Screen */
.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.9), rgba(88, 86, 214, 0.9));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 15px 35px -8px rgba(0, 122, 255, 0.4);
    backdrop-filter: blur(10px);
}

.hero-icon i {
    font-size: 36px;
    color: white;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Glass Container */
.glass-container {
    max-width: 700px;
    width: 100%;
    background: rgba(30, 30, 45, 0.35);
    backdrop-filter: blur(25px);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Field Group */
.field-group {
    margin-bottom: 32px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.field-label i {
    color: #007aff;
    font-size: 14px;
}

.field-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-top: 10px;
    letter-spacing: -0.2px;
}

/* Tom Select Custom Styling */
.ts-wrapper {
    background: rgba(20, 20, 30, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s;
}

.ts-wrapper.focus {
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
    background: rgba(20, 20, 30, 0.85);
}

.ts-control {
    background: transparent !important;
    border: none !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    color: white !important;
    font-family: inherit !important;
}

.ts-control input {
    color: white !important;
    font-family: inherit !important;
    font-size: 15px !important;
}

.ts-control input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.ts-dropdown {
    background: rgba(25, 25, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    margin-top: 8px !important;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.ts-dropdown .option {
    padding: 12px 18px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.15s;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background: rgba(0, 122, 255, 0.25) !important;
    color: white !important;
}

.ts-dropdown .option:first-child {
    border-top: none;
}

.ts-wrapper.single .ts-control:after {
    border-color: rgba(255, 255, 255, 0.5) transparent transparent transparent !important;
}

.ts-wrapper .ts-control .item {
    color: white !important;
}

/* Search Button */
.search-button {
    width: 100%;
    background: linear-gradient(135deg, #007aff, #5856d6);
    border: none;
    border-radius: 16px;
    padding: 0;
    margin-top: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px -6px rgba(0, 122, 255, 0.4);
}

.search-button-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
    transition: all 0.3s;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(0, 122, 255, 0.5);
}

.search-button:active {
    transform: translateY(0);
}

.search-button-inner i {
    font-size: 18px;
}

/* Results Section */
.results-section {
    margin-top: 32px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-glass {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    border: 1px solid rgba(0, 122, 255, 0.3);
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(0, 122, 255, 0.12);
    border-bottom: 1px solid rgba(0, 122, 255, 0.2);
}

.results-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #007aff;
    font-size: 13px;
    font-weight: 500;
}

.results-header-left i {
    font-size: 14px;
}

.results-copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    padding: 6px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.results-copy-btn:hover {
    background: rgba(0, 122, 255, 0.3);
    color: white;
}

.results-body {
    padding: 20px;
}

.results-code {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: #60a5fa;
    word-break: break-all;
    line-height: 1.7;
    display: block;
}

/* Footer */
.footer {
    margin-top: 60px;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-text {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    letter-spacing: -0.2px;
}

.footer-text i {
    margin-right: 6px;
    font-size: 11px;
}

.footer-divider {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(40, 40, 55, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 22px;
    color: white;
    font-size: 13px;
    transform: translateX(450px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification i {
    color: #007aff;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 100px 16px 40px;
    }
    
    .glass-container {
        padding: 28px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        padding: 0 20px;
    }
    
    .mac-window-title {
        display: none;
    }
    
    .mac-window-controls {
        min-width: auto;
    }
    
    .mac-window-actions {
        min-width: auto;
    }
    
    .hero-icon {
        width: 60px;
        height: 60px;
    }
    
    .hero-icon i {
        font-size: 28px;
    }
    
    .footer-content {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .glass-container {
        padding: 20px;
    }
    
    .ts-control {
        padding: 12px 14px !important;
    }
    
    .search-button-inner {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Loading State */
.ts-wrapper.loading .ts-control::before {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #007aff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}