/* Nix-Cloud Landing Page Styles with Dark Mode & Responsive Header */

:root {
    --bg-color: #ffffff;
    --text-color: #111827;
    --header-bg: #ffffff;
    --header-text: #111827;
    --input-bg: #ffffff;
    --input-text: #374151;
    --pill-bg: #ffffff;
    --pill-text: #374151;
    --pill-hover: #f3f4f6;
    --btn-bg: #232328;
    --btn-text: #ffffff;
    --btn-hover: #111115;
    --green-bg: #22d371;
    --green-text: #064e3b;
    --inner-card-bg: #ffffff;
    --inner-card-text: #111827;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --shadow-color: rgba(0,0,0,0.1);
    --border-color: #e5e7eb;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f3f4f6;
    --header-bg: #1e1e1e;
    --header-text: #f3f4f6;
    --input-bg: #2d2d2d;
    --input-text: #f3f4f6;
    --pill-bg: #2d2d2d;
    --pill-text: #e5e7eb;
    --pill-hover: #374151;
    --btn-bg: #3b82f6;
    --btn-text: #ffffff;
    --btn-hover: #2563eb;
    --green-bg: #059669;
    --green-text: #ffffff;
    --inner-card-bg: #1e1e1e;
    --inner-card-text: #ffffff;
    --card-bg: #1e1e1e;
    --card-border: #374151;
    --shadow-color: rgba(0,0,0,0.5);
    --border-color: #374151;
}

/* Reset some body margins for landing */
body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background: var(--bg-color); color: var(--text-color); }

/* Header */
.nix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: relative;
    z-index: 100;
}
.nix-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nix-hamburger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--header-text);
}
.nix-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--header-text);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.nix-header-brand-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nix-desktop-links {
    display: none;
    align-items: center;
    gap: 20px;
}
.nix-desktop-links a {
    color: var(--header-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nix-desktop-links .arrow-down {
    border: solid var(--header-text);
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.nix-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nix-btn-login {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}
.nix-btn-login:hover {
    background: var(--btn-hover);
}

.nix-header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nix-desktop-btn {
    display: none;
}

.theme-toggle, .lang-switch {
    background: none;
    border: none;
    color: var(--header-text);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* Hero Section */
.nix-hero {
    position: relative;
    min-height: 600px;
    padding-top: 100px;
    padding-bottom: 120px;
}

.nix-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(100vh - 60px);
    background-image: url('/img/bg.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

@media (max-width: 800px) {
    .nix-hero {
        padding-top: 34px;
    }
}

.nix-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(100vh - 60px);
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    z-index: 1;
}
.nix-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}
.nix-hero-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Search Wrapper */
.nix-search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px 8px 8px 20px;
    margin-bottom: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.nix-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: #0f172a;
    background: transparent;
}
.nix-search-input::placeholder {
    color: #64748b;
}
.nix-search-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nix-globe-icon {
    width: 24px;
    height: 24px;
    color: #0f172a;
}
.nix-search-whois {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 500;
    display: none;
}
.nix-search-btn {
    background: var(--btn-bg);
    border: none;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--btn-text);
    padding: 0 15px;
    font-weight: 600;
    font-size: 1rem;
}
.nix-search-btn:hover { background: var(--btn-hover); }
.nix-search-btn-text { display: none; }

/* TLDs */
.nix-tlds {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}
.nix-tld {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: #0f172a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.nix-tld:hover { background: #ffffff; }

.nix-ai-prompt-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.nix-ai-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #0f172a;
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.nix-ai-textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #0f172a;
    resize: none;
    height: 70px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    padding-bottom: 25px; /* space for absolute buttons */
}
@media (min-width: 768px) {
    .nix-ai-textarea {
        height: 110px;
        font-size: 1.1rem;
    }
}
.nix-ai-textarea::placeholder {
    color: #64748b;
}
.nix-ai-icon-btn {
    position: absolute;
    bottom: 12px;
    background: none;
    border: none;
    color: #0f172a;
    opacity: 0.6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s;
}
.nix-ai-icon-btn.btn-left {
    left: 12px;
}
.nix-ai-icon-btn.btn-right {
    right: 12px;
}
.nix-ai-icon-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

/* Server Card */
.nix-server-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: left;
}
.nix-server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.nix-server-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
}
.nix-server-change-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.nix-server-change-btn:hover {
    background: var(--pill-hover);
}
.nix-server-specs {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Checkout Panel */
.nix-checkout-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: 15px 20px;
    box-shadow: 0 -5px 20px var(--shadow-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: 1px solid var(--border-color);
}
.nix-checkout-panel.active {
    transform: translateY(0);
}
.nix-checkout-info {
    display: block; 
    flex: 1;
}
.nix-checkout-btn {
    background: #1f2937;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 400px;
}
.nix-checkout-btn:hover {
    background: #111827;
}

/* Instruction Section */
.nix-instruction-section {
    position: relative;
    z-index: 10;
    max-width: 1140px;
    margin: -40px auto 40px;
    padding: 0 20px;
}
.nix-instruction-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.nix-instruction-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.nix-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    flex: 1;
}
.nix-step-icon {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.nix-step-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
}
.nix-step-divider {
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .nix-instruction-steps {
        flex-direction: column;
        gap: 25px;
    }
    .nix-step-divider {
        transform: rotate(90deg);
    }
}

/* Green Card Section */
.nix-green-section {
    padding: 0 20px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}
.nix-green-card {
    background: var(--green-bg);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px var(--shadow-color);
    max-width: 1060px;
    margin: 0 auto;
}
.nix-green-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}
.nix-green-text h2 {
    color: var(--green-text);
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 800;
}
.nix-green-text p {
    color: var(--green-text);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}
.nix-green-arrow-btn {
    background: var(--inner-card-bg);
    color: var(--inner-card-text);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.nix-green-inner-cards {
    display: flex;
    gap: 15px;
}
.nix-inner-card {
    background: var(--inner-card-bg);
    flex: 1;
    border-radius: 16px;
    padding: 20px;
    min-height: 120px;
    display: flex;
    align-items: flex-start;
}
.nix-inner-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--inner-card-text);
    font-weight: 700;
    line-height: 1.3;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-color);
    z-index: 9999;
    overflow-y: auto;
}
.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
}
.mobile-menu-close {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-color);
}
.mobile-menu-list {
    padding: 0 20px 40px;
}
.mobile-menu-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}
.mobile-tab {
    padding-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
}
.mobile-tab.active {
    color: var(--text-color);
    border-bottom: 2px solid var(--green-bg);
}
.mobile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}
.mobile-menu-item .arrow-down {
    border: solid var(--text-color);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}
hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 15px 0;
}

@media (min-width: 768px) {
    .nix-hamburger { display: none; }
    .nix-desktop-links { display: flex; }
    .nix-desktop-btn { display: block; }
    .nix-header-controls { margin-right: 0; margin-left: 15px; }
    
    .nix-hero-title { font-size: 3.5rem; }
    .nix-search-input { font-size: 1.2rem; padding: 15px 0; }
    
    .nix-search-btn { padding: 0 30px; }
    .nix-search-btn-icon { display: none; }
    .nix-search-btn-text { display: block; }
    .nix-search-whois { display: block; }
    
    .nix-checkout-panel {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 40px;
        max-width: 1000px;
        margin: 0 auto;
        border-radius: 20px 20px 0 0;
    }
    
    .nix-green-card { padding: 40px; }
    .nix-green-text h2 { font-size: 2.2rem; }
    .nix-green-text p { font-size: 1.1rem; }
    .nix-inner-card { padding: 30px; min-height: 160px;}
    .nix-inner-card h3 { font-size: 1.4rem; }
}

/* Toast Notifications */
.nix-toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.nix-toast-container.with-panel {
    bottom: 110px;
}
@media (max-width: 800px) {
    .nix-toast-container.with-panel {
        bottom: 140px;
    }
}
.nix-toast {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 40px 15px 20px;
    box-shadow: 0 10px 25px var(--shadow-color);
    position: relative;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    pointer-events: auto;
}
.nix-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.nix-toast-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nix-toast-close:hover {
    opacity: 1;
}
.nix-toast-title {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1rem;
}
.nix-toast-message {
    font-size: 0.9rem;
    opacity: 0.8;
}
.nix-toast.success .nix-toast-title {
    color: var(--green-bg);
}
.nix-toast.error .nix-toast-title {
    color: #ef4444;
}

/* Clear Input Button */
.nix-clear-btn {
    background: none;
    border: none;
    color: var(--input-text);
    opacity: 0.4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    transition: opacity 0.2s;
}
.nix-clear-btn:hover {
    opacity: 1;
}
