:root {
    --base: #24273a;
    --mantle: #1e2030;
    --crust: #181926;
    --surface: #363a4f;
    --text: #cad3f5;
    --green: #a6da95;
    --red: #ed8796;
    --yellow: #eed49f;
    --subtext: #a5adcb;
    --mauve: #c6a0f6;
    --pink: #f5bde6;
}

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

html,
body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--base);
    color: var(--text);
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

hr {
    border: none;
    height: 2px;
    margin: 14px 0;
    background: linear-gradient(90deg, transparent, var(--mauve), transparent);
    opacity: 0.6;
    animation: pulse 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes pulse {
    0% {
        transform: scaleX(1);
        opacity: 0.1;
    }

    50% {
        transform: scaleX(1.05);
        opacity: 0.6;
    }

    100% {
        transform: scaleX(1);
        opacity: 0.1;
    }
}

/* Header */
.header {
    background-color: var(--mantle);
    border-bottom: 2px solid var(--surface);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    max-height: 70px;
    width: auto;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav {
    border: solid 2px var(--mauve);
    color: var(--mauve);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-nav:hover {
    background-color: var(--mauve);
    color: var(--crust);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.domain-info {
    width: 100%;
    background-color: var(--mantle);
    border: 2px solid var(--surface);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.domain-header {
    margin-bottom: 2rem;
    text-align: left;
}

.domain-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.domain-status {
    font-size: 1.2rem;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.domain-status i {
    margin-right: 0.5rem;
    color: var(--mauve);
}

.domain-subtitle {
    font-size: 1rem;
    color: var(--text);
    font-weight: 400;
}

.price-inline {
    color: var(--green);
    font-weight: 700;
}

.domain-box {
    background-color: var(--crust);
    border-left: 8px solid var(--green);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.domain-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 2px 8px rgba(198, 160, 246, 0.2);
    word-break: break-word;
    margin: 0;
    text-align: left;
    flex: 1;
}

.domain-available {
    color: var(--green);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    margin: 0;
}


.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    text-align: center;
    text-decoration: none;
    background-color: var(--surface);
    color: var(--text);
    width: 100%;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--mauve);
    color: var(--crust);
}

.btn-weiter {
    margin: 1.5rem 0 1rem 0;
}

.help-text {
    font-size: 0.9rem;
    color: var(--subtext);
    margin: 0;
}

.help-link {
    color: var(--mauve);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.help-link:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--mantle);
    border: 2px solid var(--surface);
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--surface);
}

.modal-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--subtext);
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
    color: var(--text);
}

.modal-body p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.modal-body li {
    padding: 0.5rem 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body i {
    color: var(--mauve);
    width: 20px;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--surface);
}

/* Search Section */
.domain-search {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h2 {
    font-size: 1.8rem;
    color: var(--text);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-header i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--mauve);
}

.search-header p {
    color: var(--subtext);
    font-size: 1rem;
    margin: 0;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.powered-by {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.6rem;
}

.powered-by a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--subtext);
    text-decoration: none;
    transition: all 0.3s ease;
}

.powered-by a:hover {
    color: var(--text);
}

.powered-by-logo {
    height: 20px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.powered-by a:hover .powered-by-logo {
    opacity: 1;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    font-family: 'Poppins', sans-serif;
    flex: 1;
    padding: 1rem 3.5rem 1rem 1rem;
    background-color: var(--mantle);
    border: 2px solid var(--surface);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.search-input:focus {
    outline: none;
    border-color: var(--mauve);
    background-color: var(--base);
}

.search-input::placeholder {
    color: var(--subtext);
}

.btn-search {
    position: absolute;
    right: 10px;
    padding: 0.75rem 1rem;
    background-color: transparent;
    color: var(--mauve);
    border: none;
    border-radius: 6px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
}

.btn-search:hover {
    background-color: var(--surface);
}

/* Search Results */
.search-result-available,
.search-result-unavailable {
    background-color: var(--mantle);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 8px solid var(--surface);
}

.search-result-available {
    border-left-color: var(--green);
}

.search-result-unavailable {
    border-left-color: var(--red);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.result-header i {
    font-size: 1.5rem;
    min-width: 24px;
}

.search-result-available .result-header i {
    color: var(--green);
}

.search-result-unavailable .result-header i {
    color: var(--red);
}

.result-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text);
}

.search-result-available .result-header h3 {
    color: var(--subtext);
}

.search-result-unavailable .result-header h3 {
    color: var(--subtext);
}

.result-domain {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0.5rem 0;
    letter-spacing: 0.05em;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.result-price {
    color: var(--green);
    font-size: 1.5rem;
    margin: 0;
}

.result-note {
    color: var(--subtext);
    font-size: 0.95rem;
    margin: 1rem 0 0.5rem 0;
}

/* Comparison Results */
.comparison-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--crust);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--surface);
    transition: all 0.2s ease;
}

.comparison-row.available {
    border-left-color: var(--green);
}

.comparison-row.unavailable {
    border-left-color: var(--red);
}

.comparison-row:hover {
    background-color: var(--surface);
    transform: translateX(4px);
}

.comparison-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comparison-status {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    min-width: 24px;
}

.comparison-row.available .comparison-status {
    color: var(--green);
}

.comparison-row.unavailable .comparison-status {
    color: var(--red);
}

.comparison-domain {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: 0.02em;
}

.comparison-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--yellow);
}

.comparison-price.unavailable-text {
    color: var(--red);
}

.comparison-action {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--surface);
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all ease-in 0.2s;
    white-space: nowrap;
}

.btn-register:hover {
    background-color: var(--green);
    color: var(--crust);
}

/* Footer */
.footer {
    background-color: var(--mantle);
    border-top: 2px solid var(--surface);
    padding: 10px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    color: var(--subtext);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.footer-logo {
    max-height: 40px;
    width: auto;
}

.footer-right {
    color: var(--subtext);
    font-size: 0.95rem;
}

.footer-right a {
    color: var(--mauve);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    text-decoration: underline;
}

.footer-right span {
    margin: 0 0.5rem;
    color: var(--subtext);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .domain-name {
        font-size: 1.5rem;
    }

    .domain-status {
        font-size: 1rem;
    }

    .domain-subtitle {
        font-size: 0.9rem;
    }

    .domain-info {
        padding: 1.5rem;
        max-width: 100%;
    }

    .domain-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .domain-available {
        width: 100%;
        text-align: left;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Marketplace */
.marketplace-section {
    width: 100%;
}

.marketplace-header {
    text-align: center;
    margin-bottom: 3rem;
}

.marketplace-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    text-shadow: 0 2px 8px rgba(198, 160, 246, 0.2);
}

.marketplace-header p {
    font-size: 1.1rem;
    color: var(--subtext);
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.domain-card {
    background: var(--mantle);
    border: 2px solid var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.5s ease forwards;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.domain-card:not(.on-sale):hover {
    border-color: var(--subtext);
}

.domain-card.on-sale:hover {
    border-color: var(--green);
}

.domain-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
    margin: 0;
}

.domain-card-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.domain-card-price-regular {
    font-size: 0.9rem;
    color: var(--red);
    text-decoration: line-through;
}

.domain-card-price-sale {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green);
}

.domain-card-price-normal {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green);
}

.domain-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(20%, -50%);
    display: inline-block;
    background-color: var(--green);
    color: var(--crust);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    width: fit-content;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--subtext);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error {
    color: var(--red);
    padding: 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .marketplace-header h1 {
        font-size: 1.8rem;
    }

    .domains-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    main {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .domains-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-header h1 {
        font-size: 1.5rem;
    }
}

/* FAQ Section */
.faq-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    text-shadow: 0 2px 8px rgba(198, 160, 246, 0.2);
}

.faq-header p {
    font-size: 1.1rem;
    color: var(--subtext);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--mantle);
    border: 2px solid var(--surface);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--mauve);
}

.faq-item.active {
    border-color: var(--mauve);
}

.faq-question {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    padding: 1.5rem;
    background-color: transparent;
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--surface);
}

.faq-item.active .faq-question {
    background-color: var(--surface);
}

.faq-question span {
    text-align: left;
}

.faq-question i {
    min-width: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--mauve);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: var(--crust);
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: var(--text);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .faq-header h1 {
        font-size: 1.8rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }

    .faq-answer p {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .faq-header h1 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
        padding: 1rem;
    }
}