/* inter-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v19-latin-regular.woff2') format('woff2');
}
/* inter-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v19-latin-500.woff2') format('woff2');
}
/* inter-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v19-latin-700.woff2') format('woff2');
}

:root {
    --primary-color: #FFC300;
    --star-color: #ffc40c;
    --primary-hover: #e0ac00;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --site-bg: #FDFDFD;
    --dark-color: #212529;
    --text-color: #212529;
    --secondary-text-color: #555;
    --white-color: #ffffff;
    --border-color: #eeeeee;
    --star-bg-color: #d6d6d6;
    --cta-bg-color: #ffc300;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--site-bg);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main {
    flex-grow: 1;
}

html.body-modal-open,
body.body-modal-open {
    overflow: hidden;
    position: relative;
}
html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden;
}

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

/* ---
Key Change 1: Unified Section Title Margin
This rule now controls the space between ALL section titles and their content.
--- */
.section-title {
    text-align: center;
    font-size: 28px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px; /* UNIFIED SPACING */
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
    max-width: 1030px;
}

.hidden {
    display: none !important;
}

/* --- Keyframe Animations --- */
@keyframes fly-to-saved {
  0% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(150px, -150px) scale(0.2);
    opacity: 0;
  }
}

@keyframes jiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
  75% { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}

/* --- Site Header --- */
.site-header {
    background-color: var(--white-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.site-header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header__logo-img {
    width: 160px; 
    height: 50px;  
    display: block; 
}
.site-header__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 50px;
    align-items: center;
}
.site-header__nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}
.site-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}
.site-header__hamburger-line {
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s linear;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 80px 0;
}

.hero__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__subtitle,
.testimonial-card__text,
.cta-section__subtitle,
.faq__answer {
    font-size: 17px;
    line-height: 1.7;
    color: var(--dark-color);
    opacity: 1;
}
.hero__subtitle {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.testimonial-card__text {
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: center;
}
.cta-section__subtitle {
    opacity: 0.8;
    margin-bottom: 40px;
}
.faq__answer {
    margin: 0;
    padding: 0 20px 20px 20px;
    border-top: 1px solid var(--border-color);
    text-align: left;
    margin-top: 20px;
}

/* --- Search Component Style Update --- */
.search {
    margin: 0 auto;
    background-color: transparent;
    display: flex;
    align-items: center;
    padding: 0;
    box-shadow: none;
    max-width: 1030px;
    border: none;
    gap: 10px;
}
.search__input {
    flex-grow: 1;
    border: 1px solid #dcdcdc;
    background: var(--white-color);
    padding: 16px 30px;
    font-size: 20px;
    outline: none;
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.search__input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.3);
}
.search__input::placeholder {
    color: #a9a9a9;
    opacity: 1;
}
.search__button {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: none;
    border-radius: 8px;
    padding: 16px 40px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}
.search__button:hover {
    background-color: var(--primary-hover);
}

/* ---
Key Change 2: Unified Section Padding
All major sections will now have a consistent padding to ensure
an 80px gap between them.
--- */
/* تعديل: تم رفع هذا القسم (A Simple, Powerful Process) بمقدار 12 بكسل للأعلى */
.how-it-works {
    padding: 50px 0 120px;
}
.faq {
    padding: 120px 0;
}


/* Reverting Testimonials to its original state as requested */
.testimonials {
    padding: 60px 0;
}


.how-it-works .container, .faq .container {
    max-width: 1030px;
}
.how-it-works__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

/* --- Step Card Component --- */
.step-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}
.step-card__icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    background-color: #fff8e1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.step-card__icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}
.step-card__title {
    font-size: 19px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
}
.step-card__description {
    color: var(--secondary-text-color);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* --- Results --- */
.results__wrapper {
    margin: 50px auto 0 auto;
    max-width: 1030px;
    display: none;
}
.results__wrapper--visible {
    display: block;
}
.results__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.results__load-more {
    text-align: center;
    margin-top: 30px;
}
.results__load-more-button {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.results__load-more-button--loaded {
    background-color: #ededed;
    color: #c4c4c4;
    cursor: not-allowed;
}

/* --- Result Card Redesign --- */
.result-card {
    position: relative;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}
.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}
.result-card__content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.result-card__name {
    font-family: 'Changa', sans-serif;
    font-weight: 600;
    font-size: 1.6em;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    user-select: none;
}

.result-card__status {
    position: absolute;
    top: 6px;
    left: 6px;
    color: #ffffff;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 0.84em;
    font-weight: 700;
    background-color: #75cccc;
    display: inline-flex;
    align-items: center;
}
.result-card__status span {
    display: flex;
    align-items: center;
    gap: 2px;
}
.result-card__actions {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.result-card:hover .result-card__actions,
.result-card__actions--visible {
    opacity: 1;
    visibility: visible;
}

.result-card__action-btn {
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    padding: 4px 6px;
    font-size: 0.8em;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.result-card__action-btn--get-it { background-color: #969696; }
.result-card__action-btn--ai {
    background-color: #ffc515;
    color: #000000;
}
.result-card__action-btn--ai svg {
    width: 16px;
    height: 16px;
    stroke: var(--white-color);
}

.result-card__arrow { width: 16px; height: 16px; fill: var(--white-color); }

.result-card__dropdown {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 0;
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    padding: 5px;
    z-index: 10;
    width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.result-card__dropdown--show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.result-card__dropdown a {
    color: var(--dark-color);
    text-decoration: none;
    padding: 8px 10px;
    font-size: 0.9em;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.result-card__dropdown-arrow { width: 14px; height: 14px; stroke: var(--secondary-text-color); stroke-width: 2; fill: none; }
.result-card__dropdown a:hover { background-color: #f0f0f0; }


/* --- Favorite Button Modifications --- */
.result-card__favorite-container {
    position: absolute;
    top: 6px;
    right: 6px;
}

.result-card__favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    transition: background-color 0.4s ease;
}

.result-card__favorite-text {
    font-size: 1.0em;
    font-weight: 500;
    color: var(--dark-color);
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.4s ease, opacity 0.3s ease 0.1s;
    margin-left: 2px;
}

.result-card__favorite-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #cccccc;
    stroke-width: 2;
    transition: fill 0.2s, stroke 0.2s;
    flex-shrink: 0;
}

.result-card__favorite-btn--active svg {
    fill: var(--primary-color);
    stroke: var(--primary-color);
}

.heart-fly-animation {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  fill: var(--primary-color);
  stroke: var(--primary-color);
  top: var(--start-top);
  left: var(--start-left);
  animation: fly-to-saved 0.8s ease-in forwards;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    max-width: 1030px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
	width: 90%;
    background-color: var(--primary-color);
    margin-top: 20px;
}
.cta-section__container {
    max-width: 800px;
    margin: 0 auto;
    color: var(--dark-color);
}
.cta-section__title {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}
.cta-section__subtitle--dark {
    color: var(--dark-color);
}

.cta-section__button--white {
    background-color: var(--white-color);
    color: var(--dark-color);
    border: none;
    border-radius: 8px;
    padding: 16px 40px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}
.cta-section__button--white:hover {
    background-color: #f0f0f0;
    color: var(--dark-color);
}

.testimonials .container {
    max-width: 1030px;
}
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.testimonial-card {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}
.testimonial-card__quote-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 15px;
    fill: var(--primary-color);
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.testimonial-card__quote-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.testimonial-card__bottom {
    text-align: center;
    margin-top: auto;
}
.testimonial-card__author {
    font-size: 14px;
    color: var(--secondary-text-color);
    margin-top: 0;
    margin-bottom: 5px;
}
.testimonial-card__author strong {
    font-size: 16px;
    color: var(--dark-color);
}
.testimonial-card__stars {
    font-size: 18px;
    color: var(--primary-color);
    letter-spacing: 2px;
    display: block;
    text-align: center;
}


/* --- FAQ Component --- */
.faq__item {
    background: var(--white-color);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}
.faq__question {
    padding: 20px;
    font-weight: 700;
    font-size: 19px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');
    mask-size: contain;
    mask-repeat: no-repeat;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 15px;
}
.faq__item[open] > .faq__question::after { transform: rotate(180deg); }
.faq__item[open] > .faq__answer { padding-top: 20px; }

/* --- Site Footer --- */
.site-footer {
    background-color: var(--primary-color);
    padding: 20px 0;
    text-align: center;
    color: var(--dark-color);
    font-size: 14px;
}
.site-footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.site-footer__copyright { margin: 5px 0; }
.site-footer__links { display: flex; gap: 20px; margin: 5px 0; }
.site-footer__link { color: var(--dark-color); text-decoration: none; font-weight: 500; }

/* --- Modal Component --- */
@keyframes modal-fade-in {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal--visible { opacity: 1; visibility: visible; }
.modal--visible .modal__container { animation: modal-fade-in 0.3s ease-out forwards; }
.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(5px);
}
.modal__container {
    position: relative;
    z-index: 1001;
    max-width: 850px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.modal__close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    color: var(--secondary-text-color);
    border: none;
    width: 35px;
    height: 35px;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 1002;
    transition: color 0.2s ease;
}
.modal__close-btn:hover {
    color: var(--dark-color);
}
.modal__body {
    background-color: var(--white-color);
    color: var(--dark-color);
    padding: 35px;
    border-radius: 12px;
    line-height: 1.6;
    overflow-y: auto;
}

.modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}
.modal__full-width-domains {
    margin-top: 35px;
}
.modal__info-block { margin-bottom: 38px; }
.modal__info-block:last-child { margin-bottom: 0; }

.modal__subtitle {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal__subtitle--highlight {
    display: inline-flex;
    background-color: #ffc515;
    color: #000000;
    font-weight: bold;
    padding: 2px 6px;
    text-transform: uppercase;
    font-size: 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}
.modal__subtitle .modal__subtitle-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.modal__subtitle--highlight .modal__subtitle-icon {
    width: 13px;
    height: 13px;
    fill: #000000;
}
#slogan-title .modal__subtitle-icon { color: #ffa878; }
#pronunciation-title .modal__subtitle-icon { color: #75cccc; }
#social-title .modal__subtitle-icon { color: #ffa878; }
#main-domain-title .modal__subtitle-icon { color: #ffc518; }
#suggested-domain-title .modal__subtitle-icon { color: #75cccc; }
#available-domain-title .modal__subtitle-icon { color: #b2b2b2; }

.modal__title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}
.modal__title { font-size: 32px; margin: 0; user-select: none; }
.modal__listen-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
    transform-origin: center center;
    transform: scale(0.97);
}
.modal__listen-btn:hover {
    background-color: #e5e5e5;
}
.modal__listen-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--secondary-text-color);
}
.modal__listen-btn.playing svg {
    fill: var(--primary-hover);
}

.modal__text {
    color: var(--secondary-text-color);
    font-weight: normal;
    margin: 0;
}

.modal__info-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
}

.modal__star-rating-text,
.modal__domain-item span {
    font-size: 15px;
    font-weight: normal;
    color: var(--dark-color);
}
#modal-pronunciation-score {
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal__star-rating { position: relative; display: inline-block; font-size: 22px; line-height: 1; }
.modal__star-rating-bg { color: var(--star-bg-color); }
.modal__star-rating-fg { position: absolute; top: 0; left: 0; white-space: nowrap; overflow: hidden; color: var(--star-color); }

.modal__domain-list-container {
    transition: opacity 0.2s ease-in-out;
}
.modal__domain-list-container--hiding {
    opacity: 0;
}

.modal__domain-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 10px;
    transition: background-color 0.2s;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}
.modal__domain-list-container {
    border: none;
    padding: 0;
}

.modal__domain-item:hover {
    background-color: #f5f5f5;
}
.modal__domain-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    flex-shrink: 0;
}
.modal__domain-icon--available { color: #30b780; }
.modal__domain-icon--unavailable { color: var(--danger-color); }

.modal__social-list { display: flex; flex-wrap: wrap; gap: 15px; }
.modal__social-link img { width: 25px; height: 25px; display: block; }

.modal__domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.modal__domain-header .modal__subtitle {
    margin-bottom: 0;
}
.modal__registrar-selector {
    position: relative;
}
.modal__registrar-btn {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 110px;
    justify-content: center;
}
.modal__registrar-arrow {
    width: 16px;
    height: 16px;
    fill: var(--dark-color);
}
.modal__registrar-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 5px;
    z-index: 20;
    min-width: 108px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.modal__registrar-dropdown--show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.modal__registrar-dropdown a {
    color: var(--dark-color);
    text-decoration: none;
    padding: 8px 10px;
    font-size: 0.9em;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.modal__registrar-dropdown a:hover {
    background-color: #f0f0f0;
}

/* --- Saved Page Styles --- */
.saved-page-content {
    padding-top: 40px;
    padding-bottom: 40px;
}
.no-items-message {
    text-align: center;
    color: var(--secondary-text-color);
    font-size: 1.2em;
    padding: 40px;
    background-color: var(--white-color);
    border-radius: 12px;
}

/* --- Info Wizard Component --- */
.wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.wizard-container {
    background-color: var(--white-color);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    min-height: 580px;
    height: auto;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.wizard__close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    color: var(--secondary-text-color);
    transition: background-color 0.2s, color 0.2s;
}
.wizard__close-btn:hover {
    background-color: #e0e0e0;
    color: var(--dark-color);
}
.wizard__step {
    display: none;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.wizard__step--active {
    display: flex;
}
.wizard__step--loading {
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
}
.wizard__header {
    padding: 25px 35px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.wizard__step-counter {
    background-color: #fff8e1;
    color: #c79a00;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
}
.wizard__title {
    font-size: 28px;
    margin: 15px 0 5px 0;
    color: var(--dark-color);
}
.wizard__subtitle, .wizard__label-desc {
    color: var(--secondary-text-color);
    margin: 0;
    font-size: 13px;
}

.wizard__label-desc {
    margin-bottom: 15px;
}
.wizard__required-star {
    color: var(--danger-color);
    margin-left: 4px;
}
.wizard__input-wrapper {
    max-width: 100%;
}
.wizard__content {
    padding: 25px 35px;
    overflow-y: auto;
    flex-grow: 1;
}
.wizard__options-grid {
    display: grid;
    gap: 15px;
}
.wizard__options-grid--character {
    grid-template-columns: repeat(4, 1fr);
}
.wizard__options-grid--tone {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.wizard__option {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wizard__option input[type="radio"],
.wizard__option input[type="checkbox"] {
    display: none;
}
.wizard__option-title {
    font-weight: 700;
    color: var(--dark-color);
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}
.wizard__option-desc {
    font-size: 12px;
    color: var(--secondary-text-color);
    line-height: 1.4;
}
.wizard__option--tone {
    text-align: center;
    font-size: 13px;
    padding: 8px;
    position: relative;
    font-weight: 500;
}
.wizard__option--tone span {
    display: block;
}
.wizard__option-checkmark {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.wizard__option:has(input:checked) .wizard__option-checkmark {
    opacity: 1;
}

.wizard__info-group {
    margin-bottom: 25px;
}
.wizard__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
    display: block;
    text-align: left;
}
.wizard__input {
    width: 100%;
    padding: 8px 9px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--white-color);
}
.wizard__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.3);
}
.wizard__input::placeholder {
    font-size: 14px;
    color: #a9a9a9;
}
.wizard__tld-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    margin-top: 15px;
}
.wizard__tld {
    border: 1px solid var(--border-color);
    padding: 6px 4px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
    font-size: 13px;
    font-weight: 500;
}
.wizard__tld input[type="checkbox"] {
    display: none;
}

.wizard__nav {
    padding: 20px 35px;
    border-top: 1px solid var(--border-color);
    background-color: #fcfcfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.wizard__nav--step1 {
    justify-content: flex-end;
}
.wizard__nav-btn {
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 12px 30px;
    transition: background-color 0.2s, color 0.2s;
}
.wizard__nav-btn--prev {
    background-color: #f0f0f0;
    color: var(--dark-color);
}
.wizard__nav-btn--prev:hover {
    background-color: #e0e0e0;
}
.wizard__nav-btn--next, .wizard__nav-btn--generate {
    background-color: var(--primary-color);
    color: var(--dark-color);
}
.wizard__nav-btn--next:hover, .wizard__nav-btn--generate:hover {
    background-color: var(--primary-hover);
}

.wizard__loader {
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.wizard__loader-text {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
}
.wizard__progress-container {
    width: 100%;
    background-color: #eeeeee;
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
    margin-top: 20px;
}
.wizard__progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 8px;
    transition: width 0.1s linear;
}

/* --- Static Page Content --- */
.page-container {
    padding-top: 40px;
    padding-bottom: 40px;
}
.page-content {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.page-content h1 {
    text-align: center;
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 30px;
}
.page-content h2 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}
.page-content p {
    line-height: 1.8;
    color: var(--secondary-text-color);
    font-size: 16px;
    margin-bottom: 20px;
}
.page-content ul {
    line-height: 1.8;
    color: var(--secondary-text-color);
    padding-left: 20px;
}
.page-content .last-updated {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-top: -20px;
    margin-bottom: 30px;
}
.page-content a {
    color: var(--primary-hover);
    text-decoration: none;
    font-weight: 500;
}
.page-content a:hover {
    text-decoration: underline;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .results__grid { grid-template-columns: repeat(2, 1fr); }
    .wizard__options-grid--character { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero__subtitle,
    .testimonial-card__text,
    .cta-section__subtitle,
    .faq__answer {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }
    .cta-section__title {
        font-size: 26px;
    }

    .search {
        flex-direction: column;
    }
    .search__input, .search__button {
        width: 100%;
        box-sizing: border-box;
    }
    .search__input {
        font-size: 17px;
    }
    .search__input::placeholder {
        font-size: 16px;
    }

    .results__grid {
        grid-template-columns: 1fr;
    }
    .site-header__hamburger { display: flex; }
    .site-header__nav { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background-color: var(--white-color); flex-direction: column; justify-content: center; align-items: center; transition: right .3s ease-in-out; z-index: 100; padding-top: 60px; }
    .site-header__nav--is-open { right: 0; }
    .site-header__nav-list { flex-direction: column; gap: 40px; text-align: center; align-items: center; }
    .site-header__nav-link { font-size: 24px; }

    .site-footer__container { flex-direction: column; gap: 10px; }
    .modal__container { width: 100%; max-width: 100%; height: 100%; max-height: 100%;}
    .modal__body { border-radius: 0; height: 100%; box-sizing: border-box; }
    .modal__close-btn { top: 15px; right: 15px; }
    .modal__grid { grid-template-columns: 1fr; }
    .wizard-container { border-radius: 0; height: 100%; max-height: 100%; min-height: unset; }
    .wizard__title { font-size: 24px; }
    .wizard__header, .wizard__content, .wizard__nav { padding-left: 20px; padding-right: 20px; }
    .wizard__options-grid--character { grid-template-columns: repeat(2, 1fr); }

    .testimonials__grid { grid-template-columns: 1fr; }

    .modal__title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }

    .modal__domain-website-icon {
        display: none;
    }

    .wizard__loader-text {
        font-size: 11px;
    }

}
@media (max-width: 480px) {
    .wizard__options-grid--character { grid-template-columns: 1fr; }
    .wizard__tld-grid { grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)); }
    .page-content { padding: 20px; }
}

/* --- Spinner --- */
.spinner {
  width: 160px;
  height: 50px;
  margin: 20px auto;
  background-image: url('../image/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.modal-field-spinner-dots {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 40px;
    padding-left: 8px;
}

.modal-field-spinner-dots .dot {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background-color: #ffc515;
    border-radius: 50%;
    animation: dot-pulse 1.4s infinite ease-in-out both;
}

.modal-field-spinner-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.modal-field-spinner-dots .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes dot-pulse {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* --- Custom TLD Tag Colors --- */
.result-card__status--tld-com { background-color: #58afad; }
.result-card__status--tld-net { background-color: #545ed6; }
.result-card__status--tld-org { background-color: #a44bdd; }
.result-card__status--tld-co { background-color: #d6548f; }
.result-card__status--tld-io { background-color: #689952; }
.result-card__status--tld-ai { background-color: #af895d; }
.result-card__status--tld-app { background-color: #5d81af; }
.result-card__status--tld-me { background-color: #d65454; }
.result-card__status--tld-tech { background-color: #5f5f5f; }
.result-card__status--tld-store { background-color: #5dafb2; }
.result-card__status--tld-online { background-color: #4ea9da; }
.result-card__status--tld-blog { background-color: #da9b4e; }
.result-card__status--tld-shop { background-color: #b25daf; }
.result-card__status--tld-info { background-color: #7c7c7c; }
.result-card__status--tld-xyz { background-color: #9d7b4b; }
.result-card__status--tld-site { background-color: #4b9d7b; }
.result-card__status--tld-live { background-color: #d65454; }
.result-card__status--tld-media { background-color: #af5d9c; }
.result-card__status--tld-art { background-color: #af5d5d; }
.result-card__status--tld-biz { background-color: #5f8daf; }
.result-card__status--tld-design { background-color: #af5da9; }
.result-card__status--tld-pro { background-color: #8daf5d; }


.modal__domain-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal__domain-tag {
    font-size: 8px !important;
    font-weight: 700;
    line-height: 1;
    padding: 5px 9px !important;
    border-radius: 50px;
    background-color: #8b5cf6;
    color: var(--white-color) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal__domain-website-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.modal__domain-item:hover .modal__domain-website-icon {
    transform: scale(1.1);
}

/* --- Error Notification Banner --- */
.error-notification {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background-color: #fffbeb;
    color: #573a08;
    border-radius: 8px;
    padding: 12px 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slide-down-fade-in 0.5s ease-out forwards;
}

@keyframes slide-down-fade-in {
    from {
        top: 40px;
        opacity: 0;
    }
    to {
        top: 90px;
        opacity: 1;
    }
}

.error-notification__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #f59e0b;
}

.error-notification__text {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.error-notification__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 24px;
    line-height: 1;
    color: #926c15;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.error-notification__close:hover {
    opacity: 1;
}

.site-header__nav--is-open {
    right: 0;
}

.mobile-menu-open {
    overflow: hidden;
}

/* --- New styles for selected wizard options --- */
.wizard__option:has(input:checked),
.wizard__tld:has(input:checked) {
    background-color: #ffc40c;
    color: #232323;
    border-color: #ffc40c;
}

.wizard__option:has(input:checked) span,
.wizard__tld:has(input:checked) span {
    color: #232323;
}

.wizard__option:has(input:checked) .wizard__option-checkmark {
    fill: #232323;
}


/* --- Desktop-Only Hover & Animation Effects --- */
@media (min-width: 769px) {
    /* Favorite Button Hover Effect */
    .result-card__favorite-container:hover .result-card__favorite-btn {
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(2px);
        padding-right: 10px;
    }

    .result-card__favorite-container:hover .result-card__favorite-text {
        max-width: 50px;
        opacity: 1;
    }

    /* TLD Jiggle Effect */
     .result-card:hover .result-card__status {
    animation: jiggleAndFade 0.6s ease-out forwards;
}

@keyframes jiggleAndFade {
    0% { transform: translateX(0); opacity: 1; }
    25% { transform: translateX(5px); opacity: 0.8; }
    50% { transform: translateX(-5px); opacity: 0.6; }
    75% { transform: translateX(3px); opacity: 0.4; }
    100% { transform: translateX(0); opacity: 1; }
}

}

/* --- Saved Counter Styles --- */
.saved-counter {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    line-height: 1;
    transition: transform 0.2s ease;
}
.saved-counter.hidden {
    display: none;
}

/* --- Confirmation Modal Styles --- */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.confirm-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.confirm-modal {
    background: var(--white-color);
    padding: 30px;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.confirm-modal-overlay.visible .confirm-modal {
    transform: scale(1);
}
.confirm-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    padding: 5px;
}
.confirm-modal__text {
    font-size: 18px;
    color: var(--secondary-text-color);
    margin: 10px 0 30px 0;
    line-height: 1.5;
}
.confirm-modal__text b {
    color: var(--dark-color);
    font-weight: 600;
}
.confirm-modal__buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.confirm-modal__btn {
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 12px 30px;
    border: 2px solid transparent;
    min-width: 120px;
    transition: all 0.2s;
}
.confirm-modal__btn--yes {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--primary-color);
}
.confirm-modal__btn--yes:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.confirm-modal__btn--no {
    background-color: transparent;
    color: var(--dark-color);
    border-color: #ccc;
}
.confirm-modal__btn--no:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}

/* --- Features Section (Final Polished Design - 3 Columns) --- */
/* تعديل: تم رفع هذا القسم (A Complete Branding Toolkit) بمقدار 12 بكسل للأعلى */
.features-final {
    padding: 25px 0 80px;
}

.features-final .container {
    max-width: 1030px; /* تم التغيير: إعادة العرض ليتطابق مع بقية الأقسام */
}

.features-final__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* تم التغيير: من 2 إلى 3 أعمدة */
    gap: 50px 40px; /* تم التغيير: تعديل المسافات لتناسب 3 أعمدة */
}

.features-final__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 15px;
    align-items: flex-start;
}

.features-final__icon {
    grid-row: 1 / 3;
    margin-top: 2px;
}

.features-final__icon svg {
    width: 25px;
    height: 25px;
    fill: #FFC237; /* The fill color is in the HTML, but this is a fallback */
    transition: transform 0.2s ease;
}

.features-final__item:hover .features-final__icon svg {
    transform: scale(1.15);
}

.features-final__title {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    color: var(--dark-color);
}

.features-final__description {
    color: var(--secondary-text-color);
    font-size: 14px;
    line-height: 1.65;
    margin: 8px 0 0 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .features-final__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-final__grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}
/* --- Language Dropdown --- */
.language-dropdown {
    position: relative;
}

.language-dropdown__button {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.language-dropdown__button:hover {
    background-color: #e5e5e5;
}

.language-dropdown__button svg {
    width: 18px;
    height: 18px;
}

.language-dropdown__content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 100;
    overflow: hidden;
    padding: 5px;
    border: 1px solid var(--border-color);
}

.language-dropdown__content.show {
    display: block;
}

.language-dropdown__content a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    border-radius: 5px;
}

.language-dropdown__content a:hover {
    background-color: #f5f5f5;
}

.language-dropdown__content a.active {
    font-weight: 700;
    background-color: var(--primary-color);
    color: var(--dark-color);
}