* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #ffffff;
    color: #111;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
}

.logo {
    font-size: 28px;
    font-weight: 700;
}

#language {
    padding: 8px 15px;
    border-radius: 8px;
}


.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
}


.hero h1 {
    font-size: 52px;
    max-width: 800px;
    line-height: 1.1;
}


.hero p {
    margin-top: 20px;
    font-size: 20px;
    color: #666;
}


.hero button {
    margin-top: 35px;
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    background: #111;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 85%;
    max-width: 1200px;
}


.hero-text {
    flex: 1;
}


.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}


.mockup {
    width: 280px;
    height: 520px;
    border-radius: 35px;
    background: #111;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}


.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}


.secondary-btn {
    background: white !important;
    color: #111 !important;
    border: 1px solid #ddd !important;
}


@media(max-width:800px){

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 38px;
    }

}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 8%;
}


.logo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}


nav {
    display: flex;
    gap: 35px;
}


nav a {
    text-decoration: none;
    color: #555;
    font-size: 16px;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}


.nav-btn {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    background: #111;
    color: white;
    cursor: pointer;
}

.why-xiova {
    padding: 100px 8%;
}


.section-title {
    text-align: center;
    max-width: 700px;
    margin: auto;
}


.section-title h2 {
    font-size: 42px;
}


.section-title p {
    margin-top: 15px;
    color: #666;
    font-size: 18px;
}



.why-cards {

    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    margin-top: 60px;

}


.why-card {

    padding: 35px;
    border-radius: 25px;
    background: #fafafa;
    transition: 0.3s;

}


.why-card:hover {

    transform: translateY(-8px);

}


.icon {

    font-size: 35px;
    margin-bottom: 20px;

}


.why-card h3 {

    font-size: 24px;
    margin-bottom: 15px;

}


.why-card p {

    color: #666;
    line-height: 1.6;

}



@media(max-width:900px){

    .why-cards{
        grid-template-columns:1fr;
    }

}

.management {
    padding: 100px 8%;
}


.management-grid {

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    margin-top:60px;

}


.management-card {

    padding:35px;
    border-radius:25px;
    border:1px solid #eee;

}


.management-card h3 {

    font-size:22px;
    margin-bottom:15px;

}


.management-card p {

    color:#666;
    line-height:1.5;

}


@media(max-width:1000px){

.management-grid{
    grid-template-columns:repeat(2,1fr);
}

}


@media(max-width:600px){

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

}

.early-access {

    padding:100px 8%;
    background:#fafafa;

}


.access-box {

    max-width:700px;
    margin:auto;
    text-align:center;

}


.access-box h2 {

    font-size:42px;

}


.access-box p {

    margin:20px 0 40px;
    color:#666;

}


#registerForm {

    display:flex;
    flex-direction:column;
    gap:15px;

}


#registerForm input,
#registerForm select {

    padding:16px;
    border-radius:12px;
    border:1px solid #ddd;
    font-size:16px;

}


#registerForm button {

    padding:16px;
    border:none;
    border-radius:30px;
    background:#111;
    color:white;
    font-size:17px;
    cursor:pointer;

}

.success-page {

    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;

}


.success-card {

    max-width:500px;
    text-align:center;
    padding:50px;
    border-radius:30px;
    background:#fafafa;

}


.check {

    width:70px;
    height:70px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#111;
    color:white;
    font-size:35px;

}


.success-card h1 {

    margin-top:30px;
    font-size:36px;

}


.success-card p {

    margin:20px 0;
    color:#666;
    line-height:1.6;

}

.success-page {

    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;

}


.success-card {

    max-width:520px;
    width:100%;
    text-align:center;
    padding:60px 40px;
    border-radius:35px;
    background:white;
    box-shadow:0 20px 60px rgba(0,0,0,0.08);

    animation:fadeIn 0.8s ease;

}


.logo-success {

    font-size:32px;
    font-weight:800;
    margin-bottom:35px;

}


.check {

    width:80px;
    height:80px;

    margin:auto;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#111;
    color:white;

    font-size:40px;

}


.success-card h1 {

    margin-top:30px;
    font-size:36px;
    line-height:1.2;

}


.success-card p {

    margin:25px 0;

    color:#666;

    font-size:17px;

    line-height:1.7;

}


.success-card button {

    padding:15px 35px;

    border:none;

    border-radius:30px;

    background:#111;

    color:white;

    font-size:16px;

    cursor:pointer;

}


@keyframes fadeIn {

    from {
        opacity:0;
        transform:translateY(20px);
    }

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

}

#messageBox{
    display:none;
    padding:15px;
    margin-bottom:20px;
    border-radius:12px;
    text-align:center;
    font-weight:600;
}

#messageBox.success{
    display:block;
    background:#e8f8ec;
    color:#1f7a3d;
    border:1px solid #b7e4c7;
}

#messageBox.error{
    display:block;
    background:#fff1f2;
    color:#b42318;
    border:1px solid #fda29b;
}

.xiova-footer {

    background:#111;
    color:white;
    padding:60px 40px 25px;

}


.footer-container {

    max-width:1200px;
    margin:auto;

    display:flex;
    justify-content:space-between;
    gap:40px;

}


.footer-brand h2 {

    font-size:32px;
    margin-bottom:15px;

}


.footer-brand p {

    color:#aaa;
    max-width:300px;
    line-height:1.6;

}


.footer-links {

    display:flex;
    gap:70px;

}


.footer-links h3 {

    font-size:15px;
    margin-bottom:20px;

}


.footer-links a {

    display:block;
    color:#aaa;
    text-decoration:none;
    margin-bottom:12px;

}


.footer-links a:hover {

    color:white;

}


.footer-bottom {

    border-top:1px solid #333;
    margin-top:40px;
    padding-top:20px;

    text-align:center;

    color:#888;

}



@media(max-width:768px){

.footer-container{

    flex-direction:column;

}

.footer-links{

    flex-direction:column;
    gap:25px;

}

}

.xiova-navbar {

    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 50px;

    background:white;

    position:sticky;
    top:0;

    z-index:1000;

}


.nav-logo {

    font-size:32px;
    font-weight:800;

}


.nav-links {

    display:flex;
    gap:35px;

}


.nav-links a {

    text-decoration:none;
    color:#555;

    font-size:15px;

}


.nav-links a:hover {

    color:#000;

}


.nav-actions {

    display:flex;
    gap:15px;

}


.login-btn,
.join-btn {

    padding:12px 25px;

    border-radius:25px;

    cursor:pointer;

    font-size:15px;

}


.login-btn {

    background:white;
    border:1px solid #ddd;

}


.join-btn {

    background:#111;
    color:white;
    border:none;

}

html {
    scroll-behavior: smooth;
}

/* ==========================================
   XIova Admin Dashboard
   ========================================== */

.admin-container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 45px 0 70px;
}

.admin-header {
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
}

.admin-header p {
    margin-top: 10px;
    color: #666;
    font-size: 17px;
}


/* ==========================================
   Summary
   ========================================== */

.registration-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 20px;
    margin-bottom: 25px;
}

.registration-stat {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 24px;
}

.registration-stat span {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.registration-stat strong {
    font-size: 32px;
    font-weight: 800;
}


/* ==========================================
   Search
   ========================================== */

.registration-search {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    margin-bottom: 20px;
}

.registration-search:focus {
    border-color: #111;
}


/* ==========================================
   Actions
   ========================================== */

.admin-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.admin-actions button {
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    background: #111;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.admin-actions button:hover {
    opacity: 0.85;
}


/* ==========================================
   Table
   ========================================== */

.registration-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: white;
    border: 1px solid #eee;
    border-radius: 18px;
}

.registration-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.registration-table th {
    background: #fafafa;
    color: #555;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.registration-table td {
    padding: 17px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

.registration-table tbody tr:last-child td {
    border-bottom: none;
}

.registration-table tbody tr:hover {
    background: #fafafa;
}


/* ==========================================
   Status
   ========================================== */

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    background: #e9f8ef;
    color: #18864b;
    font-size: 12px;
    font-weight: 700;
}


/* ==========================================
   Delete
   ========================================== */

.delete-btn {
    padding: 8px 13px;
    border: none;
    border-radius: 8px;
    background: #111;
    color: white;
    cursor: pointer;
    font-size: 13px;
}

.delete-btn:hover {
    opacity: 0.8;
}


/* ==========================================
   Restore
   ========================================== */

.restore-btn {
    padding: 8px 13px;
    border: none;
    border-radius: 8px;
    background: #18864b;
    color: white;
    cursor: pointer;
    font-size: 13px;
}

.restore-btn:hover {
    opacity: 0.85;
}


/* ==========================================
   Trash Section
   ========================================== */

#trashSection {
    margin-top: 35px;
}

#trashSection h2 {
    font-size: 25px;
    margin-bottom: 18px;
}


/* ==========================================
   Loading / Empty
   ========================================== */

.loading,
.empty-state {
    text-align: center;
    padding: 35px !important;
    color: #777 !important;
}


/* ==========================================
   Mobile
   ========================================== */

@media (max-width: 700px) {

    .admin-container {
        width: 94%;
        padding-top: 30px;
    }

    .admin-header h1 {
        font-size: 30px;
    }

    .admin-header p {
        font-size: 15px;
        line-height: 1.5;
    }

    .registration-summary {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .registration-stat {
        padding: 18px;
    }

    .registration-stat strong {
        font-size: 26px;
    }

    .admin-actions {
        justify-content: stretch;
    }

    .admin-actions button {
        width: 100%;
    }

}

/* ==========================================
   Xiova Owner Setup Page
========================================== */

.setup-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: #f7f7f7;
    color: #111;
}

.setup-box {
    width: 100%;
    max-width: 430px;
    background: #fff;
    padding: 42px;
    border-radius: 24px;
    border: 1px solid #eaeaea;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.setup-logo {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 35px;
}

.setup-box h2 {
    text-align: center;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.setup-subtitle {
    text-align: center;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.setup-box input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    margin-top: 12px;
    border: 1px solid #ddd;
    border-radius: 11px;
    outline: none;
    font-size: 15px;
}

.setup-box input:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.setup-box button {
    width: 100%;
    height: 50px;
    margin-top: 18px;
    border: none;
    border-radius: 11px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.setup-box button:hover {
    opacity: 0.88;
}

#message {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 500px) {

    .setup-page {
        padding: 16px;
    }

    .setup-box {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .setup-box h2 {
        font-size: 24px;
    }

    .setup-logo {
        margin-bottom: 28px;
    }
}